joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407900
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x4a7d2c]
test eax, eax
je 0x407933
cmp dword [0x4a7d30], 0
je 0x407922
push eax
mov ecx, 0x4a7d40
call fcn.0045c620
mov eax, dword [0x4a7d2c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4a7d2c], 0
mov eax, dword [0x4a7a10]
test eax, eax
je 0x407973
push 0x5c
push eax
call fcn.00469477
add esp, 8
test eax, eax
je 0x407973
mov ecx, eax
sub ecx, dword [0x4a7a10]
sar ecx, 1
cmp ecx, 3
jae 0x407962
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x407967
xor ecx, ecx
mov word [eax], cx
push dword [0x4a7a10]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, dword [0x4a7a18]
test edi, edi
je 0x407a5d
cmp word [edi], 0
je 0x407a54
xor esi, esi
push edi
call fcn.004689cd
add esp, 4
test eax, eax
je 0x4079bc
call fcn.004696bd
cmp dword [eax], 2
je 0x4079bc
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jl 0x407996
jmp 0x407a25
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4079c1
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
call fcn.004688e4
mov esi, eax
add esp, 8
test esi, esi
je 0x407a25
mov edx, esi
mov ecx, edi
sub edx, edi
lea ebx, [ebx]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4079f0
push 0x5c
push esi
call fcn.00469477
add esp, 8
test eax, eax
je 0x407a1c
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.0046985f
add esp, 4
push esi
call fcn.00467c86
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407a30
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x407994
mov edi, dword [0x4a7a18]
push edi
call fcn.00467c86
add esp, 4
mov eax, dword [0x4a7a1c]
test eax, eax
je 0x407aa3
xor esi, esi
push eax
call fcn.0041f5d0
push dword [0x4a7a1c]
call fcn.0046985f
add esp, 8
test eax, eax
je 0x407a9e
call fcn.004696bd
cmp dword [eax], 2
je 0x407a9e
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jge 0x407a9e
mov eax, dword [0x4a7a1c]
jmp 0x407a68
mov eax, dword [0x4a7a1c]
push eax
call fcn.00467c86
push dword [0x4a7a10]
mov dword [0x4a7a1c], 0
call fcn.00467c86
add esp, 8
mov dword [0x4a7a10], 0
pop edi
pop esi
pop ebx
ret

Function at 0x407b30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407b63
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 0x407b74
mov eax, 0x40000001
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp ecx, dword [ebp + 0x10]
mov edx, 0x40000002
cmovne eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x407b90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407bc6
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 0x407be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 1
push 0x8000
call fcn.004688e4
mov edi, dword [ebp + 0xc]
add esp, 8
mov ebx, eax
test edi, edi
je 0x407c48
push esi
mov edi, edi
push 0
mov esi, 0x8000
lea eax, [ebp + 0xc]
push eax
cmp edi, esi
cmovb esi, edi
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407c41
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x407c47
cmp eax, esi
jne 0x407c47
push dword [ebp + 0x10]
push esi
push ebx
call fcn.00405c20
add esp, 0xc
mov dword [ebp + 0x10], eax
sub edi, esi
jne 0x407c00
jmp 0x407c47
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
push 0x8000
push 0
push ebx
call fcn.00468a10
push ebx
call fcn.00467c86
mov eax, dword [ebp + 0x10]
add esp, 0x10
pop edi
pop ebx
pop ebp
ret

