joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a570
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7d79
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x41a5b6
or eax, 0xffffffff
jmp 0x41a78b
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x264]
test ecx, ecx
je 0x41a5eb
mov eax, dword [ecx]
lea edx, [ebp - 0xe0]
push edx
call dword [eax]
mov dword [ebp - 0xbc], eax
sub esp, 0x28
mov dword [ebp - 4], 1
mov esi, esp
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x9c], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xbc]
test ecx, ecx
je 0x41a65a
lea eax, [ebp - 0xe0]
cmp ecx, eax
jne 0x41a64d
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xbc]
test ecx, ecx
je 0x41a65a
mov edx, dword [ecx]
lea eax, [ebp - 0xe0]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x41a650
mov dword [esi + 0x24], ecx
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0xf
mov byte [ebp - 0xb4], 0
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0xb4]
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
movzx eax, byte [edi + 0x23c]
push eax
push ecx
push dword [edi + 0x238]
mov ecx, ebx
push esi
call fcn.0042e990
mov byte [ebp - 4], 1
add esp, 0x3c
mov edx, dword [ebp - 0xa0]
mov ebx, eax
cmp edx, 0x10
jb 0x41a6df
mov ecx, dword [ebp - 0xb4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41a6d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a7a9
push edx
push ecx
call fcn.0044bf44
add esp, 8
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0xf
mov byte [ebp - 0xb4], 0
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0xbc]
test ecx, ecx
je 0x41a729
mov edx, dword [ecx]
lea eax, [ebp - 0xe0]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0xbc], 0
add edi, 0x30
xchg dword [edi], ebx
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x41a5ae
test esi, esi
jne 0x41a789
mov eax, dword [edi]
mov dword [ebp - 0x14], 0x80
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x41a5ae
mov ax, word [ebp - 0x98]
cmp ax, 2
je 0x41a778
cmp ax, 0x17
jne 0x41a5ae
push dword [ebp - 0x96]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x41a78b
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret 0xc
call fcn.004aba6c
int3
Function at 0x41cf40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c81b9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4fa078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0xf
mov byte [ebx + 0x18], 0
mov byte [ebp - 4], 1
lea esi, [ebx + 0x30]
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042a750
mov dword [esi], eax
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0xf
mov byte [ebx + 0x38], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0xf
mov byte [ebx + 0x50], 0
mov dword [ebx + 0x68], 0xffffffff
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0xf
mov byte [ebx + 0x6c], 0
mov dword [ebx + 0x84], 0xffffffff
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0xf
mov byte [ebx + 0x88], 0
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0xb4], 0xf
mov byte [ebx + 0xa0], 0
mov byte [ebp - 4], 7
lea esi, [ebx + 0xb8]
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042a750
mov dword [esi], eax
mov byte [ebp - 4], 8
lea esi, [ebx + 0xc0]
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042a940
mov dword [esi], eax
mov dword [ebx + 0xc8], 0
mov dword [ebx + 0xcc], 0
mov dword [ebx + 0xd0], 0
mov dword [ebx + 0xd4], 0
mov byte [ebx + 0xd8], 0
mov dword [ebx + 0xdc], 0
mov dword [ebx + 0xe0], 0
mov dword [ebx + 0xe4], 0
mov dword [ebx + 0xe8], 0
mov dword [ebx + 0xec], 0
mov byte [ebx + 0xf0], 0
mov dword [ebx + 0xf4], 0
mov dword [ebx + 0xf8], 0
mov byte [ebx + 0xfc], 0
mov dword [ebx + 0x100], 0
mov dword [ebx + 0x104], 0
mov byte [ebx + 0x108], 0
add ebx, 0x10c
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x1c], ebx
lea edi, [ebx + 4]
mov dword [ebx], 0
mov dword [ebp - 0x10], edi
push 0
push 0
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0042b270
mov dword [edi], eax
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov byte [ebp - 4], 0xd
lea ecx, [ebx + 0xc]
push 0x10
mov dword [ebx], 0x3f800000
call fcn.0042a830
mov eax, dword [edi]
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x10
call fcn.00429250
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x1c], 8
mov dword [eax + 0x154], 0
mov dword [eax + 0x17c], 0
mov dword [eax + 0x1a4], 0
mov dword [eax + 0x1a8], 0x14
mov dword [eax + 0x1ac], 0
mov dword [eax + 0x1d4], 0
mov byte [eax + 0x1d8], 0
mov dword [eax + 0x1dc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4260bb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004271f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 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 + 0x14], eax
test eax, eax
je 0x4260dd
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4260df
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x426163
jg 0x4260f4
test esi, esi
je 0x426163
test ecx, ecx
jl 0x42613d
jg 0x4260fe
test eax, eax
je 0x42613d
cmp edi, ecx
jg 0x426112
jl 0x426108
cmp esi, eax
jae 0x426112
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.004a45a0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x426140
mov edx, dword [ebp + 8]
test edi, edi
jl 0x426163
jg 0x42614a
test esi, esi
je 0x426163
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x426163
push eax
push esi
push 1
push edx
call fcn.004ac79b
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 0x426180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x4261ab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004272d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x4261cd
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x4261cf
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x42626e
jg 0x4261ec
test esi, esi
je 0x42626e
test ecx, ecx
jl 0x426239
jg 0x4261f6
test eax, eax
je 0x426239
cmp ebx, ecx
jg 0x42620a
jl 0x426200
cmp esi, eax
jae 0x42620a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.004a45a0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x426240
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x42626e
jg 0x42624a
test esi, esi
je 0x42626e
cmp dword [edi + 0x4c], 0
je 0x42626e
mov ecx, edi
call fcn.004288d0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.004af4b2
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4265c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4265f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42662c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x42662c
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.0044b7d5
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x426711
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x426654
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 0x426687
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004add05
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.0044b7d5
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], 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 - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x426711
cmp eax, 1
jle 0x4266e4
cmp eax, 3
jne 0x426711
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0040e230
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x426701
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004ac79b
add esp, 0x10
cmp edi, eax
jne 0x426711
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x426617
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret 4
Function at 0x427410
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c90b0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4fa078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044bc97
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00449a44
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x428900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4289a1
cmp byte [esi + 0x3d], 0
je 0x4289a1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x428957
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 0x428969
sub eax, 1
je 0x42896d
sub eax, 2
je 0x4289a1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x42898a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004ac79b
add esp, 0x10
cmp edi, eax
jne 0x428957
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret

Function at 0x42aab0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x42aae1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x42aad0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x431380
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9d1e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4fa078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], 0
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
mov edx, dword [esi + 8]
shr edx, 3
and dl, 1
mov byte [edi + 0x6c], dl
mov edx, dword [ebp + 0x10]
push ecx
mov dword [edi + 0x70], edx
push dword [esi + 0x18]
call fcn.00435030
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x434d30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [edi + 0x1c], 0x10
lea esi, [edi + 8]
mov ebx, dword [edi + 0x18]
jb 0x434d54
mov esi, dword [edi + 8]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x434d71
nop
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x434d60
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, edx
lea edx, [eax*8]
mov eax, dword [ecx + edx]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x434daa
cmp eax, edi
jne 0x434da2
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + ecx + 4], eax
jmp 0x434db2
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x434db2
cmp eax, edi
jne 0x434db2
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
lea ecx, [edi + 8]
mov esi, dword [edi]
mov dword [eax], esi
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
dec dword [ebx + 8]
call fcn.00414db0
push 0x38
push edi
call fcn.0044bf44
mov eax, dword [ebp - 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4376b0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca376
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4fa078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.00439b30
mov esi, eax
mov dword [ebp - 4], 0
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
lea edi, [esi + 0x10]
mov word [esi + 0xc], 0
mov ecx, edi
mov dword [ebp - 0x18], edi
call fcn.00409200
mov ebx, dword [ebp + 0xc]
add edi, 0x18
mov byte [ebp - 4], 1
mov ecx, edi
push ebx
mov dword [ebp + 8], edi
call fcn.00409200
lea eax, [ebx + 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x18]
call fcn.00409200
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x30]
call fcn.00409200
lea eax, [ebx + 0x48]
mov byte [ebp - 4], 4
push eax
lea ecx, [edi + 0x48]
call fcn.00409200
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4385b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
mov ebx, dword [eax]
mov esi, dword [edx]
push edi
mov edi, ecx
mov dword [ebp - 8], esi
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp ebx, eax
ja 0x438605
cmp dword [ecx + 0x14], 0x10
lea eax, [edx + ebx]
mov dword [ecx + 0x10], eax
jb 0x4385ef
mov ecx, dword [ecx]
push ebx
push dword [ebp - 8]
lea esi, [ecx + edx]
push esi
call fcn.004a4c80
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x438614
push ebx
push esi
mov byte [ebp - 8], 0
push dword [ebp - 8]
push ebx
call fcn.00407910
mov edx, dword [edi + 4]
mov esi, dword [edx + 0x10]
cmp esi, 0x100000
ja 0x438642
mov eax, dword [edi + 8]
xor ebx, ebx
mov ecx, esi
add ecx, dword [eax]
adc ebx, dword [eax + 4]
mov eax, dword [edi + 0xc]
cmp ecx, dword [eax]
jne 0x4386c4
cmp ebx, dword [eax + 4]
jne 0x4386c4
mov dword [ebp - 8], 0
cmp dword [edx + 0x14], 0x10
jb 0x438651
mov edx, dword [edx]
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [edi + 0x10]
push esi
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43867d
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 8]
cmp esi, ecx
jne 0x438668
mov eax, dword [edi + 8]
add dword [eax], ecx
adc dword [eax + 4], 0
mov eax, dword [edi + 0x14]
mov esi, dword [eax]
test esi, esi
je 0x4386af
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 8]
mov edx, dword [eax]
add edx, dword [ecx]
mov eax, dword [eax + 4]
adc eax, dword [ecx + 4]
push eax
push edx
push 0
call esi
add esp, 0xc
mov eax, dword [edi + 4]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x4386c1
mov eax, dword [eax]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret 8
Function at 0x43b6b0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca656
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4fa078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.00439b30
mov esi, eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x14], esi
lea edi, [esi + 0x10]
mov word [esi + 0xc], 0
mov ecx, edi
mov dword [ebp - 0x18], edi
call fcn.00409200
add edi, 0x18
mov byte [ebp - 4], 1
add ebx, 0x18
mov dword [ebp + 8], edi
push ebx
mov ecx, edi
call fcn.00409200
lea eax, [ebx + 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x18]
call fcn.00409200
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x30]
call fcn.00409200
lea eax, [ebx + 0x48]
mov byte [ebp - 4], 4
push eax
lea ecx, [edi + 0x48]
call fcn.00409200
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43ee40
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x4fa078]
xor eax, esp
mov dword [esp + 0x194], eax
cmp byte [0x508398], 0
jne 0x43eea1
push 0x190
lea eax, [esp + 4]
push 0
push eax
call fcn.004a4b20
add esp, 0xc
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
sete byte [0x508398]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x194]
xor eax, eax
xor ecx, esp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
Function at 0x43f2b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi + 0xc]
lea edx, [edi + 0xc]
mov dword [ebp - 0x10], eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x18], edx
mov ebx, dword [edi]
mov ecx, ebx
shr ecx, 2
and ebx, 3
mov dword [ebp - 0x14], ecx
movlpd qword [ebp - 0xc], xmm0
mov dword [edx], 0x6b636863
test ecx, ecx
je 0x43f300
xor esi, dword [edi]
add edi, 4
xor esi, eax
inc eax
cmp eax, ecx
jb 0x43f2f4
test ebx, ebx
je 0x43f333
xor eax, eax
test ebx, ebx
je 0x43f32a
lea ecx, [ebp - 0xc]
sub edi, ecx
nop
cmp eax, 8
jae 0x43f324
lea edx, [ebp - 0xc]
add edx, eax
inc eax
mov cl, byte [edi + edx]
mov byte [edx], cl
cmp eax, ebx
jb 0x43f310
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
xor eax, esi
xor eax, ecx
jmp 0x43f335
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret