joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10012108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
lea ebp, [edx + 1]
mov dword [eax], ebx
mov al, byte [ebp]
cmp al, bl
je 0x1000732b
cmp al, 0x23
jne 0x1000732b
mov al, byte [edx + 2]
cmp al, bl
lea ecx, [edx + 2]
je 0x1000732b
cmp al, 0x78
mov esi, 1
jne 0x10007282
mov cl, byte [edx + 3]
cmp cl, bl
lea eax, [edx + 3]
je 0x100072cb
push 0x3b
push eax
call fcn.10009a00
add esp, 8
cmp eax, ebx
je 0x100072cb
cmp byte [eax], bl
je 0x100072cb
mov ecx, dword [esp + 0x2c]
mov edi, eax
sub edi, ecx
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x78
je 0x10007262
nop
cmp cl, 0x30
jl 0x10007222
cmp cl, 0x39
jg 0x10007222
movsx ecx, cl
sub ecx, 0x30
jmp 0x10007251
cmp cl, 0x61
jl 0x10007239
cmp cl, 0x66
jg 0x10007239
movsx edx, cl
sub edx, 0x57
imul edx, esi
add ebx, edx
jmp 0x10007256
cmp cl, 0x41
jl 0x100072cb
cmp cl, 0x46
jg 0x100072cb
movsx ecx, cl
sub ecx, 0x37
imul ecx, esi
add ebx, ecx
mov cl, byte [eax - 1]
shl esi, 4
dec eax
cmp cl, 0x78
jne 0x10007210
cmp dword [esp + 0x38], 1
mov eax, dword [esp + 0x34]
jne 0x100072f1
mov ecx, dword [esp + 0x30]
push eax
push ecx
push ebx
call fcn.10006c00
add esp, 0xc
jmp 0x100072fd
push 0x3b
push ecx
call fcn.10009a00
add esp, 8
cmp eax, ebx
je 0x100072cb
cmp byte [eax], bl
je 0x100072cb
mov ecx, dword [esp + 0x2c]
mov edi, eax
sub edi, ecx
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x23
je 0x10007262
cmp cl, 0x30
jl 0x100072cb
cmp cl, 0x39
jg 0x100072cb
movsx edx, cl
mov cl, byte [eax - 1]
sub edx, 0x30
imul edx, esi
lea esi, [esi + esi*4]
add ebx, edx
shl esi, 1
dec eax
cmp cl, 0x23
jne 0x100072a6
jmp 0x10007262
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.100021b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [esp + 0x30]
mov byte [edx], bl
mov dword [eax], 1
mov ecx, dword [esp + 0x2c]
lea esi, [edi + ecx + 1]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.100021b0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
xor edi, edi
mov esi, 0x100160f4
jmp 0x10007338
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push edx
push ecx
call fcn.100099b0
add esp, 0xc
test eax, eax
je 0x10007379
add esi, 0xc
inc edi
cmp esi, 0x10016130
jl 0x10007334
mov eax, dword [esp + 0x2c]
mov cl, byte [eax]
mov edx, dword [esp + 0x30]
pop edi
pop esi
mov eax, ebp
pop ebp
mov byte [edx], cl
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x30]
lea eax, [edi + edi*2]
shl eax, 2
mov dl, byte [eax + 0x100160fc]
mov byte [ecx], dl
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
pop edi
mov dword [edx], 1
mov eax, dword [eax + 0x100160f8]
pop esi
add eax, ecx
mov ecx, dword [esp + 0x14]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10009be4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10009cd4
mov eax, 0x94
call fcn.100094a0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10009d49
mov ecx, dword [esi + 0x10]
mov dword [0x100171e4], ecx
mov eax, dword [esi + 4]
mov dword [0x100171f0], eax
mov edx, dword [esi + 8]
mov dword [0x100171f4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x100171e8], esi
je 0x10009c4f
or esi, 0x8000
mov dword [0x100171e8], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x100171ec], eax
call fcn.1000de4d
test eax, eax
pop ecx
je 0x10009d49
call fcn.1000ae7a
test eax, eax
jne 0x10009c7c
call fcn.1000de9e
jmp 0x10009d49
call fcn.1000ddab
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100188d4], eax
call fcn.1000dc89
mov dword [0x10017068], eax
call fcn.1000d1d4
test eax, eax
jl 0x10009ccd
call fcn.1000dbe7
test eax, eax
jl 0x10009cc8
call fcn.1000d9b4
test eax, eax
jl 0x10009cc8
push 0
call fcn.1000b6ff
test eax, eax
pop ecx
jne 0x10009cc8
inc dword [0x10017064]
jmp 0x10009d5a
call fcn.1000d3d2
call fcn.1000ac63
jmp 0x10009c72
test eax, eax
jne 0x10009d04
cmp dword [0x10017064], eax
jle 0x10009d49
dec dword [0x10017064]
cmp dword [0x10017220], eax
jne 0x10009cf3
call fcn.1000b83d
call fcn.1000d3d2
call fcn.1000ac63
call fcn.1000de9e
jmp 0x10009d5a
cmp eax, 2
jne 0x10009d4d
push 0x8c
push 1
call fcn.1000d8f9
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10009d49
push esi
push dword [0x100161c4]
call dword [0x10017084]
test eax, eax
push esi
je 0x10009d43
call fcn.1000ac80
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10009d5a
call fcn.1000a33f
pop ecx
xor eax, eax
jmp 0x10009d5d
cmp eax, 3
jne 0x10009d5a
push 0
call fcn.1000ae4b
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x1000b769
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10013bd0
call fcn.1000b30c
push 8
call fcn.1000b2db
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10017224], esi
jne 0x1000b79d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10017220], esi
mov al, byte [ebp + 0x10]
mov byte [0x1001721c], al
cmp dword [ebp + 0xc], edi
jne 0x1000b7e7
cmp dword [0x100188cc], edi
je 0x1000b7d7
mov eax, dword [0x100188c8]
sub eax, 4
mov dword [0x100188c8], eax
cmp eax, dword [0x100188cc]
jb 0x1000b7d7
mov eax, dword [eax]
cmp eax, edi
je 0x1000b7b8
call eax
jmp 0x1000b7b8
push 0x1001602c
mov eax, 0x10016024
call fcn.1000b6e7
pop ecx
push 0x10016038
mov eax, 0x10016030
call fcn.1000b6e7
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1000b818
cmp dword [ebp + 0x10], edi
jne 0x1000b826
mov dword [0x10017224], esi
push dword [ebp + 8]
call fcn.1000b6a5
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1000b825
push 8
call fcn.1000b226
pop ecx
ret
call fcn.1000b347
ret
Function at 0x1000e09c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x10016180]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10016948]
je 0x1000e0d1
inc eax
cmp eax, 0x13
jb 0x1000e0c2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10016948]
jne 0x1000e1f7
mov eax, dword [0x10017070]
cmp eax, 1
je 0x1000e1cf
cmp eax, edx
jne 0x1000e101
cmp dword [0x10017074], 1
je 0x1000e1cf
cmp ecx, 0xfc
je 0x1000e1f7
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000e137
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1000b090
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10009f50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000e16b
mov eax, edi
push eax
call fcn.10009f50
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10013c24
push edi
call fcn.10009ac0
add esp, 0x10
push edi
call fcn.10009f50
push dword [esi + 0x1001694c]
mov ebx, eax
call fcn.10009f50
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.100094a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1000b090
push edi
push ebx
call fcn.1000b0a0
push 0x10013c20
push ebx
call fcn.1000b0a0
push dword [esi + 0x1001694c]
push ebx
call fcn.1000b0a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1000f57d
add esp, 0x2c
jmp 0x1000e1f7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1001694c]
push dword [esi]
call fcn.10009f50
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10009483
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1000f57d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100173b4], ebx
push esi
push edi
jne 0x1000f5fd
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000f638
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x100173b4], eax
je 0x1000f638
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x100173b8], eax
call esi
cmp dword [0x100171e4], 2
mov dword [0x100173bc], eax
jne 0x1000f5fd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x100173c4], eax
je 0x1000f5fd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x100173c0], eax
mov eax, dword [0x100173c0]
test eax, eax
je 0x1000f642
call eax
test eax, eax
je 0x1000f629
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100173c4]
test eax, eax
je 0x1000f629
test byte [ebp - 8], 1
jne 0x1000f642
cmp dword [0x100171f0], 4
jb 0x1000f63c
or byte [ebp + 0x12], 0x20
jmp 0x1000f661
xor eax, eax
jmp 0x1000f671
or byte [ebp + 0x12], 4
jmp 0x1000f661
mov eax, dword [0x100173b8]
test eax, eax
je 0x1000f661
call eax
mov ebx, eax
test ebx, ebx
je 0x1000f661
mov eax, dword [0x100173bc]
test eax, eax
je 0x1000f661
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100173b4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000fe32
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x10016180]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x1000fe63
xor eax, eax
jmp 0x1000ffec
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x100177a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1000fe9f
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1001135e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1000ff7a
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x1000ffb8
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x1000ff03
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1000fef4
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x1000fed4
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000ff43
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1000ff4c
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x1000fec5
jmp 0x1000ff4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x1000ffe7
cmp dword [ebp - 0x6c], edi
je 0x1000ffb8
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1000ffad
call fcn.1000c17b
mov dword [eax], 9
call fcn.1000c184
mov dword [eax], esi
jmp 0x1000ffe2
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000ffa2
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1000ff4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1000ff4e
push dword [ebp - 0x6c]
call fcn.1000c18d
pop ecx
jmp 0x1000ffe2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1000ffd0
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1000ffd0
xor eax, eax
jmp 0x1000ffea
call fcn.1000c17b
mov dword [eax], 0x1c
call fcn.1000c184
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1000ffea
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.10009483
add ebp, 0x3a0
leave
ret
Function at 0x10010355
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.100094a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100103f0
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x100171e4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x100103f0
cmp eax, 1
je 0x10010411
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100103f0
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x100103bd
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x100103ec
xor eax, eax
inc eax
jmp 0x10010430
cmp edi, eax
jae 0x100103f4
xor eax, eax
jmp 0x10010430
cmp eax, esi
jae 0x100103fb
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100171e4]
jmp 0x10010414
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1320058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.013201a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x132007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x132006a
add dl, dl
jne 0x1320089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x13200dc
xor eax, eax
add dl, dl
jne 0x1320096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x132017d
add dl, dl
jne 0x13200a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13200b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13200bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13200c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x13200d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1320075
mov eax, 1
add dl, dl
jne 0x13200ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13200f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x13200e1
sub eax, ebx
mov ebx, 1
jne 0x1320128
mov ecx, 1
add dl, dl
jne 0x132010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1320119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1320105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1320075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x132013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x132014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1320136
cmp eax, 0x7d00
jae 0x132016d
cmp eax, 0x500
jb 0x1320168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1320075
cmp eax, 0x7f
ja 0x1320170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1320075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x132019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1320075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401022
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp - 8]
push section..text
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x2c], eax
leave
ret

