joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407070
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea edx, [ecx + 2]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407080
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 4]
push eax
call fcn.00468684
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x407140
mov ecx, ebx
sub ecx, esi
mov edi, edi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x4070b0
push 0x5c
push ebx
call fcn.004691a0
add esp, 8
test eax, eax
je 0x4070d4
xor ecx, ecx
mov word [eax + 2], cx
cmp word [ebx], 0x5c
jne 0x4070fd
cmp word [ebx + 2], 0x5c
jne 0x4070fd
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.00469246
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x407120
push 0x5c
lea eax, [ebx + 2]
push eax
jmp 0x407116
cmp word [ebx + 2], 0x3a
jne 0x407113
cmp word [ebx + 4], 0x5c
jne 0x407113
push 0x5c
lea eax, [ebx + 6]
push eax
jmp 0x407116
push 0x5c
push ebx
call fcn.00469246
add esp, 8
mov ebx, eax
push 2
push 0x104
call fcn.00468684
mov esi, eax
add esp, 8
test esi, esi
jne 0x40714a
push dword [ebp - 4]
call fcn.00467ec7
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
test ebx, ebx
je 0x4071b7
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
push esi
call fcn.004692f4
push esi
call fcn.00469337
add esp, 0x10
test eax, eax
je 0x407193
push esi
call fcn.00469454
add esp, 4
test eax, eax
je 0x407180
mov edi, 1
jmp 0x407193
push esi
call fcn.00469337
add esp, 4
test eax, eax
mov eax, 1
cmovne edi, eax
lea eax, [ebx + 2]
push 0x5c
push eax
mov dword [ebp - 8], ebx
call fcn.00469246
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40722b
mov ecx, dword [ebp - 8]
test edi, edi
je 0x407151
jmp 0x40722b
mov edx, esi
sub edx, dword [ebp - 4]
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4071c0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4071d4
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x4071f7
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x4071f7
xor eax, eax
mov word [esi + ecx*2 - 2], ax
push esi
call fcn.00469337
add esp, 4
test eax, eax
je 0x40722b
push esi
call fcn.00469454
add esp, 4
test eax, eax
je 0x407218
mov edi, 1
jmp 0x40722b
push esi
call fcn.00469337
add esp, 4
mov ecx, 1
test eax, eax
cmovne edi, ecx
push esi
call fcn.00467ec7
push dword [ebp - 4]
call fcn.00467ec7
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40727f
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x26
neg eax
sbb eax, eax
add eax, 0x40000002
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
cmp ecx, 0xffffffff
jne 0x407290
mov eax, 0x40000001
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp ecx, dword [ebp + 8]
mov edx, 0x40000002
cmovne eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x4072b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4072e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x70
neg eax
sbb eax, eax
add eax, 0x40000004
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp dword [ebp - 4], esi
mov ecx, 0x40000004
cmovne eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, edx
push 1
push 0x8000
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ecx
xor esi, esi
call fcn.00468684
add esp, 8
mov dword [ebp - 4], eax
test edi, edi
je 0x407403
lea ecx, [ecx]
push 0
mov ebx, 0x8000
cmp edi, ebx
cmovb ebx, edi
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4073fb
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x407405
cmp eax, ebx
jne 0x407405
mov ecx, ebx
shr ecx, 2
mov edx, edi
test ecx, ecx
je 0x4073c1
lea esp, [esp]
mov eax, esi
shr eax, 0x1f
add edx, 4
lea esi, [eax + esi*2]
add esi, dword [edx - 4]
dec ecx
jne 0x4073b0
mov eax, ebx
and eax, 3
mov dword [ebp - 0x14], eax
mov edi, 0
jbe 0x4073e8
mov ebx, eax
movzx ecx, byte [edi + edx]
mov eax, esi
shr eax, 0x1f
add ecx, eax
inc edi
lea esi, [ecx + esi*2]
cmp edi, ebx
jb 0x4073d2
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 8]
sub edi, ebx
mov dword [ebp - 8], edi
jne 0x407370
mov edi, dword [ebp - 4]
jmp 0x407405
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407405
mov edi, eax
push 0x8000
push 0
push edi
call fcn.0046bd00
push edi
call fcn.00467ec7
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push 0
push 0
mov ebx, ecx
push 0x186a0
push ebx
mov dword [ebp - 8], 0
call esi
push 1
push 0
push 0
push ebx
call esi
push 2
push 0
push 0
push ebx
mov edi, eax
call esi
push 0
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
mov esi, eax
call edi
cmp esi, 0x155cc0
jge 0x4074a4
push 1
push 0
push 0
push ebx
call edi
push 2
push 0
push 0
push ebx
mov esi, eax
call edi
push 0
push 0
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4074a9
mov edi, 0x155cc0
lea eax, [edi + 8]
push 1
push eax
call fcn.00468684
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x407535
push 0
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4074d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
test edi, edi
je 0x407522
cmp dword [esi], 0x77777777
jne 0x4074f4
cmp dword [ecx + eax + 4], 0x12478749
je 0x40750d
inc eax
inc esi
cmp eax, edi
jb 0x4074e2
push ecx
call fcn.00467ec7
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esi, ecx
add esi, 0x186a0
mov dword [0x4a8a24], esi
mov dword [ebp - 8], 1
push ecx
call fcn.00467ec7
mov eax, dword [ebp - 8]
add esp, 4
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
Function at 0x407ae0
Capabilities:
Create directory
Get common file path

Disassembly:
push esi
mov esi, dword [0x4a8a1c]
push edi
push 2
push 0x104
call fcn.00468684
mov edi, eax
add esp, 8
test edi, edi
je 0x407b27
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push 0
push 0x486f68
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
call fcn.00467ec7
mov esi, dword [0x4a8a1c]
add esp, 4
cmp word [esi], 0
je 0x407b58
push esi
call fcn.00468a58
add esp, 4
push 0
push dword [0x4a8a1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407b58
mov ecx, dword [0x4a8a1c]
call fcn.00424110
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 0x67
pop esi
ret
Function at 0x407c20
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x4a8d00]
test eax, eax
je 0x407c53
cmp dword [0x4a8cfc], 0
je 0x407c42
push eax
mov ecx, 0x4a9370
call fcn.0045cc30
mov eax, dword [0x4a8d00]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4a8d00], 0
mov eax, dword [0x4a8a28]
test eax, eax
je 0x407c90
push 0x5c
push eax
call fcn.004691a0
add esp, 8
test eax, eax
je 0x407c90
mov edx, dword [0x4a8a28]
mov ecx, eax
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jae 0x407c84
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x407c89
xor ecx, ecx
mov word [eax], cx
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, dword [0x4a8a20]
test edi, edi
je 0x407d7d
cmp word [edi], 0
je 0x407d74
xor esi, esi
push edi
call fcn.00468a58
add esp, 4
test eax, eax
je 0x407cd9
call fcn.004694b9
cmp dword [eax], 2
je 0x407cd9
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jl 0x407cb3
jmp 0x407d45
mov ecx, edi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407ce0
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
call fcn.00468684
mov esi, eax
add esp, 8
test esi, esi
je 0x407d45
mov edx, esi
mov ecx, edi
sub edx, edi
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x407d10
push 0x5c
push esi
call fcn.004691a0
add esp, 8
test eax, eax
je 0x407d3c
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.0046950d
add esp, 4
push esi
call fcn.00467ec7
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407d50
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x407cb1
mov edi, dword [0x4a8a20]
push edi
call fcn.00467ec7
add esp, 4
mov edx, dword [0x4a8a1c]
test edx, edx
je 0x407dea
xor esi, esi
lea esp, [esp]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407d95
sub ecx, edi
sar ecx, 1
cmp ecx, 3
jle 0x407db8
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x407db8
xor eax, eax
mov word [edx + ecx*2 - 2], ax
push edx
call fcn.0046950d
add esp, 4
test eax, eax
je 0x407de4
call fcn.004694b9
cmp dword [eax], 2
je 0x407de4
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jge 0x407de4
mov edx, dword [0x4a8a1c]
jmp 0x407d90
mov edx, dword [0x4a8a1c]
push edx
call fcn.00467ec7
push dword [0x4a8a28]
mov dword [0x4a8a1c], 0
call fcn.00467ec7
add esp, 8
mov dword [0x4a8a28], 0
pop edi
pop esi
pop ebx
ret
Function at 0x407f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x224], 0
je 0x408032
mov eax, dword [edi + 0x20c]
mov ecx, dword [edi + 0x208]
inc eax
cmp eax, ecx
jbe 0x407fba
lea eax, [ecx + 0x400]
push eax
push dword [edi + 0x204]
call fcn.00468c7a
add esp, 8
add dword [edi + 0x208], 0x400
mov dword [edi + 0x204], eax
mov eax, dword [edi + 0x20c]
mov ecx, dword [edi + 0x204]
mov byte [ecx + eax], 0
mov eax, dword [edi + 0x220]
inc dword [edi + 0x20c]
test eax, eax
je 0x408032
push ebx
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408031
push 0
lea eax, [ebp - 4]
push eax
push 2
lea ecx, [edi + 0x21c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0x20c]
push dword [edi + 0x204]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [edi + 0x220]
test eax, eax
je 0x408045
push eax
call fcn.00467ec7
add esp, 4
mov eax, dword [edi + 0x204]
pop edi
test eax, eax
je 0x408059
push eax
call fcn.00467ec7
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4080e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
mov esi, ecx
push 0x80000000
push dword [esi + 0x220]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4081e4
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push ebx
call edi
mov dword [ebp - 4], eax
test eax, eax
jle 0x4081dd
push 0
push 0
push 0
push ebx
call edi
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
push 2
add eax, 0x18c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 4]
add edi, 0xfffffffe
push edi
call fcn.00467e35
add esp, 4
mov dword [esi + 0x204], eax
test eax, eax
je 0x4081dd
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4081c5
mov dword [esi + 0x208], edi
xor eax, eax
mov dword [esi + 0x20c], 0
lea edi, [esi + 4]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [esi + 0x210], eax
push ebx
mov dword [esi + 0x214], eax
mov dword [esi + 0x218], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x224], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x204]
call fcn.00467ec7
add esp, 4
mov dword [esi + 0x204], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4113b0
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push 0x3c
lea eax, [ebp - 0x58]
push 0
push eax
mov esi, edx
call fcn.0046bd00
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], esi
push eax
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x440
mov dword [ebp - 0x4c], str.open
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 5
mov esi, 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4114c7
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 1
je 0x4114b3
call fcn.00429fe0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
and ebx, 2
je 0x411449
mov eax, dword [0x4a8b74]
push 0
push dword [eax + 0x10]
call esi
mov eax, dword [0x4a8b74]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x411449
push 0
push eax
call esi
push edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x411488
cmp dword [ebp + 8], 0x103
jne 0x411488
xor edx, edx
lea ecx, [ebp - 0x1c]
call fcn.00402ad0
push 0x4ff
push 0xc8
push 0
push 0
push 0
call edi
jmp 0x411450
pop edi
test bx, bx
je 0x4114ae
mov eax, dword [0x4a8b74]
push 5
push dword [eax + 0x10]
call esi
mov eax, dword [0x4a8b74]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x4114ae
push 5
push eax
call esi
call fcn.0042a0d0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
pop ebx
movsx eax, cx
pop esi
mov esp, ebp
pop ebp
ret
movsx eax, si
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4245e0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 2
push 0x104
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00468684
mov esi, eax
add esp, 8
test esi, esi
je 0x424709
push edi
push 2
push 0x104
call fcn.00468684
mov edi, eax
add esp, 8
test edi, edi
je 0x42463d
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push ebx
push 0x4a5d30
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
call fcn.00467ec7
add esp, 4
cmp word [esi], bx
je 0x4246fa
push esi
call fcn.00468a58
mov ecx, esi
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424654
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x424683
lea edi, [esi - 2]
mov edi, edi
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x424670
mov eax, dword [0x486fcc]
mov dword [edi], eax
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x424690
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424690
sub ecx, edx
sar ecx, 1
lea edi, [ecx*2 + 4]
push edi
call fcn.00467e35
mov edx, eax
add esp, 4
test edx, edx
jne 0x4246c5
call fcn.0046a611
push edi
call fcn.00467e35
add esp, 4
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, esi
mov dword [eax], edx
sub edx, esi
mov edi, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4246d0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call fcn.00467ec7
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov ebx, 0xe
call fcn.00467ec7
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x424830
Capabilities:
Get common file path
Set current directory

