joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5290fa
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x814868]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0051c50c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0051c50c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x529171
cmp word [ecx], dx
je 0x529171
mov eax, dword [0x5660ec]
push edi
dec eax
push eax
push 0x565fd8
call fcn.00529099
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5291e4
cmp word [eax], dx
je 0x5291e4
mov eax, dword [edi]
test eax, eax
je 0x529195
cmp word [eax], dx
je 0x529195
lea eax, [ebp - 0x10]
push eax
call fcn.00528a7c
jmp 0x52919e
lea eax, [ebp - 0x10]
push eax
call fcn.00528b17
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x52920e
mov eax, dword [0x565fd4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x565cc8
call fcn.00529099
add esp, 0xc
test al, al
je 0x52920e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5291d9
cmp word [eax], di
je 0x5291d9
lea eax, [ebp - 0x10]
push eax
call fcn.00528a7c
pop ecx
jmp 0x529210
lea eax, [ebp - 0x10]
push eax
call fcn.00528b17
jmp 0x5291d6
mov eax, dword [edi]
test eax, eax
je 0x5291fb
cmp word [eax], dx
je 0x5291fb
lea eax, [ebp - 0x10]
push eax
call fcn.00528a31
pop ecx
jmp 0x52920e
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5292d9
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00528f1e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5292d9
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5292d9
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5292d9
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x529266
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0051efe7
test ebx, ebx
je 0x5292d4
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0051efe7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5292d9
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5292d9
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0051e1ae
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5292db
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005019e1
leave
ret
Function at 0x52f26a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0052f1e6
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x52f3d9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x52f3d9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x52f38e
jg 0x52f2c6
test eax, eax
je 0x52f384
push 1
push 0x1000
call fcn.0051e85f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x52f2e9
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x52f37b
push 0x8000
push ebx
call fcn.0051a8c4
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x52f312
jg 0x52f30d
cmp ecx, 0x1000
jb 0x52f312
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0052082d
add esp, 0x10
cmp eax, 0xffffffff
je 0x52f357
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x52f30d
jl 0x52f33e
test ecx, ecx
jne 0x52f2ff
push dword [ebp - 0xc]
push ebx
call fcn.0051a8c4
push esi
call fcn.0051cd09
add esp, 0xc
xor ebx, ebx
jmp 0x52f3e7
cmp byte [edi + 0x24], 0
je 0x52f36e
cmp dword [edi + 0x20], 5
jne 0x52f36e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x52f379
mov ebx, dword [edi + 0x18]
jmp 0x52f37b
xor ebx, ebx
push esi
call fcn.0051cd09
pop ecx
jmp 0x52f3e7
test ecx, ecx
jg 0x52f350
jl 0x52f38e
test eax, eax
jae 0x52f350
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00521769
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x52f3ae
cmp byte [edi + 0x1c], 0
je 0x52f350
jmp 0x52f3df
push ebx
call fcn.005270e8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x52f350
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x52f3e7
cmp byte [edi + 0x1c], 0
je 0x52f3e4
mov ebx, dword [edi + 0x18]
jmp 0x52f3e7
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00521769
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x52f9e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x52fa0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x52fa0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x408b8e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x408b9d
pop dword [ebp - 0x28]
mov eax, 0x408b9d
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x360f4
push 0
mov eax, 0xa78fbdf9
add eax, 0x58b122df
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x3b6a
xor ebx, ebx
add ebx, eax
mov esi, 0x413bc4
add esi, dword [ebp - 0x28]
mov edx, 0x6124a958
sub edx, 0x853687b9
add dword [ebp - 8], esi
mov edi, dword [esi]
sub dword [ebp - 0x24], 0x474b0e48
xor edi, edx
mov dword [ebp - 0x18], 0xecc2d547
mov dword [ebx], edi
add ebx, 0x4a11e811
add ebx, 0xb5ee17f3
add esi, 0x514701f5
add esi, 0xaeb8fe0f
loop 0x408bed
add eax, 0xe1f618a6
sub eax, 0xe1f5382b
mov ebx, eax
add eax, 5
mov ecx, 0x275bb5fc
sub ecx, 0x271bb5fc
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x402a00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 0
push 0x402340
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403cd6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403d15
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403d15
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403d15
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403d15
cmp dword [ecx + 0x74], 0xe
jbe 0x403d15
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40996b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x409a08
push ebx
push esi
call fcn.00409934
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040987d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4099b5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409a07
push edi
push eax
call fcn.0040834b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4099d5
call fcn.004084a6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409a06
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040987d
add esp, 0x20
test eax, eax
jne 0x4099f4
push edi
call fcn.004084a6
jmp 0x4099fc
push ebx
call fcn.004084a6
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40ac00
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4131c8
push 0x4131c0
push str.FlsAlloc
push 0x1e
call fcn.0040aac1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ac34
push dword [ebp + 8]
mov ecx, esi
call dword [0x41113c]
call esi
jmp 0x40ac3a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ac7e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4131d8
push 0x4131d0
push str.FlsGetValue
push 0x20
call fcn.0040aac1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40acb5
push dword [ebp + 8]
mov ecx, esi
call dword [0x41113c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4100a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4100cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4100cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401320
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x417044]
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.0040cfd0
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 0x40141a
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 0x4013cc
cmp dword [ebp - 8], 0
jne 0x4013cc
movzx eax, word [ebp - 0x134]
cmp eax, 4
jl 0x4013cc
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 5
jne 0x4013df
cmp dword [ebp - 8], 2
jne 0x4013df
mov dword [ebp - 4], 2
cmp dword [ebp - 0xc], 5
jne 0x4013f8
cmp dword [ebp - 8], 2
jae 0x4013f1
cmp dword [ebp - 8], 1
jne 0x4013f8
mov dword [ebp - 4], 3
cmp dword [ebp - 0xc], 6
jne 0x40141a
cmp dword [ebp - 8], 0
jne 0x40140d
mov dword [ebp - 4], 4
jmp 0x40141a
cmp dword [ebp - 8], 1
jne 0x40141a
mov dword [ebp - 4], 5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406704
mov esp, ebp
pop ebp
ret
Function at 0x401ec0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x417044]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x214], 0
push 0x44
push 0
lea eax, [ebp - 0x468]
push eax
call fcn.0040cfd0
add esp, 0xc
mov dword [ebp - 0x468], 0x44
xor ecx, ecx
mov dword [ebp - 0x47c], ecx
mov dword [ebp - 0x478], ecx
mov dword [ebp - 0x474], ecx
mov dword [ebp - 0x470], ecx
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.0040cfd0
add esp, 0xc
push 0x103
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00406f7d
add esp, 0x10
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.0040cfd0
add esp, 0xc
push 0x103
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.00406f7d
add esp, 0x10
lea ecx, [ebp - 0x47c]
push ecx
lea edx, [ebp - 0x468]
push edx
lea eax, [ebp - 0x420]
push eax
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 1
jne 0x401fdf
mov dword [ebp - 0x46c], 0
jmp 0x401feb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x46c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406704
mov esp, ebp
pop ebp
ret
Function at 0x402c40
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x417044]
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.0040cfd0
add esp, 0xc
mov dl, byte [0x414c12]
mov byte [ebp - 0x220], dl
xor eax, eax
mov dword [ebp - 0x21f], eax
mov dword [ebp - 0x21b], eax
mov dword [ebp - 0x217], eax
mov word [ebp - 0x213], ax
mov byte [ebp - 0x211], al
xor ecx, ecx
mov word [ebp - 0x224], cx
cmp dword [0x41a49c], 0
jbe 0x402ce2
movzx edx, word [0x41a4a0]
test edx, edx
jle 0x402ce2
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [0x41a49c]
push ecx
call fcn.00401120
add esp, 8
mov dx, word [0x41a4a0]
mov word [ebp - 0x224], dx
jmp 0x402cec
jmp 0x402e70
lea eax, [ebp - 0x210]
push eax
call fcn.00401000
add esp, 4
push 0x41527c
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.00407050
add esp, 0xc
push 0x415280
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00407050
add esp, 0xc
mov eax, 1
test eax, eax
je 0x402e4b
movzx ecx, word [ebp - 0x224]
push ecx
lea edx, [ebp - 0x220]
push edx
call fcn.00402e80
add esp, 8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402e27
mov dword [ebp - 0x228], 0x4152c4
mov dword [ebp - 0x22c], 0x41a53e
mov ecx, dword [ebp - 0x22c]
mov dx, word [ecx]
mov word [ebp - 0x22e], dx
mov eax, dword [ebp - 0x228]
cmp dx, word [eax]
jne 0x402de1
cmp word [ebp - 0x22e], 0
je 0x402dd5
mov ecx, dword [ebp - 0x22c]
mov dx, word [ecx + 2]
mov word [ebp - 0x230], dx
mov eax, dword [ebp - 0x228]
cmp dx, word [eax + 2]
jne 0x402de1
add dword [ebp - 0x22c], 4
add dword [ebp - 0x228], 4
cmp word [ebp - 0x230], 0
jne 0x402d7b
mov dword [ebp - 0x234], 0
jmp 0x402dec
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x238], edx
cmp dword [ebp - 0x238], 0
jne 0x402e15
push 0x2bac
push 0x415310
call fcn.00402e80
add esp, 8
jmp 0x402e27
push 0x2bb6
push 0x415320
call fcn.00402e80
add esp, 8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402e3b
jmp 0x402e4b
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402d2d
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x415354
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406704
mov esp, ebp
pop ebp
ret

