joyce8/EMBER2024-capa huggingface dataset:
Function at 0x513680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
xor edx, edx
push esi
xor esi, esi
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 0x10]
cmp dword [eax + 0x14], edx
jle 0x51373d
push ebx
nop
mov eax, dword [eax + 0x10]
mov ebx, esi
xor ebx, 1
cmp esi, 2
cmovae ebx, esi
mov ecx, ebx
add ecx, ecx
mov edx, dword [eax + ecx*8 + 0xc]
mov dword [ebp - 8], edx
test edi, edi
je 0x513701
mov eax, dword [eax + ecx*8]
sub edi, eax
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x5136d4
test edx, edx
je 0x513701
inc eax
jmp 0x5136c2
movzx ecx, byte [ecx + 0x58c4c0]
movzx edx, byte [edx + 0x58c4c0]
sub edx, ecx
jne 0x5136e9
inc eax
jmp 0x5136c2
test ebx, ebx
jne 0x513721
push dword [ebp + 0x10]
push str.main
call fcn.0052a8d0
add esp, 8
test eax, eax
jne 0x513721
mov eax, dword [ebp - 8]
push 0
push dword [ebp + 0xc]
add eax, 0x18
push eax
call fcn.004ea6a0
add esp, 0xc
mov edx, dword [eax + 8]
mov dword [ebp - 4], edx
test edx, edx
jne 0x513734
jmp 0x513724
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
inc esi
mov edi, dword [ebp + 0x10]
cmp esi, dword [eax + 0x14]
jl 0x5136a0
pop ebx
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x51f320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x51f34a
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x51f34a
cmp dword [edx + 0x60], 0
je 0x51f346
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00545760
xor eax, eax
pop ebp
ret
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x51f348
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x51f368
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004f7200
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004f84e0
Function at 0x54a210
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x14
mov dword [edi], 0
call fcn.0051c8d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x54a237
pop edi
lea eax, [esi + 7]
pop esi
pop ebp
ret
cmp byte [0x5ac1cc], 0
push ebx
mov ebx, dword [ebp + 0x10]
je 0x54a282
mov eax, dword [0x5ac2bc]
test eax, eax
je 0x54a25b
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x54a282
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x52ad10
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.0049d9a9
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x54a292
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp dword [esi + 8], 0
jne 0x54a2ab
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp + 0xc]
add esp, 4
mov dword [esi + 0x10], eax
pop ebx
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..retplne
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x4090448b
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..reloc
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x49290226
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x30001310
Capabilities:
Encode data using xor

Disassembly:
sbb edx, edx
les esp, [edi + 0x6a]
dec esi
rol ah, cl
push 0x2e
dec esi
sbb eax, 0xd3728205
xor dword [edi], esi
jno 0x30001311
jmp 0xaab7651f
Function at 0x5da2f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x131000]
push edi
or ebp, 0xffffffff
jmp 0x5da312
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5da319
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5da308
mov eax, 1
add ebx, ebx
jne 0x5da32b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5da320
jne 0x5da33c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5da320
xor ecx, ecx
sub eax, 3
jb 0x5da350
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5da3c2
mov ebp, eax
add ebx, ebx
jne 0x5da35b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5da368
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5da38c
inc ecx
add ebx, ebx
jne 0x5da378
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5da36d
jne 0x5da389
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5da36d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5da3ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5da39d
jmp 0x5da30e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5da3ac
add edi, ecx
jmp 0x5da30e
pop esi
mov edi, esi
mov ecx, 0x8d1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5da3ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x5da3cf
lea edi, [esi + 0x1d8000]
mov eax, dword [edi]
or eax, eax
je 0x5da440
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1da5d0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1da60c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5da3f5
mov ecx, edi
jns 0x5da424
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 + 0x1da614]
or eax, eax
je 0x5da43a
mov dword [ebx], eax
add ebx, 4
jmp 0x5da412
call dword [esi + 0x1da610]
mov ebp, dword [esi + 0x1da618]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
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 0x5da474
sub esp, 0xffffff80
jmp 0x4010e0

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
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]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4016a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4016b7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4016e8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4016e4
cmp esi, eax
jae 0x4016e8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4016d4
cmp esi, eax
jb 0x4016ee
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4018d0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.360EntPublish
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40191e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40191e
call fcn.004191f0
test al, al
je 0x40190c
call fcn.0040f630
mov ecx, dword [0x436770]
call fcn.00407560
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret

Function at 0x4027c0
Capabilities:
Hash data with md5

Disassembly:
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CMD5Checksum.0
call fcn.0041e4d0
add esp, 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
ret
Function at 0x404750
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push edi
xor edi, edi
cmp dword [esi], edi
jne 0x404765
xor eax, eax
pop edi
pop ebx
add esp, 0x14
ret 8
lea ebx, [esi + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xc], edi
je 0x4047c2
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
xor eax, eax
cmp edx, eax
jl 0x4047c2
jg 0x4047a1
mov eax, dword [esp + 0x10]
cmp eax, ecx
jbe 0x4047c2
mov edx, dword [esi]
push edi
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 1
pop ebx
add esp, 0x14
ret 8

Function at 0x405600
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x800c
call fcn.00429400
mov eax, dword [0x4340a0]
xor eax, esp
mov dword [esp + 0x8008], eax
push ebx
push ebp
mov ebp, dword [esp + 0x8018]
xor ebx, ebx
push edi
mov edi, ecx
mov byte [edi], bl
mov byte [edi + 0x3fff], bl
cmp dword [ebp + 0x8008], ebx
jne 0x40563d
xor eax, eax
jmp 0x4056ed
push esi
lea esi, [esp + 0x10]
mov edx, ebp
mov dword [esp + 0x10], ebx
call fcn.004055a0
test eax, eax
je 0x40565b
mov eax, 1
jmp 0x4056ec
mov eax, dword [ebp + 0x8000]
mov esi, dword [ebp + 0x8004]
sub esi, eax
cmp esi, ebx
jle 0x405692
add eax, ebp
push esi
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0041e980
push esi
lea ecx, [esp + 0x28]
push ecx
push ebp
call fcn.0041e980
add esp, 0x18
mov dword [ebp + 0x8004], esi
jmp 0x405698
mov dword [ebp + 0x8004], ebx
mov ecx, dword [ebp + 0x8004]
push ebx
lea edx, [esp + 0x18]
push edx
mov eax, 0x8000
sub eax, ecx
push eax
lea eax, [ecx + ebp]
mov ecx, dword [ebp + 0x8008]
push eax
push ecx
mov dword [ebp + 0x8000], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4056ec
mov edx, dword [esp + 0x14]
add dword [ebp + 0x8004], edx
lea esi, [esp + 0x10]
mov edx, ebp
mov dword [ebp + 0x8000], ebx
call fcn.004055a0
neg eax
sbb eax, eax
neg eax
pop esi
mov ecx, dword [esp + 0x8014]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041c227
add esp, 0x800c
ret 4
Function at 0x405720
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x42a128
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x18], 0x10
jb 0x405753
mov eax, dword [ebx + 4]
jmp 0x405756
lea eax, [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x405830
push 0x436614
mov dword [esp + 0x18], 0x436614
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x28], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], 0
call esi
sub eax, dword [0x43662c]
cmp eax, 0x1b7740
jbe 0x4057d9
mov eax, dword [0x43660c]
mov ecx, dword [eax + 4]
push ecx
mov ecx, 0x4365f4
call fcn.00406400
mov eax, dword [0x43660c]
mov dword [eax + 4], eax
mov eax, dword [0x43660c]
mov dword [0x436610], 0
mov dword [eax], eax
mov eax, dword [0x43660c]
mov dword [eax + 8], eax
call esi
mov dword [0x43662c], eax
lea edx, [esp + 0x18]
push edx
call fcn.004060e0
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [0x43660c]
test esi, esi
je 0x4057fa
cmp esi, dword [0x4365f4]
je 0x4057ff
call fcn.0041cb02
cmp edi, ebx
je 0x40581f
test esi, esi
jne 0x40581b
call fcn.0041cb02
cmp edi, dword [esi + 0x18]
jne 0x405816
call fcn.0041cb02
mov edi, dword [edi + 0x28]
jmp 0x405823
mov esi, dword [esi]
jmp 0x40580c
mov edi, dword [esp + 0x10]
push 0x436614
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x4059f0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push esi
push 0x405cc0
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop ecx
ret
Function at 0x405a20
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x42a768
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x405b53
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
xor esi, esi
cmp ebp, esi
je 0x405b50
lea eax, [esp + 0x18]
push eax
call fcn.00408b30
mov dword [esp + 0x38], esi
mov eax, dword [ebp + 0xc]
cmp dword [eax], esi
je 0x405aa5
mov ecx, dword [eax]
mov edx, dword [ecx]
lea ebx, [esp + 0x14]
lea edi, [esp + 0x18]
mov dword [esp + 0x14], edx
call fcn.00406160
mov eax, dword [ebp + 0xc]
inc esi
cmp dword [eax + esi*4], 0
lea eax, [eax + esi*4]
jne 0x405a81
xor esi, esi
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
sub ecx, eax
test ecx, 0xfffffffc
je 0x405b2a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
sub ecx, edi
mov eax, edx
sar ecx, 2
xor edx, edx
div ecx
mov ebx, edx
cmp ebx, ecx
jb 0x405aeb
call fcn.0041cb02
mov edi, dword [esp + 0x24]
mov ebx, dword [edi + ebx*4]
cmp edi, esi
je 0x405afb
push edi
call fcn.0041c21c
add esp, 4
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.0041c21c
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp eax, esi
je 0x405b37
push eax
call fcn.0041c21c
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.0041c21c
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x405b70
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42aab8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4340a0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [edi]
add ecx, 0x2c
xor ebx, ebx
mov eax, ecx
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405bc2
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00404390
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], ebx
call fcn.00405720
mov esi, dword [edi]
add esi, 0x1c
mov ebx, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, 2
mov word [esi], ax
mov ecx, dword [edi]
movzx edx, word [ecx + 0x12c]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov dword [esi + 4], 0xffffffff
test ebx, ebx
je 0x405c23
mov dword [esi + 4], ebx
jmp 0x405c4c
mov ecx, dword [edi]
add ecx, 0x2c
call fcn.00405a20
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x405c41
lea eax, [esp + 0xc]
push eax
call fcn.004058c0
jmp 0x405c4c
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00405850
cmp dword [esi + 4], 0xffffffff
mov ebx, 0x10
je 0x405c86
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x405c80
push 1
mov eax, edi
call fcn.004059a0
cmp dword [esp + 0x24], ebx
jb 0x405ca2
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x405c9a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0
mov eax, edi
call fcn.004059a0
cmp dword [esp + 0x24], ebx
jb 0x405ca2
mov edx, dword [esp + 0x10]
push edx
call fcn.0041c21c
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041c227
mov esp, ebp
pop ebp
ret
Function at 0x4084c0
Capabilities:
Get local ipv4 addresses

