joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002bbd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov eax, dword [eax + 0x340]
push esi
push edi
test eax, eax
jne 0x1002bbf0
mov eax, 0x628c10
push 0x628bfc
push eax
lea ecx, [ebp - 0x214]
push 0x628c18
push ecx
call dword [0x6234d4]
lea eax, [ebp - 0x214]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002bc14
mov ecx, dword [ebx + 0x75c4]
sub eax, edx
lea edx, [ecx + eax + 0xd]
cmp edx, 0x7530
jbe 0x1002bc5e
push ecx
lea eax, [ebx + 0x94]
push eax
mov eax, ebx
call fcn.1002f3c0
test eax, eax
jns 0x1002bc54
mov esi, ebx
call fcn.1002f0f0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x75c4], 0
mov al, byte [0x62c05d]
movsx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x302fefc
xor edx, edx
add ecx, 0xfffe0003
test al, al
lea eax, [ebp - 0x214]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
lea edx, [eax + 1]
je 0x1002bcb1
jmp 0x1002bc90
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002bc90
sub eax, edx
lea edx, [eax + 1]
shr edx, 8
inc eax
and edx, 0xff
shl eax, 8
xor edx, eax
mov word [ebp - 0xc], dx
jmp 0x1002bcbf
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002bcb1
sub eax, edx
inc eax
mov word [ebp - 0xc], ax
mov ecx, dword [ebx + 0x75c4]
xor eax, eax
lea edi, [ecx + ebx + 0x94]
mov word [ebp - 0xa], ax
lea esi, [ebp - 0x10]
mov ecx, 0xc
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x75c4], 0xc
mov edx, dword [ebx + 0x75c4]
lea eax, [ebp - 0x214]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002bcf2
sub eax, esi
lea ecx, [eax + 1]
lea edi, [edx + ebx + 0x94]
lea esi, [ebp - 0x214]
lea eax, [ebp - 0x214]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002bd16
sub eax, edx
inc eax
add dword [ebx + 0x75c4], eax
mov eax, dword [ebx + 0x75c4]
push eax
lea edx, [ebx + 0x94]
push edx
mov eax, ebx
call fcn.1002f3c0
test eax, eax
js 0x1002bc42
pop edi
pop esi
mov dword [ebx + 0x75c4], 0
or al, 0xff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100342d0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push ebx
push esi
mov esi, dword [edx + 4]
mov edx, eax
shr edx, 4
xor edx, esi
and edx, 0xf0f0f0f
xor esi, edx
shl edx, 4
xor eax, edx
mov edx, eax
shr edx, 0x10
xor edx, esi
and edx, 0xffff
xor esi, edx
shl edx, 0x10
xor eax, edx
mov edx, esi
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
add edx, edx
add edx, edx
xor esi, edx
mov edx, esi
shr edx, 8
xor edx, eax
and edx, 0xff00ff
xor eax, edx
shl edx, 8
xor esi, edx
rol esi, 1
mov edx, esi
xor edx, eax
and edx, 0xaaaaaaaa
xor esi, edx
xor edx, eax
rol edx, 1
push edi
mov ecx, 0x63b220
mov dword [ebp - 4], edx
mov dword [ebp - 8], 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx]
add ecx, 0x10
mov edx, eax
shr edx, 0x18
mov edi, eax
shr edi, 0x10
and edi, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x62b6a8]
or edx, dword [edi*4 + 0x62b8a8]
mov edi, eax
shr edi, 8
and edi, 0x3f
or edx, dword [edi*4 + 0x62baa8]
and eax, 0x3f
or edx, dword [eax*4 + 0x62bca8]
mov eax, dword [ecx - 0xc]
xor eax, esi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x62b7a8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x62b9a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x62bba8]
and eax, 0x3f
or edi, dword [eax*4 + 0x62bda8]
or edi, edx
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 4]
xor edi, dword [ebp - 0xc]
mov eax, edi
ror eax, 4
xor eax, dword [ecx - 8]
mov dword [ebp - 4], edi
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x62b6a8]
or edx, dword [ebx*4 + 0x62b8a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edx, dword [ebx*4 + 0x62baa8]
and eax, 0x3f
or edx, dword [eax*4 + 0x62bca8]
mov eax, dword [ecx - 4]
xor eax, edi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x62b7a8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x62b9a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x62bba8]
and eax, 0x3f
or edi, dword [eax*4 + 0x62bda8]
or edi, edx
xor esi, edi
dec dword [ebp - 8]
jne 0x10034353
mov ecx, dword [ebp - 4]
ror esi, 1
mov eax, esi
xor eax, ecx
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, ecx
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
add ecx, ecx
add ecx, ecx
xor eax, ecx
mov edx, dword [ebp + 8]
mov ecx, esi
shr ecx, 0x10
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
xor ecx, eax
pop esi
mov dword [edx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10036ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 8], edi
jmp 0x10036f03
mov edi, dword [ebp - 8]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x10036f7d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.10042882
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x10036f51
sub eax, edi
jmp 0x10036f53
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x10036f42
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x10036f70
sub eax, edi
jmp 0x10036f72
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x10036f61
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x1003708b
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 4]
mov ebx, ecx
mov dword [ebp - 0xc], eax
cmp ebx, edx
jbe 0x10036fa3
mov ebx, edx
test ebx, ebx
je 0x10036fd8
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
cmp dword [edx + 0x18], 1
jne 0x10036fc6
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
call fcn.10041950
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
push ebx
push ecx
push eax
call fcn.10042882
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x10037000
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x10037014
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x10036f00
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x1003708b
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x1003705a
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x1003703b
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.10042888
add esp, 0xc
add ebx, edi
pop edi
mov dword [esi + 0x16c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x1003708b
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x10037074
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.10042888
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10042850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x10042879
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + 0x62b100]
inc esi
xor eax, edx
dec ecx
jne 0x10042864
xor eax, 0xffffffff
pop esi
leave
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x417c70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x417c92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417c99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417c88
mov eax, 1
add ebx, ebx
jne 0x417cab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417ca0
jne 0x417cbc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417ca0
xor ecx, ecx
sub eax, 3
jb 0x417cd0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417d42
mov ebp, eax
add ebx, ebx
jne 0x417cdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417ce8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417d0c
inc ecx
add ebx, ebx
jne 0x417cf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417ced
jne 0x417d09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417ced
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417d2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417d1d
jmp 0x417c8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417d2c
add edi, ecx
jmp 0x417c8e
pop esi
mov edi, esi
mov ecx, 0xdf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x417d4a
cmp byte [edi], 7
jne 0x417d4a
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 0x417d4f
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417dc7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x177c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417d7c
mov ecx, edi
jns 0x417dab
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 + 0x1784c]
or eax, eax
je 0x417dc1
mov dword [ebx], eax
add ebx, 4
jmp 0x417d99
call dword [esi + 0x17848]
mov ebp, dword [esi + 0x17850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x417dfb
sub esp, 0xffffff80
jmp 0x4015ca

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x405619
Capabilities:
Create pipe
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x18f4ab8]
mov ecx, dword [0x18d5d78]
sub esp, 0xc
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x40569c
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x18f4ab8], 0x959
jne 0x40568c
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push esi
push esi
call sub.KERNEL32.dll_Module32First
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapValidate]
push ebx
call fcn.004054b3
add ebx, 8
dec dword [ebp - 8]
jne 0x40563b
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40591e
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47777c
push eax
mov dword fs:[0], esp
sub esp, 0xc60
cmp dword [0x18f4ab8], 0x400
push esi
jne 0x4059e4
xor esi, esi
push esi
push esi
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
lea eax, [esp + 0x24]
call fcn.00405a7f
push esi
push esi
mov dword [esp + 0xc74], esi
call fcn.0040604f
push 0x38
push esi
push 0x4050c0
push 0x47bc20
call fcn.004063ad
push esi
push esi
call fcn.00406536
add esp, 0x1c
mov dword [esp], esi
call fcn.00405409
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004053c3
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004053e6
fstp st(0)
lea eax, [esp + 0xc]
push eax
call fcn.00405aa4
lea eax, [esp + 0xc]
push eax
call fcn.00405ae0
or dword [esp + 0xc6c], 0xffffffff
lea esi, [esp + 0x24]
call fcn.00405a9c
mov eax, dword [0x47aca4]
mov dword [0x18f4ab8], eax
mov eax, dword [0x47ac7c]
mov dword [0x18f4abc], eax
call fcn.004056b9
mov esi, 0x3078f
cmp dword [0x18f4ab8], 0x83
jne 0x405a29
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
dec esi
jne 0x405a02
mov eax, dword [0x18d5d78]
mov dword [0x18f404c], eax
call eax
mov ecx, dword [esp + 0xc64]
xor eax, eax
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x407537
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x479410]
jne 0x407541
repz ret
jmp fcn.0040e2ec
Function at 0x4117ef
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a83c
and dword [ebp - 4], 0
cmp dword [0x47bb4c], 0
mov ebx, eax
jne 0x4118a0
push 0x404f3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x411951
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404f30
push edi
call esi
test eax, eax
je 0x411951
push eax
call fcn.0040a7ca
mov dword [esp], 0x404f20
push edi
mov dword [0x47bb4c], eax
call esi
push eax
call fcn.0040a7ca
mov dword [esp], 0x404f0c
push edi
mov dword [0x47bb50], eax
call esi
push eax
call fcn.0040a7ca
mov dword [esp], 0x404ef0
push edi
mov dword [0x47bb54], eax
call esi
push eax
call fcn.0040a7ca
pop ecx
mov dword [0x47bb5c], eax
test eax, eax
je 0x4118a0
push 0x404ed8
push edi
call esi
push eax
call fcn.0040a7ca
pop ecx
mov dword [0x47bb58], eax
mov eax, dword [0x47bb58]
cmp eax, ebx
je 0x4118f8
cmp dword [0x47bb5c], ebx
je 0x4118f8
push eax
call fcn.0040a845
push dword [0x47bb5c]
mov esi, eax
call fcn.0040a845
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4118f8
test edi, edi
je 0x4118f8
call esi
test eax, eax
je 0x4118ef
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4118ef
test byte [ebp - 0xc], 1
jne 0x4118f8
or dword [ebp + 0x10], 0x200000
jmp 0x411931
mov eax, dword [0x47bb50]
cmp eax, ebx
je 0x411931
push eax
call fcn.0040a845
pop ecx
test eax, eax
je 0x411931
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x411931
mov eax, dword [0x47bb54]
cmp eax, ebx
je 0x411931
push eax
call fcn.0040a845
pop ecx
test eax, eax
je 0x411931
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47bb4c]
call fcn.0040a845
pop ecx
test eax, eax
je 0x411951
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411953
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41e960]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x401036
cmp word [0x41e962], bx
je 0x401027
call eax
mov dword [0x41e960], eax
push eax
call fcn.00402490
push eax
call fcn.0040950a
pop ecx
jmp 0x4010a4
push 0x27
call fcn.00402490
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x904]
push eax
call edi
add esp, 0x14
cmp dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
jbe 0x401098
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x401063
lea eax, [ebp - 0x904]
push eax
call fcn.0040950a
pop ecx
call fcn.0040491c
push 0xa
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x401893
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0xc]
call fcn.004136a9
push dword [ebp + 0xc]
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00401403
push 0x5c
mov ecx, edi
call fcn.004017a8
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40133c
push edi
push edi
mov dword [0x41e964], esi
mov dword [0x41e96c], edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp dword [0x41e9c4], 2
mov dword [0x41e968], eax
je 0x4018f0
call fcn.00408c92
push 0xffffffffffffffff
push dword [0x41e968]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [0x41e96c]
cmp eax, edi
mov dword [0x41ea58], edi
je 0x40193f
cmp eax, 1
je 0x401933
cmp eax, 2
je 0x40192f
cmp eax, 3
je 0x40192b
cmp eax, 0x67
jle 0x401926
cmp eax, 0x6b
jle 0x4019a3
push eax
push 0x14
jmp 0x401976
push 0x12
jmp 0x401935
push 0x13
jmp 0x401935
push 0x11
push edi
call fcn.004095ee
pop ecx
pop ecx
jmp 0x4019a3
cmp dword [0x41ea60], edi
jne 0x4019a3
lea eax, [ebp + 8]
push eax
push dword [0x41e968]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x401966
cmp ecx, edi
jne 0x401966
xor eax, eax
jmp 0x4019a8
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x401979
push ecx
push 0x21
push edi
jmp 0x40199b
and ecx, 0xffff
cmp ecx, 0xe
jne 0x40198d
cmp dword [0x41e9c8], 0xffffffff
je 0x4019a3
push ecx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.004095ee
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
Function at 0x401e7e
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x401ebf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401ea9
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401ebf
test al, 0x10
jne 0x401ebf
push esi
jmp 0x401e9f
xor eax, eax
inc eax
pop esi
ret

