joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a020
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x4a8f7c]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
push ebp
push esi
push 0
push 0x20
push 3
push 0
push 0
mov ebp, ecx
mov ecx, dword [esp + 0x6c]
push DirectSoundCreate
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a070
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00451800
add esp, 0x44
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x10]
push edx
push 0x10
lea eax, [esp + 0x24]
push eax
push esi
call ebx
cmp dword [esp + 0x1c], 0
jne 0x41a099
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x20], eax
ja 0x41a0b6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00451800
add esp, 0x44
ret 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
lea ecx, [eax*4]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push esi
call ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
push 0
push 0
lea eax, [ecx + edx*4 + 0x10]
push eax
push esi
call edi
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x24
lea edx, [esp + 0x38]
push edx
push esi
call ebx
mov eax, dword [esp + 0x4c]
push eax
call fcn.00451980
mov edi, eax
add esp, 4
test edi, edi
jne 0x41a133
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00451800
add esp, 0x44
ret 0xc
mov edx, dword [esp + 0x4c]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1c], 4
je 0x41a171
push edi
call fcn.00451890
add esp, 4
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00451800
add esp, 0x44
ret 0xc
mov eax, dword [esp + 0x4c]
push 0x80
push eax
push edi
lea ecx, [ebp + 4]
call fcn.0040f360
mov ecx, dword [esp + 0x20]
push eax
call fcn.00419c10
test eax, eax
je 0x41a15a
push edi
call fcn.00451890
mov ecx, dword [esp + 0x54]
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00451800
add esp, 0x44
ret 0xc