Disassembly:
push 0xffffffffffffffff
push 0x42b586
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ecx, dword [0x436640]
mov eax, dword [0x43663c]
mov ebx, ecx
cmp eax, ecx
jbe 0x40850d
call fcn.0041cb02
mov ecx, dword [0x436640]
mov eax, dword [0x43663c]
mov esi, dword [0x436630]
mov edi, eax
cmp eax, ecx
jbe 0x40851e
call fcn.0041cb02
mov eax, dword [0x436630]
push ebx
push esi
push edi
push eax
push 0x436630
lea ebx, [esp + 0x30]
call fcn.004041c0
lea ecx, [esp + 0x14]
push ecx
push 0
mov dword [esp + 0x1c], 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408628
push eax
call fcn.0041d1c0
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x408628
lea edx, [esp + 0x14]
push edx
push edi
mov esi, edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x40861f
cmp dword [esi + 0x1a0], 0x18
je 0x408615
lea eax, [esi + 0x1b0]
test eax, eax
je 0x408615
push eax
lea eax, [esp + 0x28]
call fcn.00408450
mov dword [esp + 0xb0], 0
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00401cb0
mov byte [esp + 0xb0], 2
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x4085d8
push eax
call fcn.0041c361
add esp, 4
lea ebx, [esp + 0x18]
mov edi, 0x436630
call fcn.00403fa0
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408611
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
mov esi, dword [esi]
test esi, esi
jne 0x408581
push edi
call fcn.0041c361
add esp, 4
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xa4
ret
Function at 0x40ac60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42b9c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push edi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push ecx
mov dword [esp + 0x28], 0
mov eax, esp
mov dword [esp + 0x14], esp
push eax
mov ecx, 0x42df13
call fcn.00401cb0
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.004031e0
add eax, 0x10
mov dword [edi], eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, 0x42df13
mov byte [esp + 0x34], 2
call fcn.00401cb0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x38]
push 0x191
push edx
mov ecx, str.Unauthorized
mov byte [esp + 0x58], 0
call fcn.00409d50
mov eax, dword [esp + 0x40]
add esp, 0x34
push 0x3fff
push eax
lea ecx, [esi + 0x150]
push ecx
call fcn.0041d890
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
mov dword [esi + 0x4150], ecx
add eax, 0xfffffff0
mov dword [esi + 0x4158], 2
mov dword [esi + 0x4154], 0
add esp, 0xc
mov dword [esi + 0x4178], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ad5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x20
ret