joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445f38
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x445f54
cmp dword [esi + 4], 0
je 0x445f81
test byte [ebx + 0x55], 1
jne 0x445f73
mov eax, ebx
call fcn.00444320
test eax, eax
jne 0x445f73
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x446091
mov edx, esi
mov eax, ebx
call fcn.00445940
jmp 0x446091
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x44608a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00447f90
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00441748
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00445f38
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00447f90
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446091
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d314
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x484ec8]
cmp byte [eax + 0xc], 0
je 0x44d481
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44d47a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x488548], 0
jne 0x44d368
push 0x44d488
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44d490
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488548], eax
cmp dword [0x47b6e4], 0
jne 0x44d463
push 0x44d4a0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47b6e4], eax
cmp dword [0x47b6e4], 0
je 0x44d463
push 0x44d4ac
mov eax, dword [0x47b6e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48854c], eax
push 0x44d4bc
mov eax, dword [0x47b6e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488550], eax
push 0x44d4d0
mov eax, dword [0x47b6e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488554], eax
push 0x44d4e8
mov eax, dword [0x47b6e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488558], eax
push 0x44d500
mov eax, dword [0x47b6e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48855c], eax
push 0x44d514
mov eax, dword [0x47b6e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488560], eax
push 0x44d52c
mov eax, dword [0x47b6e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488564], eax
push 0x44d544
mov eax, dword [0x47b6e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488568], eax
push 0x44d560
mov eax, dword [0x47b6e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48856c], eax
push 0x44d56c
mov eax, dword [0x47b6e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488570], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d481
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x452af0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x452b44]
test si, 4
je 0x452b05
or bl, 1
test si, 8
je 0x452b0f
or bl, 4
test si, 1
je 0x452b19
or bl, 8
test si, 2
je 0x452b23
or bl, 0x10
test si, 0x10
je 0x452b2d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452b3c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x452b48
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x452b84]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452b62
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452b71
or bl, 4
test esi, 0x20000000
je 0x452b7c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45a238
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45a24a
add esp, 0xfffffff0
call fcn.004040d0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f728
mov eax, dword [0x484af8]
mov dword [eax + 4], ebx
mov dword [eax], 0x45a5dc
mov eax, dword [0x484b04]
mov dword [eax + 4], ebx
mov dword [eax], 0x45a5e8
mov eax, ebx
call fcn.0045a5f4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416a34]
call fcn.00403d7c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416a34]
call fcn.00403d7c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416a34]
call fcn.00403d7c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416a34]
call fcn.00403d7c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416a34]
call fcn.00403d7c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45608c
push eax
push 0
push 0
mov eax, dword [0x484c90]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4238cc]
call fcn.00424dec
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4238cc]
call fcn.00424dec
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4238cc]
call fcn.00424dec
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045aa24
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a8f4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a8f4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a8f4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a387
call fcn.00404128
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45a6d8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a883
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45a864
mov dl, 1
mov eax, dword [0x417004]
call fcn.00403d7c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404cb8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45a853
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044d670
test al, al
je 0x45a846
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45a894
lea eax, [ebp - 0x254]
call fcn.00409f34
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45a846
xor eax, eax
push ebp
push 0x45a83f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45a8cc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45a828
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f28
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45a828
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a846
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45a749
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041b4f0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a88a
lea eax, [ebp - 0x260]
call fcn.00404cb8
ret

