joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10047f00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10047f33
push esi
call fcn.100562d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x10047f2c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x10047fb9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10047fa2
mov eax, dword [esi + 8]
test eax, eax
je 0x10047f57
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x10047f9e
cmp eax, 2
je 0x10047fa2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10047f4a
cmp eax, 3
je 0x10047f7d
cmp eax, 1
jne 0x10047f4a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x10047f4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x10047f4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10047fe0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x10047fc8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10047fe0
add esp, 4
pop esi
ret

Function at 0x10048860
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x10048881
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x10048881
mov eax, dword [eax + 0x44]
test eax, eax
je 0x10048881
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10048cd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x10048cdb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x10048dde
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x100a0170]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100a0170]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100a0170]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100a0170]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100a0170]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100a0170]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100a0170]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100a0170]
xor eax, edx
inc ecx
dec edi
jne 0x10048cf6
pop edi
test esi, esi
je 0x10048e00
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100a0170]
xor eax, edx
inc ecx
dec esi
jne 0x10048de2
pop esi
pop ebx
not eax
ret
Function at 0x10065bc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x100d5e18]
xor edx, edx
cmp eax, edx
jne 0x10065be6
xor eax, eax
mov byte [eax + 0x100d5d18], al
inc eax
cmp eax, 0x100
jl 0x10065bce
mov dword [0x100d5e18], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x100d5d18
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10065c77
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x10065c4a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x10065c18
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10065cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x10065d43
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x10065d2a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1006c700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009947e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.1006d020
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x100a2044
call fcn.1008b2fb
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x1006c793
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1008b2fb
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x1006c78c
push 0
mov ecx, eax
call fcn.10063800
mov dword [esi + 0xc], eax
jmp 0x1006c795
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x1006c795
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x1008d947
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1008d97f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1008ba15
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1008b9ed
jmp 0x1008d98b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1008f039
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1008f07b
call fcn.100949cc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1008f07b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1008f072
xor eax, eax
jmp 0x1008f083
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1008f089
pop edi
pop esi
pop ebx
ret 4
Function at 0x42105f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x44e8a8
call fcn.00422e90
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x420f16
xor ebx, ebx
jmp 0x420f49
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x420f12
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x420f12
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x420f49
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004279ab
test eax, eax
jne 0x420f5d
push 0x1c
call main
pop ecx
call fcn.00427918
test eax, eax
jne 0x420f6e
push 0x10
call main
pop ecx
call fcn.00428296
and dword [ebp - 4], 0
call fcn.004279c0
test eax, eax
jns 0x420f88
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [0x457adc], eax
call main
mov dword [0x455a24], eax
call main
test eax, eax
jns 0x420fae
push 8
call main
pop ecx
call fcn.00427eb1
test eax, eax
jns 0x420fbf
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x420fd2
push eax
call main
pop ecx
call fcn.00428714
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x420ff4
push esi
call main
call fcn.00426cd7
jmp 0x421029
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00422ed5
ret
call main
jmp 0x420ee8

Function at 0x433876
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x433885
pop dword [ebp - 0xc]
mov eax, 0x433885
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xc1439f2f
sub dword [ebp - 0x1c], 0x72f159e4
mov dword [ebp - 0x18], 0xc3acba61
sub dword [ebp - 0x18], 0x91796e1c
mov dword [ebp - 0x14], 0xbd85f23b
add dword [ebp - 0x14], 0x8ec651f3
mov dword [ebp - 0x10], 0xd88a9a79
add dword [ebp - 0x10], 0x27756587
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xa71035b5
add eax, 0x59338c77
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xdca2ab
sub dword [ebp - 0x1c], 0x8c6a3955
mov dword [ebp - 0x18], 0x3bddbac1
sub dword [ebp - 0x18], 0xfa71594c
mov dword [ebp - 0x14], 0x515150ca
add dword [ebp - 0x14], 0x121e1ba2
mov dword [ebp - 0x10], 0x357a890f
add dword [ebp - 0x10], 0xca8576f1
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x421e7
push 0
call eax
mov ecx, 0x38d2
mov edx, eax
mov ebx, 0x5e52b20f
add ebx, 0xa1f4a3f1
add ebx, dword [ebp - 0xc]
mov esi, 0x8108e9b5
sub esi, 0xfdc32066
add dword [ebp - 8], esi
mov edi, dword [ebx]
sub dword [ebp - 8], ecx
xor edi, esi
mov dword [edx], edi
add dword [ebp - 4], 0x13911c83
add edx, 0xd9be20d5
sub edx, 0xd9be20d1
add ebx, 4
loop 0x433997
add eax, 0xd61b
mov ebx, eax
add eax, 0x24de7af0
add eax, 0xdb218515
mov ecx, 0x807ac28b
add ecx, 0x7fc53d75
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x469ba1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp word [edx], 0x5a4d
jne 0x469bc7
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
cmp dword [ecx + edx], 0x4550
je 0x469bcc
xor eax, eax
pop ecx
pop ebp
ret
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add edx, dword [ecx + 0x3c]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
cmp dword [ecx], 0x4550
je 0x469bec
xor eax, eax
pop ecx
pop ebp
ret
mov edx, dword [ebp + 0xc]
add dword [edx], 4
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
add eax, 0x14
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp word [eax], 0x10b
je 0x469c10
xor eax, eax
pop ecx
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
add ecx, 0xe0
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov eax, 1
pop ecx
pop ebp
ret

Function at 0x474044
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47417d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor edx, edx
push ebp
push 0x474161
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x74]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004031f8
push 1
mov eax, dword [0x47bb9c]
mov edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
push eax
push 0x63646976
call fcn.0045d8e8
mov esi, eax
lea eax, [ebx + 0x74]
mov dword [eax + 4], 1
mov dword [eax], pe_nt_image_headers32
mov dword [eax + 0x2c], 0x30c
mov dword [eax + 0x28], 0xf
xor edx, edx
mov dword [eax + 0x24], edx
xor edx, edx
mov dword [eax + 0x34], edx
mov dword [eax + 8], esi
mov edx, dword [0x47bb9c]
mov ecx, dword [ebp - 4]
mov edx, dword [edx + ecx*4]
mov dword [eax + 0x10], edx
mov dword [eax + 0xc], 0x63646976
xor edx, edx
mov dword [eax + 0x3c], edx
xor edx, edx
mov dword [eax + 0x30], edx
test esi, esi
je 0x474157
lea edx, [ebx + 0xb4]
mov eax, esi
call fcn.0045d8c8
mov dword [ebx + 0x124], eax
lea eax, [ebx + 0xe0]
xor ecx, ecx
mov edx, 0x2c
call fcn.004031f8
lea ecx, [ebx + 0xe0]
lea edx, [ebx + 0xb4]
mov eax, esi
call fcn.0045d8b8
test eax, eax
jne 0x474157
lea ecx, [ebx + 0xe0]
lea edx, [ebx + 0xb4]
mov eax, esi
call fcn.0045d8d0
mov dword [ebx + 0x128], eax
lea eax, [ebx + 0xb4]
push eax
lea eax, [ebx + 0x74]
push eax
call fcn.0045d900
test eax, eax
je 0x474157
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47416f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474184
ret
Function at 0x401fa0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
lea edi, [ebp - 0x70]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
je 0x401fdb
or eax, 0xffffffff
jmp 0x4020db
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
je 0x401ffa
or eax, 0xffffffff
jmp 0x4020db
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x78]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x7c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x402038
or eax, 0xffffffff
jmp 0x4020db
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x30], 0
jmp 0x40205d
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x20]
jge 0x402092
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.004067f0
add esp, 8
test eax, eax
jne 0x402090
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
jmp 0x402092
jmp 0x402054
cmp dword [ebp - 0x24], 0xffff
jne 0x4020a0
or eax, 0xffffffff
jmp 0x4020db
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 1]
cmp eax, 0x2a
jne 0x4020c7
mov esi, esp
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
call dword [0x43f3a4]
cmp esi, esp
call fcn.00406410
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, edx
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x10]
pop edi
pop esi
pop ebx
add esp, 0x70
cmp ebp, esp
call fcn.00406410
mov esp, ebp
pop ebp
ret
Function at 0x44d09c
Capabilities:
Create process on windows
Get file size
Read file via mapping
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x29c]
sub esp, 0x31c
mov eax, dword [0x45b0fc]
xor eax, ebp
mov dword [ebp + 0x298], eax
push ebx
push esi
push edi
lea eax, [ebp + 0x194]
xor edi, edi
push 0x45c3ec
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x80], edi
call fcn.0045057c
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp + 0x90]
push eax
call fcn.0045057c
lea eax, [ebp + 0x194]
push 0x4582e0
push eax
call fcn.0045058c
lea eax, [ebp + 0x90]
push 0x4582d8
push eax
call fcn.0045058c
add esp, 0x20
push 0x80
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
mov ebx, 0x87
push ebx
push 2
push edi
push 3
push 0xc0000000
lea eax, [ebp + 0x194]
push eax
call esi
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x44d14d
xor eax, eax
inc eax
jmp 0x44d21e
push edi
push ebx
push 3
push edi
push 1
push closesocket
lea eax, [ebp + 0x90]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44d1e8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push edi
push 2
push edi
push ebx
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x80], eax
cmp eax, edi
je 0x44d1e8
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
je 0x44d1e8
push edi
lea ecx, [ebp - 0x7c]
push ecx
push dword [ebp - 0x7c]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp + 0x194]
push eax
call fcn.004504ec
mov esi, eax
lea eax, [ebp - 0x70]
mov dword [esp], 0x45b0a0
push eax
call fcn.0045057c
push esi
lea eax, [ebp + 0x194]
push eax
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x70]
push 0x4582cc
push eax
call fcn.0044e2bc
add esp, 0x1c
mov dword [ebp - 0x74], esi
push dword [ebp - 0x80]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x78]
call esi
push ebx
call esi
cmp dword [ebp - 0x74], edi
je 0x44d21b
push 5
push edi
push 0x4582c9
lea eax, [ebp + 0x194]
push eax
push 0x4582c4
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp + 0x298]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450674
add ebp, 0x29c
leave
ret
Function at 0x44de3c
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x45c4f0]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0x3c]
movzx edx, word [eax + ecx + 6]
add eax, ecx
push ebx
mov ebx, dword [0x45c4f8]
push ebp
mov ebp, dword [0x45b0d0]
push esi
lea edx, [edx + edx*4]
mov esi, dword [eax + edx*8 + 0xe4]
lea edx, [eax + edx*8 + 0xd0]
mov eax, dword [eax + 0x34]
sub esi, ebx
sub esi, ebp
push edi
mov edi, dword [edx + 8]
add esi, edi
lea esi, [esi + ecx - 9]
mov ecx, dword [edx + 0xc]
sub ecx, ebx
sub ecx, ebp
lea edx, [ecx + edi - 0xe9]
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
cmp ecx, 0x1000
jbe 0x44dead
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret
cmp dword [ecx + esi], 0x4550
movzx edx, word [ecx + esi + 6]
mov dword [esp + 0x18], edx
lea eax, [ecx + esi + 0xf8]
lea edx, [edx + edx*4]
lea ebp, [eax + edx*8 - 0x28]
jne 0x44dea3
mov edi, dword [eax + 0xc]
mov ebx, dword [ecx + esi + 0x38]
add eax, 0xc
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
xor edx, edx
div ebx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
inc eax
imul eax, ebx
add eax, dword [ebp + 0xc]
mov ebx, esi
sub eax, edi
sub edx, eax
mov dword [esp + 0x10], edx
sub edx, dword [ecx + esi + 0x34]
sub ebx, eax
sub edx, edi
mov edi, dword [ebp + 0x14]
add edi, dword [ebp + 0x10]
add dword [esp + 0x14], edx
push edi
sub ebx, 0xe0
call fcn.0044d50c
mov ecx, dword [0x45c4f4]
mov dword [ecx + 0xc], eax
mov edx, dword [0x45c4f4]
mov eax, dword [edx + 0xc]
add esp, 4
test eax, eax
je 0x44dea3
mov ecx, dword [0x45b0d0]
push ecx
push esi
push eax
call fcn.00450b7c
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
jbe 0x44df89
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jmp 0x44df5c
mov edx, dword [ebp + 4]
mov eax, dword [ebp]
sub eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [0x45c4f4]
add ecx, dword [edx + 0xc]
add eax, ebx
push eax
push ecx
call fcn.00450b7c
add esp, 0xc
add ebp, 0x28
sub dword [esp + 0x18], 1
jne 0x44df5c
mov eax, dword [0x45c4f4]
mov ecx, dword [eax + 0xc]
mov dword [eax + 0x10], ecx
mov edx, dword [esi + 0x3c]
mov eax, dword [0x45c4f4]
add edx, esi
mov esi, dword [esp + 0x1c]
mov dword [eax + 0x14], edx
mov eax, dword [0x45c4f4]
mov ecx, dword [eax + 0x14]
sub esi, dword [esp + 0x10]
add ecx, 0x18
mov dword [eax + 0x1c], ecx
mov eax, dword [0x45c4f4]
mov edx, dword [eax + 0x14]
add edx, 4
mov dword [eax + 0x18], edx
mov eax, dword [0x45c4f4]
mov ecx, dword [eax + 0x14]
add ecx, 0xf8
mov dword [eax + 0x20], ecx
mov eax, dword [esp + 0x14]
neg eax
push esi
push eax
call fcn.0044d66c
push esi
call fcn.0044d5bc
mov eax, dword [0x45c4f4]
mov ecx, dword [eax + 0xc]
add esp, 0xc
push 0
lea edx, [esp + 0x28]
push edx
mov edx, dword [eax + 4]
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x45c4f4]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.0044d53c
mov edx, dword [0x45c4f4]
add esp, 4
mov dword [edx + 0xc], eax
cmp dword [esp + 0x24], edi
pop edi
pop esi
pop ebp
sete al
pop ebx
add esp, 0x18
ret
Function at 0x44e03c
Capabilities:
Write file on windows

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [0x45c4f0]
mov ecx, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [0x45c4f4]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [0x45c4f0]
mov eax, dword [edx]
cmp eax, dword [esp]
sete al
pop ecx
ret