Function at 0x4020d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.DLL_FindResourceExA]
mov ebx, eax
movzx eax, word [0x41e980]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x402116
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x40213c
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x402127
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [esi], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x40213c
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x4021b6
cmp dword [0x41e990], 0
jne 0x4021b4
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x41e990], 1
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call edi
push 0
mov dword [ebp - 4], eax
movzx eax, word [0x41e980]
push 0x409
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp dword [ebp - 4], 0
jne 0x4021a9
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x4021b4
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call dword [ebp - 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402490
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x41e0b0], ebx
je 0x4024c3
mov eax, 0x41e0b0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x4024c3
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41e0b0]
cmp dword [eax], ebx
jne 0x4024ac
shl esi, 4
cmp dword [esi + 0x41e0b0], ebx
jne 0x4024d8
mov eax, 0x41a584
jmp 0x40264a
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea eax, [ebp - 0x64]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x402588
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x40257f
call edi
test eax, eax
jne 0x40257f
mov eax, dword [esi + 0x41e0bc]
test eax, eax
je 0x402574
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x402571
push dword [esi + 0x41e0bc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41e0bc], edi
jmp 0x402587
push edi
jmp 0x402582
mov eax, dword [ebp - 8]
mov dword [esi + 0x41e0bc], eax
jmp 0x402588
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [esi + 0x41e0bc]
test eax, eax
jne 0x402649
mov ebx, dword [esi + 0x41e0b4]
lea edi, [esi + 0x41e0b8]
cmp dword [edi], eax
je 0x4025be
call fcn.0040243a
cmp eax, dword [0x41b41c]
jne 0x4025be
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edi, eax
inc edi
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x41e084], 0xffffffff
pop ecx
mov dword [esi + 0x41e0bc], eax
jne 0x402629
and dword [0x41e084], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x41e980]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jle 0x402629
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41e084], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41e0bc]
push edi
push ebx
push 0
push dword [0x41e084]
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esi + 0x41e0bc]
pop edi
pop esi
pop ebx
leave
ret