joyce8/EMBER2024-capa huggingface dataset:
Function at 0x653856
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x653877
mov eax, 0x8876086c
jmp 0x653962
cmp dword [ebp + 0x7c], esi
je 0x6538f1
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x6538d1
mov ebx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push esi
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.006746a0
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push esi
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x6538f1
push esi
push 0x10000000
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 0x78]
call dword [sym.imp.kernel32.dll_CreateFileW]
jmp 0x65390a
push esi
push 0x10000000
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 0x78]
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x65394a
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x65394a
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
je 0x65394a
push esi
push dword [edi]
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
jne 0x653960
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, esi
jle 0x653962
and eax, 0xffff
or eax, 0x80070000
jmp 0x653962
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x670a20
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetTickCount]
push esi
push edi
mov dword [esp + 0x10], 0
call ebp
push eax
call fcn.00674662
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
test eax, eax
mov dword [0x819648], eax
je 0x670b2a
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
push 1
push eax
call ebx
mov ecx, dword [0x819648]
push 0xa
push ecx
mov esi, eax
call ebx
test eax, eax
je 0x670b2a
test esi, esi
je 0x670b2a
mov edi, dword [esp + 0x28]
mov ebx, edi
and ebx, 0x8000
je 0x670a9b
push 0x6dc2fc
call eax
test eax, eax
jne 0x670b2f
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push ebp
push edx
push 0x3030e03
push edi
mov edi, dword [esp + 0x2c]
push eax
push ecx
push edi
call esi
mov ebp, eax
test ebp, ebp
jne 0x670b20
test ebx, ebx
je 0x670b20
push 0x20c
call fcn.0067654f
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebx], edi
mov edi, dword [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 4]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x6dc2d4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.kernel32.dll_CreateEventA]
lea ecx, [esp + 0x10]
mov dword [0x81964c], eax
push ecx
push ebp
push ebx
push 0x670c60
push ebp
push ebp
call fcn.00676b03
add esp, 0x18
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
mov eax, 0x101
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18

Function at 0x671190
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6711ee
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push esi
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov esi, eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
test esi, esi
mov eax, dword [esp + 4]
pop esi
je 0x6711f2
mov eax, dword [esp + 0x14]
pop ecx
ret 0x10

Function at 0x671360
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x671397
push ebx
push edi
mov edi, dword [esp + 0x10]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx + edi]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x6dc388]
xor eax, edx
inc ecx
cmp ecx, esi
jl 0x671375
pop edi
pop ebx
pop esi
ret 0xc
Function at 0x6761a5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6761c5
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.00674bd1
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x6761e8
test byte [esp + 8], 2
je 0x6761e8
call fcn.00674c44
mov dword [eax], 0xd
call fcn.00674c4d
mov dword [eax], 5
jmp 0x6761c1
xor eax, eax
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x614e6f1e
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4f1043a
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x524f90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd0000]
push edi
jmp 0x524faa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x524fb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x524fa0
mov eax, 1
add ebx, ebx
jne 0x524fc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x524fd4
jne 0x524ff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x524ff3
dec eax
add ebx, ebx
jne 0x524fe0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x524fb8
add ebx, ebx
jne 0x524fef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x525045
xor ecx, ecx
sub eax, 3
jb 0x52500b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52507a
sar eax, 1
mov ebp, eax
jmp 0x525016
add ebx, ebx
jne 0x525016
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x524fe4
inc ecx
add ebx, ebx
jne 0x525024
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x524fe4
add ebx, ebx
jne 0x525031
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x525026
jne 0x525042
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x525026
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x525064
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x525056
jmp 0x524fa6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x525064
add edi, ecx
jmp 0x524fa6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x525082
cmp byte [edi], 0x11
jne 0x525082
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 0x525087
lea edi, [esi + 0x11d000]
mov eax, dword [edi]
or eax, eax
je 0x5250ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17167c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1717f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5250b4
mov ecx, edi
jns 0x5250e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1717fc]
or eax, eax
je 0x5250f9
mov dword [ebx], eax
add ebx, 4
jmp 0x5250d1
call dword [esi + 0x17180c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x525130
cmp al, 0xef
ja 0x525123
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x525105
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x525112
mov ebp, dword [esi + 0x171800]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x525164
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x40894d
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
call fcn.00408973
xor dword [edx], ecx
add edx, 1
cmp edx, ebx
jne fcn.0040894d
mov esi, 0x143358f
push 0x42aaee8
pop eax
ret

Function at 0x438c8c
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop ecx
add ebx, ebx
inc ebx
sub ebx, esi
call fcn.00438cc9
sub esi, 1
xor dword [edi], ecx
dec esi
add esi, 0x8b6afdd1
mov esi, ebx
inc edi
mov esi, 0x590d03d8
or ebx, esi
add esi, 0x4c83bd0f
cmp edi, edx
jne fcn.00438c8c
mov esi, ebx
ret
Function at 0x4086d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x94]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], edx
mov edx, dword [ecx]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x70], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 0xc]
xor ecx, ecx
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x7c], eax
mov eax, dword [edx]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov ecx, dword [edx + 4]
mov eax, dword [edx + 8]
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x54], ecx
mov ecx, dword [edx + 0xc]
xor edx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], eax
mov dword [esp + 0x6c], edx
push ecx
lea edx, [esp + 0x54]
mov dword [esp + 0x30], eax
push edx
mov eax, ecx
push eax
mov dword [esp + 0x1c], 1
call fcn.00406700
add esp, 0xc
xor esi, esi
xor ebp, ebp
mov ebx, dword [esp + ebp*4 + 0x70]
test ebx, ebx
mov edi, 0x20
je 0x408831
mov edi, edi
test bl, 1
je 0x408829
test esi, esi
je 0x408802
lea esp, [esp]
lea ecx, [esp + 0x30]
push ecx
call fcn.00405460
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x58]
push eax
mov ecx, edx
push ecx
call fcn.00406700
add esp, 0x10
dec esi
jne 0x4087e0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push eax
mov ecx, edx
push ecx
call fcn.004071d0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x60]
push eax
mov ecx, edx
push ecx
call fcn.00406700
add esp, 0x18
shr ebx, 1
inc esi
dec edi
test ebx, ebx
jne 0x4087d0
add esi, edi
inc ebp
cmp ebp, 4
jb 0x4087c1
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x14]
mov dword [edx], eax
mov eax, dword [esp + 0x18]
pop edi
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x18]
pop esi
mov dword [edx + 8], eax
pop ebp
mov dword [edx + 0xc], ecx
pop ebx
add esp, 0x80
ret
Function at 0x40d9b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x43e264], 0xffffffff
push ebx
push ebp
push esi
push edi
mov edi, 0x443660
mov esi, 0x443668
jge 0x40d8b4
push 0x1105
call fcn.0040d860
add esp, 4
mov ecx, dword [0x443660]
mov eax, dword [0x443664]
mov dword [0x43e264], 0x26f
mov dword [0x444024], 0x443664
mov edx, 0xe3
jmp 0x40d8e0
mov ebp, dword [esi + 0x62c]
mov ebx, eax
xor ebx, ecx
and ebx, 0x7ffffffe
xor ebx, ecx
mov ecx, eax
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, 0x9908b0df
xor ebx, ecx
xor ebx, ebp
mov dword [edi], ebx
mov ecx, eax
mov eax, dword [esi]
add edi, 4
add esi, 4
dec edx
jne 0x40d8e0
mov ebx, 0x443660
mov ebp, 0x18c
mov edx, eax
xor edx, ecx
and edx, 0x7ffffffe
xor edx, ecx
mov ecx, eax
and cl, 1
shr edx, 1
neg cl
sbb ecx, ecx
and ecx, 0x9908b0df
xor edx, ecx
xor edx, dword [ebx]
mov dword [edi], edx
mov ecx, eax
mov eax, dword [esi]
add edi, 4
add ebx, 4
add esi, 4
dec ebp
jne 0x40d920
mov esi, dword [0x443660]
mov eax, esi
xor eax, ecx
and eax, 0x7ffffffe
xor eax, ecx
shr eax, 1
mov ecx, esi
and cl, 1
neg cl
mov edx, esi
sbb ecx, ecx
and ecx, 0x9908b0df
xor eax, ecx
xor eax, dword [ebx]
mov dword [edi], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov ecx, edx
and ecx, 0xff3a58ad
shl ecx, 7
xor edx, ecx
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
pop edi
pop esi
mov eax, edx
shr eax, 0x12
pop ebp
xor eax, edx
pop ebx
ret
dec dword [0x43e264]
jns 0x40d9bd
jmp 0x40d890
mov eax, dword [0x444024]
mov ecx, dword [eax]
add eax, 4
mov dword [0x444024], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov edx, ecx
and edx, 0xff3a58ad
shl edx, 7
xor ecx, edx
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x413400
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
mov dword [ecx + 0x14], 0xc3d2e1f0
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
ret

Function at 0x415240
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0x4359c0
jmp fcn.00413400

Function at 0x415300
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
push esi
push 0
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x415320
or eax, eax
pop esi
add esp, 0x18
ret 0xc
push edi
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x1c], 1
call edi
push 4
lea ecx, [esp + 0xc]
push ecx
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x1c], 0x40000
call edi
push 4
lea edx, [esp + 0xc]
push edx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4000
call edi
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x18], 1
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
test eax, eax
je 0x4153a0
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x18
ret 0xc
push 4
lea ecx, [esp + 0xc]
push ecx
push 0x20
push 0xffff
push esi
call edi
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x12], ax
mov eax, dword [esp + 0x2c]
test eax, eax
mov word [esp + 0x10], 2
je 0x4153e2
cmp byte [eax], 0
je 0x4153e2
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [esp + 0x14], eax
jmp 0x4153ea
mov dword [esp + 0x14], 0
push 0x10
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
je 0x415395
pop edi
mov eax, esi
pop esi
add esp, 0x18
ret 0xc

Function at 0x415410
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x415434
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
je 0x415434
mov eax, dword [eax]
mov dword [esp + 4], eax
jmp dword [sym.imp.WSOCK32.dll_inet_ntoa]
xor eax, eax
ret 4

Function at 0x415440
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x254
mov eax, dword [esp + 0x258]
cmp eax, 0xffffffff
mov dword [esp], 0x10
mov word [esp + 4], 2
jne 0x415479
mov eax, dword [esp + 0x260]
mov dword [eax], 0xffffffff
or eax, 0xffffffff
add esp, 0x254
ret 0xc
push esi
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0x240
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_recvfrom]
mov esi, eax
cmp esi, 0xffffffff
je 0x4154d5
mov edx, dword [esp + 0xa]
push edx
call dword [sym.imp.WSOCK32.dll_ntohs]
test esi, esi
jle 0x4154c6
mov ecx, dword [esp + 0x260]
push ecx
push esi
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040a1b0
mov eax, 1
pop esi
add esp, 0x254
ret 0xc
mov ecx, dword [esp + 0x264]
mov dword [ecx], 0
xor eax, eax
pop esi
add esp, 0x254
ret 0xc
Function at 0x4154f0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x18]
cmp edi, 0xffffffff
jne 0x415506
or eax, edi
pop edi
add esp, 0x10
ret 0x14
mov eax, dword [esp + 0x28]
push esi
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x24]
mov word [esp + 0xa], ax
mov eax, dword [esp + 0x20]
push edx
push eax
push 0x4441c0
mov dword [esp + 0x18], ecx
mov word [esp + 0x14], 2
call fcn.0041dd40
mov esi, dword [sym.imp.WSOCK32.dll_sendto]
add esp, 0xc
mov edx, dword [esp + 0x24]
push 0x10
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push 0x4441c0
push edi
call esi
test eax, eax
je 0x415543
cmp eax, 0xffffffff
pop esi
je 0x41556c
xor eax, eax
pop edi
add esp, 0x10
ret 0x14
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
pop edi
add esp, 0x10
ret 0x14

Function at 0x415580
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0x10]
push esi
push eax
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004154f0
pop esi
ret 0x14