Function at 0x41af30
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.0041ae60
push 0
push 0
push 0
mov dword [esi], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4aac48], eax
lea eax, [esi + 0x328]
push eax
lea ecx, [esi + 8]
push 0
push 0x41a9a0
mov dword [eax], ecx
mov dword [esi + 0x32c], 1
mov dword [esi + 0x330], 0
call fcn.004536f0
add esp, 0xc
push 1
mov ecx, esi
mov dword [0x4aac4c], eax
call fcn.0041ae00
neg eax
sbb eax, eax
neg eax
pop esi
ret 4
Function at 0x4209e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xca
jne 0x420a22
mov ecx, dword [ebp + 8]
push ecx
call fcn.00427c50
add esp, 4
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x40]
test eax, eax
je 0x420a18
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0xcf
mov al, 1
jmp 0x420b3e
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0xcb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcb
jne 0x420afc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a0]
movzx eax, byte [edx + 0x10]
test eax, eax
je 0x420aeb
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x420a61
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
call edx
add esp, 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a0]
mov eax, dword [edx]
call eax
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x420a85
xor al, al
jmp 0x420b3e
cmp dword [ebp - 4], 2
jne 0x420a8d
jmp 0x420aeb
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x420ae6
cmp dword [ebp - 4], 3
je 0x420aa2
cmp dword [ebp - 4], 1
jne 0x420ae6
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 4]
add ecx, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [edx + 4]
cmp edx, dword [ecx + 8]
jl 0x420ae6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x120]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov dword [eax + 8], edx
jmp 0x420a47
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x7c]
mov dword [ecx + 0x84], eax
jmp 0x420b32
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0xcc
je 0x420b32
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [eax + 0x14], 0x15
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx]
call edx
add esp, 4
mov eax, dword [ebp + 8]
push eax
call fcn.00420b50
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x420b50
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcc
je 0x420b88
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x190]
mov ecx, dword [eax]
call ecx
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x78], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xcc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x190]
movzx eax, byte [edx + 8]
test eax, eax
je 0x420c55
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x78]
cmp eax, dword [edx + 0x60]
jae 0x420c1d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x420be3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x78]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax]
call ecx
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x78]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x78
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x194]
mov edx, dword [ecx + 4]
call edx
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
cmp ecx, dword [ebp - 4]
jne 0x420c1b
xor al, al
jmp 0x420c6f
jmp 0x420b9d
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x190]
mov edx, dword [ecx + 4]
call edx
add esp, 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x190]
mov eax, dword [edx]
call eax
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x78], 0
jmp 0x420b88
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x41]
neg eax
sbb eax, eax
neg eax
add eax, 0xcd
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x451800
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a8f7c]
jne 0x45180a
repz ret
jmp fcn.00459420
Function at 0x480e50
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x480ef0
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x480ea2
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4aa790]
xor eax, edx
inc esi
cmp esi, edi
jl 0x480e83
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x480ecb
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4aa790]
xor eax, edx
inc esi
cmp esi, edi
jl 0x480eae
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x4014a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 8], edx
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
mov eax, dword [0x4a35cc]
test eax, eax
je 0x4014d4
cmp dword [eax + 0x1fc], 0
jne 0x401671
push ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
push 0
push 0
push 0
push 0
push esi
mov dword [0x4a3428], 0
call ebx
test eax, eax
je 0x401652
push edi
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
nop
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40160a
mov ecx, dword [0x4a3544]
xor ebx, ebx
test ecx, ecx
je 0x401553
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
test eax, eax
je 0x401553
nop dword [eax + eax]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_536]
push esi
push eax
call edi
test eax, eax
jne 0x401604
cmp dword [ebp - 4], ebx
je 0x401553
mov ecx, dword [0x4a3544]
jmp 0x401530
mov eax, dword [0x4a35cc]
test eax, eax
je 0x4015f6
mov ecx, 0x4000
test word [eax + 0x16], cx
je 0x4015f6
push dword [0x4a35a0]
call dword [sym.imp.MMFS2.dll_Ordinal_19]
test eax, eax
je 0x401591
push esi
push eax
call dword [sym.imp.USER32.dll_TranslateMDISysAccel]
test eax, eax
mov eax, 1
cmovne ebx, eax
mov eax, dword [esi + 4]
cmp eax, 0x100
je 0x4015a2
cmp eax, 0x104
jne 0x4015f2
mov edi, dword [esi + 8]
cmp edi, 0x10
je 0x4015f2
cmp edi, 0x11
je 0x4015f2
mov ecx, dword [0x4a35cc]
test ecx, ecx
je 0x4015f2
mov ecx, dword [ecx + 0xb4]
test ecx, ecx
je 0x4015f2
cmp eax, 0x104
je 0x4015d9
mov eax, 0x2000
test word [esi + 0xe], ax
jne 0x4015d9
xor edx, edx
jmp 0x4015de
mov edx, 1
push ecx
mov ecx, dword [0x4a35a8]
push edi
call fcn.00459dc0
add esp, 8
test eax, eax
jne 0x401604
test ebx, ebx
jne 0x401604
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
mov eax, dword [ebp - 8]
test eax, eax
je 0x401638
test al, 1
je 0x40161e
cmp dword [esi + 4], 0x111
je 0x401651
test al, 2
je 0x40162b
cmp dword [esi + 4], 0x201
je 0x401651
test al, 4
je 0x401638
cmp dword [esi + 4], 0x202
je 0x401651
push 0
push 0
push 0
push 0
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x401500
pop edi
push 0
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x4a3430
push 0
push 0xb
push 0
call dword [sym.imp.MMFS2.dll_Ordinal_31]
mov dword [0x4a3428], eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
push 0x104
mov esi, ecx
call fcn.00466e44
mov edi, eax
add esp, 8
test edi, edi
je 0x409fb6
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 8]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
mov esi, eax
call fcn.00466e5a
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40b450
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov edx, ebx
push esi
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40b460
sub edx, ecx
sar edx, 1
push 2
lea eax, [edx + 4]
push eax
call fcn.00466e44
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
test esi, esi
jne 0x40b48f
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 2
push 0x104
call fcn.00466e44
mov edi, eax
add esp, 8
test edi, edi
jne 0x40b4b8
push esi
call fcn.00466e5a
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor esi, esi
sub ecx, ebx
nop
movzx eax, word [ebx]
lea ebx, [ebx + 2]
mov word [ecx + ebx - 2], ax
test ax, ax
jne 0x40b4c0
mov ebx, dword [ebp - 4]
push 0x5c
push ebx
call fcn.00464895
add esp, 8
test eax, eax
je 0x40b4e8
xor ecx, ecx
mov word [eax + 2], cx
cmp word [ebx], 0x5c
jne 0x40b510
cmp word [ebx + 2], 0x5c
jne 0x40b510
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.00464937
add esp, 8
test eax, eax
je 0x40b5b3
lea ebx, [eax + 2]
jmp 0x40b521
cmp word [ebx + 2], 0x3a
jne 0x40b521
cmp word [ebx + 4], 0x5c
jne 0x40b521
add ebx, 6
push 0x5c
push ebx
call fcn.00464937
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40b5b0
mov ecx, dword [ebp - 4]
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
push edi
call fcn.004683ce
push edi
call fcn.0046859c
add esp, 0x10
test eax, eax
je 0x40b577
push edi
call fcn.004685a7
add esp, 4
test eax, eax
je 0x40b564
mov esi, 1
jmp 0x40b577
push edi
call fcn.0046859c
add esp, 4
test eax, eax
mov eax, 1
cmovne esi, eax
lea eax, [ebx + 2]
mov dword [ebp - 8], ebx
push 0x5c
push eax
call fcn.00464937
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40b595
mov ecx, dword [ebp - 8]
test esi, esi
je 0x40b535
mov ebx, dword [ebp - 4]
push edi
call fcn.00466e5a
push ebx
call fcn.00466e5a
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 4]
mov edx, edi
mov ecx, ebx
sub edx, ebx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40b5c0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b5d5
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x40b5f8
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x40b5f8
xor eax, eax
mov word [edi + ecx*2 - 2], ax
push edi
call fcn.0046859c
add esp, 4
test eax, eax
je 0x40b598
push edi
call fcn.004685a7
add esp, 4
test eax, eax
je 0x40b61c
mov esi, 1
jmp 0x40b598
push edi
call fcn.0046859c
add esp, 4
mov ecx, 1
test eax, eax
cmovne esi, ecx
jmp 0x40b598
Function at 0x40b740
Capabilities:
Enumerate pe sections
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x4a1014]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, ecx
push edi
push 0
push 0
push 0
push ebx
call esi
push 0
lea eax, [esp + 0x24]
push eax
push 0x40
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b7a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0046336c
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x40b78d
cmp eax, 0x40
jne 0x40b78d
mov eax, 0x5a4d
cmp ax, word [esp + 0x30]
jne 0x40b78d
push 0
push 0
push dword [esp + 0x74]
push ebx
call esi
push 1
xorps xmm0, xmm0
lea eax, [esp + 0x14]
push eax
movlpd qword [esp + 0x28], xmm0
push dword [esp + 0x2c]
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40b7fc
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cdq
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
cmp esi, eax
jne 0x40b78d
cmp ecx, edx
jne 0x40b78d
push 0xf8
call fcn.0046337d
add esp, 4
mov esi, eax
mov edx, esi
mov dword [esp + 0x20], esi
mov ecx, ebx
push 0xf8
call fcn.0040b660
add esp, 4
test eax, eax
je 0x40b86f
push 0xf8
push esi
call fcn.004633ad
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0046336c
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 6]
mov ecx, ebx
mov edi, dword [esi + 0x54]
mov dword [esp + 0x2c], eax
movzx eax, word [esi + 0x14]
cdq
add eax, dword [esp + 0x18]
adc edx, dword [esp + 0x1c]
add eax, 0x18
adc edx, 0
push edx
push eax
call fcn.0040b700
add esp, 8
mov ecx, ebx
call fcn.0040b6c0
mov ecx, eax
mov dword [esp + 0x10], edx
movzx eax, word [esi + 0x14]
cdq
add eax, dword [esp + 0x18]
adc edx, dword [esp + 0x1c]
add eax, 0x18
adc edx, 0
cmp ecx, eax
jne 0x40b91a
cmp dword [esp + 0x10], edx
jne 0x40b91a
xor esi, esi
cmp dword [esp + 0x2c], esi
jbe 0x40b8f2
nop dword [eax + eax]
push 0x28
lea edx, [esp + 0x78]
mov ecx, ebx
call fcn.0040b660
add esp, 4
test eax, eax
jne 0x40b8f2
add edi, dword [esp + 0x84]
inc esi
cmp esi, dword [esp + 0x2c]
jb 0x40b8d0
push 0xf8
push dword [esp + 0x24]
call fcn.004633ad
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0046336c
mov esp, ebp
pop ebp
ret
push 0xf8
push esi
call fcn.004633ad
mov ecx, dword [esp + 0xa4]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046336c
mov esp, ebp
pop ebp
ret
Function at 0x40de10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0xbc]
mov eax, dword [ecx + 0x14]
add esi, edi
mov edx, dword [edi + 0x1c]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0x18]
mov ecx, 1
mov dword [esi + 0xc], eax
mov eax, 0x100
mov dword [esi + 0x10], 1
test word [edi + 0x94], ax
jne 0x40de56
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 0
lea eax, [edx + 0x3a]
mov ebx, dword [edi + 0x78]
test bl, 4
je 0x40de6d
test byte [eax], 1
je 0x40de97
and ebx, 0xfffffffb
mov dword [edi + 0x78], ebx
mov ebx, eax
mov ecx, dword [esi + 0x10]
or ecx, 0x200
mov dword [esi + 0x10], ecx
test byte [ebx], 2
je 0x40de97
mov eax, dword [edx + 0x46]
or ecx, 0x400
mov dword [esi + 0x14], eax
mov eax, ebx
mov dword [esi + 0x10], ecx
test dword [edi + 0x78], 0x400
je 0x40dea9
or ecx, 0x4000
mov dword [esi + 0x10], ecx
test byte [eax], 4
je 0x40deb7
or ecx, 0x100
mov dword [esi + 0x10], ecx
mov eax, dword [ebp + 8]
mov ebx, 1
test byte [eax + 6], 2
je 0x40dee4
or ecx, 0x80
mov word [esi + 0x20], bx
mov dword [esi + 0x10], ecx
cmp word [edi + 0x18], 3
jne 0x40dee9
mov eax, 0x2000
or word [edi + 0x7c], ax
jmp 0x40dee9
or word [esi + 0x20], 0x20
mov ecx, dword [edx + 0x3c]
mov dword [esi + 0x18], ecx
mov eax, dword [edx + 0x40]
mov dword [esi + 0x1c], eax
cmp cx, 0xd
jne 0x40df48
mov ecx, dword [0x4a35cc]
movsx edx, word [edx]
cmp edx, dword [ecx + 0x194]
jge 0x40df3b
mov eax, dword [ecx + 0x198]
movzx eax, word [eax + edx*2]
mov dword [ecx + 0x1a0], eax
lea edx, [eax + eax*2]
shl edx, 4
add edx, dword [ecx + 0x400]
je 0x40df3b
mov ecx, dword [edx + 0x28]
test ecx, ecx
je 0x40df3b
mov edx, dword [edx + 0xc]
call fcn.0044d4c0
jmp 0x40df3d
xor eax, eax
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x40df48
mov word [esi + 0x18], ax
cmp dword [edi + 0xcc], 0
jne 0x40df6d
or word [esi + 0x20], 2
mov eax, ebx
or dword [esi + 0x10], 8
mov ecx, dword [esi + 0x10]
movzx ecx, cx
pop edi
mov word [esi + 0x22], cx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 0x10]
pop edi
mov word [esi + 0x22], ax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427c80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4a1014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4a37d4], 0
mov ecx, dword [0x4a35d4]
push edi
mov dword [ebp - 0x48], ecx
mov dword [ecx + 0x2c], 0
lea edi, [ecx + 0x2c]
mov dword [ebp - 0x44], edi
je 0x427deb
push ebx
push esi
xor esi, esi
xor edx, edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edx
mov eax, dword [ecx + 0x18]
xor ebx, ebx
mov ecx, dword [eax + 0x254]
movzx eax, word [edx + ecx]
test eax, eax
je 0x427dcd
cmp eax, 4
jbe 0x427d39
cmp eax, 5
jne 0x427dcd
add esi, 0x16
lea edi, [ebx + 8]
add esi, ecx
nop dword [eax]
movzx eax, word [esi]
add ebx, ebx
cmp dword [0x4a37d4], 0
je 0x427d29
cmp dword [0x4a3428], 0
je 0x427d17
movzx eax, al
movzx eax, byte [eax + 0x4a3430]
shl ax, 8
jmp 0x427d1e
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
test ax, ax
jns 0x427d29
or ebx, 1
sub esi, 2
sub edi, 1
jne 0x427cf0
mov edi, dword [ebp - 0x44]
jmp 0x427dc5
lea esi, [eax - 1]
mov dword [ebp - 0x38], 0x34
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0x83
push eax
push esi
call dword [sym.imp.WINMM.dll_joyGetPosEx]
test eax, eax
jne 0x427dc5
mov edx, dword [ebp - 0x30]
shl esi, 5
mov eax, dword [esi + 0x4a3608]
sub edx, eax
mov ecx, dword [esi + 0x4a360c]
sub ecx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x427d7f
mov ebx, 4
jmp 0x427d8f
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
mov eax, 8
cmovae ebx, eax
mov eax, dword [esi + 0x4a3610]
mov ecx, dword [esi + 0x4a3614]
mov edx, dword [ebp - 0x2c]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x427db0
or ebx, 1
jmp 0x427dbd
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
jb 0x427dbd
or ebx, 2
mov eax, dword [ebp - 0x18]
shl eax, 4
or ebx, eax
mov esi, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov byte [edi], bl
mov ecx, dword [ebp - 0x48]
add edx, 2
add esi, 0x10
mov dword [ebp - 0x3c], edx
inc edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], edi
cmp edx, 8
jl 0x427cc0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0046336c
mov esp, ebp
pop ebp
ret
Function at 0x42f610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, edx
push edi
push 0
mov edi, ecx
movzx eax, word [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
call ebx
test eax, eax
jne 0x42f645
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [ebp - 4]
sub eax, 0
je 0x42f68f
sub eax, 2
jne 0x42f63c
mov eax, dword [esi]
sub eax, 0
je 0x42f66b
sub eax, 2
je 0x42f664
xorps xmm0, xmm0
jmp 0x42f674
movsd xmm0, qword [esi + 8]
jmp 0x42f674
movd xmm0, dword [esi + 8]
cvtdq2pd xmm0, xmm0
push 0
lea eax, [ebp - 8]
movsd qword [ebp - 0x18], xmm0
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
sub eax, 0
je 0x42f6a6
sub eax, 2
je 0x42f69f
xor eax, eax
jmp 0x42f6a9
cvttsd2si eax, qword [esi + 8]
jmp 0x42f6a9
mov eax, dword [esi + 8]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4312d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
push 0
push eax
push 2
lea eax, [ebp - 4]
mov edi, ecx
push eax
push edi
mov esi, edx
call ebx
test eax, eax
je 0x43136a
cmp dword [ebp - 8], 2
jb 0x43136a
movsx eax, word [ebp - 4]
mov dword [esi], eax
sub eax, 0
je 0x43133f
sub eax, 1
je 0x43136a
sub eax, 1
jne 0x43136a
push eax
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
call ebx
test eax, eax
je 0x43136a
cmp dword [ebp - 8], 8
jb 0x43136a
movsd xmm0, qword [ebp - 0x18]
mov eax, 1
movsd qword [esi + 8], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
test eax, eax
je 0x43136a
cmp dword [ebp - 8], 4
jb 0x43136a
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret