joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ca0d0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eadc8]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x78]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 4]
xor ebx, ebx
mov dword [esp + 0x78], ecx
cmp byte [eax + 0x35], bl
jne 0x435859
mov edx, dword [esp + 0x7c]
mov edx, dword [edx]
cmp dword [eax + 0xc], edx
jge 0x43584c
mov eax, dword [eax + 8]
jmp 0x435850
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0x35], bl
je 0x435842
mov dword [esp + 0x78], ecx
mov esi, dword [ebp]
mov eax, dword [ebp + 0x18]
mov edi, ecx
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x43586d
cmp esi, esi
je 0x435876
call fcn.0048dc57
mov ecx, dword [esp + 0x78]
cmp ecx, dword [esp + 0x18]
je 0x43588b
mov edx, dword [esp + 0x7c]
mov eax, dword [edx]
cmp eax, dword [ecx + 0xc]
jge 0x43594a
mov eax, 0xf
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x70], ebx
mov edx, dword [ecx]
mov cl, byte [esp + 0x1c]
mov dword [esp + 0x40], edx
mov dl, byte [esp + 0x1d]
mov byte [esp + 0x44], cl
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
mov byte [esp + 0x49], dl
push ebx
lea edx, [esp + 0x2c]
mov dword [esp + 0x50], ecx
push edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.004024d0
push edi
push esi
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x20]
push ecx
mov eax, ebp
mov byte [esp + 0x80], 1
call fcn.004364f0
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebp, 0x10
cmp dword [esp + 0x64], ebp
jb 0x435917
mov edx, dword [esp + 0x50]
push edx
call fcn.0048d634
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x3c], ebp
jb 0x43593a
mov eax, dword [esp + 0x28]
push eax
call fcn.0048d634
add esp, 4
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp esi, ebx
jne 0x435978
call fcn.0048dc57
xor esi, esi
cmp edi, dword [esi + 0x18]
jne 0x43595f
call fcn.0048dc57
lea eax, [edi + 0x10]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8
mov esi, dword [esi]
jmp 0x435955
Function at 0x442a70
Capabilities:
Capture microphone audio

Disassembly:
sub esp, 0x174
mov eax, dword [0x4eadc8]
xor eax, esp
mov dword [esp + 0x170], eax
mov eax, 0x442a40
test eax, eax
jne 0x442aa4
xor al, al
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.0048d5a8
add esp, 0x174
ret
xor eax, eax
push 0
mov ecx, 1
mov dword [esp + 0xc], eax
mov edx, ecx
push 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push 0
mov word [esp + 0x24], ax
mov word [esp + 0x16], dx
lea edx, [esp + 0x14]
mov eax, 2
push edx
mov word [esp + 0x24], ax
mov word [esp + 0x18], cx
push 0xffffffffffffffff
lea eax, [esp + 0x18]
mov ecx, 0x10
push eax
mov dword [esp + 0x24], 0x1f40
mov word [esp + 0x2e], cx
mov dword [esp + 0x28], 0x3e80
call dword [sym.imp.winmm.dll_waveInOpen]
test eax, eax
jne 0x442a8d
mov edx, dword [esp + 4]
push esi
push 0xa0000000
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.winmm.dll_mixerGetID]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.winmm.dll_waveInClose]
test esi, esi
jne 0x442b55
mov ecx, dword [esp + 0x20]
push esi
push esi
push esi
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.winmm.dll_mixerOpen]
test eax, eax
je 0x442b6d
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.winmm.dll_mixerClose]
xor al, al
pop esi
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.0048d5a8
add esp, 0x174
ret
push edi
push 0xa8
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.00493ca0
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.winmm.dll_mixerGetLineInfoA]
add esp, 0xc
push 3
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x34], 0xa8
mov dword [esp + 0x4c], 7
call edi
test eax, eax
jne 0x442c4c
xor esi, esi
cmp dword [esp + 0x48], esi
jbe 0x442c1d
jmp 0x442bc0
push 0xa8
lea edx, [esp + 0xd4]
push 0
push edx
call fcn.00493ca0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
add esp, 0xc
push 1
lea ecx, [esp + 0xd4]
push ecx
push edx
mov dword [esp + 0xdc], 0xa8
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], esi
call edi
test eax, eax
jne 0x442c4c
cmp dword [esp + 0xe8], 0x1003
je 0x442c41
inc esi
cmp esi, dword [esp + 0x48]
jb 0x442bc0
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.winmm.dll_mixerClose]
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.0048d5a8
add esp, 0x174
ret
mov eax, dword [esp + 0x180]
mov dword [eax], esi
jmp 0x442c1d
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.winmm.dll_mixerClose]
mov ecx, dword [esp + 0x178]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.0048d5a8
add esp, 0x174
ret
Function at 0x443af0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cb210
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4eadc8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.0042d6f0
lea eax, [esi + 0x18]
push eax
mov dword [esp + 0x18], 0
call fcn.004448f0
lea eax, [esi + 0x30]
push eax
mov byte [esp + 0x18], 1
call fcn.00445bc0
lea ecx, [esi + 0x50]
mov byte [esp + 0x14], 2
call fcn.0042d6f0
mov dword [esi + 0x68], 0xffffffff
mov byte [esi + 0x6c], 0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x443f00
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x104
mov eax, dword [0x4eadc8]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
push edi
push 0xff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00493ca0
mov edx, dword [0x6392ec]
add esp, 0xc
push 0x100
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [0x4fa660]
lea esi, [ecx + 0x132c]
lea eax, [esp + 8]
mov edi, ecx
mov edx, esi
mov ecx, eax
sub edx, ecx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x443f60
push esi
call fcn.00431160
mov ecx, edi
call fcn.0043cf50
mov ecx, dword [esp + 0x108]
pop edi
pop esi
xor ecx, esp
call fcn.0048d5a8
add esp, 0x104
ret

Function at 0x44ebc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esi + 4]
push edi
mov edi, dword [esi + 8]
lea eax, [edi + 1]
cmp eax, ebp
jge 0x44ec1f
mov ecx, dword [esi]
mov dl, byte [ecx + edi]
movzx edi, dl
lea edx, [eax + edi]
cmp edx, ebp
mov dword [esi + 8], eax
jge 0x44ec1f
push edi
add ecx, eax
push ecx
push ebx
call fcn.00492c30
add dword [esi + 8], edi
mov eax, dword [esi + 8]
lea ecx, [eax + 1]
add esp, 0xc
cmp ecx, dword [esi + 4]
jge 0x44ec1f
mov edx, dword [esi]
add edx, eax
mov dl, byte [edx]
inc eax
mov dword [esi + 8], eax
xor cl, cl
xor eax, eax
test edi, edi
jle 0x44ec18
mov edi, edi
xor cl, byte [eax + ebx]
inc eax
cmp eax, edi
jl 0x44ec10
cmp dl, cl
je 0x44ec1f
mov byte [ebx], 0
pop edi
pop ebp
ret
Function at 0x45d610
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c8118
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x4eadc8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x6391d8]
mov ecx, dword [0x4efb90]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00489780
push 0x323232
push 0xc8c8c8
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.00483ce0
mov edx, dword [edi + 0x1bc]
movsx eax, word [esi + 0x97c]
movsx ecx, word [esi + 0x97a]
add edx, 0x60
push edx
add eax, 8
add ecx, 0xf
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00487220
mov edx, dword [esi + 0xb10]
movsx eax, word [edx]
movsx ecx, word [esi + 0x97a]
lea edx, [eax + ecx + 5]
mov eax, dword [edi + 0x1bc]
mov dword [eax + 4], edx
mov ecx, dword [esi + 0xb10]
movsx edx, word [ecx + 2]
movsx eax, word [esi + 0x97c]
mov ecx, dword [edi + 0x1bc]
add edx, eax
mov dword [ecx + 8], edx
mov edi, dword [edi + 0x1bc]
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
lea ebx, [esp + 0xc]
mov dword [0x680bbc], edx
mov dword [0x680bc0], eax
call fcn.00433df0
mov ecx, ebx
mov dword [esp + 0x28], 0xffffffff
call fcn.004897b0
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x20
ret
Function at 0x46b240
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c7e98
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eadc8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
movsx esi, word [eax + 0x97a]
movsx edi, word [eax + 0x97c]
mov eax, dword [0x6391d8]
mov ecx, dword [0x4efb90]
push eax
push ecx
lea ecx, [esp + 0x1c]
add esi, 0xa
add edi, 0xa
call fcn.00489780
push 0x4e0cdc
push edi
xor ebx, ebx
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], ebx
call fcn.00487220
cmp dword [0x6394a0], ebx
jle 0x46b2d4
mov ebp, esi
push 0x4e0d1c
lea eax, [edi + 0x14]
push eax
push ebp
lea ecx, [esp + 0x20]
call fcn.00487220
inc ebx
add ebp, 0x14
cmp ebx, dword [0x6394a0]
jl 0x46b2b5
push 0x4e0ce8
lea edx, [edi + 0x28]
push edx
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.004871a0
push 0x4e0cf4
lea ecx, [edi + 0x3c]
push ecx
lea edx, [esp + 0x2c]
push esi
push edx
call fcn.004871a0
push 0x4e0d00
lea eax, [edi + 0x50]
push eax
lea ecx, [esp + 0x3c]
push esi
push ecx
call fcn.004871a0
push 0x4e0d0c
lea edx, [edi + 0x64]
push edx
lea eax, [esp + 0x4c]
push esi
push eax
call fcn.004871a0
add esp, 0x40
push 0x4e0d10
lea ecx, [edi + 0x78]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.004871a0
push 0x4e0d18
add edi, 0x8c
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.004871a0
add esp, 0x20
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.004897b0
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x46cc40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4eadc8]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push 4
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov dword [esp + 0x14], 0x494e41
mov byte [esp + 0x13], 4
call fcn.00478a3e
push 1
lea ecx, [esp + 0xf]
push ecx
mov ecx, esi
call fcn.00478a3e
push 1
push edi
mov ecx, esi
call fcn.00478a3e
push 1
lea edx, [edi + 1]
push edx
mov ecx, esi
call fcn.00478a3e
push 1
lea eax, [edi + 2]
push eax
mov ecx, esi
call fcn.00478a3e
push 1
lea ecx, [edi + 3]
push ecx
mov ecx, esi
call fcn.00478a3e
push 2
lea ebp, [edi + 6]
push ebp
mov ecx, esi
call fcn.00478a3e
push 2
lea edx, [edi + 8]
push edx
mov ecx, esi
call fcn.00478a3e
push 2
lea eax, [edi + 0xa]
push eax
mov ecx, esi
call fcn.00478a3e
push 1
lea ecx, [edi + 4]
push ecx
mov ecx, esi
call fcn.00478a3e
xor eax, eax
push 0xe
lea edx, [esp + 0x14]
push edx
mov ecx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
call fcn.00478a3e
push 0x20
lea eax, [edi + 0xc]
push eax
mov ecx, esi
call fcn.00478a3e
xor ecx, ecx
xor ebx, ebx
cmp cx, word [ebp]
jge 0x46cd41
jmp 0x46cd20
mov edx, dword [edi + 0x30]
xor dword [edx + ebx*8 + 4], 0x14ad
lea eax, [edx + ebx*8]
push 8
push eax
mov ecx, esi
call fcn.00478a3e
movsx eax, word [ebp]
inc ebx
cmp ebx, eax
jl 0x46cd20
mov ecx, dword [esp + 0x20]
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d5a8
add esp, 0x1c
ret

