joyce8/EMBER2024-capa huggingface dataset:
Function at 0xead1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00ead140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ead140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ead140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ead140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xeadbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xeadc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xebf87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xeadc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xeadc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x416900
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0041698f
jae 0x41690e
xor ecx, ecx
call fcn.0041698f
jae 0x41693d
xor eax, eax
call fcn.0041698f
jae 0x41694d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0041698f
adc al, al
jae 0x41692f
jne 0x416979
stosb byte es:[edi], al
jmp 0x416911
call fcn.0041699b
sub ecx, ebx
jne 0x416956
call fcn.00416999
jmp 0x416975
lodsb al, byte [esi]
shr eax, 1
je 0x416983
adc ecx, ecx
jmp 0x416972
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00416999
cmp eax, 0x7d00
jae 0x416972
cmp ah, 5
jae 0x416973
cmp eax, 0x7f
ja 0x416974
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x416911
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x426120
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00426130

Function at 0x437de0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00437aa0

Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x6bdd0f89
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..rdata
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x6c46227a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x653270d5
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x1f67223e
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x420960
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x420966
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x13442a2a
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x7a2d1ad7
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1a38058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01a381a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1a3807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1a3806a
add dl, dl
jne 0x1a38089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1a380dc
xor eax, eax
add dl, dl
jne 0x1a38096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1a3817d
add dl, dl
jne 0x1a380a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a380b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a380bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a380c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1a380d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1a38075
mov eax, 1
add dl, dl
jne 0x1a380ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a380f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1a380e1
sub eax, ebx
mov ebx, 1
jne 0x1a38128
mov ecx, 1
add dl, dl
jne 0x1a3810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1a38119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1a38105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1a38075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1a3813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1a3814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1a38136
cmp eax, 0x7d00
jae 0x1a3816d
cmp eax, 0x500
jb 0x1a38168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1a38075
cmp eax, 0x7f
ja 0x1a38170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1a38075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1a3819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1a38075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xf78000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xf7800a
jmp 0xf7a00f
jmp fcn.00b0e058
Function at 0x401480
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 [0x4a25d4]
test eax, eax
je 0x4014b4
cmp dword [eax + 0x1fc], 0
jne 0x401651
push ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
push 0
push 0
push 0
push 0
push esi
mov dword [0x4a2428], 0
call ebx
test eax, eax
je 0x401632
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 0x4015ea
mov ecx, dword [0x4a254c]
xor ebx, ebx
test ecx, ecx
je 0x401533
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
test eax, eax
je 0x401533
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 0x4015e4
cmp dword [ebp - 4], ebx
je 0x401533
mov ecx, dword [0x4a254c]
jmp 0x401510
mov eax, dword [0x4a25d4]
test eax, eax
je 0x4015d6
mov ecx, 0x4000
test word [eax + 0x16], cx
je 0x4015d6
push dword [0x4a25a8]
call dword [sym.imp.MMFS2.dll_Ordinal_19]
test eax, eax
je 0x401571
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 0x401582
cmp eax, 0x104
jne 0x4015d2
mov edi, dword [esi + 8]
cmp edi, 0x10
je 0x4015d2
cmp edi, 0x11
je 0x4015d2
mov ecx, dword [0x4a25d4]
test ecx, ecx
je 0x4015d2
mov ecx, dword [ecx + 0xb4]
test ecx, ecx
je 0x4015d2
cmp eax, 0x104
je 0x4015b9
mov eax, 0x2000
test word [esi + 0xe], ax
jne 0x4015b9
xor edx, edx
jmp 0x4015be
mov edx, 1
push ecx
mov ecx, dword [0x4a25b0]
push edi
call fcn.004598a0
add esp, 8
test eax, eax
jne 0x4015e4
test ebx, ebx
jne 0x4015e4
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 0x401618
test al, 1
je 0x4015fe
cmp dword [esi + 4], 0x111
je 0x401631
test al, 2
je 0x40160b
cmp dword [esi + 4], 0x201
je 0x401631
test al, 4
je 0x401618
cmp dword [esi + 4], 0x202
je 0x401631
push 0
push 0
push 0
push 0
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4014e0
pop edi
push 0
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x4a2430
push 0
push 0xb
push 0
call dword [sym.imp.MMFS2.dll_Ordinal_31]
mov dword [0x4a2428], eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409f60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
push 0x104
mov esi, ecx
call fcn.00466864
mov edi, eax
add esp, 8
test edi, edi
je 0x409fa6
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.0046687a
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 0x40b440
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 0x40b450
sub edx, ecx
sar edx, 1
push 2
lea eax, [edx + 4]
push eax
call fcn.00466864
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
test esi, esi
jne 0x40b47f
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 2
push 0x104
call fcn.00466864
mov edi, eax
add esp, 8
test edi, edi
jne 0x40b4a8
push esi
call fcn.0046687a
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 0x40b4b0
mov ebx, dword [ebp - 4]
push 0x5c
push ebx
call fcn.004642b5
add esp, 8
test eax, eax
je 0x40b4d8
xor ecx, ecx
mov word [eax + 2], cx
cmp word [ebx], 0x5c
jne 0x40b500
cmp word [ebx + 2], 0x5c
jne 0x40b500
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.00464357
add esp, 8
test eax, eax
je 0x40b5a3
lea ebx, [eax + 2]
jmp 0x40b511
cmp word [ebx + 2], 0x3a
jne 0x40b511
cmp word [ebx + 4], 0x5c
jne 0x40b511
add ebx, 6
push 0x5c
push ebx
call fcn.00464357
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40b5a0
mov ecx, dword [ebp - 4]
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
push edi
call fcn.00467dee
push edi
call fcn.00467fbc
add esp, 0x10
test eax, eax
je 0x40b567
push edi
call fcn.00467fc7
add esp, 4
test eax, eax
je 0x40b554
mov esi, 1
jmp 0x40b567
push edi
call fcn.00467fbc
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.00464357
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40b585
mov ecx, dword [ebp - 8]
test esi, esi
je 0x40b525
mov ebx, dword [ebp - 4]
push edi
call fcn.0046687a
push ebx
call fcn.0046687a
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 0x40b5b0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b5c5
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x40b5e8
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x40b5e8
xor eax, eax
mov word [edi + ecx*2 - 2], ax
push edi
call fcn.00467fbc
add esp, 4
test eax, eax
je 0x40b588
push edi
call fcn.00467fc7
add esp, 4
test eax, eax
je 0x40b60c
mov esi, 1
jmp 0x40b588
push edi
call fcn.00467fbc
add esp, 4
mov ecx, 1
test eax, eax
cmovne esi, ecx
jmp 0x40b588
Function at 0x40b730
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 [0x4a0014]
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 0x40b795
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.00462d8d
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x40b77d
cmp eax, 0x40
jne 0x40b77d
mov eax, 0x5a4d
cmp ax, word [esp + 0x30]
jne 0x40b77d
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 0x40b7ec
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 0x40b77d
cmp ecx, edx
jne 0x40b77d
push 0xf8
call fcn.00462d9e
add esp, 4
mov esi, eax
mov edx, esi
mov dword [esp + 0x20], esi
mov ecx, ebx
push 0xf8
call fcn.0040b650
add esp, 4
test eax, eax
je 0x40b85f
push 0xf8
push esi
call fcn.00462dce
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00462d8d
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.0040b6f0
add esp, 8
mov ecx, ebx
call fcn.0040b6b0
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 0x40b90a
cmp dword [esp + 0x10], edx
jne 0x40b90a
xor esi, esi
cmp dword [esp + 0x2c], esi
jbe 0x40b8e2
nop dword [eax + eax]
push 0x28
lea edx, [esp + 0x78]
mov ecx, ebx
call fcn.0040b650
add esp, 4
test eax, eax
jne 0x40b8e2
add edi, dword [esp + 0x84]
inc esi
cmp esi, dword [esp + 0x2c]
jb 0x40b8c0
push 0xf8
push dword [esp + 0x24]
call fcn.00462dce
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00462d8d
mov esp, ebp
pop ebp
ret
push 0xf8
push esi
call fcn.00462dce
mov ecx, dword [esp + 0xa4]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00462d8d
mov esp, ebp
pop ebp
ret
Function at 0x40de00
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 0x40de46
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 0x40de5d
test byte [eax], 1
je 0x40de87
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 0x40de87
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 0x40de99
or ecx, 0x4000
mov dword [esi + 0x10], ecx
test byte [eax], 4
je 0x40dea7
or ecx, 0x100
mov dword [esi + 0x10], ecx
mov eax, dword [ebp + 8]
mov ebx, 1
test byte [eax + 6], 2
je 0x40ded4
or ecx, 0x80
mov word [esi + 0x20], bx
mov dword [esi + 0x10], ecx
cmp word [edi + 0x18], 3
jne 0x40ded9
mov eax, 0x2000
or word [edi + 0x7c], ax
jmp 0x40ded9
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 0x40df38
mov ecx, dword [0x4a25d4]
movsx edx, word [edx]
cmp edx, dword [ecx + 0x194]
jge 0x40df2b
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 0x40df2b
mov ecx, dword [edx + 0x28]
test ecx, ecx
je 0x40df2b
mov edx, dword [edx + 0xc]
call fcn.0044cf70
jmp 0x40df2d
xor eax, eax
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x40df38
mov word [esi + 0x18], ax
cmp dword [edi + 0xcc], 0
jne 0x40df5d
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 0x427af0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4a0014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4a27bc], 0
mov ecx, dword [0x4a25dc]
push edi
mov dword [ebp - 0x48], ecx
mov dword [ecx + 0x2c], 0
lea edi, [ecx + 0x2c]
mov dword [ebp - 0x44], edi
je 0x427c5b
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 0x427c3d
cmp eax, 4
jbe 0x427ba9
cmp eax, 5
jne 0x427c3d
add esi, 0x16
lea edi, [ebx + 8]
add esi, ecx
nop dword [eax]
movzx eax, word [esi]
add ebx, ebx
cmp dword [0x4a27bc], 0
je 0x427b99
cmp dword [0x4a2428], 0
je 0x427b87
movzx eax, al
movzx eax, byte [eax + 0x4a2430]
shl ax, 8
jmp 0x427b8e
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
test ax, ax
jns 0x427b99
or ebx, 1
sub esi, 2
sub edi, 1
jne 0x427b60
mov edi, dword [ebp - 0x44]
jmp 0x427c35
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 0x427c35
mov edx, dword [ebp - 0x30]
shl esi, 5
mov eax, dword [esi + 0x4a2610]
sub edx, eax
mov ecx, dword [esi + 0x4a2614]
sub ecx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x427bef
mov ebx, 4
jmp 0x427bff
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
mov eax, 8
cmovae ebx, eax
mov eax, dword [esi + 0x4a2618]
mov ecx, dword [esi + 0x4a261c]
mov edx, dword [ebp - 0x2c]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x427c20
or ebx, 1
jmp 0x427c2d
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
jb 0x427c2d
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 0x427b30
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00462d8d
mov esp, ebp
pop ebp
ret
Function at 0x42f430
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 0x42f465
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [ebp - 4]
sub eax, 0
je 0x42f4af
sub eax, 2
jne 0x42f45c
mov eax, dword [esi]
sub eax, 0
je 0x42f48b
sub eax, 2
je 0x42f484
xorps xmm0, xmm0
jmp 0x42f494
movsd xmm0, qword [esi + 8]
jmp 0x42f494
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 0x42f4c6
sub eax, 2
je 0x42f4bf
xor eax, eax
jmp 0x42f4c9
cvttsd2si eax, qword [esi + 8]
jmp 0x42f4c9
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