joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a7190
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x11919f8]
push ebx
push esi
mov edx, dword [ecx + 0xc4]
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax*2]
xor esi, esi
mov dword [ecx + 8], esi
mov dword [ecx + 4], esi
lea ebx, [edx + eax*8]
mov dword [ecx], esi
cmp dword [ebx + 8], esi
jle 0x4a7286
push edi
mov edi, dword [0x11919f8]
mov eax, dword [ebx + 0xc]
add eax, esi
mov edx, dword [edi + 0xbc]
mov eax, dword [edx + eax*4]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [edi + 0xb4]
mov edi, dword [edi + 0xa4]
inc esi
lea eax, [edx + eax*8]
mov edx, dword [eax]
lea edx, [edx + edx*2]
fld dword [edi + edx*4]
fadd dword [ecx]
fstp dword [ecx]
mov edx, dword [eax]
mov edi, dword [0x11919f8]
mov edi, dword [edi + 0xa4]
lea edx, [edx + edx*2]
fld dword [edi + edx*4 + 4]
fadd dword [ecx + 4]
fstp dword [ecx + 4]
mov edx, dword [eax]
mov edi, dword [0x11919f8]
mov edi, dword [edi + 0xa4]
lea edx, [edx + edx*2]
fld dword [edi + edx*4 + 8]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
mov edx, dword [eax + 4]
mov edi, dword [0x11919f8]
mov edi, dword [edi + 0xa4]
lea edx, [edx + edx*2]
fld dword [edi + edx*4]
fadd dword [ecx]
fstp dword [ecx]
mov edx, dword [eax + 4]
mov edi, dword [0x11919f8]
mov edi, dword [edi + 0xa4]
lea edx, [edx + edx*2]
fld dword [edi + edx*4 + 4]
fadd dword [ecx + 4]
fstp dword [ecx + 4]
mov eax, dword [eax + 4]
mov edx, dword [0x11919f8]
mov edx, dword [edx + 0xa4]
lea eax, [eax + eax*2]
fld dword [edx + eax*4 + 8]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
cmp esi, dword [ebx + 8]
jl 0x4a71c0
pop edi
fild dword [ebx + 8]
pop esi
pop ebx
fdivr qword [0x4d73c0]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fld st(0)
fmul dword [ecx + 4]
fstp dword [ecx + 4]
fmul dword [ecx + 8]
fstp dword [ecx + 8]
ret
Function at 0x4b2690
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
test edi, edi
jle 0x4b26b4
push esi
mov esi, dword [esp + 0xc]
mov al, cl
mov dl, 0x77
imul dl
mov dl, byte [ecx + esi]
xor dl, al
mov byte [ecx + esi], dl
inc ecx
cmp ecx, edi
jl 0x4b26a0
pop esi
pop edi
ret

