joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4582cc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x475440]
cmp byte [eax + 0xc], 0
je 0x458439
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x458432
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x476ba0], 0
jne 0x458320
push 0x458440
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x458448
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476ba0], eax
cmp dword [0x474dd4], 0
jne 0x45841b
push 0x458458
call sub.kernel32.dll_LoadLibraryA
mov dword [0x474dd4], eax
cmp dword [0x474dd4], 0
je 0x45841b
push 0x458464
mov eax, dword [0x474dd4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476ba4], eax
push 0x458474
mov eax, dword [0x474dd4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476ba8], eax
push 0x458488
mov eax, dword [0x474dd4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476bac], eax
push 0x4584a0
mov eax, dword [0x474dd4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476bb0], eax
push 0x4584b8
mov eax, dword [0x474dd4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476bb4], eax
push 0x4584cc
mov eax, dword [0x474dd4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476bb8], eax
push 0x4584e4
mov eax, dword [0x474dd4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476bbc], eax
push 0x4584fc
mov eax, dword [0x474dd4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476bc0], eax
push 0x458518
mov eax, dword [0x474dd4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476bc4], eax
push 0x458524
mov eax, dword [0x474dd4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476bc8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458439
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45c3c8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403eb8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45c417
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404128
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x463b70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x463bc0]
test si, 4
je 0x463b84
or bl, 1
test si, 8
je 0x463b8e
or bl, 4
test si, 1
je 0x463b98
or bl, 8
test si, 2
je 0x463ba2
or bl, 0x10
test si, 0x10
je 0x463bac
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x463bbb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x463bc4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x463bfc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x463bdd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x463bec
or bl, 4
test esi, 0x20000000
je 0x463bf7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46a2a4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46a2b6
add esp, 0xfffffff0
call fcn.0040348c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004207f4
mov eax, dword [0x4750dc]
mov dword [eax + 4], ebx
mov dword [eax], 0x46a648
mov eax, dword [0x4750e8]
mov dword [eax + 4], ebx
mov dword [eax], 0x46a654
mov eax, ebx
call fcn.0046a660
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415bcc]
call fcn.004030f8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415bcc]
call fcn.004030f8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415bcc]
call fcn.004030f8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415bcc]
call fcn.004030f8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415bcc]
call fcn.004030f8
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, 0x466a7c
push eax
push 0
push 0
mov eax, dword [0x475238]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x422268]
call fcn.004239dc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x422268]
call fcn.004239dc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x422268]
call fcn.004239dc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046aa80
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46a95c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46a95c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46a95c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46a3f3
call fcn.004034e4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46a740
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 0x46a8eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46a8cc
mov dl, 1
mov eax, dword [0x416230]
call fcn.004030f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403eb8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46a8bb
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.0045862c
test al, al
je 0x46a8ae
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, 0x46a8fc
lea eax, [ebp - 0x254]
call fcn.00408cd0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46a8ae
xor eax, eax
push ebp
push 0x46a8a7
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 0x46a934
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46a890
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404128
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 0x46a890
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404128
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a8ae
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46a7b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a7f4
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 0x46a8f2
lea eax, [ebp - 0x260]
call fcn.00403eb8
ret

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