Function at 0x46cd60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov eax, dword [0x4eadc8]
xor eax, esp
mov dword [esp + 0x1c], eax
push 4
lea eax, [esp + 8]
push eax
mov ecx, esi
mov dword [esp + 0xc], 0x494e41
mov byte [esp + 0xb], 4
call fcn.00478a6e
push 1
lea ecx, [esp + 7]
push ecx
mov ecx, esi
call fcn.00478a6e
push 1
push edi
mov ecx, esi
call fcn.00478a6e
push 1
lea edx, [edi + 1]
push edx
mov ecx, esi
call fcn.00478a6e
push 1
lea eax, [edi + 2]
push eax
mov ecx, esi
call fcn.00478a6e
push 1
lea ecx, [edi + 3]
push ecx
mov ecx, esi
call fcn.00478a6e
cmp byte [esp + 3], 6
jne 0x46cddd
push 4
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00478a6e
push ebx
push ebp
push 2
lea ebx, [edi + 6]
push ebx
mov ecx, esi
call fcn.00478a6e
push 2
lea eax, [edi + 8]
push eax
mov ecx, esi
call fcn.00478a6e
push 2
lea ecx, [edi + 0xa]
push ecx
mov ecx, esi
call fcn.00478a6e
push 1
lea edx, [edi + 4]
push edx
mov ecx, esi
call fcn.00478a6e
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
push 0xe
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00478a6e
push 0x20
lea ecx, [edi + 0xc]
push ecx
mov ecx, esi
call fcn.00478a6e
xor edx, edx
xor ebp, ebp
cmp dx, word [ebx]
jge 0x46ce70
lea ebx, [ebx]
mov eax, dword [edi + 0x30]
lea ebx, [eax + ebp*8]
push 8
push ebx
mov ecx, esi
call fcn.00478a6e
xor dword [ebx + 4], 0x14ad
movsx ecx, word [edi + 6]
inc ebp
cmp ebp, ecx
jl 0x46ce50
mov ecx, dword [esp + 0x24]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0048d5a8
add esp, 0x20
ret
Function at 0x46ce90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, eax
mov edi, ecx
call fcn.0046cc40
cmp byte [edi], 0
mov dword [esp + 0x14], 0
jbe 0x46cf91
lea eax, [edi + 0xc]
mov dword [esp + 0x18], eax
jmp 0x46cec0
mov ecx, dword [esp + 0x18]
cmp dword [ecx], 0
je 0x46cf78
xor edx, edx
xor ebp, ebp
cmp dx, word [edi + 6]
jge 0x46cf78
jmp 0x46cee0
movzx eax, byte [edi + 1]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebp
mov dword [esp + 0x20], eax
call fcn.0046b390
mov ebx, eax
push 1
push ebx
mov ecx, esi
call fcn.00478a3e
push 2
lea edx, [ebx + 2]
push edx
mov ecx, esi
call fcn.00478a3e
push 2
lea eax, [ebx + 4]
push eax
mov ecx, esi
call fcn.00478a3e
push 2
lea ecx, [ebx + 6]
push ecx
mov ecx, esi
call fcn.00478a3e
push 2
lea edx, [ebx + 8]
push edx
mov ecx, esi
call fcn.00478a3e
cmp dword [esp + 0x1c], 0
je 0x46cf59
cmp dword [ebx + 0x14], 0
jne 0x46cf50
mov eax, dword [ebx + 0xc]
push eax
call fcn.0047ea00
add esp, 4
mov dword [ebx + 0x14], eax
mov ecx, dword [ebx + 0x14]
push esi
call fcn.0047e680
mov ecx, dword [ebx + 0xc]
push esi
call fcn.0047e680
mov ecx, dword [ebx + 0x10]
push esi
call fcn.0047e680
movsx ecx, word [edi + 6]
inc ebp
cmp ebp, ecx
jl 0x46cee0
mov eax, dword [esp + 0x14]
movzx edx, byte [edi]
add dword [esp + 0x18], 4
inc eax
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x46cec0
xor ecx, ecx
xor eax, eax
cmp ax, word [edi + 6]
mov dword [esp + 0x10], ecx
jge 0x46cfd4
mov edx, 0x14ad
mov eax, dword [edi + 0x30]
movzx ebx, word [eax + ecx*8 + 2]
movzx ebp, byte [eax + ecx*8]
lea eax, [eax + ecx*8]
xor ebx, 0x4728
xor ebp, 0x1381
add ebx, ebp
add ebx, dword [eax + 4]
inc ecx
add dword [esp + 0x10], ebx
xor dword [eax + 4], edx
movsx eax, word [edi + 6]
cmp ecx, eax
jl 0x46cfa4
xor dword [esp + 0x10], 0x42789431
push 4
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00478a3e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x46dbe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4cb8fb
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x4eadc8]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
mov eax, dword [0x4eadc8]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
push edi
lea eax, [esp + 0x78]
mov esi, ecx
push 0x100
push eax
mov dword [esp + 0x20], esi
call fcn.00490b0d
add esp, 0xc
test eax, eax
jne 0x46dc46
push edi
call fcn.0048ed93
add esp, 4
xor eax, eax
jmp 0x46dd83
lea ecx, [esp + 0x174]
push ecx
lea edx, [esp + 0x78]
push 0x4e0d9c
push edx
call fcn.0048e15e
add esp, 0xc
xor ebx, ebx
lea eax, [esp + 0x174]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46dc80
sub eax, edx
push eax
lea eax, [esp + 0x178]
push eax
lea ecx, [esp + 0x20]
call fcn.00402a50
lea ecx, [esp + 0x18]
add esi, 0x24
push ecx
mov ecx, esi
mov dword [esp + 0x284], ebx
call fcn.00444840
mov dword [esp + 0x280], 0xffffffff
cmp dword [esp + 0x30], 0x10
jb 0x46dcd0
mov edx, dword [esp + 0x1c]
push edx
call fcn.0048d634
add esp, 4
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
push edi
mov eax, edx
lea ecx, [esp + 0x78]
shr eax, 0x1f
push 0x100
push ecx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
lea esi, [edx + eax - 1]
call fcn.00490b0d
add esp, 0xc
test eax, eax
je 0x46dd75
cmp byte [esp + 0x74], bl
je 0x46dd5e
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x7c]
push 0x4dce88
push ecx
mov byte [esp + 0x44], bl
call fcn.0048e15e
mov al, byte [esp + 0x44]
add esp, 0x10
cmp al, bl
je 0x46dd5e
cmp al, 0x2e
je 0x46dd75
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0x400c0
push esi
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
call fcn.0046ddb0
push edi
lea edx, [esp + 0x78]
push 0x100
push edx
call fcn.00490b0d
add esp, 0xc
test eax, eax
jne 0x46dd12
push edi
call fcn.0048ed93
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0048d5a8
add esp, 0x278
ret