Disassembly:
push esi
push 2
push 0x104
call fcn.00468684
mov esi, eax
add esp, 8
test esi, esi
je 0x42486e
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x486fd0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.0046950d
push esi
call fcn.00467ec7
add esp, 8
pop esi
ret
push 0x486fd0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop esi
ret
Function at 0x424880
Capabilities:
Enumerate files on windows

Disassembly:
push esi
push edi
push 1
push 0x250
mov esi, ecx
call fcn.00468684
mov edi, eax
add esp, 8
test edi, edi
je 0x424959
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42494f
test byte [edi], 0x10
jne 0x424938
lea esi, [edi + 0x2c]
mov ecx, 0x486fd8
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4248ea
test dx, dx
je 0x4248e6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4248ea
add eax, 4
add ecx, 4
test dx, dx
jne 0x4248c4
xor eax, eax
jmp 0x4248ef
sbb eax, eax
or eax, 1
test eax, eax
je 0x424938
mov eax, 0x486fd0
mov ecx, esi
lea ebx, [ebx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x424926
test dx, dx
je 0x424922
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x424926
add ecx, 4
add eax, 4
test dx, dx
jne 0x424900
xor eax, eax
jmp 0x42492b
sbb eax, eax
or eax, 1
test eax, eax
je 0x424938
push esi
call fcn.00468a58
add esp, 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4248b1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.00467ec7
add esp, 4
pop ebx
pop edi
pop esi
ret
Function at 0x42aa60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4a8b74]
push ebx
mov eax, dword [eax + 0x1278]
push esi
mov esi, dword [eax + ecx*8]
push edi
lea edi, [eax + ecx*8]
mov ebx, edx
mov dword [ebp - 4], edi
test esi, esi
je 0x42ac68
cmp ebx, 1
jne 0x42aaaf
cmp word [esi + 0x1a], 0
jne 0x42aaaf
push esi
call fcn.00467ec7
add esp, 4
mov dword [edi], 0
mov eax, dword [0x4a8b74]
pop edi
dec dword [eax + 0x3c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0042cf80
mov ecx, esi
call fcn.0042c220
mov ecx, esi
call fcn.00402550
mov eax, dword [esi + 0x78]
test al, 0x40
je 0x42aada
test al, al
jns 0x42aada
mov eax, dword [0x4a8b74]
dec dword [eax + 0x518]
cmp dword [0x4a5df0], 0xffff
mov edi, 0x4a5df0
je 0x42ab0c
jmp 0x42aaf0
mov eax, dword [edi]
test dword [esi + 0x78], eax
je 0x42ab01
mov eax, dword [edi + 4]
push ebx
push esi
call eax
add esp, 8
add edi, 8
cmp dword [edi], 0xffff
jne 0x42aaf0
movzx eax, word [esi + 0x18]
cmp ax, 0x20
jge 0x42ab2b
cwde
mov eax, dword [eax*4 + 0x4a5e28]
test eax, eax
je 0x42ab4e
push ebx
push esi
call eax
add esp, 8
jmp 0x42ab4e
movsx ecx, ax
mov eax, dword [0x4a8b74]
imul ecx, ecx, 0x92
mov eax, dword [eax + 0x1d4]
mov eax, dword [ecx + eax - 0x123c]
test eax, eax
je 0x42ab4e
push ebx
push esi
call eax
test dword [esi + 0x78], 0x200
je 0x42ab7b
mov edi, dword [esi + 0xbc]
cmp word [edi + esi + 0x18], 0xd
jne 0x42ab7b
mov ecx, dword [edi + esi + 0x1c]
test ecx, ecx
je 0x42ab73
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + esi + 0x1c], 0
mov ecx, esi
call fcn.0042b920
mov eax, dword [0x4a8b74]
test byte [eax + 0x28], 0x20
je 0x42abaf
movsx edx, word [esi + 0x12]
mov ecx, dword [0x4a8b6c]
cmp edx, dword [ecx + 0x194]
jge 0x42abaf
mov eax, dword [ecx + 0x198]
movzx eax, word [eax + edx*2]
mov dword [ecx + 0x1a0], eax
mov eax, dword [esi + 0x78]
xor edi, edi
test eax, 0x200
jne 0x42abc2
mov edi, 1
jmp 0x42ac1c
test ebx, ebx
je 0x42abd4
mov ecx, esi
call fcn.00401560
mov edi, 1
jmp 0x42ac1c
test eax, 0x1000
jne 0x42abf9
mov eax, dword [esi + 0xbc]
test dword [eax + esi + 0x10], 0x2000
je 0x42abf2
test byte [eax + esi + 0x20], 4
je 0x42ac1c
mov edi, 1
jmp 0x42ac1c
movzx eax, word [esi + 0x96]
cmp ax, 0xfffe
je 0x42ac0c
cmp ax, 0xffff
jne 0x42ac1c
or eax, 0xffffffff
push esi
mov word [esi + 0x96], ax
call fcn.00401010
xor eax, eax
mov word [esi + 0x1a], ax
test edi, edi
je 0x42ac5e
test dword [esi + 0x78], 0x1000
je 0x42ac36
mov ecx, esi
call fcn.004015c0
push esi
call fcn.00467ec7
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [ecx], 0
mov eax, dword [0x4a8b74]
pop edi
dec dword [eax + 0x3c]
pop esi
mov dword [ecx + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42afa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x4a8b74]
push ebx
mov al, byte [ecx + 0x1a7]
test al, al
jne 0x42b01c
mov ecx, 1
call fcn.00428990
mov eax, dword [0x4a8b74]
push dword [eax]
call dword [sym.imp.MMFS2.dll_Ordinal_59]
call fcn.004010a0
call fcn.0042b780
call fcn.004011c0
mov eax, dword [0x4a8b74]
push dword [eax]
call dword [sym.imp.MMFS2.dll_Ordinal_61]
call fcn.00401210
mov eax, dword [0x4a8b74]
push dword [eax]
call dword [sym.imp.MMFS2.dll_Ordinal_60]
call fcn.00428a90
mov eax, dword [0x4a8b74]
cmp byte [eax + 0x4c8], 0
je 0x42b013
push dword [eax]
call dword [sym.imp.MMFS2.dll_Ordinal_62]
pop ebx
ret
mov byte [eax + 0x4c8], 1
pop ebx
ret
mov byte [ecx + 0x1a7], 0
test al, 4
je 0x42b074
mov edx, dword [0x4a8b70]
mov ecx, dword [0x4a8b74]
movsx ebx, al
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x190]
jne 0x42b04c
mov eax, dword [edx + 0x20]
cmp eax, dword [ecx + 0x194]
je 0x42b057
call fcn.00437b10
mov edx, dword [0x4a8b70]
mov ecx, 6
test bl, 8
jne 0x42b06d
test byte [edx + 0xc], 0x20
mov eax, 0x16
cmovne ecx, eax
call fcn.00436690
jmp 0x42b0ab
test al, 1
je 0x42b0d1
mov ecx, dword [0x4a8b70]
mov edx, dword [0x4a8b74]
mov eax, dword [ecx + 0x1c]
cmp eax, dword [edx + 0x190]
jne 0x42b0a6
mov eax, dword [ecx + 0x20]
cmp eax, dword [edx + 0x194]
jne 0x42b0a6
mov ecx, 6
call fcn.00436690
jmp 0x42b0ab
call fcn.00437bf0
mov ecx, dword [0x4a8b74]
mov eax, dword [ecx + 0xb0]
mov dword [ecx + 0x190], eax
mov ecx, dword [0x4a8b74]
mov eax, dword [ecx + 0xb4]
mov dword [ecx + 0x194], eax
pop ebx
ret
mov ecx, 0x86
pop ebx
jmp fcn.00436690
Function at 0x42be80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4a2ff8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, dword [0x4a8b74]
add edi, 0x2c
mov dword [ebp - 0x44], edi
mov dword [edi], 0
mov ecx, dword [0x4a8b74]
cmp eax, dword [ecx + 0xc]
je 0x42bebd
cmp eax, dword [ecx + 0x10]
jne 0x42bfd1
push ebx
push esi
xor esi, esi
xor edx, edx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], edx
lea esp, [esp]
mov eax, dword [0x4a8b6c]
xor ebx, ebx
mov ecx, dword [eax + 0x254]
movzx eax, word [esi + ecx]
test eax, eax
jle 0x42bfb6
cmp eax, 4
jle 0x42bf22
cmp eax, 5
jne 0x42bfb6
lea esi, [ecx + 0x16]
add esi, edx
lea edi, [ebx + 8]
nop
movzx eax, word [esi]
push eax
add ebx, ebx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x42bf14
or ebx, 1
sub esi, 2
dec edi
jne 0x42bf00
mov edi, dword [ebp - 0x44]
jmp 0x42bfae
lea esi, [eax - 1]
lea eax, [ebp - 0x38]
push eax
push esi
mov dword [ebp - 0x38], 0x34
mov dword [ebp - 0x34], 0x83
call dword [sym.imp.WINMM.dll_joyGetPosEx]
test eax, eax
jne 0x42bfae
mov edx, dword [ebp - 0x30]
shl esi, 5
mov eax, dword [esi + 0x4a8ba8]
mov ecx, dword [esi + 0x4a8bac]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x42bf68
mov ebx, 4
jmp 0x42bf78
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
mov eax, 8
cmovae ebx, eax
mov eax, dword [esi + 0x4a8bb0]
mov ecx, dword [esi + 0x4a8bb4]
mov edx, dword [ebp - 0x2c]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x42bf99
or ebx, 1
jmp 0x42bfa6
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
jb 0x42bfa6
or ebx, 2
mov eax, dword [ebp - 0x18]
shl eax, 4
or ebx, eax
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov byte [edi], bl
add edx, 0x10
add esi, 2
inc edi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], edi
cmp edx, 0x40
jl 0x42bed0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00467e26
mov esp, ebp
pop ebp
ret