Function at 0x4bb920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d64c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 1
push 1
mov dword [esp + 0x1c], esi
mov dword [esi], ebx
call fcn.004c10b0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov byte [ecx], bl
lea edi, [esi + 4]
mov eax, 0x10
mov dword [esp + 0x20], ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
lea ebp, [esi + 0x14]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov eax, dword [edi]
mov byte [esp + 0x20], 3
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x4bb9b9
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [edx + eax*4]
push ecx
call fcn.004c57d2
mov eax, dword [esp + 0x14]
mov ecx, dword [edi]
add esp, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4bb997
mov ecx, edi
call fcn.004c02d0
mov eax, dword [ebp]
xor edi, edi
cmp eax, ebx
jle 0x4bb9e0
mov edx, dword [esi + 0x20]
mov eax, dword [edx + edi*4]
push eax
call fcn.004c57d2
mov eax, dword [ebp]
add esp, 4
inc edi
cmp edi, eax
jl 0x4bb9c9
mov ecx, ebp
call fcn.004c02d0
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x4bb9f7
push eax
call fcn.004c57d2
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov eax, 0x3f800000
mov dword [esi + 0x34], ebx
mov byte [esi + 0x6d], 1
mov dword [esi + 0x70], ebx
mov dword [esi + 0x68], 0x3ccccccd
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0x3f000000
mov dword [esi + 0x40], ebx
mov dword [esi + 0x50], 0x3f333333
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4ccd91
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4fe3f8
cmp edx, dword [eax]
je 0x4ccdb3
add eax, 8
inc ecx
cmp eax, 0x4fe488
jl 0x4ccda4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4fe3f8]
jne 0x4ccee1
mov eax, dword [0xb8faec]
cmp eax, 1
je 0x4ccebb
test eax, eax
jne 0x4ccde4
cmp dword [0x4fb884], 1
je 0x4ccebb
cmp edx, 0xfc
je 0x4ccee1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4cce1b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004cc660
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c9310
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4cce5e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c9310
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4ebaac
push edi
call fcn.004c2b10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004cc660
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004cc670
lea eax, [ebp - 0xa0]
push 0x4d8be4
push eax
call fcn.004cc670
push dword [esi + 0x4fe3fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004cc670
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004d1c5f
add esp, 0x2c
pop edi
jmp 0x4ccee1
lea eax, [ebp + 8]
lea esi, [esi + 0x4fe3fc]
push 0
push eax
push dword [esi]
call fcn.004c9310
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 0x5256f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc8000]
mov dword [edi + 0xcf740], 0x10b70f07
push edi
jmp 0x52571a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x525721
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x525710
mov eax, 1
add ebx, ebx
jne 0x525733
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x525744
jne 0x525763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x525763
dec eax
add ebx, ebx
jne 0x525750
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x525728
add ebx, ebx
jne 0x52575f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5257b5
xor ecx, ecx
sub eax, 3
jb 0x52577b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5257ea
sar eax, 1
mov ebp, eax
jmp 0x525786
add ebx, ebx
jne 0x525786
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x525754
inc ecx
add ebx, ebx
jne 0x525794
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x525754
add ebx, ebx
jne 0x5257a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x525796
jne 0x5257b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x525796
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5257d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5257c6
jmp 0x525716
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5257d4
add edi, ecx
jmp 0x525716
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5257f2
cmp byte [edi], 0x11
jne 0x5257f2
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 0x5257f7
lea edi, [esi + 0x11e000]
mov eax, dword [edi]
or eax, eax
je 0x52586f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1654ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x165628]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x525824
mov ecx, edi
jns 0x525853
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 + 0x16562c]
or eax, eax
je 0x525869
mov dword [ebx], eax
add ebx, 4
jmp 0x525841
call dword [esi + 0x16563c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5258a0
cmp al, 0xef
ja 0x525893
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x525875
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x525882
mov ebp, dword [esi + 0x165630]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x5258d4
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x40894a
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop esi
push ebx
pop ebx
add ebx, ecx
call fcn.0040896b
inc ecx
add ecx, ecx
xor dword [edi], esi
inc edi
cmp edi, edx
jne fcn.0040894a
sub ecx, ecx
dec ebx
ret

Function at 0x8de3ec
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de3f2
pop ebp
sub ebp, 6
sub ebp, 0x4de3ec
jmp 0x8de450
jmp 0x8de459
mov eax, 0x4de3ec
add eax, ebp
add eax, 0x93
mov ecx, 0x633
mov edx, 0xf9500a11
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de470
jmp 0x8de483
mov esi, 0x1179517b
jnp 0x8de4d6
jns 0x8de498
add dword [ecx], edx
adc dword [ecx + 0x11], edi
fnstsw word [0x8e19011]
aas
push es
xchg ebp, eax
nop
loope 0x8de4a0
aas
push es
xchg ebp, eax
and dl, cl
inc ecx
out dx, al
test byte [0x41115530], ch
sub eax, 0x41115530
lcall 0x1111, 0x2d989adc
adc dword [eax + 0x1111e9d0], edx
adc dword [edx], edx
fsubr qword [ecx + 0x11111117]
stosd dword es:[edi], eax
cmp dword [ecx], edx
adc dword [ecx], edx
out 0xf3, al
adc bl, cl
lcall 0x1211, 0x11111d90
aam 0x41
jns 0x8de482
sub dword [eax], ebx
adc dword [ecx + 0x54], edi
mov edx, 0x3d101155
xor eax, 0x11111179
adc ecx, edi
adc byte [0x11117935], bh
adc dword [ecx], edx
stc
adc al, 0x11
adc dword [ecx], edx
clc
cmp dword [ecx], edx
adc dword [ecx], edx
inc esp
inc ebp
dec esp
lcall 0x9a11, 0x11111994
test byte [0x9a111111], bl
pushfd
add dword [ecx], edx
adc dword [ecx], edx
sar al, 1
adc esp, dword [eax]
adc edx, dword [edx + 0x1e5815d3]
xchg esp, eax
in eax, 0xee
out dx, al
out dx, al
dec esp
rcr dword [0x359d9a11], cl
adc eax, 0x79111111
mov ah, 0x29
sbb byte [ecx], dl
jns 0x8de572
mov edx, 0x3d101155
xor eax, 0x1114f940
adc dword [ecx], edx
clc
pop esp
adc edx, dword [ecx]
adc dword [esp + ebx*4 + 0x7d], eax
xor eax, 0x1d64ee11
out dx, al
sbb ecx, edi
outsd dx, dword [esi]
adc dword [ecx], edx
adc dword [edx + 0x111119ac], ebx
adc dword [eax - 0x665ec620], edx
ficom word [eax - 0x665ec620]
fisub word [edx]
fcom dword [eax + 0x43117e3]
or eax, 0x3117e390
add al, 0xd
and al, bl
xchg edx, eax
stc
adc al, 0x59
push ds
xchg ebp, eax
pop edi
adc dword [ecx], edx
adc dword [esi], ebx
cdq
pop ecx
adc dword [ecx], edx
adc dword [edi - 0x66], esi
or eax, 0xf9ea9128
push ds
lcall 0x1ef9, 0xea91280d
xchg ebp, eax
or edx, dword [ecx]
adc dword [ecx], edx
xchg ecx, eax
ljmp 0x1111
Function at 0x406770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
jmp 0x40678a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x406791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x406780
mov eax, 1
add ebx, ebx
jne 0x4067a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4067b4
jne 0x4067c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4067c4
dec eax
add ebx, ebx
jne 0x4067c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x406798
xor ecx, ecx
sub eax, 3
jb 0x4067dc
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40684e
sar eax, 1
mov ebp, eax
jmp 0x4067e7
add ebx, ebx
jne 0x4067e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4067f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x406818
inc ecx
add ebx, ebx
jne 0x406804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4067f9
jne 0x406815
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4067f9
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x406838
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x406829
jmp 0x406786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x406838
add edi, ecx
jmp 0x406786
pop esi
mov edi, esi
mov ecx, 0x429
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x40686c
mov eax, dword [edi]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x406856
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x4068b4
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x63ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6444]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x406872
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x644c]
or eax, eax
je 0x4068ae
mov dword [ebx], eax
add ebx, 4
jmp 0x40688f
call dword [esi + 0x6448]
mov ebp, dword [esi + 0x6450]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x4068e8
sub esp, 0xffffff80
jmp 0x40102d
Function at 0x408951
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
sub ecx, 1
call fcn.00408970
xor dword [ebx], eax
inc ebx
sub esi, 1
cmp ebx, edx
jne fcn.00408951
inc esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402160
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
lea ecx, [ebp - 0xc]
call fcn.00401245
lea ecx, [ebp - 0x18]
call fcn.00401245
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0041c740
mov eax, dword [ebp + 0x10]
add esp, 0xc
test byte [ebp + 0xc], 1
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], 0xa
je 0x4021b1
and dword [ebp - 0x38], 0
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x4021be
mov dword [ebp - 0x48], str.runas
mov esi, dword [ebp + 0xc]
and esi, 0x10000
jne 0x4021d0
or dword [ebp - 0x50], 0x100
mov eax, dword [0x42c248]
push 5
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_BringWindowToTop]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0040354d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401000
lea ecx, [ebp - 0xc]
call fcn.0040102e
test eax, eax
jne 0x402223
lea ecx, [ebp - 0x18]
call fcn.00401251
lea ecx, [ebp - 0xc]
call fcn.00401251
xor eax, eax
inc eax
pop esi
leave
ret
lea ecx, [ebp - 0xc]
call fcn.0040a992
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x44], eax
call fcn.0040a992
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x402276
test esi, esi
jne 0x402256
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
lea ecx, [ebp - 0x18]
call fcn.00401251
lea ecx, [ebp - 0xc]
call fcn.00401251
mov eax, esi
jmp 0x402220
xor esi, esi
jmp 0x402262
Function at 0x402b3c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.004026d2
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x402995
push edi
push edi
mov dword [0x42c23c], esi
mov dword [0x42c244], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42c240], eax
cmp eax, edi
je 0x402b97
cmp dword [0x42c28c], 2
je 0x402b89
call fcn.0040a0cd
mov eax, dword [0x42c240]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x42c240]
mov ecx, dword [0x42c244]
mov dword [0x42c3e4], edi
cmp ecx, edi
je 0x402bdd
cmp ecx, 1
je 0x402bd1
cmp ecx, 2
je 0x402bcd
cmp ecx, 3
je 0x402bc9
cmp ecx, 0x67
jle 0x402bc4
cmp ecx, 0x6b
jle 0x402c46
push ecx
push 0x14
jmp 0x402c17
push 0x12
jmp 0x402bd3
push 0x13
jmp 0x402bd3
push 0x11
push edi
call fcn.0040a35a
pop ecx
pop ecx
jmp 0x402c46
mov dword [ebp + 8], edi
cmp dword [0x42c3ec], edi
jne 0x402c46
cmp eax, edi
je 0x402c04
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x402c04
cmp dword [ebp + 8], edi
jne 0x402c04
xor eax, eax
jmp 0x402c4b
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x402c1a
push dword [ebp + 8]
push 0x21
push edi
jmp 0x402c3e
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x402c30
cmp dword [0x42c290], 0xffffffff
je 0x402c46
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.0040a35a
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4

