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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x475b4c]
cmp byte [eax + 0xc], 0
je 0x442189
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x442182
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x476b68], 0
jne 0x442070
push 0x442190
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x442198
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476b68], eax
cmp dword [0x474b44], 0
jne 0x44216b
push 0x4421a8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x474b44], eax
cmp dword [0x474b44], 0
je 0x44216b
push 0x4421b4
mov eax, dword [0x474b44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476b6c], eax
push 0x4421c4
mov eax, dword [0x474b44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476b70], eax
push 0x4421d8
mov eax, dword [0x474b44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476b74], eax
push 0x4421f0
mov eax, dword [0x474b44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476b78], eax
push 0x442208
mov eax, dword [0x474b44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476b7c], eax
push 0x44221c
mov eax, dword [0x474b44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476b80], eax
push 0x442234
mov eax, dword [0x474b44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476b84], eax
push 0x44224c
mov eax, dword [0x474b44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476b88], eax
push 0x442268
mov eax, dword [0x474b44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476b8c], eax
push 0x442274
mov eax, dword [0x474b44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442189
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4464cc
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.0040400c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44651b
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.0040427c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44dcd8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44dd28]
test si, 4
je 0x44dcec
or bl, 1
test si, 8
je 0x44dcf6
or bl, 4
test si, 1
je 0x44dd00
or bl, 8
test si, 2
je 0x44dd0a
or bl, 0x10
test si, 0x10
je 0x44dd14
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44dd23
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44dd2c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44dd64]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44dd45
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44dd54
or bl, 4
test esi, 0x20000000
je 0x44dd5f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45440c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45441e
add esp, 0xfffffff0
call fcn.004035e0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cd20
mov eax, dword [0x4757d4]
mov dword [eax + 4], ebx
mov dword [eax], 0x4547b0
mov eax, dword [0x4757e0]
mov dword [eax + 4], ebx
mov dword [eax], 0x4547bc
mov eax, ebx
call fcn.004547c8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415000]
call fcn.0040328c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415000]
call fcn.0040328c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415000]
call fcn.0040328c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415000]
call fcn.0040328c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415000]
call fcn.0040328c
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, 0x450be4
push eax
push 0
push 0
mov eax, dword [0x47593c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e78c]
call fcn.0041ffa0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e78c]
call fcn.0041ffa0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e78c]
call fcn.0041ffa0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00454be8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454ac4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454ac4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x454ac4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45455b
call fcn.00403638
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4548a8
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 0x454a53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454a34
mov dl, 1
mov eax, dword [0x41541c]
call fcn.0040328c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040400c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x454a23
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.0044237c
test al, al
je 0x454a16
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, 0x454a64
lea eax, [ebp - 0x254]
call fcn.00408e34
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x454a16
xor eax, eax
push ebp
push 0x454a0f
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 0x454a9c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4549f8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040427c
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 0x4549f8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040427c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454a16
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454919
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418f10
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 0x454a5a
lea eax, [ebp - 0x260]
call fcn.0040400c
ret

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

Disassembly:
push ecx
mov eax, dword [0x476bb4]
cmp byte [eax + 0xa5], 0
jne 0x4553f9
cmp dword [0x476bcc], 0
jne 0x4553ba
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x455344
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x476bcc], eax
cmp dword [0x476bc8], 0
jne 0x4553d5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x476bc8], eax
cmp dword [0x476bd0], 0
jne 0x4553f9
push esp
push 0
push 0
push 0x4552e8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x476bd0], eax
pop edx
ret
Function at 0x4554f0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x455507
add esp, 0xfffffff0
call fcn.004035e0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cd20
mov eax, dword [0x475928]
cmp word [eax + 2], 0
jne 0x45552f
mov eax, dword [0x475928]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456c58
mov eax, dword [0x4759e0]
cmp word [eax + 2], 0
jne 0x455549
mov eax, dword [0x4759e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456e50
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415000]
call fcn.0040328c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415000]
call fcn.0040328c
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 [0x41f30c]
call fcn.00427020
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4556d0
mov eax, dword [0x47583c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004273f0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457400
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47583c]
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.0040c5c8
test eax, eax
je 0x45563e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408828
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c5f0
test eax, eax
je 0x455652
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.0040427c
mov eax, dword [0x475700]
cmp byte [eax], 0
jne 0x455686
mov eax, ebx
call fcn.004557f8
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.004575dc
mov eax, ebx
call fcn.00457fa0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4556c6
call fcn.00403638
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455a78
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x476bb4]
cmp dword [eax + 0x30], 0
je 0x455b22
cmp dword [ebx + 0x94], 0
jne 0x455b1c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455a08
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455b1c
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 0x455ae2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455b1c
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.00417368
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455af1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456684
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 0x4566b9
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.004040fc
jmp 0x4566c6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404060
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4577b8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4577f9
mov eax, esi
call fcn.0043d9f8
test al, al
je 0x4577f9
mov eax, dword [ebx + 0x84]
call fcn.0043d738
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4577f9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043d738
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4584b8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4145b0]
call fcn.00404978
xor eax, eax
push ebp
push 0x4585fc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x474d78], 0
jne 0x45850b
mov ecx, dword [0x475710]
mov dl, 1
mov eax, dword [0x407178]
call fcn.0040b830
call fcn.00403a48
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402cd0
mov eax, ebx
call fcn.00404848
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45860c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004058fc
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404858
test eax, eax
jle 0x4585a3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45859c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404294
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040427c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00407fd8
test eax, eax
jne 0x45859c
mov ebx, 0x15
jmp 0x4585a8
mov ebx, 0x10
jmp 0x4585a8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x474d78]
call fcn.00458410
mov eax, dword [ebp - 8]
call fcn.00458410
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405914
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458603
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404030
lea eax, [ebp - 0x10]
mov edx, dword [0x4145b0]
call fcn.00404a48
ret

