joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415a00
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
je 0x415b7a
mov edi, dword [esp + 0x14]
test edi, edi
je 0x415b77
cmp byte [edi], 0
je 0x415b77
push edi
call fcn.004158d0
mov esi, eax
add esp, 4
test esi, esi
je 0x415b5b
mov eax, dword [esi + 0x108]
test eax, eax
je 0x415b7a
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x415a75
mov eax, dword [esi + 0x110]
mov edx, ebx
inc eax
mov dword [esi + 0x110], eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x415a5f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
push 1
push 0x104
call dword [sym.imp.MSVCRT.dll_calloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x415b7a
push edi
push 0
push 0x44f7d0
call fcn.0042d6d0
add esp, 0xc
test eax, eax
je 0x415b48
push edi
call dword [sym.imp.MMFS2.dll_Ordinal_420]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x415b3e
mov eax, dword [0x451574]
push 0
mov ecx, dword [eax + 0x84]
push ecx
call dword [sym.imp.MMFS2.dll_Ordinal_424]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x415b37
mov edx, dword [esi + 0x10c]
push edx
push ebx
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, dword [esi + 0x108]
push eax
push ebx
push ebp
call fcn.00416260
add esp, 0xc
test eax, eax
push ebx
jne 0x415b31
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_419]
call ebx
push ebp
call ebx
mov dword [esi + 0x104], edi
mov dword [esi + 0x110], 1
mov ecx, dword [esp + 0x18]
mov eax, edi
sub ecx, edi
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x415b1b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
call dword [sym.imp.MMFS2.dll_Ordinal_419]
push ebp
call dword [sym.imp.MMFS2.dll_Ordinal_419]
push edi
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov edx, ebx
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x415b61
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
mov byte [ebx], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc

Function at 0x415b90
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
je 0x415be7
cmp byte [eax], 0
je 0x415be7
push eax
call fcn.004158d0
mov esi, eax
add esp, 4
test esi, esi
je 0x415be7
mov eax, dword [esi + 0x104]
test eax, eax
je 0x415be7
mov ecx, dword [esi + 0x110]
dec ecx
mov dword [esi + 0x110], ecx
jne 0x415be7
push eax
call dword [sym.imp.MSVCRT.dll_remove]
mov eax, dword [esi + 0x104]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
mov dword [esi + 0x104], 0
pop esi
ret 4
Function at 0x4165e0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
push esi
push 1
push 0x104
xor ebp, ebp
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x416696
push esi
push ebp
push 0x44f7d4
call fcn.0042d6d0
mov al, byte [esi]
add esp, 0xc
test al, al
je 0x416687
push ebx
push edi
push esi
call dword [sym.imp.MSVCRT.dll_remove]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + esi - 1], 0x5c
je 0x416645
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ax, word [0x44f864]
mov word [edi - 1], ax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ebx
push ecx
call fcn.0041cc80
mov edx, dword [ebx]
add esp, 8
mov ecx, esi
pop edi
pop ebx
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x416665
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop esi
pop ebp
ret
push esi
mov ebp, 0xe
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x416b00
Capabilities:
Delete directory
Get common file path
Set current directory

Disassembly:
push esi
push 1
push 0x104
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x416b41
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x44f86c
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call dword [sym.imp.MSVCRT.dll__rmdir]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
pop esi
ret
push 0x44f86c
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop esi
ret

Function at 0x416b50
Capabilities:
Delete file