Function at 0x4035c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403602
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x4035ed
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x403605
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403602
test al, 0x10
jne 0x403602
push esi
jmp 0x4035e3
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x403a47
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]
movzx ecx, word [0x42c24c]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
call esi
mov ebx, eax
mov edi, 0x409
test ebx, ebx
jne 0x403a8f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x403ab9
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x403aa2
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403ab9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x403b23
cmp dword [0x42c250], 0
jne 0x403b21
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x42c258]
mov dword [0x42c250], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x42c24c]
push edi
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
test ebx, ebx
jne 0x403b17
push str.SetThreadPreferredUILanguages
push dword [0x42c258]
call esi
mov ebx, eax
test ebx, ebx
je 0x403b21
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403e07
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 [0x42b0c0], ebx
je 0x403e3a
mov eax, 0x42b0c0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x403e3a
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x42b0c0]
cmp dword [eax], ebx
jne 0x403e23
shl esi, 4
cmp dword [esi + 0x42b0c0], ebx
jne 0x403e4f
mov eax, 0x424998
jmp 0x403fc2
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 0x403eff
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 fcn.0041c56f
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 0x403ef6
call edi
test eax, eax
jne 0x403ef6
mov eax, dword [esi + 0x42b0cc]
test eax, eax
je 0x403eeb
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403ee8
push dword [esi + 0x42b0cc]
call fcn.0041c4eb
mov dword [esi + 0x42b0cc], edi
jmp 0x403efe
push edi
jmp 0x403ef9
mov eax, dword [ebp - 8]
mov dword [esi + 0x42b0cc], eax
jmp 0x403eff
push dword [ebp - 8]
call fcn.0041c4eb
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x42b0cc]
test eax, eax
jne 0x403fc1
mov ebx, dword [esi + 0x42b0c4]
cmp dword [esi + 0x42b0c8], eax
je 0x403f37
call fcn.00403dac
cmp eax, dword [0x4258e8]
jne 0x403f37
mov ebx, dword [esi + 0x42b0c8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041c56f
cmp dword [0x42b088], 0xffffffff
pop ecx
mov dword [esi + 0x42b0cc], eax
jne 0x403fa1
and dword [0x42b088], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x42c24c]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x403fa1
lea eax, [ebp - 0xa4]
push eax
call fcn.0041c729
pop ecx
mov dword [0x42b088], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x42b0cc]
push edi
push ebx
push 0
push dword [0x42b088]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x42b0cc]
pop edi
pop esi
pop ebx
leave
ret