joyce8/EMBER2024-capa huggingface dataset:
Function at 0x74c523
Capabilities:
Encode data using xor

Disassembly:
retf 0x848d
sal dl, 0x67
neg ecx
shr eax, 5
xor ecx, 0x4baf2125
rol ecx, 2
push edx
lea ecx, [eax + ecx - 0x61bb144b]
or edx, eax
rol ecx, 1
xor ecx, 0xab311a5
call fcn.00634879
std
loopne 0x74c539
jmp 0x74c57f
jb 0x74c5a5
push esi
dec eax
sub esp, esp
nop
in al, dx
and dword [esi + ebx*8], 0x5a200ab5
or eax, 0xee8b3105
mov fs, ebx
mov dword [0xd89d80c], eax
aas
or dword [ecx + 0x2e], esp
and al, 0xde
mov ch, 0xa
and byte [edx + 0xd], bl
add eax, 0x8eee8b31
jecxz 0x74c509
or al, 0xd8
mov dword [0x2e61093f], ecx
mov ebp, 0xf91df4f1
cmp esp, dword [ebp + ebp - 0x5d8caa39]
dec ebp
popfd
shl ebp, 0x6b
fnstsw word [ebp + edi - 0x1d0e0629]
or byte [esi + 0x2b], dl
test al, 7
invalid
aaa
mov al, 0xbc
jecxz 0x74c617
les eax, [ebx - 0x77]
push ebp
sbb ecx, dword [edi]
sahf
inc edx
sti
xor dword [esi + 0x43], edx
jg 0x74c558
jns 0x74c633
jge 0x74c5d7
cmp eax, 0xafabd682
jb 0x74c627
xor ah, byte [0xc867d2c0]
push es
outsb dx, byte [esi]
int 8
fidiv word [edi]
inc esi
or al, 0x5a
in eax, 0x8d
mov eax, edi
ret 0x5d8e
adc dword [ebp - 0x10], ebx
hlt
xor byte [edx], al
adc bl, byte [ebx + eax*2 - 0x6c21ec3e]
lds ebp, [edi + ecx*8]
xchg esi, eax
or dword [edi], ebp
invalid

Function at 0x74e082
Capabilities:
Encode data using xor

Disassembly:
push 0xfebef501
call fcn.0041f327
mov eax, 0x3e138d9a
call fcn.00639b2e
pop edi
mov edx, 0x44844792
mov edx, fcn.005a3cb9
jmp 0x6aae92

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

Disassembly:
mov word [ebp], dx
jmp edi
adc ebp, 2
jmp 0x62d0da
xor edx, edx
neg ecx
cbw
cwde
mov dword [esp + edx*4], eax
bswap ecx
xor ecx, 0x7a787b1
xor ebx, ecx
xchg edx, eax
add edi, ecx
sar dl, 0xa1
adc al, byte [esp + eax + 1]
mov ecx, dword [eax + ebp - 0xff]
pop eax
cdq
movzx dx, byte [ecx]
jno 0x6c4ef8

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

Disassembly:
rol dl, 1
neg dl
cbw
xor bl, dl
call fcn.00714434
add esi, 4
call fcn.0042a67d
pop edx
pop ecx
pop ecx
pop ecx
pop ecx
jmp esi
mov eax, dword [ecx + ebp - 0x708b5017]
lea ebp, [ebp + edx*8 - 0xb4]
not cl
xor eax, ebx
ror cx, cl
bt edx, 0xa8
adc ecx, 0x59909c1d
ror eax, 3
neg cx
xor eax, 0x83991c21
inc eax
not eax
xchg ecx, edx
jmp 0x6b0e54
dec eax
or edx, 0x3f85860a
neg dx
inc cx
xor ebx, eax
shr cl, 0xa7
or edx, edx
adc edi, eax
shl ecx, 0x22
xor cx, word [esi + ecx]
mov eax, edx
lea edx, [eax + edx*4 + 0x5a85f001]
neg edx
adc esi, 1
xchg edx, eax
movzx edx, byte [ebp]
add ebp, 1
sal ax, 0x41
xor dl, bl
lea eax, [eax*4 + 0x3a8faa21]
dec dl
imul ax, ax
ror dl, 1
sub dl, 0x11
and eax, eax
sar eax, 4
jnp 0x63adb8
rep movsb byte es:[edi], byte [esi]
mov esi, 0xc79e4134
or esi, 0x69ab7c9d
popfd
pop esi
call fcn.00711288
add ecx, ecx
xor bl, al
mov dword [esp], ecx
lea eax, [esp + eax + 8]
dec ecx
shr ecx, cl
mov dx, word [eax + ecx - 0x5e8f]
add ecx, 0x282e6712
lea edi, [edi + ecx - 0x282ec5a3]
lea eax, [ecx*4 + 0x46a8d094]
mov word [edi + ecx*2 - 0x505d8b42], dx
lea eax, [ecx + ecx + 0xf1a5da5]
ja 0x694514
mov ecx, 0x708b5017
movsx edx, cl
jmp 0x6a5e0e
Function at 0x75984e
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
mov ebp, ecx
mov dword [esp + 0x14], 0xd9081c
mov ebp, dword [esp + ebp*4 + 0x29b26fbc]
sub cl, 0x88
add cl, ch
jne 0x5f1d21

Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0
Function at 0x402330
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x49f0c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, esi
push edi
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402350
sub eax, edx
xor ecx, ecx
mov edx, 2
lea ebx, [eax + 1]
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045dff8
lea ecx, [ebx + ebx]
mov edi, eax
push ecx
push 0
push edi
call fcn.00457f20
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402390
push ebx
push edi
sub ecx, edx
push ecx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0x3c
lea eax, [ebp - 0x40]
movlpd qword [ebp - 0x1c], xmm0
push eax
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], str.OPEN
mov dword [ebp - 0x30], str.cmd.exe
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call fcn.0045d599
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00455ecc
mov esp, ebp
pop ebp
ret

Function at 0x402430
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x49f0c4]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0x3c
lea eax, [ebp - 0x40]
movlpd qword [ebp - 0x1c], xmm0
push eax
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], str.OPEN
mov dword [ebp - 0x30], str.cmd.exe
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455ecc
mov esp, ebp
pop ebp
ret
Function at 0x411b20
Capabilities:
Create directory
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c7e5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x49f0c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push str.C:Tempissdu
call fcn.0045be4a
add esp, 8
cmp eax, 0xffffffff
jne 0x411b8a
push 0
push str.C:Temp
call fcn.0045be4a
add esp, 8
cmp eax, 0xffffffff
jne 0x411b7d
push str.C:Temp
call fcn.0045d763
add esp, 4
push str.C:Tempissdu
call fcn.0045d763
add esp, 4
cmp byte [0x4a1228], 0
je 0x411b9d
call fcn.0040cb40
jmp 0x411c93
cmp byte [0x4a122e], 0
je 0x411c8e
push 4
call fcn.00455fa4
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [eax], 0x402220
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x415fe0
push 0
push 0
call fcn.0045b365
add esp, 0x18
mov dword [ebp - 0x18], eax
test eax, eax
je 0x411cd4
push 4
mov dword [ebp - 4], 1
call fcn.00455fa4
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [eax], fcn.0040d0d0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
push ecx
push 0
push eax
push 0x415fe0
push 0
push 0
call fcn.0045b365
add esp, 0x18
mov dword [ebp - 0x20], eax
test eax, eax
je 0x411cc6
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], 0
je 0x411cbf
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
je 0x411cb8
push 0
push ecx
push dword [ebp - 0x18]
call fcn.004557f4
add esp, 0xc
test eax, eax
jne 0x411cb1
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
cmp dword [ebp - 0x1c], eax
je 0x411cbf
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [ebp - 0x1c]
cmp ecx, eax
je 0x411cb8
push 0
push ecx
push dword [ebp - 0x20]
call fcn.004557f4
add esp, 0xc
test eax, eax
jne 0x411cb1
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
cmp dword [ebp - 0x14], eax
jne 0x411cac
jmp 0x411c93
call fcn.0040d0d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455ecc
mov esp, ebp
pop ebp
ret
call fcn.0045beb7
push 2
call fcn.00454e05
push 5
call fcn.00454e05
push 1
call fcn.00454e05
push 6
mov dword [ebp - 0x1c], 0
call fcn.00454e05
push 6
mov dword [ebp - 0x14], 0
call fcn.00454e05
int3
Function at 0x412340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x412426
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x412415
jg 0x412380
test edx, edx
je 0x412415
nop dword [eax]
call fcn.00413e30
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4123d4
jg 0x412397
test esi, esi
je 0x4123d4
cmp ebx, eax
jg 0x4123a7
jl 0x4123a1
cmp edi, esi
jae 0x4123a7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004579a0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4123f9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x41240f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x412380
jl 0x41240f
test edi, edi
jne 0x412380
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x412448
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x41244a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4124c8
jg 0x41245d
test esi, esi
je 0x4124c8
test eax, eax
jl 0x4124ac
jg 0x412467
test ebx, ebx
je 0x4124ac
cmp edi, eax
jg 0x412477
jl 0x412471
cmp esi, ebx
jae 0x412477
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004579a0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x4124c8
jg 0x4124af
test esi, esi
je 0x4124c8
jmp 0x4124af
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4124c8
push eax
push esi
push 1
push edx
call fcn.0045d269
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4124e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x412512
jl 0x412505
test ecx, ecx
jne 0x412512
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4125d2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00413e50
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41257e
jg 0x41253d
test esi, esi
je 0x41257e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x412555
mov eax, dword [esp + 0x10]
jl 0x41254f
cmp eax, esi
jae 0x412555
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004579a0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x41259f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4125bb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x412524
jl 0x4125bb
test ecx, ecx
jne 0x412524
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x412611
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x412611
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004579a0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x412680
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x412637
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x412669
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0045d97c
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x412694
cmp edi, eax
ja 0x412645
test ecx, ecx
je 0x412680
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0045d97c
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x49f0c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x412a30
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455ecc
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x412a6c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x412a6c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455ecc
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x412b54
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x412a94
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x412ac7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0045a9fc
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455ecc
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x412b27
sub eax, 1
je 0x412b27
sub eax, 2
jne 0x412b54
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0045a9fc
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455ecc
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x412b44
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045d269
add esp, 0x10
cmp edi, eax
jne 0x412b54
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x412a57
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00455ecc
mov esp, ebp
pop ebp
ret 4
Function at 0x413b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x49f0c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x413c1a
cmp byte [esi + 0x3d], 0
je 0x413c1a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x413c08
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x413bd0
sub eax, 1
je 0x413bd4
sub eax, 2
jne 0x413c08
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455ecc
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x413bf1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045d269
add esp, 0x10
cmp edi, eax
jne 0x413c08
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455ecc
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455ecc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00455ecc
mov esp, ebp
pop ebp
ret

Function at 0x418320
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x49f0c4]
xor eax, esp
mov dword [esp + 0x190], eax
mov eax, dword [0x4a0050]
mov ecx, eax
inc eax
mov dword [0x4a0050], eax
test ecx, ecx
je 0x41835c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00455ecc
add esp, 0x194
ret
cmp byte [esp + 0x19c], 0
je 0x418398
mov dword [section..data], 0x45dff8
mov dword [fcn.0045d599], 0x45d599
mov dword [0x49f008], 0x45e32f
mov dword [0x49f00c], 0x46b294
mov dword [fcn.0045e324], 0x45e324
push ebx
call fcn.004252e0
test eax, eax
je 0x4183da
mov ebx, dword [esp + 0x19c]
test bl, 2
je 0x4183fd
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4183da
mov eax, dword [esp + 4]
cmp al, 2
jne 0x4183f5
shr eax, 8
cmp al, 2
jne 0x4183f5
call fcn.00424410
test eax, eax
je 0x4183fd
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00455ecc
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x4183da
call fcn.00412c50
test eax, eax
jne 0x4183da
mov eax, dword [0x4a016c]
test bl, 4
mov ecx, 1
mov dword [0x4a0054], ebx
cmovne eax, ecx
mov dword [0x4a016c], eax
call fcn.0042c9a0
mov ecx, dword [esp + 0x194]
xor eax, eax
pop ebx
xor ecx, esp
call fcn.00455ecc
add esp, 0x194
ret
Function at 0x41c880
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x49f0c4]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
mov edi, dword [esp + 0x110]
cmp byte [edi + 0x4f8], 0
jne 0x41c8b2
cmp dword [edi + 0x160], 0
je 0x41c950
push esi
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x11c]
lea eax, [esp + 0x10]
push 0x100
push eax
call fcn.0041d770
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x41c8e0
sub esi, ecx
mov ecx, dword [edi + 0x160]
test ecx, ecx
je 0x41c915
cmp byte [edi + 0x48b0], al
jne 0x41c915
lea edx, [esp + 8]
nop
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x41c900
mov byte [edi + 0x48b0], 1
cmp byte [edi + 0x4f8], 0
je 0x41c94f
mov byte [esp + esi + 8], 0xa
inc esi
cmp esi, 0x102
jae 0x41c9a7
mov eax, dword [edi + 0x1d0]
mov byte [esp + esi + 8], 0
test eax, eax
je 0x41c966
push dword [edi + 0x15c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00455ecc
add esp, 0x108
ret
push dword [edi + 0x158]
push 1
push 2
push 0x480218
call fcn.0045d269
push dword [edi + 0x158]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.0045d269
mov ecx, dword [esp + 0x12c]
add esp, 0x20
pop esi
pop edi
xor ecx, esp
call fcn.00455ecc
add esp, 0x108
ret
call fcn.0045680c
int3

Function at 0x41c9b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x49f0c4]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
mov edi, dword [esp + 0x810]
test edi, edi
je 0x41ca79
cmp byte [edi + 0x4f8], 0
je 0x41ca79
push esi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.0041d770
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x41ca10
mov eax, dword [edi + 0x1d0]
sub esi, ecx
test eax, eax
je 0x41ca4e
push dword [edi + 0x15c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00455ecc
add esp, 0x808
ret
push dword [edi + 0x158]
push 1
push 2
push 0x480218
call fcn.0045d269
push dword [edi + 0x158]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.0045d269
add esp, 0x20
pop esi
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.00455ecc
add esp, 0x808
ret