Function at 0x477235
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor edi, edi
xor eax, eax
push 4
mov esi, ecx
pop ecx
cmp ebx, 1
jne 0x477251
mov eax, 0x80000000
jmp 0x477262
cmp ebx, 2
je 0x47725d
cmp ebx, ecx
jne 0x477262
push 2
pop ecx
mov eax, 0xc0000000
push edi
push 0x80
push ecx
push edi
push 1
push eax
push dword [esp + 0x28]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esi + 0x88], eax
cmp eax, edi
je 0x4772b4
push edi
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
push dword [esp + 0x10]
mov dword [esi + 0x8c], eax
lea eax, [esi + 8]
push eax
mov dword [esi + 4], ebx
call fcn.00492fa0
pop ecx
pop ecx
push edi
push edi
push edi
push dword [esi + 0x88]
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov al, 1
jmp 0x4772b6
xor al, al
pop edi
pop esi
pop ebx
ret 8
Function at 0x4772bc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4eadc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
call fcn.004924c9
add esp, 0xc
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0xc], 1
push 4
pop ecx
jne 0x477302
mov eax, 0x80000000
push 4
jmp 0x47731c
cmp dword [ebp + 0xc], 2
jne 0x47730f
mov eax, 0xc0000000
jmp 0x4772fe
cmp dword [ebp + 0xc], 4
jne 0x47731d
mov eax, 0x40000000
push 2
pop ecx
push ebx
push 0x80
push ecx
push ebx
push 1
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esi + 0x88], eax
cmp eax, ebx
je 0x477372
push ebx
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [esi + 0x8c], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
lea eax, [esi + 8]
push edi
push eax
call fcn.00492fa0
pop ecx
pop ecx
push ebx
push ebx
push ebx
push dword [esi + 0x88]
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov al, 1
jmp 0x477374
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d5a8
leave
ret 8

Function at 0x4774f1
Capabilities:
Create process on windows

Disassembly:
push esi
push 0x4ce58c
push 0x4ce57c
call fcn.00477073
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x477529
push esi
push dword [esp + 0xc]
call fcn.004907b5
push esi
call fcn.0048ed93
add esp, 0xc
push 5
push 0x4ce56c
call dword [sym.imp.kernel32.dll_WinExec]
push 0
call fcn.004933b0
pop esi
push esi
mov esi, ecx
call fcn.00478af3
test byte [esp + 8], 1
je 0x477547
push esi
call fcn.0048d634
pop ecx
mov eax, esi
pop esi
ret 4

Function at 0x478ff8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push 0
push dword [esi + 0x88]
call dword [sym.imp.kernel32.dll_GetFileSize]
add eax, 0xfffffffc
push eax
mov ecx, esi
call fcn.00478ab0
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [esi + 0x88]
call dword [sym.imp.kernel32.dll_ReadFile]
lea eax, [ebp - 4]
push eax
call fcn.00478f19
pop ecx
pop esi
leave
ret
Function at 0x479403
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x9c
mov eax, dword [0x4eadc8]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
push 1
xor ebx, ebx
mov esi, 0x4ce540
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x6c], ebx
call fcn.00477235
test al, al
jne 0x47945a
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.00477215
xor al, al
mov ecx, dword [ebp + 0x70]
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d5a8
add ebp, 0x74
leave
ret
mov eax, dword [ebp + 0x6c]
cmp eax, 4
ja 0x479471
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.00477215
mov al, bl
jmp 0x479449
push 1
push ebx
add eax, 0xfffffffc
push eax
push dword [ebp + 0x68]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x68]
call dword [sym.imp.kernel32.dll_ReadFile]
lea eax, [ebp - 0x24]
push eax
call fcn.00478f19
pop ecx
mov bl, al
jmp 0x479462

Function at 0x47ebb0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x9c
push ebx
mov ebx, dword [esp + 0xa8]
push esi
test ebx, ebx
je 0x47ecb3
mov esi, dword [esp + 0xa8]
test esi, esi
je 0x47ecb3
mov eax, dword [esi]
mov ecx, dword [eax + 0x6c]
push ebp
push edi
push esi
call ecx
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
jne 0x47ebf9
push 0x4ce9a4
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x18]
push edx
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ebx, dword [esp + 0xc0]
test ebx, ebx
jne 0x47ec1e
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xc4]
test ebp, ebp
jne 0x47ec2d
mov ebp, dword [esp + 0x20]
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
lea ecx, [esp + 0x30]
push ecx
push esi
mov dword [esp + 0x38], 0x7c
mov dword [esp + 0x3c], 6
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x44]
lea ecx, [esp + 0x10]
push ecx
push esi
call edx
mov dword [esp + 0x14], eax
test eax, eax
jne 0x47ec9d
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x38]
push 0xcc0020
push ebp
push ebx
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x24]
push edi
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov ecx, dword [edx + 0x68]
push eax
push esi
call ecx
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x9c
ret
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x9c
ret