joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4650a3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46508a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46ba50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49847e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0046c370
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x11dbaec
call fcn.00489c24
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x46bae3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00489c24
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46badc
push 0
mov ecx, eax
call fcn.00462bc0
mov dword [esi + 0xc], eax
jmp 0x46bae5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x46bae5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x48c287
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48c2bf
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048a33e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048a316
jmp 0x48c2cb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48d97a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48d9bc
call fcn.00493436
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48d9bc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48d9b3
xor eax, eax
jmp 0x48d9c4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048d9ca
pop edi
pop esi
pop ebx
ret 4
Function at 0x493966
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x493994
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4939b2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004938cc
jmp 0x4939b2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4939b2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004938cc
test edi, edi
mov eax, edi
jne 0x49399c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4455f0
Capabilities:
Encode data using xor

Disassembly:
ficom word [ebx]
pop ebp
sbb eax, 0x9f0a6d22
invalid
lahf
mov dword [esi + 5], ebp
lodsd eax, dword [esi]
int1
lea edx, [eax + 0x594b48f3]
ja 0x44551a
mov esi, 0xec8dafa3
jl 0x44564a
outsb dx, byte [esi]
inc ebp
mov eax, dword [0xf7ac09c2]
not dword [esi]
ret 0xac09
add al, 0x79
xor dword [edx], eax
stosb byte es:[edi], al
invalid

Function at 0x4456d0
Capabilities:
Encode data using xor

Disassembly:
aaa
lds edi, [esi]
faddp st(7)
jae 0x4456a2
or bl, ch

Function at 0x494cf0
Capabilities:
Encode data using xor

Disassembly:
fisubr dword [esi]
jae 0x494d55
bound esp, qword [ebx - 0x25]
jge 0x494d6b
insb byte es:[edi], dx
sbb dword [ecx + edx*8 - 0x2a], edi
lcall 0xb30, 0x7a40afdc
fisub word [ebx]
sub eax, 0x993c88db
push esi
aad 0x8e
jmp 0xd4e3bf40
mov ebp, 0x299cb73
jns 0x494d21
add ch, byte [esi]
jns 0x494d21
invalid
fnsave dword [ecx + 0x444b5ae9]
sbb ah, byte [ecx + 0x3a]
shl dword [ecx - 0x26e149a2], 1
sbb ebx, edx
cmpsb byte [esi], byte es:[edi]
movsd dword es:[edi], dword [esi]
rcr ebx, 1
std
or byte [ebp + 0x31f6498b], dh
or al, 0x99
jl 0x494dab
shr dword [ebx + edi*8 + 0x6bd72b58], 0xc4
add al, 0x74
sahf
aad 0xb
out dx, eax
or ebp, edi
iretd
push ss
jae 0x494d2d
out dx, al
push esp
jp 0x494da4
dec esi
fistp qword [edi]
insd dword es:[edi], dx
dec esp
xor dword [ecx + 0x2716d2af], ebx
pop esp
pop ds
cmp esi, dword [edx - 0x6872a69b]
leave
xor eax, edi
mov edi, 0x323aafb7
jmp 0x494d1d
invalid
stosb byte es:[edi], al
jge 0x494df5
adc al, 0xd0
std
jp 0x494d59
cmp eax, 0x88971d1b
mov cl, 0x8f
invalid
invalid
dec ecx
adc al, 0xc1
xchg byte [edx + 0x230fe7a2], al
mov cl, 0xc0
mov esp, 0xf070bbb6
mov dh, 0xbb
jo 0x494de9
scasd eax, dword es:[edi]
push 0x232edc0a
xlatb
mov ebp, 0x676c61f5
push 0x5f8b2699
ja 0x494db9
jg 0x494d8f
lodsd eax, dword [esi]
invalid

Function at 0x4a23bc
Capabilities:
Encode data using xor