Function at 0x45b1fc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x488580]
cmp byte [eax + 0xad], 0
jne 0x45b26d
cmp dword [0x488598], 0
jne 0x45b22e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45b1b8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x488598], eax
cmp dword [0x488594], 0
jne 0x45b249
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x488594], eax
cmp dword [0x48859c], 0
jne 0x45b26d
push esp
push 0
push 0
push 0x45b15c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x48859c], eax
pop edx
ret
Function at 0x45b440
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45b457
add esp, 0xfffffff0
call fcn.004040d0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f728
mov eax, dword [0x484c70]
cmp word [eax + 2], 0
jne 0x45b47f
mov eax, dword [0x484c70]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045cef0
mov eax, dword [0x484d34]
cmp word [eax + 2], 0
jne 0x45b499
mov eax, dword [0x484d34]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d0fc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416a34]
call fcn.00403d7c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416a34]
call fcn.00403d7c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x416a34]
call fcn.00403d7c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4240a8]
call fcn.00429f94
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45b650
mov eax, dword [0x484b6c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a368
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45d7bc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x484b6c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d6c4
test eax, eax
je 0x45b5a0
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004098ec
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d6f8
test eax, eax
je 0x45b5b4
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404f28
mov byte [ebx + 0xd4], 0
push ebx
push 0x45ca50
call fcn.00420ec4
mov dword [ebx + 0xc8], eax
mov eax, dword [0x484a3c]
cmp byte [eax], 0
jne 0x45b605
mov eax, ebx
call fcn.0045b794
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045d998
mov eax, ebx
call fcn.0045e4f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b645
call fcn.00404128
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45ba14
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x488580]
cmp dword [eax + 0x30], 0
je 0x45babe
cmp dword [ebx + 0x94], 0
jne 0x45bab8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b9a4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45bab8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45ba7e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45bab8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004191a0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45ba8d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45c7d8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45c80d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404da8
jmp 0x45c81a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d0c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45db7c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45dbea
mov eax, esi
call fcn.00448330
test al, al
je 0x45dbea
mov eax, dword [ebx + 0x84]
call fcn.00447f90
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45dbea
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45dbde
push 0
mov eax, dword [ebx + 0x84]
call fcn.00447f90
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004403b0
jmp 0x45dbea
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045d9b8
pop esi
pop ebx
ret
Function at 0x4071c9
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 4], eax
mov dword [0x42091f], 0x7a64
mov eax, dword [ebp - 8]
not dword [0x4209ab]
push edi
mov edi, 0xff
mov dword [0x4209d3], 0x11c3
cmp eax, esi
mov dword [0x42098f], 0x3cac
jae 0x4073bd
or dword [0x42095b], edx
mov edx, esi
sbb eax, 0x5cde
shr edx, 8
cmp dword [0x420967], 0
jbe 0x407235
add dword [0x42094b], 0x3840
jmp 0x407235
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test edx, edx
je 0x407282
mov ecx, dword [ebp - 4]
sub dword [0x42093b], 0x42093f
add eax, edx
mov dword [0x420943], 0x6daa
cmp dword [ecx], eax
mov eax, dword [ebp - 4]
mov dword [0x4208ff], 0x55e1
jae 0x407331
adc dword [0x42096b], 0x420923
add dword [eax], edx
jmp 0x4073a7
and ecx, ecx
jmp 0x4072ee
mov ebx, dword [ebp - 4]
xor ecx, ecx
xor ecx, dword [0x42094b]
sbb dword [0x4208f7], ecx
mov ecx, esi
and ecx, edi
add dword [0x4209bb], 0x73cf
add eax, ecx
mov dword [0x4209e7], 0x39cb
cmp dword [ebx], eax
mov dword [0x4208f3], ebx
mov eax, dword [ebp - 4]
jae 0x407331
add dword [eax], ecx
jmp 0x4073a7
mov dword [0x420927], 0x3460
jmp 0x4073a5
inc dword [eax]
mov eax, dword [ebp - 8]
cmp eax, esi
mov dword [0x420957], 0x3408
jb 0x407236
pop ebx
and dword [0x420907], 0x4209a3
push str.023984023975203b5n234234
sbb dword [0x4208f7], 0x3493
call dword [sym.imp.SHLWAPI.dll_UrlIsOpaqueA]
inc dword [0x4209eb]
push 0x32
call dword [sym.imp.SHLWAPI.dll_IsCharSpaceW]
test eax, eax
jne 0x40740d
sbb dword [0x4209b3], 0x693a
push eax
or dword [0x42090b], 0x42094f
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
or dword [0x42094b], 0x4208f3
call dword [sym.imp.USER32.dll_GetFocus]
or dword [0x4209eb], 0x45c2
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x23
sbb dword [0x4209cb], 0x420913
call dword [sym.imp.SHLWAPI.dll_PathGetCharTypeW]
jmp 0x4074d7
mov dword [0x42094b], 0x32e3
movzx eax, byte [eax]
mov dword [0x4209af], 0x4128
cmp esi, eax
mov dword [0x420963], 0x40b0
mov eax, dword [ebp - 4]
mov dword [0x4208fb], 0x14c2
jbe 0x4074a6
add edx, edx
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov ecx, esi
shr ecx, 8
test ecx, ecx
jne 0x407492
mov ecx, esi
and ecx, edi
sub eax, ecx
cmp dword [edx], eax
mov eax, dword [ebp - 4]
jbe 0x4074d5
sub dword [eax], ecx
jmp 0x4074d7
cmp byte [eax], 0
mov eax, dword [ebp - 4]
je 0x4074d5
mov ecx, dword [ebp - 4]
movzx eax, byte [eax]
mov ecx, dword [ecx]
sub ecx, eax
mov eax, dword [ebp - 4]
cmp dword [eax], ecx
mov eax, dword [ebp - 4]
jbe 0x4074d5
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx]
jmp 0x40749f
dec dword [eax]
mov eax, dword [ebp - 8]
cmp eax, esi
mov eax, dword [ebp - 4]
ja 0x407444
mov dword [eax], esi
mov eax, dword [ebp - 8]
pop edi
leave
ret
Function at 0x4058fa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40591b
jl 0x405912
test edi, edi
jne 0x40591b
xor eax, eax
xor edx, edx
jmp 0x4059dc
cmp dword [ebx + 0x38], 0
je 0x405930
push eax
push edi
push dword [ebp + 8]
call fcn.004059e2
jmp 0x4059dc
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405977
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x405977
cmp eax, edi
jb 0x405951
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00407cc0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40597d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4059d1
mov ecx, ebx
call fcn.00405149
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4059bc
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040bf7a
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4059d1
jmp 0x40598f
test edx, edx
je 0x4059d1
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040bf7a
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x407271
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4072b0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4072b0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4072b0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4072b0
cmp dword [ecx + 0x74], 0xe
jbe 0x4072b0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4111e3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420308
push 0x420300
push str.FlsAlloc
push 0x1f
call fcn.004110ca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411217
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d138]
call esi
jmp 0x41121d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x411261
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420318
push 0x420310
push str.FlsGetValue
push 0x21
call fcn.004110ca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411298
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4112a0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420320
push 0x420318
push str.FlsSetValue
push 0x22
call fcn.004110ca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4112da
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x412c2c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407610
mov eax, dword [0x427040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00411873
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x412c6e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x412dca
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c000
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x12d6058]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00413c29
mov ecx, dword [esi*4 + 0x12d6058]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x412dc3
cmp eax, dword [ecx + edi + 0x24]
jne 0x412dc3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412dc3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00413c29
add esp, 0x14
test edx, edx
jl 0x412dc3
jg 0x412d39
test eax, eax
jb 0x412dc3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x412dc3
jl 0x412d53
cmp dword [ebp - 0x1008], eax
ja 0x412dc3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x412d71
test ebx, ebx
je 0x412daa
cmp ecx, edi
jae 0x412daa
mov al, byte [ecx]
cmp al, 0xd
jne 0x412d8b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x412d97
cmp byte [ecx + 1], 0xa
jne 0x412d97
inc ecx
jmp 0x412d97
movzx eax, al
movsx eax, byte [eax + 0x4272f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x412d71
cmp edx, ebx
jne 0x412d71
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x412dc8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406931
leave
ret