Function at 0x461694
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4616c2
mov eax, ebx
call fcn.00462148
cmp dword [ebx + 0x40], 0
je 0x4616bb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x461733
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x461725
cmp dword [ebx + 8], 0
je 0x4616e4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4616f6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x461725
cmp dword [ebx + 8], 0
je 0x4616d7
cmp eax, 3
je 0x461709
dec eax
jne 0x4616d7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4616d7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4616d7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x461751
cmp dword [ebx + 0x14], 0xcc
je 0x461751
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046175c
pop ebx
ret
Function at 0x40d140
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
sub esp, 0x444
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
mov dword [esp + 0x14], edi
je 0x40d32a
mov esi, dword [esp + 0x45c]
test esi, esi
je 0x40d32a
mov ebp, dword [esp + 0x458]
test ebp, ebp
je 0x40d32a
push 2
push esi
push 0
mov dword [ebp], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40d231
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40d28d
mov ecx, dword [eax]
cmp ecx, 0x28
lea edx, [ecx + eax]
mov dword [esp + 0x18], edx
jb 0x40d1d7
mov cx, word [eax + 0xe]
cmp cx, 8
ja 0x40d1d7
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x40d1d3
mov esi, 1
shl esi, cl
jmp 0x40d1d9
mov esi, eax
jmp 0x40d1d9
xor esi, esi
xor ecx, ecx
test esi, esi
jbe 0x40d229
mov ebx, dword [esp + 0x18]
lea edi, [esp + 0x54]
lea ebp, [esp + 0x55]
lea eax, [edx + 1]
sub edi, edx
sub ebp, edx
lea edx, [esp + 0x56]
sub edx, ebx
jmp 0x40d200
mov bl, byte [eax + 1]
mov byte [esp + ecx*4 + 0x54], bl
mov bl, byte [eax]
mov byte [edi + eax], bl
mov bl, byte [eax - 1]
mov byte [eax + ebp], bl
mov byte [edx + eax], 0
inc ecx
add eax, 4
cmp ecx, esi
jb 0x40d200
mov ebp, dword [esp + 0x458]
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 4]
jmp 0x40d30d
push 0
push 0
push 3
push 0
push 0
push DirectSoundCreate
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x40d28d
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x14]
push eax
push 0xe
lea ecx, [esp + 0x50]
push ecx
push esi
call edi
cmp dword [esp + 0x10], 0xe
jne 0x40d286
push 0
lea edx, [esp + 0x14]
push edx
mov ebx, 0x28
push ebx
lea eax, [esp + 0x28]
push eax
push esi
call edi
cmp dword [esp + 0x10], ebx
je 0x40d29f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x444
ret 8
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x400
lea edx, [esp + 0x60]
push edx
push esi
call edi
cmp dword [esp + 0x10], 0x400
push esi
jne 0x40d287
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1c], ebx
je 0x40d2ce
xor edx, edx
jmp 0x40d2eb
mov ecx, dword [esp + 0x2a]
cmp cx, 8
jbe 0x40d2dc
xor edx, edx
jmp 0x40d2eb
mov edx, dword [esp + 0x3c]
test edx, edx
jne 0x40d2eb
mov edx, 1
shl edx, cl
xor eax, eax
test edx, edx
jbe 0x40d306
mov cl, byte [esp + eax*4 + 0x54]
mov bl, byte [esp + eax*4 + 0x56]
mov byte [esp + eax*4 + 0x54], bl
mov byte [esp + eax*4 + 0x56], cl
inc eax
cmp eax, edx
jb 0x40d2f1
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
push 0
push ebp
lea edx, [esp + 0x5c]
push edx
push 4
push eax
call dword [ecx + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x444
ret 8
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
add esp, 0x444
ret 8
Function at 0x40df00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov eax, dword [esp + 0xc]
push str.WAVE
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40df3a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40df3a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40df41
pop edi
xor eax, eax
pop esi
ret 8
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.0040ddd0
pop edi
pop esi
ret 8

Function at 0x40e028
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x419100]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x40e0a1
push ebx
call fcn.0040dff1
test eax, eax
pop ecx
jne 0x40e073
mov dword [0x41d0fc], 0xf
mov dword [0x41d0f8], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.0040f1d4
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x40e0b3
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40e063
inc eax
cmp eax, 0x104
ja 0x40e063
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40e0ea
cmp eax, dword [ebp + 0x10]
jg 0x40e0ce
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040effa
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x40e0fe
mov dword [0x41d0f8], 0xc
jmp 0x40e063
cmp eax, dword [ebp + 0x10]
jle 0x40e0fe
mov dword [0x41d0f8], 0x22
jmp 0x40e063
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.0040ee90
pop ecx
pop ecx
jmp 0x40e065
Function at 0x40ec79
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x417868
call fcn.0041220c
mov edi, 0x94
mov eax, edi
call fcn.00412260
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x41d104], ecx
mov eax, dword [esi + 4]
mov dword [0x41d110], eax
mov edx, dword [esi + 8]
mov dword [0x41d114], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41d108], esi
cmp ecx, 2
je 0x40ecd9
or esi, 0x8000
mov dword [0x41d108], esi
shl eax, 8
add eax, edx
mov dword [0x41d10c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40ed14
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ed14
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40ed2c
cmp eax, 0x20b
je 0x40ed19
mov dword [ebp - 0x1c], esi
jmp 0x40ed40
cmp dword [ecx + 0x84], 0xe
jbe 0x40ed14
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40ed3a
cmp dword [ecx + 0x74], 0xe
jbe 0x40ed14
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004121b9
pop ecx
test eax, eax
jne 0x40ed6c
cmp dword [0x41d0f4], 1
jne 0x40ed59
call fcn.00411962
push 0x1c
call fcn.004117eb
push 0xff
call fcn.0040f00c
pop ecx
pop ecx
call fcn.00412117
mov dword [ebp - 4], esi
call fcn.00411f6c
test eax, eax
jge 0x40ed85
push 0x1b
call fcn.0040ec54
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41e6d0], eax
call fcn.00411e4a
mov dword [0x41d0ec], eax
call fcn.00411da8
test eax, eax
jge 0x40edab
push 8
call fcn.0040ec54
pop ecx
call fcn.00411b75
test eax, eax
jge 0x40edbc
push 9
call fcn.0040ec54
pop ecx
call fcn.0040f03c
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40edcf
push eax
call fcn.0040ec54
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00411b0c
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40edf0
movzx eax, word [ebp - 0x34]
jmp 0x40edf3
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0040cda0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40ee11
push edi
call fcn.0040f163
call fcn.0040f185
jmp 0x40ee43
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00412247
ret
Function at 0x40f0a1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x41d144], esi
push edi
jne 0x40f0c1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x41d140], esi
mov byte [0x41d13c], al
jne 0x40f127
mov ecx, dword [0x41e6c8]
test ecx, ecx
je 0x40f108
mov eax, dword [0x41e6c4]
sub eax, 4
cmp eax, ecx
jmp 0x40f101
mov eax, dword [eax]
test eax, eax
je 0x40f0f3
call eax
mov eax, dword [0x41e6c4]
sub eax, 4
cmp eax, dword [0x41e6c8]
mov dword [0x41e6c4], eax
jae 0x40f0eb
mov eax, 0x419040
mov esi, 0x419048
cmp eax, esi
mov edi, eax
jae 0x40f127
mov eax, dword [edi]
test eax, eax
je 0x40f120
call eax
add edi, 4
cmp edi, esi
jb 0x40f118
mov eax, 0x41904c
mov esi, 0x419054
cmp eax, esi
mov edi, eax
jae 0x40f146
mov eax, dword [edi]
test eax, eax
je 0x40f13f
call eax
add edi, 4
cmp edi, esi
jb 0x40f137
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40f161
push dword [ebp + 8]
mov dword [0x41d144], 1
call fcn.0040f00c
pop ecx
pop ebp
ret