joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409b62
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x40cd80
call fcn.00409d68
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x409ba2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409ba2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x409bba
cmp eax, 0x20b
je 0x409ba7
mov dword [ebp - 0x1c], ebx
jmp 0x409bce
cmp dword [ecx + 0x84], 0xe
jbe 0x409ba2
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x409bc8
cmp dword [ecx + 0x74], 0xe
jbe 0x409ba2
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x410154], 0xffffffff
or dword [0x410158], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x41014c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x410148]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x410150], eax
call fcn.00409e04
call fcn.0040481d
cmp dword [0x410138], ebx
jne 0x409c2e
push fcn.0040481d
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00409e92
push 0x41000c
push 0x410008
call sub.MSVCR71.dll__initterm
push 0x409e48
call fcn.00409df2
mov eax, dword [0x410144]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x410140]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x409c82
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x410004
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x409d00
cmp al, bl
je 0x409cac
cmp dword [ebp - 0x20], ebx
jne 0x409d00
mov al, byte [esi]
cmp al, bl
je 0x409cbc
cmp al, 0x20
ja 0x409cbc
inc esi
mov dword [ebp - 0x24], esi
jmp 0x409cac
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x409cd8
movzx eax, word [ebp - 0x54]
jmp 0x409cdb
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.004054af
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x409cf8
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x409d55
cmp al, 0x22
jne 0x409d0f
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x409d22
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x409c9a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00409da3
ret
Function at 0x4100e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00427230
xor eax, eax
nop
mov cl, byte [eax + 0x4a3248]
mov dl, byte [eax + 0x4a3240]
mov byte [ebp + eax - 0x20], cl
mov byte [ebp + eax - 0x18], dl
inc eax
cmp eax, 8
jl 0x4100f0
lea eax, [ebp - 8]
push 0x498d84
push eax
call fcn.00414470
push 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.004131e0
add esp, 0x14
push ebx
push esi
mov dword [ebp - 0xc], 0
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x10000
lea edx, [ebp - 0x10020]
push 1
push edx
call fcn.00415e7b
add esp, 0x10
cmp eax, 0x18
jl 0x4101b1
mov edi, eax
lea esi, [edi - 0x14]
test esi, esi
jle 0x410180
xor edx, edx
xor ecx, ecx
mov bl, byte [ebp + ecx - 0x20]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x10020]
je 0x41019e
cmp ecx, 0x14
je 0x42acf9
inc edx
cmp edx, esi
jl 0x410160
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
lea edx, [ecx + edi - 0x14]
mov ecx, dword [eax]
push 1
push 0xffffffffffffffec
push ecx
mov dword [ebp - 0xc], edx
call fcn.00416241
add esp, 0xc
jmp 0x410134
mov bl, byte [ebp + ecx - 0x1f]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001f]
je 0x4101bf
inc ecx
jmp 0x410172
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov bl, byte [ebp + ecx - 0x1e]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001e]
je 0x4101d4
add ecx, 2
jmp 0x410172
mov bl, byte [ebp + ecx - 0x1d]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001d]
jne 0x42acf1
mov bl, byte [ebp + ecx - 0x1c]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001c]
je 0x42ace0
add ecx, 4
jmp 0x410172
add ecx, 5
cmp ecx, 0x14
jl 0x410162
jmp 0x410172
add ecx, 3
jmp 0x410172
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
lea ecx, [eax + edx + 0x14]
mov edx, dword [esi]
push 0
push ecx
push edx
call fcn.00416241
mov eax, dword [esi]
push eax
push 4
lea ecx, [ebp - 8]
push 1
push ecx
call fcn.00415e7b
lea edx, [ebp - 8]
push 0x498d74
push edx
mov byte [ebp - 4], 0
call fcn.00415ea0
add esp, 0x24
neg eax
sbb eax, eax
and eax, 4
jmp 0x4101b6
Function at 0x410280
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
or ecx, 0xffffffff
mov ebx, 0x4956ec
call fcn.00410210
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00414470
push esi
call fcn.00411c76
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.00410340
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.00410370
xor ebx, ebx
mov dword [edi + 8], ebx
xor ecx, ecx
mov eax, ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
movzx edx, byte [esp + ecx + 0x19]
add eax, edx
movzx edx, byte [esp + ecx + 0x1a]
add eax, edx
movzx edx, byte [esp + ecx + 0x1b]
add ecx, 4
add eax, edx
cmp ecx, 0x10
jl 0x4102d4
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
push 0x498d64
push eax
call fcn.00415b39
add esp, 8
mov dword [edi], eax
cmp eax, ebx
je 0x42caba
push edi
call fcn.004100e0
cmp eax, ebx
je 0x42cac4
mov ecx, dword [edi]
push ecx
mov esi, eax
call fcn.00415bbd
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x410333
mov edx, dword [edi]
push edx
push 0x10
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00415e7b
add esp, 0x10
push 0x99f2
push 0x10
lea ecx, [esp + 0x10]
push ecx
call fcn.0044ffc1
xor eax, eax
mov dword [edi + 8], ebx
xor ecx, ecx
movzx edx, byte [esp + eax + 8]
inc eax
imul ecx, edx
cmp eax, 0x10
jl 0x42caf0
mov eax, dword [edi]
push eax
mov dword [edi + 8], ecx
call fcn.00416152
add esp, 4
mov dword [edi + 4], eax
xor eax, eax
jmp 0x410333

Function at 0x410340
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.004135c0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret
Function at 0x436ae1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x464]
test eax, eax
je 0x436af9
cmp eax, 0x10000
jne 0x436b1d
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.00415e7b
add esp, 0x10
mov dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov edx, dword [esi + 0x45c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
pop ebp
ret 4

Function at 0x436b38
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x460]
test eax, eax
je 0x436b69
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x458]
push ecx
push eax
push 1
push edx
call fcn.004150d6
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 4

Function at 0x436b6e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
cmp dword [esi + 0x460], 0x10000
jne 0x436bbd
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.004150d6
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 8

Function at 0x436c6e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 1
jne 0x436c95
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.004131e0
add esp, 0xc
jmp 0x436ca9
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [ebp - 8]
push 1
push eax
call fcn.00415e7b
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx edx, byte [ebp - 3]
movzx eax, byte [ebp - 2]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, edx
movzx edx, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0xc]
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
lea ecx, [ebp - 8]
push 0x498d74
push ecx
mov byte [ebp - 4], 0
call fcn.00415ea0
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x436d4b
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x4b8628], eax
mov edx, 1
mov eax, 0x4b8628
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4b8fe4
jl 0x436d61
mov dword [0x4a3104], 1
mov dword [0x4b8ff8], 1
pop edi
pop ebp
ret
Function at 0x447376
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x34]
push edi
push 0x498d98
push eax
mov dword [ebp - 4], 0x414fbd
call fcn.00415b39
mov edi, eax
add esp, 8
mov dword [ebp - 8], edi
test edi, edi
jne 0x4473ca
push eax
push 0xdeadbeef
push 0x1f
push esi
call fcn.00447267
mov bl, al
lea eax, [ebp - 8]
push eax
call fcn.0043632e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp + 8], 1
jmp 0x4473d6
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0x400
lea edx, [ebp - 0x408]
push edx
push eax
call dword [0x487764]
test eax, eax
je 0x447448
mov eax, dword [ebp + 8]
test eax, eax
je 0x44741c
push edi
push 1
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.004150d6
mov eax, dword [ebp + 8]
add esp, 0x10
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x4473d6
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x44746d
push eax
push 0xdeadbeef
push 0x21
push esi
call fcn.00447267
lea ecx, [ebp - 8]
push ecx
mov bl, al
call fcn.0043632e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0xdeadbeef
push 0x20
push esi
call fcn.00447267
lea edx, [ebp - 8]
push edx
mov bl, al
call fcn.0043632e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0
push esi
call fcn.00447267
lea edx, [ebp - 8]
push edx
mov bl, al
call fcn.0043632e
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x447da5
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4b8ff8], 0
push esi
push edi
mov esi, 0x4b8628
jne 0x447dc5
push 0
call fcn.00415a2a
push eax
call fcn.00436d4b
add esp, 8
mov dword [0x4a3104], 0x270
mov dword [0x4b8624], esi
mov edx, 0xe3
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
xor edi, ecx
and edi, 0x7ffffffe
xor edi, dword [esi]
and eax, 0x9908b0df
shr edi, 1
xor edi, dword [esi + 0x634]
add esi, 4
xor edi, eax
dec edx
mov dword [esi - 4], edi
jne 0x447dda
mov edx, 0x18c
lea esp, [esp]
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
xor edi, ecx
and edi, 0x7ffffffe
xor edi, dword [esi]
and eax, 0x9908b0df
shr edi, 1
xor edi, dword [esi - 0x38c]
add esi, 4
xor edi, eax
dec edx
mov dword [esi - 4], edi
jne 0x447e15
mov ecx, dword [0x4b8628]
mov dl, cl
and dl, 1
movzx eax, dl
mov edx, dword [esi]
neg eax
sbb eax, eax
xor edx, ecx
and edx, 0x7ffffffe
xor edx, dword [esi]
and eax, 0x9908b0df
shr edx, 1
xor edx, dword [esi - 0x38c]
pop edi
xor edx, eax
mov dword [esi], edx
pop esi
ret
Function at 0x448bc6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 0x18]
xor esi, esi
mov byte [0x4a85d6], 0
test edi, edi
je 0x448c0b
mov byte [0x4a85d7], 1
call dword [0x48716c]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x18]
push eax
push esi
lea ecx, [ebp - 8]
push ecx
push 0x447ea0
push esi
push esi
mov dword [ebp - 4], edi
call fcn.00414b9f
add esp, 0x18
mov esi, eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [0x4876dc]
mov edi, eax
test esi, esi
je 0x448c3e
push 0xffffffffffffffff
push esi
mov byte [0x4a85d7], 0
call dword [0x4872fc]
push esi
call dword [0x487310]
cmp byte [0x4a85d6], 1
jne 0x448c50
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x449a6a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
lea ecx, [eax + 4]
push edi
mov edi, dword [eax + edx]
mov dword [esi], ecx
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413689
mov ebx, eax
lea eax, [edi + edi]
push eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
push eax
push ebx
call fcn.004131e0
lea eax, [edi + edi]
add dword [esi], eax
xor ecx, ecx
mov word [eax + ebx], cx
add esp, 0x10
xor eax, eax
test edi, edi
jle 0x449ac8
xor word [ebx + eax*2], di
inc eax
cmp eax, edi
jl 0x449abf
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x44ffc1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xdc]
push eax
call fcn.00447bf3
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0xdc]
push edx
call fcn.00447b4d
xor esi, esi
test edi, edi
je 0x450009
lea eax, [ebp - 0xdc]
push eax
call fcn.00447bc2
xor byte [esi + ebx], al
inc esi
cmp esi, edi
jb 0x44fff5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4502d6
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
dec dword [0x4a3104]
jne 0x4502e7
call fcn.00447da5
mov ecx, dword [0x4b8624]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4b8624], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [ebp - 4], edx
fild dword [ebp - 4]
jns 0x45032e
fadd qword [0x49d918]
fmul qword [0x49d928]
mov esp, ebp
pop ebp
ret
Function at 0x457e97
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
mov eax, dword [esi]
push eax
push 4
mov edi, 1
lea ecx, [ebp - 0xc]
push edi
push ecx
call fcn.00415e7b
add esp, 0x10
push 0x18ee
push 4
lea edx, [ebp - 0xc]
push edx
call fcn.0044ffc1
lea eax, [ebp - 0xc]
push 0x498da0
push eax
mov byte [ebp - 8], 0
call fcn.00415ea0
add esp, 8
test eax, eax
jne 0x45802d
mov ecx, dword [esi]
add dword [ebp - 4], edi
push ecx
push edi
lea edx, [ebp + 8]
push 4
push edx
call fcn.00415e7b
mov edi, dword [ebp + 8]
mov eax, dword [esi]
push eax
xor edi, 0xadbc
lea ebx, [edi + edi]
push ebx
lea ecx, [ebp - 0x220]
push 1
push ecx
call fcn.00415e7b
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea edx, [ebp - 0x220]
push edx
call fcn.0044ffc1
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x430]
xor eax, eax
push edx
mov word [ebp + ebx - 0x220], ax
call fcn.00413598
mov eax, dword [esi]
push eax
push 1
lea ecx, [ebp + 8]
push 4
push ecx
call fcn.00415e7b
mov edi, dword [ebp + 8]
mov edx, dword [esi]
push edx
xor edi, 0xf820
lea ebx, [edi + edi]
push ebx
lea eax, [ebp - 0x220]
push 1
push eax
call fcn.00415e7b
add esp, 0x28
add edi, 0xf479
push edi
push ebx
lea ecx, [ebp - 0x220]
push ecx
call fcn.0044ffc1
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x220]
push eax
xor edx, edx
push ecx
mov word [ebp + ebx - 0x220], dx
call fcn.00413598
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 0x430]
push edi
push edx
call fcn.00413f66
add esp, 0x10
test eax, eax
je 0x458022
push 0x498d94
push edi
call fcn.00413f66
add esp, 8
test eax, eax
jne 0x457fe2
cmp dword [ebp - 4], eax
je 0x458022
mov eax, dword [esi]
push 1
push 1
push eax
call fcn.00416241
mov ecx, dword [esi]
add esp, 0xc
push ecx
push 1
lea edx, [ebp - 0x10]
push 4
push edx
call fcn.00415e7b
mov eax, dword [ebp - 0x10]
xor eax, 0x87bc
mov dword [ebp - 0x10], eax
add eax, 0x18
push 1
push eax
mov eax, dword [esi]
push eax
call fcn.00416241
add esp, 0x1c
jmp 0x457ead
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45803b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
xor ecx, ecx
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 4]
mov word [ebp - 0x44c], cx
mov ecx, dword [esi]
push eax
xor edx, edx
push ecx
mov word [ebp - 0x242], dx
mov dword [ebp - 4], 1
call fcn.00416241
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea edx, [ebp - 0x680]
push edx
push eax
push esi
call fcn.00457e97
test eax, eax
je 0x4580d4
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esi]
push ecx
push 1
lea edx, [ebp + 0x17]
push 1
push edx
call fcn.00415e7b
mov eax, dword [esi]
push eax
push 1
lea ecx, [ebp + 8]
push 4
push ecx
call fcn.00415e7b
mov edx, dword [esi]
mov edi, dword [ebp + 8]
push edx
push 1
lea eax, [ebp + 8]
push 4
push eax
xor edi, 0x87bc
call fcn.00415e7b
mov edx, dword [esi]
mov ecx, dword [ebp + 8]
push edx
push 1
lea eax, [ebp + 8]
xor ecx, 0x87bc
push 4
push eax
mov dword [ebx], ecx
call fcn.00415e7b
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
add esp, 0x40
push 1
xor eax, 0xa685
push 0x10
push ecx
mov dword [ebp - 8], eax
call fcn.00416241
mov edx, dword [ebx]
add esp, 0xc
push edx
call fcn.004143db
add esp, 4
push edi
mov dword [ebp + 0xc], eax
call fcn.004143db
add esp, 4
mov ebx, eax
mov eax, dword [esi]
push eax
push 1
push edi
push ebx
call fcn.00415e7b
mov ecx, dword [esi + 8]
add esp, 0x10
add ecx, 0x2477
push ecx
push edi
push ebx
call fcn.0044ffc1
push edi
push ebx
lea edx, [ebp - 4]
push edx
call fcn.00436cf3
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x4581b4
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00414568
add esp, 4
push ebx
call fcn.00414568
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x17], 1
jne 0x458223
xor eax, eax
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x1c], eax
mov eax, 1
xor edx, edx
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], eax
mov word [ebp - 0x44c], dx
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x470]
xor ecx, ecx
push eax
mov word [ebp - 0x242], cx
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x470], edx
call fcn.0045017b
push ebx
call fcn.00414568
jmp 0x45822f
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00414568
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
add esp, 4
pop edi
pop esi
mov dword [edx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x463081
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0xd0], 0
je 0x4630c3
test al, al
je 0x4630c3
lea eax, [esi + 0xd4]
push eax
call fcn.004364db
push esi
push 0
push 0x46246f
call fcn.00416384
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
pop esi
pop ecx
pop ebp
ret 8
push eax
push esi
call fcn.00462f44
pop esi
pop ecx
pop ebp
ret 8

Function at 0x46ff13
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov al, byte [0x4a85cf]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x8000
push edi
mov byte [ebp - 4], al
call fcn.00414f59
add esp, 4
push eax
call fcn.00414e6e
add esp, 8
mov esi, eax
push ebx
mov dword [ebp - 8], esi
call fcn.00448cd3
test al, al
je 0x46ff70
push edi
push ebx
call fcn.0044809f
push eax
push 1
push ebx
call fcn.0046fa27
push eax
call fcn.004150d6
add esp, 0x10
mov ebx, eax
jmp 0x46ffbb
push esi
jmp 0x46ffce
lea esi, [ebp - 0x1c]
call fcn.0040e350
push ebx
call fcn.00458b69
push esi
push eax
call fcn.0045ff66
mov edx, dword [ebp - 0x1c]
push edx
push 0x498a74
push edi
call fcn.00415150
add esp, 0xc
cmp byte [ebp - 4], 0
mov dword [ebp - 0xc], eax
je 0x46ffad
push ebx
call fcn.00458b8a
push eax
call dword [0x48721c]
lea esi, [ebp - 0x1c]
call fcn.004020b0
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push edi
call fcn.004153e6
add esp, 4
cmp esi, 0xffffffff
jne 0x46ff6d
push 0x4000
push edi
call fcn.00414f59
add esp, 4
push eax
call fcn.00414e6e
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4021e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x40221c
cmp dword [ebp + 8], 0xffffffff
je 0x40221c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
jne 0x40221c
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x40221c
mov eax, dword [ebp - 4]
jmp 0x40221e
xor eax, eax
mov esp, ebp
pop ebp
ret