Disassembly:
push ebx
push 1
push 0x118
call dword [sym.imp.MSVCRT.dll_calloc]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x416bdc
mov eax, dword [esp + 8]
push ebp
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__findfirst]
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x416bd1
push esi
push edi
test byte [ebx], 0x10
jne 0x416bb6
lea eax, [ebx + 0x14]
mov edi, 0x44f870
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x416bb6
mov edi, 0x44f86c
mov esi, eax
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x416bb6
push eax
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
push ebx
push ebp
call dword [sym.imp.MSVCRT.dll__findnext]
add esp, 8
test eax, eax
je 0x416b80
push ebp
call dword [sym.imp.MSVCRT.dll__findclose]
add esp, 4
pop edi
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop ebp
pop ebx
ret
Function at 0x41bc40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
mov ecx, dword [0x45157c]
push edi
mov dword [esp + 8], 0
mov eax, dword [ecx + 0x3c]
mov edi, dword [ecx + 0x1278]
test eax, eax
mov dword [esp + 4], edi
jle 0x41bd39
push ebx
push ebp
push esi
cmp dword [edi], 0
jne 0x41bc7d
mov eax, dword [edi + 8]
add edi, 8
test eax, eax
je 0x41bc6f
mov dword [esp + 0x10], edi
mov esi, dword [edi]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x84]
je 0x41bc94
cmp eax, 0xffffffff
jne 0x41bd1b
mov eax, dword [esi + 0x78]
test ah, 2
je 0x41bd1b
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x41bcb1
push 2
push eax
mov eax, dword [ecx]
push eax
call sub.MMFS2.dll_Ordinal_76
mov ebx, dword [esi + 0xbc]
mov eax, dword [esp + 0x20]
add ebx, esi
test eax, eax
je 0x41bd06
test byte [ebx + 0x20], 0x20
je 0x41bd0f
mov ecx, dword [esi + 0x84]
mov edx, dword [0x451578]
push esi
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x30]
mov ebp, dword [eax + ecx*4 + 0x2c]
lea edi, [eax + ecx*4]
mov ecx, ebp
and ecx, 0xfff9ffff
or ecx, 0x10
mov dword [edi + 0x2c], ecx
call fcn.004020f0
mov dword [edi + 0x2c], ebp
mov edi, dword [esp + 0x14]
jmp 0x41bd0c
push esi
call fcn.00402080
add esp, 4
mov dword [ebx], 0
mov ecx, dword [0x45157c]
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + 0x3c]
add edi, 8
inc eax
cmp eax, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
jl 0x41bc6a
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x41cb20
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x3c
push ebp
push esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [0x45157c]
xor ebp, ebp
add ecx, 0x2c
mov dword [ecx], ebp
mov edx, dword [0x45157c]
cmp eax, dword [edx + 0xc]
je 0x41cb4c
cmp eax, dword [edx + 0x10]
jne 0x41cc6d
push ebx
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov edx, dword [0x451574]
xor eax, eax
xor ebx, ebx
mov ecx, dword [edx + 0x254]
mov edx, dword [esp + 0x14]
mov ax, word [edx + ecx]
test eax, eax
jle 0x41cc4b
cmp eax, 4
jle 0x41cbb4
cmp eax, 5
jne 0x41cc4b
lea esi, [ecx + ebp + 0x16]
mov edi, 8
xor eax, eax
add ebx, ebx
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x41cba3
or ebx, 1
sub esi, 2
dec edi
jne 0x41cb8d
mov ecx, dword [esp + 0x10]
mov byte [ecx], bl
jmp 0x41cc4b
lea edx, [esp + 0x18]
lea esi, [eax - 1]
push edx
push esi
mov dword [esp + 0x20], 0x34
mov dword [esp + 0x24], 0x83
call dword [sym.imp.WINMM.dll_joyGetPosEx]
test eax, eax
jne 0x41cc45
mov ecx, dword [esp + 0x20]
shl esi, 5
mov edx, dword [esi + 0x4515b0]
mov eax, dword [esi + 0x4515b4]
sub eax, edx
sub ecx, edx
mov edx, eax
shr edx, 2
cmp ecx, edx
ja 0x41cbfe
mov ebx, 4
jmp 0x41cc0d
lea eax, [eax + eax*2]
shr eax, 2
cmp ecx, eax
jb 0x41cc0d
mov ebx, 8
mov edx, dword [esi + 0x4515b8]
mov eax, dword [esi + 0x4515bc]
mov ecx, dword [esp + 0x24]
sub eax, edx
sub ecx, edx
mov edx, eax
shr edx, 2
cmp ecx, edx
ja 0x41cc2f
or ebx, 1
jmp 0x41cc3c
lea eax, [eax + eax*2]
shr eax, 2
cmp ecx, eax
jb 0x41cc3c
or ebx, 2
mov ecx, dword [esp + 0x38]
shl ecx, 4
or ebx, ecx
mov edx, dword [esp + 0x10]
mov byte [edx], bl
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ebp, 0x10
add edx, 2
inc ecx
cmp ebp, 0x40
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jl 0x41cb56
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x3c
ret
Function at 0x4224d0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x18
cmp eax, 3
ja case.default.0x4224e0
jmp dword [eax*4 + 0x4225b4]
mov ecx, dword [0x451574]
mov eax, dword [esp + 0x20]
push eax
mov edx, dword [ecx + 0x1c4]
push edx
call sub.MMFS2.dll_Ordinal_163
add esp, 0x18
ret
mov ecx, dword [0x451574]
mov eax, dword [esp + 0x20]
push eax
mov edx, dword [ecx + 0x1c4]
push edx
call sub.MMFS2.dll_Ordinal_176
add esp, 0x18
ret
mov ecx, dword [0x451574]
mov eax, dword [esp + 0x20]
push eax
mov edx, dword [ecx + 0x1c4]
push edx
call sub.MMFS2.dll_Ordinal_189
add esp, 0x18
ret
mov ecx, dword [0x451574]
push edi
mov edi, dword [esp + 0x24]
lea eax, [esp + 4]
mov dword [esp + 8], 0
mov edx, dword [ecx + 0x1c4]
push eax
push edi
push edx
call sub.MMFS2.dll_Ordinal_182
cmp dword [esp + 8], 1
jne 0x42259c
push esi
push 1
push 0x208
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
mov eax, dword [0x451574]
add esp, 8
mov ecx, dword [eax + 0x1c4]
push esi
push edi
push ecx
call sub.MMFS2.dll_Ordinal_183
push esi
call dword [sym.imp.MSVCRT.dll_remove]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
pop esi
mov edx, dword [0x451574]
push edi
mov eax, dword [edx + 0x1c4]
push eax
call sub.MMFS2.dll_Ordinal_189
pop edi
add esp, 0x18
ret
Function at 0x42d650
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
xor edx, edx
and ecx, 0xffff
mov dh, al
shr ecx, 8
and edx, 0xffff
lea eax, [esp]
or ecx, edx
push eax
mov dword [0x451538], ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x42d6b7
cmp dword [esp + 0x10], 2
jne 0x42d6b7
mov ecx, dword [esp + 4]
mov eax, 1
cmp ecx, 5
mov dword [0x451534], eax
jb 0x42d6b7
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x42d6b7
mov dword [0x451530], eax
call fcn.0042d630
call fcn.004160b0
xor eax, eax
add esp, 0x94
ret