Disassembly:
push ecx
mov eax, dword [0x476bec]
cmp byte [eax + 0xa5], 0
jne 0x46b291
cmp dword [0x476c04], 0
jne 0x46b252
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46b1dc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x476c04], eax
cmp dword [0x476c00], 0
jne 0x46b26d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x476c00], eax
cmp dword [0x476c08], 0
jne 0x46b291
push esp
push 0
push 0
push 0x46b180
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x476c08], eax
pop edx
ret
Function at 0x46b388
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46b39f
add esp, 0xfffffff0
call fcn.0040348c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004207f4
mov eax, dword [0x475224]
cmp word [eax + 2], 0
jne 0x46b3c7
mov eax, dword [0x475224]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046ca60
mov eax, dword [0x4752e0]
cmp word [eax + 2], 0
jne 0x46b3e1
mov eax, dword [0x4752e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046cc58
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415bcc]
call fcn.004030f8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415bcc]
call fcn.004030f8
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x422d48]
call fcn.0042a1b4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46b568
mov eax, dword [0x475148]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a584
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46d1f8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x475148]
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.0040c3d4
test eax, eax
je 0x46b4d6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004086b0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c3fc
test eax, eax
je 0x46b4ea
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404128
mov eax, dword [0x47502c]
cmp byte [eax], 0
jne 0x46b51e
mov eax, ebx
call fcn.0046b690
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0046d3d4
mov eax, ebx
call fcn.0046dd98
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46b55e
call fcn.004034e4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b910
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x476bec]
cmp dword [eax + 0x30], 0
je 0x46b9ba
cmp dword [ebx + 0x94], 0
jne 0x46b9b4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46b8a0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46b9b4
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 0x46b97a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46b9b4
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.0041841c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46b989
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46c51c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46c551
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.00403fa8
jmp 0x46c55e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f0c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46d5b0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46d5f1
mov eax, esi
call fcn.00453bb0
test al, al
je 0x46d5f1
mov eax, dword [ebx + 0x84]
call fcn.004538ac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46d5f1
push 0
mov eax, dword [ebx + 0x84]
call fcn.004538ac
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46e6b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0xc], eax
call fcn.0046e19c
test al, al
jne 0x46e6e4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0xc], eax
jmp 0x46e7f4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x46e7f4
mov eax, dword [ebp - 0x20]
add eax, 0x3c
jae 0x46e701
call fcn.00403068
mov eax, dword [eax]
add eax, dword [ebp - 0x20]
jae 0x46e70d
call fcn.00403068
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 0x20]
jae 0x46e720
call fcn.00403068
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
sub eax, 1
jae 0x46e733
call fcn.00403068
test eax, eax
jns 0x46e73c
call fcn.00403060
test eax, eax
jl 0x46e7ee
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x20]
add edx, dword [ebp - 0x20]
jae 0x46e762
call fcn.00403068
test edx, edx
je 0x46e76b
cmp eax, dword [edx - 4]
jb 0x46e770
call fcn.00403060
mov eax, dword [edx + eax*4]
add eax, dword [ebp - 0x20]
jae 0x46e77d
call fcn.00403068
mov edx, dword [ebp - 8]
call fcn.00408750
test eax, eax
jne 0x46e7e2
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x24]
add edx, dword [ebp - 0x20]
jae 0x46e79c
call fcn.00403068
test edx, edx
je 0x46e7a5
cmp eax, dword [edx - 4]
jb 0x46e7aa
call fcn.00403060
movsx eax, word [edx + eax*2]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x1c]
add edx, dword [ebp - 0x20]
jae 0x46e7be
call fcn.00403068
test edx, edx
je 0x46e7c7
cmp eax, dword [edx - 4]
jb 0x46e7cc
call fcn.00403060
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
jae 0x46e7df
call fcn.00403068
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x18]
dec dword [ebp - 0x24]
jne 0x46e74f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x47198c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [0x476c20], eax
xor eax, eax
mov dword [0x476c24], eax
xor eax, eax
mov dword [0x476c28], eax
xor eax, eax
mov dword [0x476c2c], eax
xor eax, eax
mov dword [0x476c30], eax
xor eax, eax
mov dword [0x476c34], eax
xor eax, eax
mov dword [0x476c38], eax
xor eax, eax
mov dword [0x476c3c], eax
push 0xa
push 0x471ad4
mov eax, dword [0x476664]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x471acf
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x476664]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x471acf
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x471acf
mov edx, 0x476c18
mov eax, dword [ebp - 0xc]
call fcn.0046e1d0
mov dword [0x476c1c], eax
cmp dword [0x476c1c], 0
je 0x471ac6
mov edx, 0x471af0
mov eax, dword [0x476c1c]
call fcn.0046e6b0
mov dword [0x476c20], eax
mov edx, 0x471b00
mov eax, dword [0x476c1c]
call fcn.0046e6b0
mov dword [0x476c24], eax
mov edx, 0x471b10
mov eax, dword [0x476c1c]
call fcn.0046e6b0
mov dword [0x476c28], eax
mov edx, 0x471b1c
mov eax, dword [0x476c1c]
call fcn.0046e6b0
mov dword [0x476c2c], eax
mov edx, 0x471b28
mov eax, dword [0x476c1c]
call fcn.0046e6b0
mov dword [0x476c30], eax
mov edx, 0x471b40
mov eax, dword [0x476c1c]
call fcn.0046e6b0
mov dword [0x476c38], eax
mov edx, 0x471b54
mov eax, dword [0x476c1c]
call fcn.0046e6b0
mov dword [0x476c3c], eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeResource
mov esp, ebp
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x40aa40
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x40aa7c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x40b311
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
and dword [ecx + 0x18], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x5c], eax
ret

Function at 0x40c870
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40d2e8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x418618]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x40d349
push esi
push dword [0x418614]
push 8
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x418618]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x418610]
jmp 0x40d339
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40d337
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x40d327
push edi
push 0x40d286
call fcn.00412082
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x40dec0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x417178]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x40df06
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x418728]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x40df27
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x418728]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0040e3a0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x40e080
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x417178]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x40e0b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x417178]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x40e1e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x417178]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x40e21e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x40e21e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x40e220
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40e230
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x417178]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4