Function at 0x404fb0
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 0x4052a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1074
call fcn.00411c70
mov eax, dword [0x417044]
xor eax, ebp
mov dword [ebp - 0x70], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1074], 0
push 0x4150a8
mov eax, dword [ebp + 0xc]
push eax
call fcn.00407193
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4052fc
xor ecx, ecx
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
xor eax, eax
jmp 0x4053c5
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00407287
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.004074a9
add esp, 4
mov dword [ebp - 0x6c], eax
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00407287
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call fcn.00404fb0
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
push 0x1000
push 1
lea edx, [ebp - 0x1070]
push edx
call fcn.004077b7
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x405382
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x1070]
push edx
call fcn.00405000
add esp, 0xc
mov eax, dword [ebp - 0x1074]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1074], eax
jmp 0x405337
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00405110
add esp, 8
mov eax, dword [ebp - 8]
push eax
call fcn.0040784b
add esp, 4
mov ecx, dword [ebp - 0x1074]
cmp ecx, dword [ebp - 0x6c]
jae 0x4053c0
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 0x4053c5
mov eax, 1
mov ecx, dword [ebp - 0x70]
xor ecx, ebp
call fcn.00406704
mov esp, ebp
pop ebp
ret
Function at 0x405980
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 0x4059b4
jmp 0x405a70
mov dword [ebp - 0x18], 0
jmp 0x4059c6
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jge 0x4059e3
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 0x4059bd
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.0040691b
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 [0x418060]
mov dword [ecx], edx
mov al, byte [0x418064]
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.0040da00
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 0x405a65
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
je 0x405a69
jmp 0x405a70
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], 0
je 0x405a88
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406ce6
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x4062c0
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.00411c70
mov eax, dword [0x417044]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1014], 0
mov dword [0x41a494], 0
push 0x4150a0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00407193
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x406313
xor eax, eax
jmp 0x4063b8
push 0
push 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x406333
xor eax, eax
jmp 0x4063b8
mov ecx, dword [ebp - 0x1014]
cmp ecx, dword [ebp - 0xc]
jae 0x406398
push 0
push 0x1000
lea edx, [ebp - 0x1010]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406363
jmp 0x406398
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 1
lea ecx, [ebp - 0x1010]
push ecx
call fcn.00407a29
add esp, 0x10
mov edx, dword [ebp - 0x1014]
add edx, dword [ebp - 4]
mov dword [ebp - 0x1014], edx
mov eax, dword [ebp - 0x1014]
mov dword [0x41a494], eax
jmp 0x406333
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040784b
add esp, 4
mov edx, dword [ebp - 0x1014]
cmp edx, dword [ebp - 0xc]
jae 0x4063b3
xor eax, eax
jmp 0x4063b8
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406704
mov esp, ebp
pop ebp
ret
Function at 0x4063d0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x417044]
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.0040cfd0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x406468
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 0x406431
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x406472
jmp 0x406532
cmp dword [ebp + 8], 0
je 0x40647e
cmp dword [ebp + 0xc], 0
jne 0x406488
jmp 0x406532
cmp dword [0x41a498], 3
jne 0x4064be
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414c08
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00407050
add esp, 0xc
jmp 0x4064d0
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.00407050
add esp, 0xc
push 0x414c0c
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.004071aa
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x406528
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.00407a29
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.0040784b
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00406704
mov esp, ebp
pop ebp
ret

Function at 0x406550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40658b
mov eax, dword [ebp - 4]
jmp 0x4065e1
push 2
push 0
mov ecx, dword [ebp + 0x10]
neg ecx
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4065ac
jmp 0x4065ce
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4065de
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x406704
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417044]
jne 0x40670e
repz ret
jmp fcn.00408035