Function at 0x4155b0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x50
push 0x50
lea eax, [esp + 4]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
cmp eax, 0xffffffff
je 0x41561f
push ebx
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x41561e
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
je 0x41561e
push ebp
mov ebp, dword [sym.imp.WSOCK32.dll_inet_ntoa]
push esi
push edi
mov edi, dword [esp + 0x64]
xor esi, esi
mov edi, edi
cmp esi, 0x28
jge 0x41561b
mov edx, dword [esi + eax]
mov eax, dword [edx]
push eax
call ebp
mov edx, edi
nop
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x415600
mov eax, dword [ebx + 0xc]
mov ecx, dword [esi + eax + 4]
add esi, 4
add edi, 0x10
test ecx, ecx
jne 0x4155f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4

Function at 0x415630
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
lea eax, [esp]
push eax
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x41565c
xor ax, ax
add esp, 0x14
ret 4
mov eax, dword [esp + 6]
push eax
call dword [sym.imp.WSOCK32.dll_ntohs]
add esp, 0x14
ret 4
Function at 0x416740
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 0x7a44c6b
mul ecx
mov eax, edx
shr eax, 1
mov edx, eax
imul edx, edx, 0x43
cmp edx, ecx
je 0x41675f
push 1
call fcn.00426275
mov ecx, dword [0x4753d4]
test ecx, ecx
mov dword [0x4753d8], eax
je 0x41677c
push ecx
call fcn.0042458d
mov eax, dword [0x4753d8]
add esp, 4
mov ecx, dword [0x4753cc]
test ecx, ecx
je 0x416794
push ecx
call fcn.0042458d
mov eax, dword [0x4753d8]
add esp, 4
imul eax, eax, 0x3f
push esi
push eax
push 1
call fcn.004262b5
mov dword [0x4753d4], eax
mov eax, dword [0x4753d8]
lea ecx, [eax*4]
push ecx
push 1
call fcn.004262b5
mov esi, dword [esp + 0x18]
mov dword [0x4753cc], eax
mov al, byte [esi + 0xc]
add esp, 0x10
test al, 0x10
jne 0x41680c
push ebp
push edi
xor ebp, ebp
xor edi, edi
mov edx, dword [0x4753cc]
push esi
push 4
lea eax, [edi + edx]
push 1
push eax
call fcn.00425636
mov ecx, dword [0x4753d4]
push esi
push 0x3f
lea edx, [ecx + ebp]
push 1
push edx
call fcn.00425636
mov al, byte [esi + 0xc]
add esp, 0x20
add edi, 4
add ebp, 0x3f
test al, 0x10
je 0x4167d2
pop edi
pop ebp
pop esi
ret 8

Function at 0x416810
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 0x38e38e39
mul ecx
mov eax, edx
shr eax, 4
lea edx, [eax + eax*8]
shl edx, 3
cmp edx, ecx
je 0x416831
push 1
call fcn.00426275
mov ecx, dword [0x4753d0]
test ecx, ecx
mov dword [0x4753d8], eax
je 0x41684e
push ecx
call fcn.0042458d
mov eax, dword [0x4753d8]
add esp, 4
mov ecx, dword [0x4753cc]
test ecx, ecx
je 0x416866
push ecx
call fcn.0042458d
mov eax, dword [0x4753d8]
add esp, 4
imul eax, eax, 0x44
push esi
push eax
push 1
call fcn.004262b5
mov dword [0x4753d0], eax
mov eax, dword [0x4753d8]
lea ecx, [eax*4]
push ecx
push 1
call fcn.004262b5
mov esi, dword [esp + 0x18]
mov dword [0x4753cc], eax
mov al, byte [esi + 0xc]
add esp, 0x10
test al, 0x10
jne 0x4168de
push ebp
push edi
xor ebp, ebp
xor edi, edi
mov edx, dword [0x4753cc]
push esi
push 4
lea eax, [edi + edx]
push 1
push eax
call fcn.00425636
mov ecx, dword [0x4753d0]
push esi
push 0x44
lea edx, [ecx + ebp]
push 1
push edx
call fcn.00425636
mov al, byte [esi + 0xc]
add esp, 0x20
add edi, 4
add ebp, 0x44
test al, 0x10
je 0x4168a4
pop edi
pop ebp
pop esi
ret 8