joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4098f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
jmp 0x409943
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x3c
jge 0x4099a5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
cmp dword [eax*4 + 0x41409c], ecx
jne 0x4099a3
mov eax, dword [ebp - 0xc]
cmp dword [0x414098], eax
je 0x40997d
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x41418c]
push eax
call fcn.0040e41a
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x414098], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0040dfbd
add esp, 8
mov dword [ebp - 0x10], 1
cmp dword [ebp - 8], 0
je 0x4099a1
mov eax, dword [ebp - 8]
add dword [eax + 8], 0xa
jmp 0x4099a5
jmp 0x409940
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x4099d3
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0040df71
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 0x14

Function at 0x40e6b3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.0040dce3
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040dd6b
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0040e8e2
add esp, 8
cmp eax, 0xffffffff
je 0x40e718
mov dword [ebp - 0x14], 1
jmp 0x40e71f
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 2
jne 0x40e74f
cmp dword [ebp - 8], 0
je 0x40e74f
cmp dword [ebp - 0x14], 0
je 0x40e74f
push 0x414c78
mov eax, dword [ebp - 4]
push eax
call fcn.0040e760
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 8]
leave
ret 4
Function at 0x40ff2d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40ff55
xor eax, eax
leave
ret
mov eax, dword [ebp - 0x84]
xor ecx, ecx
sub eax, ecx
je 0x40ff89
dec eax
je 0x40ff69
dec eax
je 0x40ff7b
jmp 0x40ff51
cmp dword [ebp - 0x8c], ecx
jne 0x40ff75
push 4
jmp 0x40ff8b
jbe 0x40ff7b
push 5
jmp 0x40ff8b
cmp dword [ebp - 0x90], 5
sbb eax, eax
add eax, 7
leave
ret
push 3
pop eax
leave
ret

Function at 0x412b8f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x412bc1
push ebx
push edi
mov edi, dword [ebp + 8]
sub edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
push 4
pop ebx
lea ecx, [eax + esi]
mov eax, esi
cdq
idiv ebx
mov al, byte [edx + ebp + 0x10]
xor al, byte [ecx + edi]
inc esi
cmp esi, dword [ebp + 0x14]
mov byte [ecx], al
jl 0x412ba2
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x401000
Capabilities:
Log keystrokes via polling

Disassembly:
mov ecx, 0x5bfe
mov eax, ecx
mov dword [0x4b4752], eax
mov dword [0x4b4739], 0
mov eax, dword [0x4b4739]
mov dword [0x4b48ef], eax
mov dword [0x4b49c1], 0
mov eax, dword [0x4b49c1]
mov eax, ebx
xor ebx, eax
test dword [0x4b428b], eax
jne 0x401045
mov ebx, 0x19c2
sub eax, ebx
dec eax
shl eax, 1
ror eax, 1
or eax, dword [0x4b43b9]
je 0x401077
sub eax, dword [0x4b47dd]
dec eax
mov ebx, 0x11e8
add eax, ebx
dec eax
or eax, ebx
mov ebx, 0x1dd0
sub eax, ebx
add eax, dword [0x4b4a1d]
xor ebx, eax
sub eax, dword [0x4b46db]
shr eax, 1
add dword [0x4b42db], eax
jmp fcn.00402754

Function at 0x103c6a34
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103c6a3e
pushal
call 0x103c6a44
pop ebp
sub ebp, 0x10
sub ebp, 0x3c6a34
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103c6a68
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103c6a71
mov eax, 0x3c6a34
add eax, ebp
add eax, 0x63
mov ecx, 0x607
mov edx, 0x748b878f
xor byte [eax], dl
inc eax
dec ecx
jne 0x103c6a88
jmp 0x103c6a9b
add al, 0x42
add al, 6
mov bl, 0x8f
invalid
Function at 0x106209f0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10620bdd
pushal
mov esi, section.UPX1
lea edi, [esi - 0x379000]
push edi
or ebp, 0xffffffff
jmp 0x10620a1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10620a21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10620a10
mov eax, 1
add ebx, ebx
jne 0x10620a33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10620a44
jne 0x10620a63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10620a63
dec eax
add ebx, ebx
jne 0x10620a50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10620a28
add ebx, ebx
jne 0x10620a5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10620ab5
xor ecx, ecx
sub eax, 3
jb 0x10620a7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10620aea
sar eax, 1
mov ebp, eax
jmp 0x10620a86
add ebx, ebx
jne 0x10620a86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10620a54
inc ecx
add ebx, ebx
jne 0x10620a94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10620a54
add ebx, ebx
jne 0x10620aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10620a96
jne 0x10620ab2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10620a96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10620ad4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10620ac6
jmp 0x10620a16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10620ad4
add edi, ecx
jmp 0x10620a16
pop esi
mov edi, esi
mov ecx, 0x69f3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10620af2
cmp byte [edi], 0x27
jne 0x10620af2
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 al, bl
loop 0x10620af7
lea edi, [esi + 0x615000]
mov eax, dword [edi]
or eax, eax
je 0x10620b6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x634288]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x634388]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10620b24
mov ecx, edi
jns 0x10620b53
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 + 0x63438c]
or eax, eax
je 0x10620b69
mov dword [ebx], eax
add ebx, 4
jmp 0x10620b41
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10620ba0
cmp al, 0xef
ja 0x10620b93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10620b75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10620b82
mov ebp, dword [esi + 0x634390]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10620bd4
sub esp, 0xffffff80
jmp 0x1011def2
Function at 0x4b726f
Capabilities:
Encode data using xor

