joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b0f9
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push 0x44
mov eax, 0x1017c55
call fcn.01013191
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x14], esi
push 1
push 0x100225c
push 0x80000000
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.01008bf2
test eax, eax
jne 0x100b1da
push esi
push esi
push esi
push esi
push 0x1002240
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100b1da
push 0x100221c
lea ecx, [ebp - 0x10]
call fcn.0100abd2
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
mov byte [ebp - 4], 1
jle 0x100b185
mov edi, 0x1002218
push edi
lea ecx, [ebp - 0x10]
call fcn.0100aaea
mov eax, dword [ebx]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.0100a5ca
push edi
lea ecx, [ebp - 0x10]
call fcn.0100aaea
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.010132be
mov eax, dword [ebp - 0x10]
or dword [ebp - 0x4c], 0x2000100
mov dword [ebp - 0x40], eax
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x44], 0x1001f44
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x50], edi
call dword [0x1001208]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.01008d5a
jmp 0x100b1f0
push esi
push esi
push 0x10000
push 0x30000001
push dword [ebp + 8]
mov ecx, edi
call fcn.01009905
lea ecx, [ebp - 0x14]
call fcn.01008bd4
call fcn.0101327d
ret 4

Function at 0x100db40
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x100db7d
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp dword [ebp - 4], 0
je 0x100db8c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x100db9c
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop esi
leave
ret 0x18

Function at 0x100dba8
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp + 0xc]
push eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
jne 0x100dbf0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp dword [ebp - 4], edi
je 0x100dbfe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jle 0x100dc0e
and esi, 0xffff
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
leave
ret 0x18
Function at 0x1013980
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1013993
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101398f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x10139c0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x10139ff
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10139f5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1013a01
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x10139e5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1014d7b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x101c20c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002e98
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1014e50
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1014e3f
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x1014e29
push edi
push dword [ebp - 0x110]
push eax
call dword [0x1001154]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x1014e3f
push eax
push edi
push dword [ebp - 0x110]
call fcn.01014d13
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x1014e52
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01013069
leave
ret 4
Function at 0x1015cd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x20019
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
mov ebx, 0xffff
mov edi, 0x80070000
jle 0x1015d15
and eax, ebx
or eax, edi
cmp eax, esi
mov dword [ebp + 0xc], eax
jl 0x1015d84
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call esi
test eax, eax
jle 0x1015d39
and eax, ebx
or eax, edi
test eax, eax
mov dword [ebp + 0xc], eax
jl 0x1015d7b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x18]
ja 0x1015d74
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 0x10], 1
push dword [ebp - 4]
call esi
test eax, eax
jle 0x1015d6f
and eax, ebx
or eax, edi
mov dword [ebp + 0xc], eax
jmp 0x1015d7b
mov dword [ebp + 0xc], 0x80004005
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x1016bee
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101c20c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp word [0x101d5a0], si
jne 0x1016c86
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push 0x10058f0
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1016c86
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x10059a8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x1016c86
push 3
push dword [esi*8 + 0x1005740]
lea eax, [ebp - 0xc]
push eax
call fcn.010132ca
add esp, 0xc
test eax, eax
je 0x1016c78
inc esi
cmp esi, 0x1c
jb 0x1016c57
jmp 0x1016c86
mov ax, word [esi*8 + 0x1005744]
mov word [0x101d5a0], ax
mov ecx, dword [ebp - 4]
mov ax, word [0x101d5a0]
xor ecx, ebp
pop esi
call fcn.01013069
leave
ret
Function at 0x43e460
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push 0x406338
call dword [fcn.004011fc]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
jne 0x43e4b2
push eax
call dword [fcn.00401200]
push 0x10
push 0x406330
push 0x406310
push 0
call dword [fcn.00401370]
pop ebx
add esp, 0x108
ret
mov eax, dword [0x401e88]
push esi
push edi
xor edi, edi
test eax, eax
je 0x43e50d
mov esi, 0x401e88
movzx ecx, word [esi + 8]
push ecx
push eax
push edi
lea edx, [esp + 0x20]
push 0x4062f8
push edx
call dword [fcn.0040124c]
lea eax, [esp + 0x28]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43e4e5
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call dword [fcn.00401204]
mov eax, dword [esi + 0xc]
add esi, 0xc
inc edi
test eax, eax
jne 0x43e4c4
mov eax, dword [0x401c88]
xor esi, esi
test eax, eax
je 0x43e571
mov ebx, 0x401c88
push ebp
mov edi, edi
push eax
lea eax, [esi + edi]
push eax
lea ecx, [esp + 0x20]
push 0x4062e0
push ecx
call dword [fcn.0040124c]
lea eax, [esp + 0x28]
add esp, 0x10
lea ebp, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e540
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
sub eax, ebp
push eax
lea eax, [esp + 0x24]
push eax
push ecx
call dword [fcn.00401204]
mov eax, dword [ebx + 0xc]
add ebx, 0xc
inc esi
test eax, eax
jne 0x43e520
mov ebx, dword [esp + 0x14]
pop ebp
lea edx, [esi + edi - 1]
push edx
lea eax, [esp + 0x18]
push 0x4062a0
push eax
call dword [fcn.0040124c]
add esp, 0xc
lea eax, [esp + 0x14]
pop edi
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e592
push 0
lea ecx, [esp + 8]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
push ebx
call dword [fcn.00401204]
push ebx
call dword [fcn.00401200]
pop ebx
add esp, 0x108
ret