Disassembly:
popfd
ja 0x4a23ec
mov al, dh
invalid
push es
js 0x4a2415
lahf
mov ecx, 0x91fbbb80
les edx, [esi]
push ss
push es
sub al, 0x51
cmp eax, 0xadca99f6
xchg ebx, eax
push ebp
out dx, eax
push ecx
push ecx
xor ch, byte [ebp + 0x5c]
add dword [eax + 0x5c], edi
adc eax, 0x39f55111
or al, 0x30
jbe 0x4a23e2
cmpsb byte [esi], byte es:[edi]
dec ebx
and dword [eax - 0x3e], esi
push ebx
xchg ecx, eax
pop ebp
add al, 0x5c
inc edx
out dx, eax
push cs
sbb dword [edi + 0x3509c1ba], 0xffffffde
fidiv word [edi + 0x35]
mov dl, 0x1c
dec ebx
xchg ecx, eax
ret
Function at 0x445273
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x40143c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4452e3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x4052c8
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4452da
cmp dword [ebp - 0xc], 4
jne 0x4452da
cmp dword [ebp - 0x10], edi
je 0x4452da
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x608298], edi
xor eax, eax
jmp 0x445322
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x608298], edi
jge 0x44531d
lea eax, [ebp - 0x34]
push eax
mov dword [0x608298], edi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x44531d
cmp word [ebp - 0x14], 5
jb 0x44531d
call fcn.0052feb1
test eax, eax
je 0x44531d
emms
mov dword [0x608298], 1
mov eax, dword [0x608298]
pop edi
leave
ret

Function at 0x4bc71d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x620894]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x4bc81a
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
xor esi, esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push esi
call edi
mov dword [ebp - 0xac], eax
add eax, 3
and eax, 0xfffffffc
call fcn.006001b0
cmp dword [ebp - 0xac], esi
mov dword [ebp - 0xa8], esp
jne 0x4bc7cb
push 0x40610c
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, 0x8876086c
jmp 0x4bc845
push esi
push esi
push dword [ebp - 0xac]
push dword [ebp - 0xa8]
push 0xffffffffffffffff
push ebx
push esi
push esi
call edi
fld dword [ebp + 0x18]
push dword [ebp - 0xa4]
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
push ecx
push ecx
fstp dword [esp + 4]
fld dword [ebp + 0x14]
fstp dword [esp]
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
call fcn.0052feb1
jmp 0x4bc845
fld dword [ebp + 0x18]
push 1
push dword [ebp - 0xa4]
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
push ecx
push ecx
fstp dword [esp + 4]
fld dword [ebp + 0x14]
fstp dword [esp]
push ebx
push edi
push esi
call fcn.0052feb1
lea esp, [ebp - 0xc0]
mov ecx, dword [ebp - 4]
call fcn.006006b0
pop edi
pop esi
pop ebx
leave
ret 0x20
Function at 0x52feb1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x52fec0
pop dword [ebp - 0x18]
mov eax, 0x6c4daf40
sub eax, 0x6bfab080
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x732a4
push 0
mov eax, 0xee407bb3
sub eax, 0xee006a17
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0xa2985247
sub ecx, 0xa2980dfe
xor edi, edi
add edi, eax
mov ebx, 0x649a00
add ebx, dword [ebp - 0x18]
mov esi, 0x29cca7ad
sub esi, 0x15fa99b0
sub dword [ebp - 0x14], 0x23c1cd95
mov edx, dword [ebx]
sub dword [ebp - 0x10], 0x214a9ffd
xor edx, esi
xor dword [ebp - 0x10], 0xadd932bb
mov dword [edi], edx
sub dword [ebp - 0xc], 0xd75a5172
add edi, 4
add ebx, 0x7cc7f277
add ebx, 0x83380d8d
loop 0x52ff1b
add eax, 0x103f7
xor ebx, ebx
add ebx, eax
add eax, 0x7df65ceb
add eax, 0x8209a31a
mov ecx, 0x8b2b006f
add ecx, 0x7514ff91
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x5766bc
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov dword [ebp - 4], ebx
je 0x5767d1
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x5767d1
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x576709
mov eax, 0x80004005
jmp 0x5767d6
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
mov dword [ebp - 8], eax
push edi
and dword [ebp + 0xc], 0
push 0x18
pop edi
sub edi, ebx
mov eax, 0x400000
cmp edi, eax
jbe 0x576754
mov edi, eax
push 0
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp + ebx - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x5767ca
cmp dword [ebp + 0xc], edi
jne 0x5767ca
add ebx, edi
cmp ebx, 0x18
jne 0x576740
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x1c]
push 0
push esi
call dword [eax + 0x28]
mov edi, eax
test edi, edi
jl 0x5767b0
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0052feb1
mov edi, eax
test edi, edi
jl 0x5767b0
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x5767c5
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov eax, edi
pop edi
jmp 0x5767d6
mov edi, 0x80004005
jmp 0x5767b0
mov eax, 0x8876086c
pop esi
pop ebx
leave
ret 8
Function at 0x5767e1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov dword [ebp - 4], ebx
je 0x5768f6
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x5768f6
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x57682e
mov eax, 0x80004005
jmp 0x5768fb
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
mov dword [ebp - 8], eax
push edi
and dword [ebp + 0xc], 0
push 0x18
pop edi
sub edi, ebx
mov eax, 0x400000
cmp edi, eax
jbe 0x576879
mov edi, eax
push 0
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp + ebx - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x5768ef
cmp dword [ebp + 0xc], edi
jne 0x5768ef
add ebx, edi
cmp ebx, 0x18
jne 0x576865
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x1c]
push 0
push esi
call dword [eax + 0x28]
mov edi, eax
test edi, edi
jl 0x5768d5
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0052feb1
mov edi, eax
test edi, edi
jl 0x5768d5
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x5768ea
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov eax, edi
pop edi
jmp 0x5768fb
mov edi, 0x80004005
jmp 0x5768d5
mov eax, 0x8876086c
pop esi
pop ebx
leave
ret 8
Function at 0x577357
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
je 0x5774d9
cmp dword [ebp + 0xc], edi
je 0x5774d9
push edi
push 0x8000080
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x5773a4
mov eax, 0x80004005
jmp 0x5774de
push ebx
push esi
mov ebx, 0x400000
and dword [ebp + 8], 0
push 0x18
pop esi
sub esi, edi
cmp esi, ebx
jbe 0x5773ba
mov esi, ebx
push 0
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp + edi - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x57742e
cmp dword [ebp + 8], 0
je 0x57742e
cmp dword [ebp + 8], esi
jne 0x57742e
add edi, esi
cmp edi, 0x18
jne 0x5773ab
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
je 0x5774b6
cmp dword [ebp - 0x20], ebx
je 0x5774b6
cmp dword [ebp - 0x1c], ebx
je 0x5774b6
cmp dword [ebp - 0x10], ebx
je 0x577417
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x5774b6
push 0x2c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x577438
mov ecx, eax
call fcn.00577247
mov esi, eax
jmp 0x57743a
mov edi, 0x80004005
jmp 0x5774bb
xor esi, esi
cmp esi, ebx
mov dword [ebp - 0xc], esi
jne 0x577448
mov edi, 0x8007000e
jmp 0x5774bb
cmp dword [ebp - 0x10], ebx
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x20]
je 0x577462
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0052feb1
jmp 0x57746a
push dword [ebp - 0x24]
call fcn.0052feb1
mov edi, eax
cmp edi, ebx
mov eax, dword [esi]
jge 0x57747b
push 1
mov ecx, esi
call dword [eax + 0x4c]
jmp 0x5774bb
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x24]
push ebx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x5774bb
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0052feb1
mov edi, eax
test edi, edi
jl 0x5774bb
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor edi, edi
jmp 0x5774bb
mov edi, 0x8876086c
cmp dword [ebp - 4], 0
pop esi
pop ebx
je 0x5774cc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
jmp 0x5774de
mov eax, 0x8876086c
pop edi
leave
ret 8
Function at 0x5774e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
je 0x57766a
cmp dword [ebp + 0xc], edi
je 0x57766a
push edi
push 0x8000080
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x577535
mov eax, 0x80004005
jmp 0x57766f
push ebx
push esi
mov ebx, 0x400000
and dword [ebp + 8], 0
push 0x18
pop esi
sub esi, edi
cmp esi, ebx
jbe 0x57754b
mov esi, ebx
push 0
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp + edi - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x5775bf
cmp dword [ebp + 8], 0
je 0x5775bf
cmp dword [ebp + 8], esi
jne 0x5775bf
add edi, esi
cmp edi, 0x18
jne 0x57753c
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
je 0x577647
cmp dword [ebp - 0x20], ebx
je 0x577647
cmp dword [ebp - 0x1c], ebx
je 0x577647
cmp dword [ebp - 0x10], ebx
je 0x5775a8
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x577647
push 0x2c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x5775c9
mov ecx, eax
call fcn.00577247
mov esi, eax
jmp 0x5775cb
mov edi, 0x80004005
jmp 0x57764c
xor esi, esi
cmp esi, ebx
mov dword [ebp - 0xc], esi
jne 0x5775d9
mov edi, 0x8007000e
jmp 0x57764c
cmp dword [ebp - 0x10], ebx
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x20]
je 0x5775f3
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0052feb1
jmp 0x5775fb
push dword [ebp - 0x24]
call fcn.0052feb1
mov edi, eax
cmp edi, ebx
mov eax, dword [esi]
jge 0x57760c
push 1
mov ecx, esi
call dword [eax + 0x4c]
jmp 0x57764c
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x24]
push ebx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x57764c
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0052feb1
mov edi, eax
test edi, edi
jl 0x57764c
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor edi, edi
jmp 0x57764c
mov edi, 0x8876086c
cmp dword [ebp - 4], 0
pop esi
pop ebx
je 0x57765d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
jmp 0x57766f
mov eax, 0x8876086c
pop edi
leave
ret 8
Function at 0x5a4d0c
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi], 0x42383c
call fcn.0052feb1
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.0052feb1
push dword [esi + 0x3c]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [esi + 0x48]
test edi, edi
je 0x5a4d48
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov edi, dword [esi + 0x4c]
test edi, edi
je 0x5a4d5f
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, dword [esi + 0x50]
xor edi, edi
cmp eax, edi
je 0x5a4da9
cmp dword [eax], edi
jbe 0x5a4d92
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 0xc]
push dword [eax + edi*4]
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 0xc]
push dword [eax + edi*4]
call sub.msvcrt.dll_free
mov eax, dword [esi + 0x50]
inc edi
cmp edi, dword [eax]
pop ecx
jb 0x5a4d6c
mov edi, dword [esi + 0x50]
test edi, edi
je 0x5a4da9
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov edi, dword [esi + 0x54]
test edi, edi
je 0x5a4dc0
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
cmp byte [esi + 0x5c], 0
je 0x5a4dd6
cmp dword [esi + 0x44], 1
jne 0x5a4de4
push dword [esi + 0x2c]
call fcn.0052feb1
jmp 0x5a4de4
cmp dword [esi + 0x44], 1
jne 0x5a4de4
push dword [esi + 0x2c]
call fcn.0052feb1
push dword [esi + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 8]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, ebx
call fcn.005a58f3
lea ecx, [esi + 0x1c]
call fcn.005a2c09
pop edi
lea ecx, [esi + 0xc]
pop esi
pop ebx
jmp fcn.005a2252

Function at 0x5ae180
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x5ae1a3
mov eax, dword [esi + 0x1a8]
push esi
call dword [eax]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx + 8]
test eax, eax
je 0x5ae1c9
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x30
call dword [eax]
mov edx, dword [esi + 0x1a8]
mov eax, dword [edx + 8]
test eax, eax
jne 0x5ae1b0
mov edx, dword [esi + 0x44]
xor eax, eax
test edx, edx
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov eax, 1
ret

Function at 0x6006b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x620894]
jne 0x6006c1
test ecx, 0xffff0000
jne 0x6006c1
ret
jmp fcn.006006cb
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x4743af]
shl eax, 2
mov dword [0x4743b3], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00467f78
pop edx
call fcn.00467edc
call fcn.00467fb8
push 0
call fcn.00469258
pop ecx
push 0x474358
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4743b7], eax
push 0
jmp fcn.0046e46c
Function at 0x40857c
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe44
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov word [ebp - 0xe], 0x101
lea eax, [ebp - 0x1ac]
push eax
mov dx, word [ebp - 0xe]
push edx
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
je 0x4085c6
call sub.WSOCK32.DLL_WSAGetLastError
push eax
push str.WSAStartup_failed__s_n
push dword [ebp - 0xc]
call fcn.00469db4
add esp, 0xc
xor eax, eax
jmp 0x408692
push dword [ebp - 8]
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4085f4
call sub.WSOCK32.DLL_WSAGetLastError
push eax
push str.Error:__u_n
push dword [ebp - 0xc]
call fcn.00469db4
add esp, 0xc
xor eax, eax
jmp 0x408692
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x18]
movsx eax, word [ecx + 0xa]
push eax
mov edx, dword [ebp - 0x18]
movsx ecx, word [edx + 8]
push ecx
mov eax, dword [ebp - 0x18]
push dword [eax + 4]
mov edx, dword [ebp - 0x18]
push dword [edx]
push str.name_s_naliases_s_naddrtype_d_nlength_d_n
push dword [ebp - 0xc]
call fcn.00469db4
add esp, 0x18
push 0x476315
push dword [ebp - 0xc]
call fcn.004683d8
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
jmp 0x408679
mov eax, dword [ebp - 0x18]
movsx edx, word [eax + 0xa]
push edx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0xc]
mov edx, dword [ebp - 0x1c]
push dword [eax + edx*4]
lea ecx, [ebp - 0x1b8]
push ecx
call fcn.0046823c
add esp, 0xc
push dword [ebp - 0x1b8]
call sub.WSOCK32.DLL_inet_ntoa
push eax
push dword [ebp - 0xc]
call fcn.00468350
add esp, 8
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1c]
cmp dword [edx + ecx*4], 0
jne 0x40863c
call sub.WSOCK32.DLL_WSACleanup
mov eax, 1
mov esp, ebp
pop ebp
ret