Disassembly:
add ebp, dword [edi + 0x58]
inc eax
dec ebp
pop esi
mov dword [ebp + 0x134f4fbe], 0x46675246
scasb al, byte es:[edi]
and al, 0xe1
wait
mov dword [0x55eecd14], eax
invalid
Function at 0x52d3ef
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
shr edi, 0x10
and ecx, 0xffff
cmp ebx, 1
jne 0x52d43b
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax]
add ecx, edx
cmp ecx, 0xfff1
jb 0x52d420
sub ecx, 0xfff1
add edi, ecx
cmp edi, 0xfff1
jb 0x52d430
sub edi, 0xfff1
mov eax, edi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x52d44b
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 0x10
jae 0x52d48a
test ebx, ebx
je 0x52d45f
movzx eax, byte [esi]
add ecx, eax
inc esi
add edi, ecx
dec ebx
jne 0x52d454
cmp ecx, 0xfff1
jb 0x52d46d
sub ecx, 0xfff1
mov eax, 0x80078071
mul edi
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, edi
pop esi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
cmp ebx, 0x15b0
jb 0x52d575
mov eax, 0x5e6ea9af
mul ebx
shr edx, 0xb
mov dword [ebp + 8], edx
jmp 0x52d4af
Function at 0x59730f
Capabilities:
Encode data using xor

Disassembly:
dec ebx
push edi
push ss
pop ebx
add byte [ebp - 0x672445d1], cl
rol byte [eax - 0x3a], 0x15
test byte [esi - 0x17], ch
xchg edx, eax
sub dh, byte [ebp + 0x63505f6e]
add bh, bl
or dword [ebp + 2], eax
add bl, byte [edi]
pop ds
mov dh, al
ja 0x597343
add edi, dword [ebp + 0x71]
sbb dl, ch
inc ebp
jb 0x59735c
cmp byte [edi - 0xa1b5d8a], 0xf9
pushfd
test bl, dh
aam 0xe9
and bh, dl
and byte [eax], al
inc ebp
les ebp, [eax]
clc
sbb dh, byte [ebx + 0x27]
aaa
push ebp
sbb al, 0x42
inc edx
inc edx
push ss
rol byte [ebx + 0x42], 1
jno 0x5972e7
outsd dx, dword [esi]
loopne 0x5972c9
push edx
js 0x597306
neg dl
pop edx
rcl dword [0xc3f721], 0xbe
adc eax, 0x83f6cc8
out 0x5a, al
sbb byte [eax + 0x1a], dh
and al, 0xe0
jno 0x5972e9
test dword [ecx - 0x76], esi
jnp 0x5972ed
inc esp
fdivr dword [esi*4 - 0x65fd26e0]
xlatb
clc
xlatb
daa
shl dword [edx], 0xd1
sti
outsb dx, byte [esi]
invalid
mov ah, byte [0x30e3]
jp 0x597331
cmp eax, dword [eax + edx*2 - 0x43]
push esp
sub dl, byte [esi - 0x71]
inc edi
pop ebp
ja 0x5972e8
push eax
loope 0x5973be
salc
mov dl, 0x76
popal
imul edx, dword [edx + 0x78], 0xffffffe4
mov dword [0x44403797], eax
outsd dx, dword [esi]
pop ecx
pushal
mov eax, dword [0x67114967]
je 0x59739f
dec ebp
pop ebx
add byte [edi + 0x364c714e], al
ja 0x5973b3
xor cl, byte [esi]
dec ecx
invalid
loopne 0x597355
and byte [ecx + 0x32], dh
dec esp
adc dword [esi + 0xb], eax
mov ebp, 0x1a3a36bc
std
test dword [0x9092fe93], 0xce23aec1
push edi
adc dword [esi - 0x72cbab10], edx
popal
nop
shr dword [esi + 0x1157ce23], 0x96
invalid
lea edi, [esi]
popal
je 0x597427
cmp byte [ebx + 0x19], 0x26
xor dword [edi + ecx*8], ecx
jnp 0x5973df
xor dword es:[edi + ecx*8], ecx
dec esp
wait
add edx, dword [edi + 0x2516fe40]
push ss
mov cl, 0x16
sbb byte [ecx], 0xc7
cdq
adc byte [edx], ah
jno 0x5973c4
push cs
retf 0xd0f2
rcr ah, 1
inc ebp
inc ecx
fdivr dword [edi]
sbb al, 0xbb
invalid
lahf
mov dword [ecx + 0x68], eax
mov eax, dword [0x51760646]
call 0xcb6d6857
outsd dx, dword [esi]
jl 0x597496
retf 0xb9a2
ljmp 0xc5ee:0x9f3889d0
Function at 0x657e9d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x662378
cmp edx, dword [eax]
je 0x657ebf
add eax, 8
inc ecx
cmp eax, 0x662408
jl 0x657eb0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x662378]
jne 0x657fed
mov eax, dword [0xa67ce0]
cmp eax, 1
je 0x657fc7
test eax, eax
jne 0x657ef0
cmp dword [0x6622a4], 1
je 0x657fc7
cmp edx, 0xfc
je 0x657fed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x657f27
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00658880
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00658d10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x657f6a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00658d10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65dca4
push edi
call fcn.0065abe0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00658880
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00658890
lea eax, [ebp - 0xa0]
push 0x65dc84
push eax
call fcn.00658890
push dword [esi + 0x66237c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00658890
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0065ab54
add esp, 0x2c
pop edi
jmp 0x657fed
lea eax, [ebp + 8]
lea esi, [esi + 0x66237c]
push 0
push eax
push dword [esi]
call fcn.00658d10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40153d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push str.__xml_version_1.0__encoding_UTF_8___
mov esi, 0x957e10
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str._metalink__file_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0xffffffe0
xor edx, edx
test eax, eax
jle 0x40158a
lea ecx, [edx + 0x957e10]
mov bl, byte [ecx + 0x20]
xor bl, byte [ecx]
inc edx
cmp edx, eax
mov byte [edx + 0x95560f], bl
jl 0x401574
lea eax, [edi - 0x40]
test eax, eax
jl 0x401666
mov esi, 0x955610
lea ecx, [eax + 0x975d40]
sub esi, eax
mov dword [ebp - 8], ecx
sub esi, 0x975d40
and dword [ebp - 4], 0
test edx, edx
jle 0x4015d7
mov ecx, dword [ebp - 8]
push 0xffffffffffffffe0
pop ebx
mov bl, byte [ebx + ecx]
xor bl, byte [ecx]
cmp bl, byte [esi + ecx]
jne 0x4015ce
inc dword [ebp - 4]
inc ecx
cmp dword [ebp - 4], edx
jl 0x4015b6
jmp 0x4015d7
dec eax
inc esi
dec dword [ebp - 8]
test eax, eax
jge 0x4015ab
test eax, eax
jle 0x401666
lea esi, [eax + 0x975d20]
sub edi, eax
mov edx, esi
xor eax, eax
sub edx, 0x9555f0
cmp eax, 0x20
jge 0x401611
lea ecx, [eax + 0x9555f0]
mov bl, byte [edx + ecx]
xor bl, byte [eax + str.__xml_version_1.0__encoding_UTF_8___]
inc eax
cmp byte [eax + str.__xml_version_1.0__encoding_UTF_8___], 0
mov byte [ecx], bl
jne 0x4015f1
xor eax, eax
test edi, edi
jle 0x401634
mov ecx, eax
and ecx, 0x8000001f
jns 0x401626
dec ecx
or ecx, 0xffffffe0
inc ecx
mov cl, byte [ecx + 0x9555f0]
xor byte [eax + esi], cl
inc eax
cmp eax, edi
jl 0x401617
push str.__metalink_
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov ebx, eax
test ebx, ebx
je 0x40165b
push str.__metalink_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
sub ebx, esi
add edi, ebx
mov byte [esi + edi], 0
push edi
push esi
call fcn.004012e0
pop ecx
pop ecx
jmp 0x401668
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40166d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x32000
mov esi, ecx
cmp eax, ecx
ja 0x40168a
mov esi, eax
push 2
push 0
mov eax, esi
neg eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4016c4
push 0
lea eax, [ebp - 4]
push eax
push esi
push 0x975d20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4016c4
mov eax, dword [ebp - 4]
call fcn.0040153d
jmp 0x4016c6
xor al, al
pop esi
leave
ret
Function at 0x40189a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2810
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
xor edi, edi
inc edi
push edi
push 0x80000000
push 0x94b5f0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x401965
push ebx
push esi
lea ecx, [ebp - 4]
push ecx
mov ebx, 0x2800
push ebx
lea ecx, [ebp - 0x2810]
push ecx
mov dword [ebp - 8], edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
jmp 0x401936
xor eax, eax
cmp dword [ebp - 4], eax
jbe 0x40193c
mov dword [ebp - 0xc], eax
movzx eax, byte [ebp + eax - 0x2810]
add eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0xfff1
div ecx
lea eax, [esi + edx]
mov dword [ebp - 8], edx
xor edx, edx
div ecx
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov esi, edx
cmp eax, dword [ebp - 4]
jb 0x4018f9
push 0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x2810]
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4018ef
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
shl esi, 0x10
or esi, dword [ebp - 8]
push esi
push 0x4042b4
mov esi, 0x9505f0
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, esi
pop ebx
jmp 0x40196a
mov eax, 0x4042bc
pop edi
pop esi
leave
ret

Function at 0x4019a2
Capabilities:
Get file size

Disassembly:
push esi
push edi
call fcn.0040196e
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x94b5f0
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
je 0x4019e1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x919148], edi
call fcn.0040189a
pop edi
mov dword [0x919134], eax
pop esi
ret

Function at 0x401a90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push 2
xor ebx, ebx
push ebx
mov esi, 0x94b5f0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, ebx
je 0x401b44
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x22
pop eax
push esi
mov word [0x96e610], ax
xor eax, eax
mov esi, 0x96e610
push esi
mov word [0x96e612], ax
call edi
push 0x4043b8
push esi
call edi
cmp word [0x90a130], bx
je 0x401af2
push 0x90a130
push esi
call edi
xor eax, eax
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x401b40
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov al, 1
jmp 0x401b4e
push 6
jmp 0x401b46
push 5
pop eax
call fcn.004019f4
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x401b52
Capabilities:
Create process on windows

Disassembly:
push esi
push edi
push str.__c__start
mov esi, 0x9465f0
push esi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0xc]
lea eax, [eax*2 + 0x9465f0]
xor edi, edi
jmp 0x401ba1
movzx edx, word [ecx]
cmp dx, di
je 0x401ba5
cmp dx, 0x26
je 0x401b8f
cmp dx, 0x7c
jne 0x401b97
push 0x5e
pop edx
mov word [eax], dx
inc eax
inc eax
mov dx, word [ecx]
inc ecx
mov word [eax], dx
inc ecx
inc eax
inc eax
cmp ecx, edi
jne 0x401b7b
push 0x22
pop ecx
push edi
push edi
push esi
push str.cmd.exe
mov word [eax], cx
push edi
xor ecx, ecx
push edi
mov word [eax + 2], cx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
ret

Function at 0x4021a5
Capabilities:
Create thread

Disassembly:
push esi
push 0x190
push 0x4050f8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov eax, dword [esp + 8]
xor esi, esi
push esi
mov dword [0x91916c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push esi
push esi
push 0x40217b
push esi
push esi
mov dword [0x405110], eax
mov dword [0x919168], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x402452
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [esi], 0
push edi
mov edi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov byte [ebp - 1], 0
call fcn.004022ec
add esp, 0x10
test al, al
je 0x4024fb
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 8]
jne 0x4024f7
cmp edi, dword [ebp - 0xc]
jne 0x4024f3
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x40249b
cmp eax, ecx
je 0x40249b
push 0x14
jmp 0x402518
and dword [ebp - 8], 0
sub edi, edx
mov dword [ebx], ecx
inc edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x402516
mov eax, dword [ebp - 8]
test eax, eax
jbe 0x4024ff
mov dword [ebp - 0x10], eax
call fcn.0040196e
mov eax, dword [ebp - 0x10]
add dword [0x91914c], eax
mov eax, dword [ebp - 8]
add dword [esi], eax
mov ecx, dword [ebp + 0x10]
sub edi, eax
mov eax, dword [esi]
add eax, ecx
push eax
push dword [ebx]
call fcn.00401d34
pop ecx
pop ecx
test edi, edi
jne 0x40250a
mov byte [ebp - 1], 1
jmp 0x40250a
push 0x13
jmp 0x402518
push 0x12
jmp 0x402518
push 0x15
jmp 0x402518
xor eax, eax
mov byte [ebp - 1], 1
call fcn.004019f4
cmp dword [ebp - 8], 0
jbe 0x40251e
test edi, edi
jg 0x4024a4
jmp 0x40251e
push 4
pop eax
call fcn.004019f4
mov al, byte [ebp - 1]
pop edi
leave
ret
Function at 0x402524
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push 0x94b5f0
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4025b1
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4025a6
cmp dword [ebp - 8], esi
jne 0x4025a6
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push edi
call esi
cmp eax, dword [ebp + 0xc]
jne 0x4025a6
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
push edi
call esi
push eax
push dword [ebp + 0xc]
call fcn.00401d34
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004019a2
mov byte [ebp - 1], 1
jmp 0x4025b9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 8
jmp 0x4025b3
push 0xf
pop eax
call fcn.004019f4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret