joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429eb9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x429f03
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x429eaa
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x429eb9
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x82fb5c
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x429f0a
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.00410d80
cmp eax, dword [ebp + 0xc]
pop eax
je 0x429fa9
add edi, 4
add eax, 2
dec ecx
jne 0x429eef
call 0x429f56
loope 0x429f4c
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x429fa6
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x429fb7
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x429f6a
cmp eax, ecx
ja 0x429f6a
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x429ff4
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x429fea
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.0041125f
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
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 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, reloc.kernel32.dll_SleepEx
nop
nop
mov ebx, dword [eax]
nop
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
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x630700
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xba000]
push edi
jmp 0x63071a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x630721
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x630710
mov eax, 1
add ebx, ebx
jne 0x630733
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x630744
jne 0x630763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x630763
dec eax
add ebx, ebx
jne 0x630750
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x630728
add ebx, ebx
jne 0x63075f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6307b5
xor ecx, ecx
sub eax, 3
jb 0x63077b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6307ea
sar eax, 1
mov ebp, eax
jmp 0x630786
add ebx, ebx
jne 0x630786
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x630754
inc ecx
add ebx, ebx
jne 0x630794
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x630754
add ebx, ebx
jne 0x6307a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x630796
jne 0x6307b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x630796
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6307d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6307c6
jmp 0x630716
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6307d4
add edi, ecx
jmp 0x630716
pop esi
mov edi, esi
mov ecx, 0x4ee4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6307f2
cmp byte [edi], 0x13
jne 0x6307f2
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 0x6307f7
lea edi, [esi + 0x22c000]
mov eax, dword [edi]
or eax, eax
je 0x630866
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x270fe0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2710a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x630824
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2710ac]
or eax, eax
je 0x630860
mov dword [ebx], eax
add ebx, 4
jmp 0x630841
call dword [esi + 0x2710a8]
mov ebp, dword [esi + 0x2710b0]
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 0x63089a
sub esp, 0xffffff80
jmp 0x4ad0e6
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1f7265ad
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x142a5635
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x408540
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
push ebx
mov ebx, edx
push esi
push edi
test ecx, ecx
je 0x4085e6
test ebx, ebx
je 0x4085e6
mov esi, dword [ebp + 8]
test esi, esi
je 0x4085e6
push 0
push 0x80
push 2
push 0x5082ec
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4085e6
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4085ca
cmp dword [ebp - 8], esi
jne 0x4085ca
push edi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
Function at 0x408920
Capabilities:
Create process on windows
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x78], esi
test esi, esi
jne 0x40894b
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.004a4b20
add esp, 0xc
mov dword [ebp - 0x74], 0x44
xor eax, eax
mov dword [ebp - 0x6c], 0x4e0a88
mov word [ebp - 0x44], ax
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], 0xc
push eax
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4089c6
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
jne 0x4089f4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
jmp 0x408a5f
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 8]
mov dword [ebp - 8], esi
je 0x408a6d
push 0
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push 0x8000420
push 0
push 0
push eax
push 0
push dword [ebp - 0x78]
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x408a5c
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push esi
call edi
test ebx, ebx
je 0x408a6d
push dword [ebp - 0x30]
call edi
push dword [ebp - 0x2c]
call edi
push 0
call fcn.0044b7e6
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
Function at 0x408ef0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x4fa078]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x20]
mov dword [esp + 0xc], 0xffffffff
push eax
push 0x202
mov esi, 0x1f95
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x408fc0
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x408fc0
mov eax, 2
push str.0.0.0.0
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
push esi
mov dword [esp + 0x18], eax
call ebx
mov word [esp + 0x12], ax
nop dword [eax + eax]
push 0x10
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x408f96
inc esi
push esi
call ebx
mov word [esp + 0x12], ax
cmp esi, 0x10001
jl 0x408f70
jmp 0x408f9a
mov dword [esp + 0xc], esi
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1b4]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
Function at 0x40a710
Capabilities:
Check for time delay via gettickcount
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
movzx ebx, word [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 8], ebx
cmp dword [esi + 0x78], 0x10
lea eax, [esi + 0x64]
push edi
movzx edi, word [ebp + 8]
jb 0x40a73b
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, eax
mov dword [esi + 0x58], ecx
test ecx, ecx
jne 0x40a771
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [esi + 0x4c], eax
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x2c], 0x10
lea eax, [esi + 0x18]
jb 0x40a77c
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 0
push ebx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 0x60], eax
test eax, eax
jne 0x40a7dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x58]
test eax, eax
je 0x40a7b6
push eax
call edi
mov dword [esi + 0x58], 0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x40a7c7
push eax
call edi
mov dword [esi + 0x60], 0
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 4
mov ecx, 0x1bb
mov ebx, 0x84c01000
cmp di, cx
mov eax, 0x84401000
lea edi, [esi + 0x30]
cmovne ebx, eax
cmp dword [esi + 0x54], 0
je 0x40a81b
cmp dword [edi + 0x14], 0x10
jb 0x40a802
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
push 0
push 0x4e0a3d
push 0
push edi
push 0x4e0c60
jmp 0x40a83a
cmp dword [edi + 0x14], 0x10
jb 0x40a823
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
push 0
push 0x4e0a3d
push 0
push edi
push 0x4e0c64
push dword [esi + 0x60]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x5c], eax
test eax, eax
jne 0x40a86f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0x4c], eax
call fcn.0040a6d0
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 4
mov eax, 0x1bb
cmp word [ebp - 8], ax
jne 0x40a8aa
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x3380
push eax
push 0x1f
push dword [esi + 0x5c]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x40a8aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetSetOptionA_set_error__d_n
call fcn.00409f30
add esp, 8
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 4
Function at 0x40c1c0
Capabilities:
Send data

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 + 8]
push esi
mov esi, ecx
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push eax
push dword [esi + 0x380]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x40c211
mov eax, dword [ebp - 8]
add dword [esi + 0x3ac], eax
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret 8
Function at 0x410b70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x4fa078]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
push 0
push 0
push 0
push 0
mov esi, ecx
call fcn.00410af0
add esp, 0x10
test eax, eax
jne 0x410baf
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
jns 0x410bce
call fcn.004aedd1
cmp dword [eax], 9
jne 0x410bce
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.WS2_32.dll_recv]
lea edx, [esp + 0xf]
mov eax, 2
mov dword [esp + 8], edx
mov ecx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
push eax
push ecx
push edx
push esi
call edi
mov esi, eax
test esi, esi
jns 0x410c1c
call fcn.004aedd1
cmp dword [eax], 4
jne 0x410c1a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x18]
jmp 0x410bf2
test esi, esi
mov ecx, dword [esp + 0x1c]
setg al
pop edi
pop esi
xor ecx, esp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
Function at 0x410fd0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4fa078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x40c], eax
push edi
mov edi, edx
movzx eax, word [esi]
cmp eax, 2
je 0x411003
cmp eax, 0x17
jne 0x41107f
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push 0x401
mov dword [ebx], eax
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.004a4b20
add esp, 0xc
lea eax, [ebp - 0x408]
push 2
push 0
push 0
push 0x401
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x41107f
lea edx, [ebp - 0x408]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x411050
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x408]
sub edx, esi
push edx
push eax
call fcn.00407000
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret
Function at 0x415ad0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x4fa078]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_select]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], 1
mov eax, dword [edi + 0x24]
mov esi, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x18]
inc eax
push ecx
push 0
lea ecx, [esp + 0x30]
push ecx
push 0
push eax
call ebx
mov esi, eax
test esi, esi
jns 0x415b4e
call fcn.004aedd1
cmp dword [eax], 4
jne 0x415b4c
mov eax, dword [esp + 0x14]
jmp 0x415b24
test esi, esi
jle 0x415bc8
mov ecx, dword [edi + 4]
call fcn.00410b70
test al, al
je 0x415bc8
mov eax, dword [ebp + 0xc]
mov ecx, SysReAllocString
mov esi, dword [edi + 4]
cmp eax, ecx
mov edx, dword [ebp + 8]
mov edi, dword [sym.imp.WS2_32.dll_send]
cmova eax, ecx
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
push ecx
push eax
push edx
push esi
call edi
mov esi, eax
test esi, esi
jns 0x415baf
call fcn.004aedd1
cmp dword [eax], 4
jne 0x415baf
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
jmp 0x415b87
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x134]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x4fa078]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x415cb3
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edi
push esi
call fcn.00410fd0
add esp, 8
mov ecx, dword [esp + 0x94]
pop edi
pop esi
xor ecx, esp
call fcn.0044b7d5
mov esp, ebp
pop ebp
ret 8