Function at 0x42d6d0
Capabilities:
Get common file path

Disassembly:
push esi
push edi
push 1
push 0x104
xor edi, edi
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x42d718
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x42e310
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push ebx
push esi
push edi
push 1
push 0x208
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
xor edi, edi
add esp, 8
cmp esi, edi
jne 0x42e338
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x58
ret
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
push ebp
push eax
push ecx
push str._s__s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x14]
mov ebx, dword [esp + 0x74]
lea eax, [esp + 0x24]
push edx
push eax
push edi
push edi
push 0x20
push 1
push edi
push edi
push esi
push edi
mov dword [ebx + 4], edi
mov dword [ebx], edi
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x78], edi
mov word [esp + 0x7e], di
mov dword [esp + 0x80], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov ebp, eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp ebp, edi
pop ebp
jne 0x42e3b4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x58
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
mov dword [ebx], ecx
push edx
push 0x42e300
push eax
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_EnumThreadWindows]
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x42e3de
mov dword [ebx + 4], eax
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x58
ret
Function at 0x42e420
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x42e654
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_calloc]
push edi
push 1
push 0x104
call ebp
mov edi, eax
add esp, 8
mov edx, edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42e44a
push 0x2e
push edi
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x42e647
mov ebx, dword [sym.imp.MSVCRT.dll__stricmp]
push str..hlp
push esi
call ebx
add esp, 8
test eax, eax
jne 0x42e49d
push eax
mov eax, dword [esp + 0x18]
push 3
push edi
push eax
call dword [sym.imp.USER32.dll_WinHelpA]
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
ret
push 0x4514e0
call fcn.0042e3f0
add esp, 4
test eax, eax
je 0x42e4ca
mov ecx, dword [0x4514e4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
ret
push str..txt
push esi
call ebx
add esp, 8
test eax, eax
jne 0x42e4fb
push 0x4514e0
push edi
push str.Notepad.exe
call fcn.0042e310
add esp, 0xc
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
ret
push str..doc
push esi
call ebx
add esp, 8
test eax, eax
jne 0x42e554
mov eax, dword [0x451538]
push 0x4514e0
cmp eax, 0x35f
push edi
jge 0x42e538
push str.Write.exe
call fcn.0042e310
add esp, 0xc
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
ret
push str.Wordpad.exe
call fcn.0042e310
add esp, 0xc
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
ret
push str..wri
push esi
call ebx
add esp, 8
test eax, eax
push 1
jne 0x42e632
push 0x118
xor ebx, ebx
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x42e610
lea edx, [esp + 0x18]
push edx
push str.wrifile_shellopen
push Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42e5c1
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push esi
push str.command
push ecx
mov dword [esp + 0x24], 0x118
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi], 0
je 0x42e602
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x42e602
push 0x20
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x42e602
push 0x4514e0
push edi
push esi
mov byte [eax], 0
call fcn.0042e310
add esp, 0xc
cmp eax, 0xffffffff
je 0x42e602
mov ebx, 1
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
test ebx, ebx
jne 0x42e647
push 0x4514e0
push edi
push str.Write.exe
call fcn.0042e310
add esp, 0xc
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
ret
push 0x451398
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x42eb50
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x45157c]
sub esp, 8
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x42eb66
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x14]
cmp ecx, 0x100
jne 0x42ebb8
cmp dword [esp + 0x18], 9
jne 0x42ebdb
cmp dword [eax + 0x518], ebx
jle 0x42ebdb
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x42eb9b
mov eax, dword [0x45157c]
push eax
call fcn.00439770
jmp 0x42eba7
mov ecx, dword [0x45157c]
push ecx
call fcn.00439840
add esp, 4
cmp eax, ebx
je 0x42ebd6
mov eax, 4
pop ebx
add esp, 8
ret
cmp ecx, 5
jne 0x42ebdb
mov edx, dword [0x451574]
test byte [edx + 0x14], 0x10
je 0x42ebdb
cmp byte [eax + 0x4c8], bl
je 0x42ebdb
call fcn.0041be60
mov eax, dword [0x45157c]
movsx ecx, word [eax + 0x1d8]
push ebp
push esi
cmp ecx, ebx
push edi
mov dword [esp + 0x14], ecx
je 0x42ec33
mov dword [esp + 0x10], ebx
jle 0x42ec33
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov esi, 0x1dc
jmp 0x42ec07
mov eax, dword [0x45157c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push edi
push ecx
push edx
push ebp
push eax
call dword [esi + eax]
movsx ebx, ax
test bl, 0x5c
jne 0x42ec33
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add esi, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x42ec02
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret

Function at 0x42ecf0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x451550]
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ebp, eax
test ebp, ebp
je 0x42ed18
mov ecx, dword [0x451550]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
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 edx, dword [0x451550]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push 0
push edx
call ebx
mov esi, eax
test esi, esi
je 0x42ed5e
push 0x100
push 0
push 0
push esi
call edi
push 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x42ed47
mov eax, dword [0x451574]
mov ecx, dword [eax + 0x1fc]
test ecx, ecx
jne 0x42edb3
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
test eax, eax
je 0x42edb3
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call ebx
push 1
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
test eax, eax
jne 0x42ed92
mov edx, dword [0x45154c]
push edx
call sub.MMFS2.dll_Ordinal_35
pop edi
pop esi
test ebp, ebp
pop ebp
pop ebx
je 0x42edd5
mov eax, dword [0x451550]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
add esp, 0x1c
ret
Function at 0x42f0c0
Capabilities:
Delete directory

Disassembly:
mov eax, dword [0x45150c]
test eax, eax
je 0x42d9a7
mov ecx, dword [0x451508]
test ecx, ecx
je 0x42d99a
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x45150c
call fcn.0041cd50
add esp, 4
mov eax, dword [0x45158c]
test eax, eax
je 0x42d9c4
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [0x45158c], 0
mov eax, dword [0x4514e8]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x42d9d7
push eax
call esi
mov eax, dword [0x4514ec]
test eax, eax
je 0x42d9e3
push eax
call esi
pop esi
ret
call fcn.00417120
call fcn.00415330
mov eax, dword [0x451504]
test eax, eax
je 0x42f0e2
push 0
push 2
push eax
call sub.MMFS2.dll_Ordinal_191
call fcn.0041c390
call fcn.0042d750
call fcn.0043e410
call fcn.00402690
call fcn.00431210
call fcn.0042e120
jmp 0x42d980
Function at 0x432f90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
mov ax, word [esi]
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x28]
push 2
push edx
push edi
mov dword [esp + 0x34], eax
call ebx
test eax, eax
jne 0x432fc7
pop edi
pop esi
pop ebx
add esp, 0xc
ret
movsx eax, word [esp + 0x20]
sub eax, 0
je 0x433017
sub eax, 2
je 0x432fdf
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esi]
sub eax, 0
je 0x432ff8
sub eax, 2
je 0x432ff3
fld qword [0x44b870]
jmp 0x432ffb
fld qword [esi + 8]
jmp 0x432ffb
fild dword [esi + 8]
fstp qword [esp + 0x10]
lea eax, [esp + 0x1c]
push 0
push eax
lea ecx, [esp + 0x18]
push 8
push ecx
push edi
call ebx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [esi]
sub eax, 0
je 0x433031
sub eax, 2
je 0x433027
xor eax, eax
jmp 0x433034
fld qword [esi + 8]
call sub.MSVCRT.dll__ftol
jmp 0x433034
mov eax, dword [esi + 8]
lea edx, [esp + 0x1c]
mov dword [esp + 0xc], eax
push 0
push edx
lea eax, [esp + 0x14]
push 4
push eax
push edi
call ebx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4346d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
lea eax, [esp]
lea ecx, [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push eax
push 2
push ecx
push esi
call edi
test eax, eax
je 0x43477b
cmp dword [esp + 0xc], 2
jb 0x43477b
movsx eax, word [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [ebx], eax
sub eax, 0
je 0x43474c
dec eax
je 0x43477b
dec eax
jne 0x43477b
lea edx, [esp + 0xc]
push 0
push edx
lea eax, [esp + 0x1c]
push 8
push eax
push esi
call edi
test eax, eax
je 0x43477b
cmp dword [esp + 0xc], 8
jb 0x43477b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
pop edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret
lea eax, [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push esi
call edi
test eax, eax
je 0x43477b
cmp dword [esp + 0xc], 4
jb 0x43477b
mov edx, dword [esp + 0x10]
pop edi
mov dword [ebx + 8], edx
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x4371a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
mov eax, dword [eax + 0x1fc]
test eax, eax
jne 0x4371bc
mov eax, 1
add esp, 0xc
ret 8
mov ecx, dword [eax + 0x1c]
push 0
mov dword [esp + 4], ecx
mov edx, dword [eax + 0x20]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x24]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 8]
push 0xc
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
ret 8

Function at 0x4371f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x1fc]
test eax, eax
jne 0x43720e
mov eax, 1
pop esi
add esp, 0xc
ret 8
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0xc]
push 0xc
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x437266
cmp dword [esp + 0x14], 0xc
jne 0x437266
mov eax, dword [esp + 4]
push 0
push eax
push esi
call fcn.00437270
push 0
mov ecx, dword [esp + 0xc]
push ecx
push esi
call fcn.004372f0
push 0
mov edx, dword [esp + 0x10]
push edx
push esi
call fcn.00437370
mov eax, 1
pop esi
add esp, 0xc
ret 8
xor eax, eax
pop esi
add esp, 0xc
ret 8

Function at 0x43ad00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
test esi, esi
je 0x43add8
mov ebp, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
mov ax, word [esp + 0x1c]
cmp ax, word [esi + 2]
jne 0x43ad6f
mov al, byte [esi]
and al, 0x10
je 0x43ad31
test ebp, ebp
jne 0x43ad39
test al, al
jne 0x43ad6f
test ebp, ebp
jne 0x43ad6f
push 0x11
call ebx
test byte [esi], 8
movsx eax, ax
je 0x43ad4b
test eax, eax
jge 0x43ad6f
jmp 0x43ad4f
test eax, eax
jl 0x43ad6f
push 0x10
call ebx
test byte [esi], 4
movsx eax, ax
je 0x43ad61
test eax, eax
jge 0x43ad6b
jmp 0x43ad65
test eax, eax
jl 0x43ad6b
xor edi, edi
mov di, word [esi + 4]
test edi, edi
jne 0x43ad79
cmp byte [esi], 0
js 0x43add8
add esi, 8
jmp 0x43ad1c
mov al, byte [esi]
mov esi, dword [esp + 0x14]
test al, 0x40
jne 0x43ad8d
cmp edi, 0x7d0
jl 0x43adb3
jmp 0x43ad95
cmp edi, 0x7d0
jge 0x43adb3
push esi
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x43add8
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x43add8
test al, 1
jne 0x43add8
and edi, 0xffff
push 0
or edi, 0x10000
push edi
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret