joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b95e1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c13d8
cmp edx, dword [eax]
je 0x4b9603
add eax, 8
inc ecx
cmp eax, 0x4c1468
jl 0x4b95f4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c13d8]
jne 0x4b9731
mov eax, dword [0x4c5d5c]
cmp eax, 1
je 0x4b970b
test eax, eax
jne 0x4b9634
cmp dword [0x4c1300], 1
je 0x4b970b
cmp edx, 0xfc
je 0x4b9731
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b966b
lea eax, [ebp - 0x1a4]
push 0x4be968
push eax
call fcn.004b9fc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004ba450
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b96ae
lea eax, [ebp - 0x1a4]
push eax
call fcn.004ba450
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4be964
push edi
call fcn.004bc320
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4be948
push eax
call fcn.004b9fc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004b9fd0
lea eax, [ebp - 0xa0]
push 0x4be944
push eax
call fcn.004b9fd0
push dword [esi + 0x4c13dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004b9fd0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4be91c
push eax
call fcn.004bc294
add esp, 0x2c
pop edi
jmp 0x4b9731
lea eax, [ebp + 8]
lea esi, [esi + 0x4c13dc]
push 0
push eax
push dword [esi]
call fcn.004ba450
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x6c29e2bc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
add byte [ecx + 0x44c75dec], cl
and al, 0xc
inc eax
add byte [eax], al
add bh, al
inc esp
and al, 8
add byte [eax], dh
add byte [eax], al
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [0x6d42702c], eax
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x6c29e3ee
push dword [ebp - 4]
ret

Function at 0x6c36b830
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6c36c3a0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6c36c3a0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6c36b890
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6d427068]
test esi, esi
jle 0x6c36b9b0
mov eax, dword [0x6d42706c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x6c36b8c4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6c36b947
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6c36b8b0
mov dword [esp], ebx
call fcn.6c36c080
mov edi, eax
test eax, eax
je 0x6c36b9d7
mov eax, dword [0x6d42706c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6c36c1c0
mov edx, dword [0x6d42706c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6c36b9b7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6c36b940
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6c36b950
add dword [0x6d427068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x6d42706c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6c36b940
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6c36b830
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6c36b8ce
mov eax, dword [0x6d42706c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6c36b830
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6c36b830
lea esi, [esi]
nop
Function at 0x6c36bcf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6d427078
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6d427070]
sub esp, 4
test ebx, ebx
je 0x6c36bd45
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6c36bd3e
test esi, esi
je 0x6c36bd3e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6c36bd20
mov dword [esp], 0x6d427078
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6c36c080
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6c280000], 0x5a4d
jne 0x6c36c0a5
mov ecx, dword [0x6c28003c]
cmp dword [ecx + 0x6c280000], 0x4550
lea edx, [ecx + 0x6c280000]
je 0x6c36c0b0
ret
cmp word [ecx + 0x6c280018], 0x10b
jne 0x6c36c0a5
push esi
movzx eax, word [ecx + 0x6c280014]
push ebx
movzx esi, word [ecx + 0x6c280006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6c280000
test si, si
je 0x6c36c0f8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6c36c0ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6c36c0fa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6c36c0e0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40b483
Capabilities:
Encode data using xor

Disassembly:
fidivr dword [edi - 0x7c]
dec ebp
dec esi
pmullw mm7, qword [ebx - 0x3d]
push ebp
inc edi
out 0xec, eax
in al, dx
movsb byte es:[edi], byte [esi]
xor cl, byte [ebx]
jecxz 0x40b48f
pop ds
test byte [ebp + 0x248735a8], bh
adc ebx, dword [eax]
cmpsd dword [esi], dword es:[edi]
sbb ah, byte [esi - 0x51e56de0]
hlt

Function at 0x43b10b
Capabilities:
Encode data using xor

Disassembly:
out dx, eax
movsd dword es:[edi], dword [esi]
cmp eax, 0x3c21fc59
push ebx
or eax, 0xed856e7e
mov al, 0xe1
dec ecx
int 0xa3
and dword [edi + 1], ebx
sbb eax, 0x23b434d
sub al, byte [ebx + 0x1c]
invalid
mov eax, dword [0xbc7e928f]
xchg edx, eax
jle 0x43b059
and byte [edx], 0x19
mov byte [ecx + 0x66], dl
int1
push 0x88f90958
shr dword [ebp + 0x7b], cl
mov word [eax], cs
jne 0x43b051
inc edx
fstp qword [ecx + 0x1d349568]
sub al, 0x9b
dec eax
aas
lea ebp, [ebp + 0x6395a754]
push esp
jg 0x43b119
lodsd eax, dword [esi]
push esp
cmpsd dword [esi], dword es:[edi]
xchg ebp, eax
arpl word [edi + edi*2 + 0x55], dx
fimul word [edx + 0x22]
xor esp, dword [edi + 0x68b4c386]
xchg eax, ebp
inc edx
lahf
dec eax
mov bh, 0x75
add byte [edi], 0x37
sub dword ds:[edi], 0x1421a9fa
adc eax, 0x784e87c4
call [ecx - 0x7657162c]
pop esi
dec edi
test byte [esp + edi + 0x3547ff16], dh
inc dword [edi]
in al, 0x49
mov edi, 0xac478e3e
daa
cld
jl 0x43b098
xchg edx, eax
pop ecx
and al, 0x7e
js 0x43b157
invalid
jp 0x43b09a
pop ecx
jns 0x43b0bc
xchg ecx, eax
mov eax, 0x18999b33
jmp 0x43b171
cwde
mov edx, 0xc35e58e8
mov edx, 0x3b7e9ceb
jle 0x43b15f
xor eax, 0xd8408484
sbb eax, 0xbeb5b0e3
xor al, 0x7a
xor eax, 0xbbba3478
or al, 0xce
push 0x399ba444
test al, 0x59
cmp byte [ebp + 0x3e], 4
cld
inc esp
movsb byte es:[edi], byte [esi]
wait
cmp dword [eax + 0x3e7d8259], ebp
add al, 0xfc
popal
pop ebp
sub al, 0xec
jge 0x43b122
dec esp
mov al, 0xd8
retf
in eax, dx
aam 0x7b
sub eax, 0x2a68b90c
test edi, ebp
xor edx, 0x96ec9eb8
mov eax, 0x6b149b98
stosb byte es:[edi], al
inc ebp
test edi, ebp
aam 0xb4
jge 0x43b1d4
stosb byte es:[edi], al
fstp xword [ebx + 6]
adc eax, 0x3b24c845
test dword [edi - 0x476742d2], ecx
mov ch, byte [eax]
add eax, 0x8a7c7854
jbe 0x43b138
hlt
push esi
and al, 0x9e
mov al, byte [esi - 0x6d3c4911]
pop es
lahf
mov edi, 0x756039a
pop esi
invalid
Function at 0x403d57
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
xor ecx, ecx
add eax, edx
mov dword [ebp - 8], ecx
cmp dword [eax + 0x7c], ecx
je 0x403dd4
push ebx
push esi
mov esi, dword [eax + 0x78]
add esi, edx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [esi + 0x20]
add ebx, edx
add edi, edx
mov dword [ebp - 4], ecx
cmp dword [esi + 0x14], ecx
jbe 0x403dd1
jmp 0x403d8e
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [edi + eax*4]
add ecx, edx
mov dword [ebp - 0xc], ecx
call fcn.00404816
mov ecx, dword [ebp - 0xc]
mov edx, eax
call fcn.00404824
test eax, eax
je 0x403db9
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x14]
jb 0x403d8b
jmp 0x403dd1
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 4]
lea ecx, [eax + ecx*2]
mov eax, dword [ebp + 8]
movzx ecx, word [ecx + eax]
mov ebx, dword [ebx + ecx*4]
add ebx, eax
mov dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
call fcn.00403d2a
sub eax, dword [0x40500c]
mov ecx, 0x7fff
cmp ecx, eax
sbb eax, eax
not eax
and eax, dword [ebp - 8]
leave
ret
Function at 0x401d28
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x4028fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40291b
mov eax, 0
jmp 0x40295f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40293e
mov eax, 0
jmp 0x40295f
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40295a
mov eax, 0
jmp 0x40295f
mov eax, 1
leave
ret

Function at 0x402961
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4029c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4029b8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4029b8
mov eax, dword [ebp - 4]
jmp 0x4029d4
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x402995
mov eax, 0
leave
ret
Function at 0x40b810
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddcb5
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6264e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004080e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004080e0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 8
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004080e0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004080e0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
add ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004080e0
mov byte [ebp - 4], 4
mov edx, dword [ebp + 8]
add edx, 0x14
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004080e0
mov byte [ebp - 4], 5
mov eax, dword [ebp + 8]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004080e0
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 8]
add ecx, 0x1c
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.004080e0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
fld dword [eax + 0x24]
fstp dword [edx + 0x24]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
fld dword [edx + 0x28]
fstp dword [ecx + 0x28]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
fld dword [ecx + 0x34]
fstp dword [eax + 0x34]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
fld dword [eax + 0x38]
fstp dword [edx + 0x38]
mov esi, dword [ebp + 8]
add esi, 0x3c
mov edi, dword [ebp - 0x10]
add edi, 0x3c
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
add ecx, 0xb4
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xb4
call fcn.0040c170
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40bbd0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddcb5
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6264e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004080e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004080e0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 8
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004080e0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004080e0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
add ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004080e0
mov byte [ebp - 4], 4
mov edx, dword [ebp + 8]
add edx, 0x14
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004080e0
mov byte [ebp - 4], 5
mov eax, dword [ebp + 8]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004080e0
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 8]
add ecx, 0x1c
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.004080e0
mov byte [ebp - 4], 7
mov edx, dword [ebp + 8]
add edx, 0x20
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.004080e0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
fld dword [ecx + 0x38]
fstp dword [eax + 0x38]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
fld dword [eax + 0x3c]
fstp dword [edx + 0x3c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x40]
mov dword [ecx + 0x40], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
mov dword [ecx + 0x44], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
fld dword [edx + 0x48]
fstp dword [ecx + 0x48]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
fld dword [ecx + 0x4c]
fstp dword [eax + 0x4c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
fld dword [eax + 0x50]
fstp dword [edx + 0x50]
mov esi, dword [ebp + 8]
add esi, 0x54
mov edi, dword [ebp - 0x10]
add edi, 0x54
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
add esi, 0xcc
mov edi, dword [ebp - 0x10]
add edi, 0xcc
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x430470
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x430514
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x4304e5
cmp word [ecx + 0xa], 4
jne 0x4304e5
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4304e5
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.00430400
mov dword [esi], eax
test eax, eax
je 0x430508
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x4304c0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.00481a83
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x430524.11001
jmp dword [eax*4 + 0x430548]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x430d80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x6264e4]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x6285ac], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x4307e0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x430ad0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.00430790
je 0x430df2
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x51010c]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0047d9e4
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x430eed
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.00481b36
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.00481eee
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x430e6d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x430eb4
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.00481b36
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.00481eee
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x430ee9
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x430f1d
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
mov dword [esp + edi*8 + 0x14], eax
test eax, eax
je 0x430f1d
inc edi
cmp edi, 3
jl 0x430eb6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x51010c], edx
mov dword [0x510114], eax
mov dword [fcn.00430790], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x51010c]
xor ecx, esp
mov dword [0x6285ac], 1
call fcn.0047d9e4
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x430ee9

Function at 0x430f90
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
ret
Function at 0x435d10
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push 0x10
push 0x1a8
call fcn.00435e90
mov esi, eax
add esp, 8
test esi, esi
je 0x435d87
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push 0
push ebx
call fcn.00435b40
add esp, 8
cmp dword [esi + 0x114], 2
mov eax, str.socket___d_
je 0x435d53
mov eax, str.TCP_IP___d_
mov ecx, dword [esi]
push ecx
push eax
lea edx, [esi + 0x118]
push edx
call fcn.0047dbcb
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push ebx
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and dword [esi + 0xc], 0xfffffffe
pop edi
mov eax, esi
pop ebx
pop esi
pop ecx
ret

Function at 0x435e90
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x435e9f
mov esi, 1
push esi
call fcn.0047cf83
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x435ef3
push edi
call fcn.0048209e
mov edi, eax
call fcn.0043b8d0
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x435ed6
mov edx, dword [0x5201ec]
mov dword [0x5201e8], edx
test al, 0x18
je 0x435ee7
push esi
push 0x64
push 5
call fcn.0043a150
add esp, 0xc
test edi, edi
pop edi
je 0x435f06
push 1
call fcn.004819f7
test byte [esp + 0x10], 0x20
je 0x435f06
push esi
push 0
push ebx
call fcn.0047d050
add esp, 0xc
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x436430
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esi + 1]
push edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x436476
xor eax, eax
add esp, 0x10c
ret
je 0x436493
lea eax, [esp + 8]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add esp, 0x10c
ret
xor eax, eax
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add esp, 0x10c
ret

Function at 0x4371f0
Capabilities:
Get common file path

Disassembly:
push esi
push str.GetSystemWindowsDirectoryA
push str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push edi
test eax, eax
je 0x437214
call eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
cmp esi, 8
jbe 0x43723d
lea eax, [esi + edi - 8]
push str.System32
push eax
call fcn.00490d7d
add esp, 8
test eax, eax
jne 0x43723d
sub esi, 8
mov byte [esi + edi], al
mov eax, esi
pop esi
ret