Function at 0x40222b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x1c], ecx
push 0
lea ecx, [ebp - 1]
call fcn.00401c60
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4e
je 0x402265
cmp dword [ebp - 0x20], 0x113
je 0x4022a0
cmp dword [ebp - 0x20], 0x138
je 0x40233d
jmp 0x40235e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x401
je 0x40227f
jmp 0x4022a0
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0xfffffffe
jne 0x4022a0
push 3
push 0
push 0
push str.http:__voffka.com
push 0x4091d4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [ebp + 0xc], 1
jne 0x40233b
push 0
push 0
push 0x408
push 0x400
mov ecx, dword [ebp - 0x1c]
call fcn.00401fb6
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x64
jne 0x402311
push 0xfffffffffffffff0
push 0x400
mov ecx, dword [ebp - 0x1c]
call fcn.00401ff7
or eax, 8
push eax
push 0xfffffffffffffff0
push 0x400
mov ecx, dword [ebp - 0x1c]
call fcn.00402032
push 0xa
push 1
push 0x40a
push 0x400
mov ecx, dword [ebp - 0x1c]
call fcn.00401fb6
push 1
mov eax, dword [ebp - 0x1c]
push dword [eax + 8]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x402327
push 0
push 0
push 0x405
push 0x400
mov ecx, dword [ebp - 0x1c]
call fcn.00401fb6
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 1]
call fcn.00401cb8
mov eax, dword [ebp - 0x10]
jmp 0x40236d
jmp 0x40235e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
call dword [eax + 0x14]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 1]
call fcn.00401cb8
mov eax, dword [ebp - 0x14]
jmp 0x40236d
and dword [ebp - 0x18], 0
lea ecx, [ebp - 1]
call fcn.00401cb8
mov eax, dword [ebp - 0x18]
leave
ret 0xc
Function at 0x402ded
Capabilities:
Create http request
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
and dword [eax], 0
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and dword [eax], 0
mov eax, dword [ebp - 0xc]
and dword [eax + 4], 0
mov eax, dword [ebp - 0xc]
and dword [eax + 8], 0
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp - 0x10]
call fcn.004084c7
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004084c7
push dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
call fcn.00402a87
and dword [ebp - 4], 0
push 0
push 0
push 0
push 0
push str.tiny_dl_nix
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x402e70
jmp 0x402f3f
mov dword [ebp - 8], 0xbb8
push 4
lea eax, [ebp - 8]
push eax
push 2
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
je 0x402e94
and dword [ebp - 0x18], 0
jmp 0x402e9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402eb4
push 0x4094b8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 4
lea eax, [ebp - 8]
push eax
push 5
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
je 0x402ed1
and dword [ebp - 0x1c], 0
jmp 0x402eda
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 8]
push eax
push 6
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
je 0x402efd
and dword [ebp - 0x20], 0
jmp 0x402f06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 3
push 4
lea eax, [ebp - 8]
push eax
push 3
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
je 0x402f30
and dword [ebp - 0x24], 0
jmp 0x402f39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
leave
ret 4
Function at 0x405b76
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 0x6c], ecx
and dword [ebp - 0x38], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0
lea ecx, [ebp - 0x18]
call fcn.004084c7
lea ecx, [ebp - 0x20]
call fcn.00408d8c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xc]
or eax, dword [ebp - 0x10]
push eax
push str.downloader_tmp_
push dword [ebp - 0x40]
push str._s_s_d
lea eax, [ebp - 0x18]
push eax
call fcn.0040869d
add esp, 0x14
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
call fcn.00401eb5
pop ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
push dword [ebp - 0x48]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405bfc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 4], 0
je 0x405c18
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 4]
movsx eax, byte [eax]
test eax, eax
je 0x405c18
and dword [ebp - 0x70], 0
jmp 0x405c1f
mov dword [ebp - 0x70], 1
movzx eax, byte [ebp - 0x70]
test eax, eax
je 0x405c3a
or dword [ebp - 0x38], 1
mov dl, 1
lea ecx, [ebp - 0x2c]
call fcn.00408c31
mov dword [ebp - 0x74], eax
jmp 0x405c4c
or dword [ebp - 0x38], 2
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x34]
call fcn.004084ed
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
lea ecx, [ebp - 8]
call fcn.004084ed
mov eax, dword [ebp - 0x38]
and eax, 2
je 0x405c78
and dword [ebp - 0x38], 0xfffffffd
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x50]
call fcn.00401eb5
pop ecx
mov eax, dword [ebp - 0x38]
and eax, 1
je 0x405c93
and dword [ebp - 0x38], 0xfffffffe
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
call fcn.00401eb5
pop ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], eax
push 4
push 0
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x64], eax
push dword [ebp - 0x64]
call fcn.00401eb5
pop ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x68], eax
push dword [ebp - 0x68]
call fcn.00401eb5
pop ecx
leave
ret