joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432320
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4a8014]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [0x4ab3ac]
add edi, 0x2c
cmp dword [0x4ab7b0], 0
mov dword [ebp - 0x44], edi
mov dword [edi], 0
je 0x432462
push ebx
push esi
xor esi, esi
xor edx, edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edx
nop dword [eax]
mov eax, dword [0x4ab3a4]
xor ebx, ebx
mov ecx, dword [eax + 0x254]
movzx eax, word [esi + ecx]
mov esi, eax
test esi, esi
je 0x432444
cmp esi, 4
jbe 0x4323b5
cmp eax, 5
jne 0x432444
lea esi, [ecx + 0x16]
add esi, edx
lea edi, [ebx + 8]
movzx eax, word [esi]
add ebx, ebx
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4323a5
or ebx, 1
sub esi, 2
sub edi, 1
jne 0x432391
mov edi, dword [ebp - 0x44]
jmp 0x43243f
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x34
push eax
dec esi
mov dword [ebp - 0x34], 0x83
push esi
call dword [sym.imp.WINMM.dll_joyGetPosEx]
test eax, eax
jne 0x43243f
mov edx, dword [ebp - 0x30]
shl esi, 5
mov eax, dword [esi + 0x4ab3e0]
sub edx, eax
mov ecx, dword [esi + 0x4ab3e4]
sub ecx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x4323f9
mov ebx, 4
jmp 0x432409
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
mov eax, 8
cmovae ebx, eax
mov eax, dword [esi + 0x4ab3e8]
mov ecx, dword [esi + 0x4ab3ec]
mov edx, dword [ebp - 0x2c]
sub ecx, eax
sub edx, eax
mov eax, ecx
shr eax, 2
cmp edx, eax
ja 0x43242a
or ebx, 1
jmp 0x432437
lea eax, [ecx + ecx*2]
shr eax, 2
cmp edx, eax
jb 0x432437
or ebx, 2
mov eax, dword [ebp - 0x18]
shl eax, 4
or ebx, eax
mov edx, dword [ebp - 0x3c]
mov byte [edi], bl
mov esi, dword [ebp - 0x40]
add edx, 0x10
add esi, 2
mov dword [ebp - 0x3c], edx
inc edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], edi
cmp edx, 0x40
jl 0x432360
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0046d741
mov esp, ebp
pop ebp
ret

Function at 0x437220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x60]
mov edx, dword [esi + 0x54]
mov dword [esi + 0x104], ecx
sub ecx, dword [esi + 0x58]
add eax, ecx
mov dword [esi + 0x108], edx
sub edx, dword [esi + 0x5c]
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0x64]
add eax, edx
mov dword [esi + 0x118], ecx
mov dword [esi + 0x124], eax
mov ecx, esi
mov eax, dword [esi + 0xdc]
mov dword [esi + 0x10c], eax
mov eax, dword [esi + 0xe8]
mov dword [esi + 0x11c], edx
mov edx, 1
mov dword [esi + 0x110], eax
pop esi
pop ebp
jmp fcn.00437290
Function at 0x446a80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
push 0x104
mov esi, ecx
call fcn.0047122f
mov edi, eax
add esp, 8
test edi, edi
je 0x446ac6
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.00471245
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 0x447c60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [0x4ab3ac]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov dword [ebp - 4], edx
test edi, edi
jne 0x447c80
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
cmp edx, 0x100
jne 0x447cd7
cmp dword [ebp + 8], 9
jne 0x447d3c
cmp dword [edi + 0x518], ecx
jle 0x447d3c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [0x4ab3ac]
test ax, ax
js 0x447cba
call fcn.00457da0
jmp 0x447cbf
call fcn.00457f60
test eax, eax
je 0x447ccf
pop esi
pop ebx
mov eax, 4
pop edi
mov esp, ebp
pop ebp
ret
mov edi, dword [0x4ab3ac]
jmp 0x447d37
cmp edx, 5
jne 0x447d3c
mov eax, dword [0x4ab3a4]
test byte [eax + 0x14], 0x10
je 0x447d3c
cmp byte [edi + 0x4c8], cl
je 0x447d3c
mov esi, dword [edi + 0x1278]
xor ebx, ebx
cmp dword [edi + 0x3c], ecx
jle 0x447d3c
nop dword [eax]
mov eax, dword [esi]
test eax, eax
jne 0x447d10
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x447d06
test byte [eax + 0x7c], 4
jne 0x447d2e
test dword [eax + 0x78], 0x2b0
je 0x447d2e
push eax
mov eax, dword [eax + 0x8c]
call eax
mov edi, dword [0x4ab3ac]
inc ebx
add esi, 8
cmp ebx, dword [edi + 0x3c]
jl 0x447d00
mov edx, dword [ebp - 4]
xor ecx, ecx
movsx eax, word [edi + 0x1d8]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x447d79
xor esi, esi
test eax, eax
jle 0x447d79
lea ebx, [edi + 0x1dc]
push dword [ebp + 0xc]
mov eax, dword [ebx]
push dword [ebp + 8]
push edx
push dword [ebp - 8]
push edi
call eax
movsx ecx, ax
test cl, 0x5c
jne 0x447d79
mov edx, dword [ebp - 4]
inc esi
add ebx, 4
cmp esi, dword [ebp - 0xc]
jl 0x447d56
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x447e70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [0x4ab380]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [ebp - 4], eax
test eax, eax
je 0x447e97
push 0
push dword [0x4ab380]
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 [0x4ab380]
call ebx
mov esi, eax
test esi, esi
je 0x447ee7
nop dword [eax + eax]
push pe_nt_image_headers32
push 0
push 0
push esi
call edi
push 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x447ed0
mov eax, dword [0x4ab3a4]
cmp dword [eax + 0x1fc], 0
jne 0x447f3e
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
lea eax, [ebp - 0x20]
push 1
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x447f3e
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [eax]
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 0x447f20
push dword [0x4ab37c]
call dword [sym.imp.MMFS2.dll_Ordinal_35]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x447f61
push 5
push dword [0x4ab380]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x44fa80
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 0x44fab5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, word [ebp - 4]
sub eax, 0
je 0x44faff
sub eax, 2
jne 0x44faac
mov eax, dword [esi]
sub eax, 0
je 0x44fadb
sub eax, 2
je 0x44fad4
xorps xmm0, xmm0
jmp 0x44fae4
movsd xmm0, qword [esi + 8]
jmp 0x44fae4
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 0x44fb16
sub eax, 2
je 0x44fb0f
xor eax, eax
jmp 0x44fb19
cvttsd2si eax, qword [esi + 8]
jmp 0x44fb19
mov eax, dword [esi + 8]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4519c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
push 0
push eax
push 2
lea eax, [ebp - 4]
mov edi, ecx
push eax
push edi
mov esi, edx
call ebx
test eax, eax
je 0x451a5a
cmp dword [ebp - 8], 2
jb 0x451a5a
movsx eax, word [ebp - 4]
mov dword [esi], eax
sub eax, 0
je 0x451a2f
sub eax, 1
je 0x451a5a
sub eax, 1
jne 0x451a5a
push eax
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
call ebx
test eax, eax
je 0x451a5a
cmp dword [ebp - 8], 8
jb 0x451a5a
movsd xmm0, qword [ebp - 0x18]
mov eax, 1
movsd qword [esi + 8], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
test eax, eax
je 0x451a5a
cmp dword [ebp - 8], 4
jb 0x451a5a
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4ab4e4]
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 4]
push 0
push ecx
push edx
call eax
mov edi, eax
cmp edi, 0xffffffff
je 0x454601
mov eax, dword [ebp - 4]
test eax, eax
je 0x454601
push eax
call fcn.00471224
mov esi, eax
add esp, 4
test esi, esi
je 0x4545fa
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jne 0x4545f1
push edi
mov dword [ebx], eax
call dword [0x4ab4b4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00471245
add esp, 4
push edi
call dword [0x4ab4b4]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4582f0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4a8014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x4ab3a4]
push edi
mov ax, word [esi + 0x14]
mov word [esi + 0x1f8], ax
push dword [0x4ab380]
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
setne al
mov byte [esi + 0x3d1], al
push dword [0x4ab380]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x45839e
push 1
push dword [0x4ab380]
call edi
push dword [0x4ab384]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x458377
push 1
push dword [0x4ab384]
call edi
mov ax, word [esi + 0x14]
mov ecx, 0x180
and ax, cx
mov ecx, pe_nt_image_headers32
cmp ax, cx
jne 0x458399
call fcn.00459190
mov byte [esi + 0x3d1], 1
call fcn.004479b0
mov dword [esi + 0x20c], 0
lea eax, [esi + 0x208]
mov dword [esi + 0x210], 0
mov dword [esi + 0x214], 0
mov dword [esi + 0x218], 0
mov dword [esi + 0x21c], 0
mov dword [esi + 0x220], 0
mov dword [esi + 0x224], 0
mov dword [esi + 0x228], 0
mov dword [esi + 0x22c], 0
mov dword [esi + 0x230], 0
push eax
mov dword [eax], 0x2c
push dword [0x4ab380]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
push dword [0x4ab380]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x458435
push 1
push dword [0x4ab380]
call edi
mov ax, word [esi + 0x14]
mov ecx, 0xfefe
and ax, cx
mov ecx, 0x82
or ax, cx
test byte [esi + 0x1f8], 0x10
mov word [esi + 0x14], ax
jne 0x4584e2
mov ecx, dword [0x4ab3a8]
test ecx, ecx
je 0x4584b9
movsx eax, word [esi + 0x1c]
cmp dword [ecx], eax
jl 0x4584b9
movsx eax, word [esi + 0x1e]
cmp dword [ecx + 4], eax
jl 0x4584b9
push 2
push dword [0x4ab380]
call dword [sym.imp.USER32.dll_MonitorFromWindow]
test eax, eax
je 0x4584b9
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x28
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x4584b9
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x28]
movsx eax, word [esi + 0x1c]
cmp eax, ecx
jne 0x4584b9
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
movsx eax, word [esi + 0x1e]
cmp eax, ecx
je 0x4584e2
or word [esi + 0x14], 0x14
push dword [0x4ab37c]
call dword [sym.imp.MMFS2.dll_Ordinal_16]
mov ecx, dword [0x4ab37c]
movzx eax, ax
test ecx, ecx
je 0x4584e2
or eax, 2
push eax
push ecx
call dword [sym.imp.MMFS2.dll_Ordinal_17]
call fcn.00447b10
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x458517
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x458517
push 8
push 0x401
push dword [esi + 0xb0]
call dword [sym.imp.USER32.dll_CheckMenuItem]
call fcn.004593a0
call fcn.004479b0
call fcn.004475a0
push 3
push dword [0x4ab380]
call edi
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push dword [0x4ab384]
call esi
push 1
push 0
push dword [0x4ab380]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [0x4ab3b8], 1
pop esi
call fcn.0046d741
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x459460
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
xor edi, edi
mov dword [ebp - 4], ecx
test esi, esi
je 0x459538
mov eax, dword [ebp + 8]
nop dword [eax]
cmp ax, word [esi + 2]
jne 0x4594d2
test byte [esi], 0x10
je 0x459491
test ebx, ebx
jne 0x459495
jmp 0x4594d2
test ebx, ebx
jne 0x4594d2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 8
cwde
je 0x4594a9
test eax, eax
jns 0x4594cf
jmp 0x4594ad
test eax, eax
js 0x4594cf
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [esi]
cwde
test cl, 4
je 0x4594c3
test eax, eax
jns 0x4594cb
jmp 0x4594c7
test eax, eax
js 0x4594cb
movzx edi, word [esi + 4]
test edi, edi
jne 0x4594dc
mov eax, dword [ebp + 8]
cmp byte [esi], 0
jl 0x459538
add esi, 8
jmp 0x459480
test cl, 0x40
je 0x45950f
cmp edi, 0x7d0
jl 0x459517
mov esi, dword [ebp - 4]
push 0
movzx eax, di
or eax, 0x10000
push eax
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x7d0
jl 0x4594e9
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x459538
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x459538
test al, 1
je 0x4594ec
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x459680
Capabilities:
Log keystrokes

Disassembly:
push ebx
push edi
mov ebx, ecx
mov edi, edx
xor eax, eax
mov word [ebx], ax
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x4596cb
push esi
push 2
push 0x40
call fcn.0047122f
add esp, 8
mov esi, eax
push 0x3f
push esi
push 0x65
push dword [0x4ab370]
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [edi - 0x60]
push ecx
push esi
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.00471245
add esp, 0x10
pop esi
jmp 0x459717
lea eax, [edi - 0x70]
cmp eax, 0x17
ja 0x4596e8
lea eax, [edi - 0x6f]
push eax
push 0x499208
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x459717
xor eax, eax
nop word [eax + eax]
cmp dword [eax*8 + str._bf_tg_fh_ri], edi
je 0x459701
inc eax
cmp eax, 0x14
jl 0x4596f0
jmp 0x459717
push 0x3f
push ebx
push dword [eax*8 + 0x498cb4]
push dword [0x4ab370]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebx], 0
jne 0x45972f
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [ebx], ax
xor eax, eax
mov word [ebx + 2], ax
pop edi
pop ebx
ret
Function at 0x459740
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, ecx
push edi
push 0
push 0x78
mov edi, edx
push ebx
mov dword [ebp - 4], edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x79
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
movsx eax, word [edi + 0x12]
cmp esi, eax
jne 0x4597b8
push 2
push 0x80
call fcn.0047122f
mov edi, eax
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, edi
movsx edx, word [eax + esi*2]
call fcn.00459680
push edi
lea ecx, [esi + 0x6e]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.00471245
mov edi, dword [ebp - 4]
add esp, 4
push 1
lea eax, [esi + 0x6e]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
cmp esi, 8
jl 0x459772
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, edx
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
push ecx
cmp dword [esi + 0x2a4], 0
lea ecx, [ebp - 1]
push 1
push ecx
push eax
setne byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46b31e
cmp byte [ebp - 1], 0
push edi
je 0x46b311
mov esi, dword [esi + 0x2a4]
mov edi, dword [0x4ab3a4]
cmp edi, esi
je 0x46b2f8
test esi, esi
jne 0x46b297
xor ecx, ecx
jmp 0x46b29d
mov ecx, dword [esi + 0x1d8]
cmp dword [0x4ab3a8], ecx
je 0x46b2c1
mov dword [0x4ab3ac], 0
test ecx, ecx
je 0x46b2bb
mov eax, dword [ecx + 0x7c]
mov dword [0x4ab3ac], eax
mov dword [0x4ab3a8], ecx
mov dword [0x4ab3a4], esi
test esi, esi
je 0x46b2de
mov eax, dword [esi + 0x1d0]
mov dword [0x4ab384], eax
mov eax, dword [esi + 0x1d4]
jmp 0x46b2ea
mov dword [0x4ab384], 0
xor eax, eax
push eax
mov dword [0x4ab37c], eax
call dword [sym.imp.MMFS2.dll_Ordinal_831]
mov esi, edi
mov ecx, dword [ebp - 8]
call fcn.0044fe10
mov ecx, esi
mov edi, eax
call fcn.00402c10
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46b330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
mov byte [ebp - 1], 0
xor edi, edi
lea ecx, [ebp - 0x10]
push edi
push ecx
push 1
lea ecx, [ebp - 1]
mov eax, edx
push ecx
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46b3b9
cmp byte [ebp - 1], 0
je 0x46b3b4
push dword [ebx + 0x2ac]
mov edx, dword [ebx + 0x44]
mov ecx, ebx
push edi
call fcn.0046a700
mov ecx, dword [ebx + 0x2a4]
add esp, 8
test ecx, ecx
je 0x46b3b9
call fcn.00402c10
mov ecx, dword [ebx + 0x2a4]
xor edx, edx
mov esi, eax
call fcn.004069d0
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov dword [ebp - 8], edi
call fcn.00451a70
mov ecx, esi
mov edi, eax
call fcn.00402c10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00474d4e
Function at 0x71333726
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea eax, [eax + 0xc]
mov edx, eax
cmp edx, eax
je 0x71333780
push eax
push 0x7133228a
call fcn.713337be
push 7
push 0x713b80bc
push dword [eax + 0x30]
call fcn.71333b17
cmp eax, 0
jne 0x7133375a
inc eax
jmp 0x71333782
push 0x713322a2
call fcn.713337be
push 7
push 0x713b80bc
push dword [eax + 0x30]
call fcn.71333b17
cmp eax, 0
jne 0x7133377b
inc eax
jmp 0x71333782
pop eax
mov eax, dword [eax]
jmp 0x71333734
xor eax, eax
ret

Function at 0x71333798
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, dword fs:[0x30]
mov al, byte [eax + 0x68]
and al, 0x70
cmp al, 0x70
sete al
movzx eax, al
ret

Function at 0x713337ac
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
test al, al
setne al
movzx eax, al
ret

Function at 0x713337be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [0x713b80bc]
mov esi, dword [ebp + 8]
lodsw ax, word [esi]
xor ax, 0xe1
stosw word es:[edi], ax
cmp ax, 0
jne 0x713337cc
pop edi
pop esi
leave
ret 4

Function at 0x713337e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea edi, [0x713b80bc]
mov esi, dword [ebp + 8]
lodsb al, byte [esi]
xor al, 0xe1
stosb byte es:[edi], al
cmp al, 0
jne 0x713337ee
pop edi
pop esi
leave
ret 4

Function at 0x71333a22
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x20]
mov edi, dword [edx + ebx]
test edi, edi
je 0x71333a73
add edi, ebx
xchg esi, eax
push ecx
xor eax, eax
lea ecx, [eax - 1]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg esi, eax
mov esi, dword [ebp + 0xc]
repe cmpsb byte [esi], byte es:[edi]
pop ecx
jne 0x71333a73
sub ecx, dword [eax + 0x18]
neg ecx
mov edx, dword [eax + 0x24]
add edx, ebx
movzx edx, word [edx + ecx*2]
mov eax, dword [eax + 0x1c]
add eax, ebx
mov eax, dword [eax + edx*4]
add eax, ebx
jmp 0x71333a7a
add edx, 4
loop 0x71333a3a
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x71333a81
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push esi
push edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea ebp, [eax + 0xc]
mov eax, dword [ebp]
mov esi, dword [eax + 0x30]
movzx ecx, word [eax + 0x2e]
mov edi, dword [esp + 0x10]
mov dx, word [esi]
cmp dx, word [edi]
je 0x71333acd
cmp dx, 0x41
jb 0x71333ab2
cmp dx, 0x5a
jbe 0x71333ab8
cmp dx, 0x61
jb 0x71333ac4
cmp dx, 0x7a
ja 0x71333ac4
xor dx, 0x20
jmp 0x71333ac6
jmp 0x71333ae0
cmp dx, word [edi]
je 0x71333acd
jmp 0x71333ae0
add edi, 2
add esi, 2
sub ecx, 2
cmp ecx, 0
jne 0x71333a9e
mov eax, dword [eax + 0x18]
jmp 0x71333ae8
mov eax, dword [eax]
cmp ebp, eax
jne 0x71333a93
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x4043058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.040431a8
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 0x404307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x404306a
add dl, dl
jne 0x4043089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x40430dc
xor eax, eax
add dl, dl
jne 0x4043096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x404317d
add dl, dl
jne 0x40430a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x40430b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x40430bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x40430c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x40430d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x4043075
mov eax, 1
add dl, dl
jne 0x40430ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x40430f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x40430e1
sub eax, ebx
mov ebx, 1
jne 0x4043128
mov ecx, 1
add dl, dl
jne 0x404310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4043119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4043105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4043075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x404313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x404314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4043136
cmp eax, 0x7d00
jae 0x404316d
cmp eax, 0x500
jb 0x4043168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4043075
cmp eax, 0x7f
ja 0x4043170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4043075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x404319e
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 0x4043075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10