Function at 0x407cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x224], 0
je 0x407db2
mov eax, dword [edi + 0x20c]
mov ecx, dword [edi + 0x208]
inc eax
cmp eax, ecx
jbe 0x407d3a
lea eax, [ecx + 0x400]
push eax
push dword [edi + 0x204]
call fcn.00468922
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 0x407db2
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 0x407db1
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 0x407dc5
push eax
call fcn.00467c86
add esp, 4
mov eax, dword [edi + 0x204]
pop edi
test eax, eax
je 0x407dd9
push eax
call fcn.00467c86
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4082f0
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 0x4083f4
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 0x4083ed
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.00467cbe
add esp, 4
mov dword [esi + 0x204], eax
test eax, eax
je 0x4083ed
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 0x4083d5
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.00467c86
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 0x419390
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
call fcn.00468a10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
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 0x4194ac
push ebx
mov ebx, dword [ebp + 0x14]
test bl, 1
je 0x419498
call fcn.00425bc0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
and ebx, 2
je 0x41942a
mov eax, dword [0x4a7b74]
push 0
push dword [eax + 0x10]
call esi
mov eax, dword [0x4a7b74]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x41942a
push 0
push eax
call esi
push edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x41946d
cmp dword [ebp + 0xc], 0x103
jne 0x41946d
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00405140
add esp, 8
push 0x4ff
push 0xc8
push 0
push 0
push 0
call edi
jmp 0x419431
pop edi
test bx, bx
je 0x419493
mov eax, dword [0x4a7b74]
push 5
push dword [eax + 0x10]
call esi
mov eax, dword [0x4a7b74]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x419493
push 5
push eax
call esi
call fcn.00424550
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 0x41ee60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 2
push 0x104
xor edi, edi
call fcn.004688e4
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41ef47
push ebx
push edi
push 0x4a3854
call fcn.0043c000
add esp, 0xc
cmp word [ebx], di
je 0x41ef39
push ebx
call fcn.004689cd
mov ecx, ebx
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41eea6
sub ecx, edx
sar ecx, 1
cmp word [ebx + ecx*2 - 2], 0x5c
je 0x41eed5
lea edi, [ebx - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x41eec0
mov eax, dword [0x481660]
mov dword [edi], eax
xor edi, edi
mov ecx, ebx
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41eee0
sub ecx, edx
push esi
mov esi, dword [ebp + 8]
sar ecx, 1
push esi
lea eax, [ecx*2 + 4]
push eax
call fcn.00427a10
mov edx, dword [esi]
add esp, 8
mov ecx, ebx
pop esi
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
lea ecx, [ecx + 2]
lea edx, [edx + 2]
test ax, ax
jne 0x41ef10
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
call fcn.00467c86
add esp, 4
mov eax, edi
pop edi
pop ebx
pop ebp
ret
push ebx
mov edi, 0xe
call fcn.00467c86
add esp, 4
mov eax, edi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push esi
push 2
push 0x104
call fcn.004688e4
mov esi, eax
add esp, 8
test esi, esi
je 0x41f5be
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x481664
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.0046985f
push esi
call fcn.00467c86
add esp, 8
pop esi
ret
push 0x481664
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop esi
ret

Function at 0x41f610
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 1
push 0x250
call fcn.004688e4
mov esi, eax
add esp, 8
test esi, esi
je 0x41f6ea
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41f6e0
push edi
test byte [esi], 0x10
jne 0x41f6c8
lea edi, [esi + 0x2c]
mov ecx, 0x48166c
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f679
test dx, dx
je 0x41f675
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f679
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f653
xor eax, eax
jmp 0x41f67e
sbb eax, eax
or eax, 1
test eax, eax
je 0x41f6c8
mov eax, 0x481664
mov ecx, edi
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x41f6b6
test dx, dx
je 0x41f6b2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x41f6b6
add ecx, 4
add eax, 4
test dx, dx
jne 0x41f690
xor eax, eax
jmp 0x41f6bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x41f6c8
push edi
call fcn.004689cd
add esp, 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41f644
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
push esi
call fcn.00467c86
add esp, 4
pop ebx
pop esi
pop ebp
ret
Function at 0x424280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4a7b74]
sub esp, 0xc
cmp word [eax + 0xfe], 0
je 0x4244f2
xor ecx, ecx
mov word [eax + 0xfe], cx
mov edx, dword [0x4a7b74]
push ebx
mov eax, dword [edx + 0x1168]
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
push edi
jmp 0x4242c0
mov edi, dword [eax]
test edi, edi
je 0x4244da
mov dword [eax], 0
mov edx, dword [0x4a7b74]
mov eax, edi
shr edi, 1
mov dword [ebp - 0xc], edi
test al, 1
je 0x4244c4
mov eax, dword [edx + 0x1278]
lea esi, [ecx*8]
mov ecx, dword [esi + eax]
test ecx, ecx
je 0x42431b
mov eax, dword [ecx + 0x1c]
cmp dword [eax + 0x10], 1
jne 0x42431b
movsx eax, word [ecx + 0x18]
or eax, 0xffdf0000
push eax
push ecx
call fcn.00453cc0
mov edx, dword [0x4a7b74]
add esp, 8
mov ebx, dword [edx + 0x1278]
add ebx, esi
mov esi, dword [ebx]
test esi, esi
je 0x4244c1
push esi
call fcn.00429fd0
push esi
call fcn.0042cef0
push esi
call fcn.00402280
mov eax, dword [esi + 0x78]
add esp, 0xc
test al, 0x40
je 0x424358
test al, al
jns 0x424358
mov eax, dword [0x4a7b74]
dec dword [eax + 0x518]
cmp dword [0x4a3a08], 0xffff
mov edi, 0x4a3a08
je 0x42438d
lea esp, [esp]
mov eax, dword [edi]
test dword [esi + 0x78], eax
je 0x424382
mov eax, dword [edi + 4]
push 0
push esi
call eax
add esp, 8
add edi, 8
cmp dword [edi], 0xffff
jne 0x424370
movzx eax, word [esi + 0x18]
cmp ax, 0x20
jge 0x4243ad
cwde
mov eax, dword [eax*4 + 0x4a3940]
test eax, eax
je 0x4243d1
push 0
push esi
call eax
add esp, 8
jmp 0x4243d1
movsx ecx, ax
mov eax, dword [0x4a7b74]
imul ecx, ecx, 0x92
mov eax, dword [eax + 0x1d4]
mov eax, dword [ecx + eax - 0x123c]
test eax, eax
je 0x4243d1
push 0
push esi
call eax
test dword [esi + 0x78], 0x200
je 0x4243fc
mov edi, dword [esi + 0xbc]
cmp word [edi + esi + 0x18], 0xd
jne 0x4243fc
push dword [edi + esi + 0x1c]
call fcn.00433f50
add esp, 4
mov dword [edi + esi + 0x1c], 0
push esi
call fcn.004264f0
mov eax, dword [0x4a7b74]
add esp, 4
test byte [eax + 0x28], 0x20
je 0x424423
movsx eax, word [esi + 0x12]
push eax
call fcn.00436030
push eax
call fcn.00428ff0
add esp, 8
mov eax, dword [esi + 0x78]
xor edi, edi
test eax, 0x200
jne 0x424436
mov edi, 1
jmp 0x42447e
test eax, 0x1000
jne 0x42445b
mov eax, dword [esi + 0xbc]
test dword [eax + esi + 0x10], 0x2000
je 0x424454
test byte [eax + esi + 0x20], 4
je 0x42447e
mov edi, 1
jmp 0x42447e
movzx eax, word [esi + 0x96]
cmp ax, 0xfffe
je 0x42446e
cmp ax, 0xffff
jne 0x42447e
or eax, 0xffffffff
push esi
mov word [esi + 0x96], ax
call fcn.004015e0
xor eax, eax
mov word [esi + 0x1a], ax
test edi, edi
je 0x4244b1
test dword [esi + 0x78], 0x1000
je 0x42449a
push esi
call fcn.004012e0
add esp, 4
push esi
call fcn.00467c86
mov dword [ebx], 0
mov eax, dword [0x4a7b74]
add esp, 4
dec dword [eax + 0x3c]
mov edi, dword [ebp - 0xc]
mov dword [ebx + 4], 0
mov edx, dword [0x4a7b74]
mov ecx, dword [ebp - 4]
test edi, edi
je 0x4244d1
inc ecx
mov dword [ebp - 4], ecx
jmp 0x4242d6
mov eax, dword [ebp - 8]
and ecx, 0xffe0
add ecx, 0x20
add eax, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp ecx, dword [edx + 0x40]
jl 0x4242c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4a7b74]
push ebx
mov ecx, dword [eax + 0x1278]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx + eax*8]
lea ebx, [ecx + eax*8]
mov dword [ebp + 8], ebx
test esi, esi
je 0x425b2a
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 1
jne 0x4259a0
cmp word [esi + 0x1a], 0
jne 0x4259a0
push esi
call fcn.00467c86
add esp, 4
mov dword [ebx], 0
mov eax, dword [0x4a7b74]
pop edi
dec dword [eax + 0x3c]
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.00429fd0
push esi
call fcn.0042cef0
push esi
call fcn.00402280
mov eax, dword [esi + 0x78]
add esp, 0xc
test al, 0x40
je 0x4259cb
test al, al
jns 0x4259cb
mov eax, dword [0x4a7b74]
dec dword [eax + 0x518]
push edi
push 0x4a3a08
push esi
call fcn.00426960
movzx eax, word [esi + 0x18]
add esp, 0xc
cmp ax, 0x20
jge 0x4259f9
cwde
mov eax, dword [eax*4 + 0x4a3940]
test eax, eax
je 0x425a1c
push edi
push esi
call eax
add esp, 8
jmp 0x425a1c
movsx ecx, ax
mov eax, dword [0x4a7b74]
imul ecx, ecx, 0x92
mov eax, dword [eax + 0x1d4]
mov eax, dword [ecx + eax - 0x123c]
test eax, eax
je 0x425a1c
push edi
push esi
call eax
test dword [esi + 0x78], 0x200
je 0x425a47
mov ebx, dword [esi + 0xbc]
cmp word [ebx + esi + 0x18], 0xd
jne 0x425a47
push dword [ebx + esi + 0x1c]
call fcn.00433f50
add esp, 4
mov dword [ebx + esi + 0x1c], 0
push esi
call fcn.004264f0
mov eax, dword [0x4a7b74]
add esp, 4
test byte [eax + 0x28], 0x20
je 0x425a6e
movsx eax, word [esi + 0x12]
push eax
call fcn.00436030
push eax
call fcn.00428ff0
add esp, 8
mov eax, dword [esi + 0x78]
xor ebx, ebx
test eax, 0x200
jne 0x425a81
mov ebx, 1
jmp 0x425add
test edi, edi
je 0x425a95
push esi
call fcn.00401df0
add esp, 4
mov ebx, 1
jmp 0x425add
test eax, 0x1000
jne 0x425aba
mov eax, dword [esi + 0xbc]
test dword [eax + esi + 0x10], 0x2000
je 0x425ab3
test byte [eax + esi + 0x20], 4
je 0x425add
mov ebx, 1
jmp 0x425add
movzx eax, word [esi + 0x96]
cmp ax, 0xfffe
je 0x425acd
cmp ax, 0xffff
jne 0x425add
or eax, 0xffffffff
push esi
mov word [esi + 0x96], ax
call fcn.004015e0
xor eax, eax
mov word [esi + 0x1a], ax
test ebx, ebx
je 0x425b1f
test dword [esi + 0x78], 0x1000
je 0x425af9
push esi
call fcn.004012e0
add esp, 4
push esi
call fcn.00467c86
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx], 0
mov eax, dword [0x4a7b74]
pop edi
dec dword [eax + 0x3c]
pop esi
mov dword [ecx + 4], 0
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx + 4], 0
pop esi
pop ebx
pop ebp
ret

Function at 0x427220
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [0x4a7b74]
cmp eax, dword [ecx + 0x14]
je 0x427242
cmp eax, dword [ecx + 0xc]
je 0x427242
cmp eax, dword [ecx + 0x10]
je 0x427242
xor eax, eax
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetKeyState]
pop ebp
ret
Function at 0x427390
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4a6110]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, dword [0x4a7b74]
add edi, 0x2c
mov dword [ebp - 0x44], edi
mov dword [edi], 0
mov ecx, dword [0x4a7b74]
cmp eax, dword [ecx + 0xc]
je 0x4273cd
cmp eax, dword [ecx + 0x10]
jne 0x4274e1
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 [0x4a7b6c]
xor ebx, ebx
mov ecx, dword [eax + 0x254]
movzx eax, word [esi + ecx]
test eax, eax
jle 0x4274c6
cmp eax, 4
jle 0x427432
cmp eax, 5
jne 0x4274c6
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 0x427424
or ebx, 1
sub esi, 2
dec edi
jne 0x427410
mov edi, dword [ebp - 0x44]
jmp 0x4274be
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 0x4274be
mov edx, dword [ebp - 0x30]
shl esi, 5
mov eax, dword [esi + 0x4a7ba8]
mov ecx, dword [esi + 0x4a7bac]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x427478
mov ebx, 4
jmp 0x427488
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
mov eax, 8
cmovae ebx, eax
mov eax, dword [esi + 0x4a7bb0]
mov ecx, dword [esi + 0x4a7bb4]
mov edx, dword [ebp - 0x2c]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x4274a9
or ebx, 1
jmp 0x4274b6
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
jb 0x4274b6
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 0x4273e0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004689fb
mov esp, ebp
pop ebp
ret

Function at 0x43b8f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43b9ae
mov eax, dword [0x4a7d38]
test eax, eax
je 0x43b94b
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x43b935
cmp dword [ebp + 0xc], 0x103
jne 0x43b935
cmp dword [0x4a7d38], 0
jne 0x43b9ae
jmp 0x43b94b
push dword [0x4a7d38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4a7d38], 0
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00468a10
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0x4815a8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [0x4a7d3c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [0x4a7d38]
test eax, eax
cmovne ecx, dword [ebp - 4]
mov dword [0x4a7d38], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43bb50
Capabilities:
Delete directory

Disassembly:
mov eax, dword [0x4a7cf4]
test eax, eax
je 0x43bb76
cmp dword [0x4a7cf8], 0
je 0x43bb69
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x4a7cf4
call fcn.00427a90
add esp, 4
mov eax, dword [0x4a7b84]
test eax, eax
je 0x43bb92
push eax
call fcn.00467c86
add esp, 4
mov dword [0x4a7b84], 0
mov eax, dword [0x4a7cfc]
test eax, eax
je 0x43bba2
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4a7d34]
test eax, eax
je 0x43bbb2
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
ret

Function at 0x43bc90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [0x4a7b48]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [ebp - 4], eax
test eax, eax
je 0x43bcb7
push 0
push dword [0x4a7b48]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push esi
push edi
push 0x304
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_RedrawWindow]
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push 0
push dword [0x4a7b48]
call ebx
mov esi, eax
test esi, esi
je 0x43bd07
jmp 0x43bcf0
push 0x100
push 0
push 0
push esi
call edi
push 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x43bcf0
mov eax, dword [0x4a7b6c]
cmp dword [eax + 0x1fc], 0
jne 0x43bd5e
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
je 0x43bd5e
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea esp, [esp]
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x43bd40
push dword [0x4a7b44]
call sub.MMFS2.dll_Ordinal_35
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x43bd80
push 5
push dword [0x4a7b48]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret

Function at 0x43c000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push 2
push 0x104
call fcn.004688e4
mov edi, eax
add esp, 8
test edi, edi
je 0x43c047
push esi
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
mov esi, eax
call fcn.00467c86
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebp
ret
xor eax, eax
pop edi
pop ebp
ret