Function at 0x4408a0
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov esi, ecx
mov cl, byte [esp + 0x10]
test cl, cl
push edi
mov eax, 0xc0000000
mov edi, 4
mov ebx, 2
mov byte [esi], cl
je 0x4408ca
mov edi, ebx
mov eax, 0x80000000
mov ebx, 4
push 0
push 0x80
push 3
push 0
push 1
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [fcn.004011fc]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x44092d
push 0
push eax
call dword [fcn.004011ec]
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push edi
push 0
push ecx
mov dword [esi + 0x10], eax
call dword [0x4011f0]
test eax, eax
mov dword [esi + 8], eax
je 0x440926
push 0
push 0
push 0
push ebx
push eax
call dword [0x4011f4]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x440935
mov ecx, esi
call fcn.00440850
pop edi
pop esi
xor al, al
pop ebx
ret 8
pop edi
pop esi
mov al, 1
pop ebx
ret 8
Function at 0x4432d0
Capabilities:
Compare security identifiers
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
push eax
mov ax, cs
test al, 4
jne 0x4432ed
mov dword [ebp - 8], 1
pop eax
cmp dword [ebp - 8], ebx
je 0x443406
lea eax, [ebp - 8]
push eax
push ebx
push 8
call dword [0x4011cc]
push eax
call dword [sym.imp.advapi32.dll_OpenThreadToken]
test eax, eax
mov esi, dword [fcn.004011d0]
jne 0x44333d
call esi
cmp eax, 0x3f0
jne 0x4433f4
lea ecx, [ebp - 8]
push ecx
push 8
call dword [0x4011d4]
push eax
call dword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x4433f4
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.advapi32.dll_GetTokenInformation]
lea edx, [ebp - 4]
push edx
push ebx
push ebx
push 2
push eax
call edi
test eax, eax
jne 0x4433f4
call esi
cmp eax, 0x7a
jne 0x4433f4
mov ecx, dword [ebp - 4]
add ecx, 3
and ecx, 0xfffffffc
push ecx
call fcn.00461694
mov ecx, dword [ebp - 8]
add esp, 4
mov esi, eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
push esi
push 2
push ecx
call edi
test eax, eax
je 0x4433eb
lea edx, [ebp - 0xc]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], 5
call dword [entry0]
test eax, eax
je 0x4433eb
mov eax, dword [esi]
xor edi, edi
cmp eax, ebx
jbe 0x4433eb
lea ebx, [esi + 4]
lea esp, [esp]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx]
push ecx
push edx
call dword [sym.imp.advapi32.dll_EqualSid]
test eax, eax
jne 0x4433fd
mov eax, dword [esi]
inc edi
add ebx, 8
cmp edi, eax
jb 0x4433d0
push esi
call fcn.00462416
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00462416
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443410
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
mov eax, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
xor ebx, ebx
push 0xf003f
push ebx
push 0x406744
push 0x80000001
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x443459
xor eax, eax
pop ebx
add esp, 0x10
ret
push esi
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x406738
push ecx
call esi
test eax, eax
je 0x443488
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov dl, byte [esp + 8]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
mov byte [0x470aec], dl
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x40672c
push eax
call esi
test eax, eax
jne 0x443480
mov cl, byte [esp + 8]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
mov byte [0x470bfc], cl
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x406724
push edx
call esi
test eax, eax
jne 0x443480
mov al, byte [esp + 8]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
mov byte [0x470f1c], al
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x406714
push ecx
call esi
test eax, eax
jne 0x443480
mov dl, byte [esp + 8]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
mov byte [0x470db1], dl
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x406704
push eax
call esi
test eax, eax
jne 0x443480
mov cl, byte [esp + 8]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
mov byte [0x470970], cl
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x4066f8
push edx
call esi
test eax, eax
jne 0x443480
mov al, byte [esp + 8]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
mov byte [0x4707c4], al
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x4066e4
push ecx
call esi
test eax, eax
jne 0x443480
mov dl, byte [esp + 8]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
mov byte [0x470938], dl
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x4066dc
push eax
call esi
test eax, eax
jne 0x443480
mov cl, byte [esp + 8]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
mov byte [0x470db0], cl
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x4066d4
push edx
call esi
test eax, eax
jne 0x443480
mov ecx, dword [esp + 0xc]
mov al, byte [esp + 8]
push ecx
mov byte [0x470e0c], al
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x444330
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c7cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebp
or ebp, 0xffffffff
push esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x160]
push 1
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x150], 0
call fcn.004408a0
test al, al
je 0x4443a6
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004533c0
test al, al
jne 0x4443cd
lea ecx, [esp + 8]
call fcn.00440850
lea ecx, [esp + 8]
mov dword [esp + 0x148], ebp
call fcn.00440850
pop esi
pop ebp
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
add esp, 0x144
ret
lea edx, [esp + 0x3c]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4443d5
mov eax, dword [esp + 0x15c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4443e8
push edi
lea edi, [esp + 0x40]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4443f7
mov edx, dword [esp + 0x158]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push edx
lea ecx, [esp + 0x28]
call fcn.00453380
push 0
push 0x80
push 4
push 0
push 3
mov edi, eax
push 0xc0000000
lea eax, [esp + 0x58]
push eax
call dword [fcn.004011fc]
mov esi, eax
cmp esi, ebp
jne 0x444466
push ebp
call dword [fcn.00401200]
mov ecx, dword [esp + 0x15c]
push 0x10
push 0x406330
push 0x4068fc
push ecx
call dword [fcn.00401370]
jmp 0x4444b9
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x154]
push 0
lea edx, [esp + 0x24]
push edx
push edi
add eax, ecx
push eax
push esi
call dword [fcn.00401204]
test eax, eax
push esi
jne 0x4444aa
call dword [fcn.00401200]
mov edx, dword [esp + 0x15c]
push 0x10
push 0x406330
push 0x4068e4
push edx
call dword [fcn.00401370]
jmp 0x4444b9
call dword [fcn.00401200]
lea ecx, [esp + 0xc]
call fcn.00440850
lea ecx, [esp + 0xc]
mov dword [esp + 0x14c], ebp
call fcn.00440850
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x144
ret
Function at 0x4468d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x160
push ebx
push ebp
mov ebp, dword [0x471b1c]
push esi
push edi
xor eax, eax
test ebp, ebp
mov byte [esp + 0x68], 0
mov ecx, 0x41
lea edi, [esp + 0x69]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], ebp
stosw word es:[edi], ax
je 0x446b18
xor eax, eax
mov ecx, 0x13
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [0x470e14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x68]
push edx
mov dword [esp + 0x1c], 0x4c
mov dword [esp + 0x3c], 0x104
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], 0x406ad4
mov dword [esp + 0x4c], 0x406ac8
mov dword [esp + 0x48], 0x406470
mov dword [esp + 0x34], 1
mov dword [esp + 0x50], 4
mov dword [esp + 0x20], ecx
call dword [0x40138c]
test eax, eax
je 0x446b18
lea eax, [esp + 0x68]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x446977
sub eax, edx
cmp dword [esp + eax + 0x65], 0x7478742e
je 0x4469a8
lea edi, [esp + 0x68]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x446990
mov eax, dword [0x406ac0]
mov cl, byte [0x406ac4]
mov dword [edi], eax
mov byte [edi + 4], cl
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x80]
push edx
call dword [fcn.004011fc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4469f2
push eax
call dword [fcn.00401200]
push 0x10
push 0x406330
push 0x4068fc
push 0
call dword [fcn.00401370]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test ebp, ebp
jle 0x446af5
mov edi, dword [fcn.00401204]
push 0x401e4c
push 0
push ebx
mov ecx, 0x471b18
call fcn.00441fe0
mov ebp, dword [0x401e64]
cmp ebp, 0x10
mov eax, dword [0x401e50]
jae 0x446a29
mov eax, 0x401e50
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x446a30
sub eax, ecx
cmp ebp, 0x10
mov ecx, dword [0x401e50]
jae 0x446a49
mov ecx, 0x401e50
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push esi
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 4
push 0x406ab8
push esi
call edi
push 0
push 0x406423
mov ecx, 0x401e4c
call fcn.00436410
push 0x401e4c
push 1
push ebx
mov ecx, 0x471b18
call fcn.00441fe0
mov ebp, dword [0x401e64]
cmp ebp, 0x10
mov eax, dword [0x401e50]
jae 0x446a9e
mov eax, 0x401e50
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x446aa1
sub eax, ecx
cmp ebp, 0x10
mov ecx, dword [0x401e50]
jae 0x446aba
mov ecx, 0x401e50
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push esi
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 2
push 0x406ab4
push esi
call edi
push 0
push 0x406423
mov ecx, 0x401e4c
call fcn.00436410
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jl 0x446a02
mov edx, dword [0x470e14]
push 0x40000
push 0x406aa8
lea ecx, [esp + 0x70]
push ecx
push edx
call dword [fcn.00401370]
push esi
call dword [fcn.00401200]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452d00
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x40c
push ebx
mov ebx, dword [esp + 0x414]
cmp dword [ebx + 4], 0x100
push ebp
mov ebp, ecx
ja 0x452d27
pop ebp
xor al, al
pop ebx
add esp, 0x40c
ret 8
mov eax, dword [ebp + 0x838]
push esi
push edi
mov edi, dword [ebp + 0x834]
cmp edi, eax
je 0x452dad
lea esi, [edi + 0x20]
lea esp, [esp]
mov al, byte [esi + 0xc]
test al, al
jne 0x452d9d
mov ecx, dword [esi]
test ecx, ecx
je 0x452d9d
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
test eax, eax
je 0x452d9d
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00437340
cmp dword [esi - 8], 0x10
jb 0x452d6e
mov eax, dword [esi - 0x1c]
jmp 0x452d71
lea eax, [esi - 0x1c]
push eax
call dword [fcn.0040108c]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
lea eax, [esp + 0x10]
push eax
sub ecx, 0x100
push ecx
add edx, 0x100
push edx
lea ecx, [esp + 0x20]
call fcn.0043f650
test al, al
jne 0x452dbc
mov eax, dword [ebp + 0x838]
add edi, 0x30
add esi, 0x30
cmp edi, eax
jne 0x452d40
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x40c
ret 8
mov esi, dword [esp + 0x424]
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esi + 4]
mov byte [esi], 1
call fcn.00436320
mov eax, dword [esp + 0x10]
add eax, 0x100
pop edi
mov dword [esi + 0x20], eax
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x40c
ret 8

Function at 0x4533c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
cmp ebp, 0x160
push esi
mov esi, ecx
jb 0x4533fd
mov edx, dword [esp + 0xc]
mov dword [esi + 8], edx
cmp word [edx], 0x5a4d
jne 0x4533fd
mov ecx, dword [edx + 0x3c]
lea eax, [ecx + edx]
cmp eax, edx
jb 0x4533fd
add ecx, 0x120
cmp ebp, ecx
jb 0x4533fd
mov dword [esi + 0xc], eax
cmp dword [eax], 0x4550
je 0x453404
pop esi
xor al, al
pop ebp
ret 8
add eax, 4
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
add eax, 0x18
mov dword [esi + 0x14], eax
movzx ecx, word [edx + 0x10]
add ecx, eax
push ebx
mov ebx, eax
mov dword [esi + 0x18], ecx
cmp word [ebx], 0x10b
je 0x453431
pop ebx
pop esi
xor al, al
pop ebp
ret 8
push edi
movzx edi, word [edx + 2]
mov edx, dword [esp + 0x14]
sub edx, ecx
add edx, ebp
mov eax, 0xcccccccd
mul edx
shr edx, 5
cmp edi, edx
ja 0x453484
xor edx, edx
test edi, edi
jle 0x45346f
lea eax, [ecx + 0x14]
mov ecx, dword [eax - 4]
test ecx, ecx
je 0x453460
cmp dword [eax], ebp
jae 0x453484
mov ecx, dword [esi + 0x10]
movzx ecx, word [ecx + 2]
inc edx
add eax, 0x28
cmp edx, ecx
jl 0x453455
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0x3c]
jb 0x453480
push eax
mov ecx, esi
call fcn.00453280
dec eax
cmp eax, ebp
jb 0x45348d
pop edi
pop ebx
pop esi
xor al, al
pop ebp
ret 8
mov edx, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi + 4], ebp
mov dword [esi], edx
pop esi
mov al, 1
pop ebp
ret 8