joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6bc77c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x6bc99f
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x6bc7a9
cmp dword [ebp - 4], 0
jg 0x6bc7b0
mov bl, 3
jmp 0x6bc989
mov eax, dword [ebp - 4]
mov ecx, 3
cdq
idiv ecx
test edx, edx
jne 0x6bc7ce
mov eax, dword [ebp - 4]
mov ecx, 3
cdq
idiv ecx
mov ebx, eax
jmp 0x6bc7dc
mov eax, dword [ebp - 4]
mov ecx, 3
cdq
idiv ecx
mov ebx, eax
inc ebx
mov edx, ebx
shl edx, 2
mov eax, edi
call fcn.006a4688
dec ebx
test ebx, ebx
jl 0x6bc973
inc ebx
mov dword [ebp - 0xc], ebx
xor ebx, ebx
lea eax, [ebx + ebx*2]
add eax, 3
cmp eax, dword [ebp - 4]
jg 0x6bc886
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax]
shr eax, 2
mov al, byte [eax + 0x6d6f6c]
mov byte [ebp - 5], al
lea eax, [ebx + ebx*2]
mov al, byte [esi + eax]
shl eax, 4
and al, 0x30
lea edx, [ebx + ebx*2]
inc edx
movzx edx, byte [esi + edx]
shr edx, 4
or al, dl
and eax, 0xff
mov al, byte [eax + 0x6d6f6c]
mov byte [ebp - 6], al
lea eax, [ebx + ebx*2]
inc eax
mov al, byte [esi + eax]
shl eax, 2
and al, 0x3c
lea edx, [ebx + ebx*2]
add edx, 2
movzx edx, byte [esi + edx]
shr edx, 6
or al, dl
and eax, 0xff
mov al, byte [eax + 0x6d6f6c]
mov byte [ebp - 7], al
lea eax, [ebx + ebx*2]
add eax, 2
mov al, byte [esi + eax]
and al, 0x3f
and eax, 0xff
mov al, byte [eax + 0x6d6f6c]
mov byte [ebp - 8], al
jmp 0x6bc91e
lea eax, [ebx + ebx*2]
add eax, 2
cmp eax, dword [ebp - 4]
jg 0x6bc8ea
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax]
shr eax, 2
mov al, byte [eax + 0x6d6f6c]
mov byte [ebp - 5], al
lea eax, [ebx + ebx*2]
mov al, byte [esi + eax]
shl eax, 4
and al, 0x30
lea edx, [ebx + ebx*2]
inc edx
movzx edx, byte [esi + edx]
shr edx, 4
or al, dl
and eax, 0xff
mov al, byte [eax + 0x6d6f6c]
mov byte [ebp - 6], al
lea eax, [ebx + ebx*2]
inc eax
mov al, byte [esi + eax]
shl eax, 2
and al, 0x3c
and eax, 0xff
mov al, byte [eax + 0x6d6f6c]
mov byte [ebp - 7], al
mov byte [ebp - 8], 0x3d
jmp 0x6bc91e
lea eax, [ebx + ebx*2]
movzx eax, byte [esi + eax]
shr eax, 2
mov al, byte [eax + 0x6d6f6c]
mov byte [ebp - 5], al
lea eax, [ebx + ebx*2]
mov al, byte [esi + eax]
shl eax, 4
and al, 0x30
and eax, 0xff
mov al, byte [eax + 0x6d6f6c]
mov byte [ebp - 6], al
mov byte [ebp - 7], 0x3d
mov byte [ebp - 8], 0x3d
mov eax, edi
call fcn.006a459c
mov edx, ebx
shl edx, 2
mov cl, byte [ebp - 5]
mov byte [eax + edx], cl
mov eax, edi
call fcn.006a459c
mov edx, ebx
shl edx, 2
mov cl, byte [ebp - 6]
mov byte [eax + edx + 1], cl
mov eax, edi
call fcn.006a459c
mov edx, ebx
shl edx, 2
mov cl, byte [ebp - 7]
mov byte [eax + edx + 2], cl
mov eax, edi
call fcn.006a459c
mov edx, ebx
shl edx, 2
mov cl, byte [ebp - 8]
mov byte [eax + edx + 3], cl
inc ebx
dec dword [ebp - 0xc]
jne 0x6bc7f7
lea edx, [ebp - 0x10]
mov eax, dword [edi]
call fcn.006a6e48
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.006a40c8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6bc9a6
lea eax, [ebp - 0x10]
call fcn.006a4074
ret
Function at 0x6bd958
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x14]
xor eax, eax
push ebp
push 0x6bdb11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x3fffffff
call fcn.006a2c54
mov edi, eax
add edi, 0x12e499d
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov ecx, edi
mov edx, dword [ebp - 0xc]
call fcn.006bd3e0
mov eax, dword [ebp - 0x10]
call fcn.006a51b4
add eax, 0x48
push eax
mov eax, esi
mov ecx, 1
mov edx, dword [0x6a5d70]
call fcn.006a5390
add esp, 4
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
call fcn.006a51b4
add eax, 0x48
mov edx, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
call fcn.006a51b4
add edi, 0x48
add eax, edi
mov edx, dword [ebx]
mov dword [edx + 8], eax
mov eax, dword [ebx]
mov eax, dword [eax]
mov edx, dword [ebx]
add eax, dword [edx + 8]
mov ecx, 7
cdq
idiv ecx
lea ecx, [eax + eax*2]
mov eax, dword [ebx]
mov dword [eax + 4], ecx
add ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x18], ecx
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov dword [edx + 0x14], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, 0x989680
mov edx, dword [ebx]
mov dword [edx + 0x1c], eax
call fcn.006bcce8
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.006aab7c
push edx
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov ecx, dword [ebx]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov eax, 0x3fffffff
call fcn.006a2c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x10]
call fcn.006a51b4
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
add eax, 0x48
call fcn.006ab55c
mov eax, 0x3fffffff
call fcn.006a2c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
add dword [ecx + 0x40], eax
adc dword [ecx + 0x44], edx
mov eax, 0x3fffffff
call fcn.006a2c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
add dword [ecx + 0x38], eax
adc dword [ecx + 0x3c], edx
mov eax, 0x3fffffff
call fcn.006a2c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
add dword [ecx + 0x30], eax
adc dword [ecx + 0x34], edx
mov eax, 0x3fffffff
call fcn.006a2c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
add dword [ecx + 0x28], eax
adc dword [ecx + 0x2c], edx
mov eax, 0x3fffffff
call fcn.006a2c54
mov edx, dword [ebx]
add dword [edx + 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6bdb18
lea eax, [ebp - 0x10]
mov edx, dword [0x6a5d70]
call fcn.006a539c
ret
Function at 0x6bf5c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x6bf6f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, ebx
call fcn.006a40c8
mov eax, dword [esi]
call fcn.006a4344
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x6bf6e2
mov eax, edi
shr eax, 0x18
mov byte [ebp - 0x10], al
mov eax, edi
shr eax, 0x10
mov byte [ebp - 0xf], al
mov eax, edi
shr eax, 8
mov byte [ebp - 0xe], al
mov eax, edi
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 4]
dec eax
cmp eax, 0
jl 0x6bf6ce
mov dword [ebp - 8], eax
mov eax, esi
call fcn.006a459c
mov edx, dword [esi]
mov dl, byte [edx]
mov cl, byte [ebp - 0xf]
add dl, cl
mov byte [eax], dl
mov edi, dword [ebp - 0xc]
sub edi, 2
jl 0x6bf67a
inc edi
mov ebx, 2
mov eax, esi
call fcn.006a459c
mov edx, dword [esi]
mov dl, byte [edx + ebx - 2]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
add dl, cl
mov cl, byte [ebp - 0xd]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0x6bf658
mov eax, esi
call fcn.006a459c
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0xc]
mov cl, byte [ecx + ebx - 1]
mov bl, byte [ebp - 0x10]
add cl, bl
mov byte [eax + edx - 1], cl
mov ebx, dword [ebp - 0xc]
dec ebx
cmp ebx, 1
jl 0x6bf6c1
mov eax, esi
call fcn.006a459c
mov edx, dword [esi]
mov dl, byte [edx + ebx]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
add dl, cl
mov cl, byte [ebp - 0xe]
xor dl, cl
mov byte [eax + ebx - 1], dl
dec ebx
test ebx, ebx
jne 0x6bf69f
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x6bf638
lea edx, [ebp - 0x14]
mov eax, dword [esi]
call fcn.006bcc98
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.006a40c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6bf6ff
lea eax, [ebp - 0x14]
call fcn.006a4074
ret
Function at 0x6bf708
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
mov esi, dword [ebp + 8]
mov edx, esi
mov eax, edi
call fcn.006bcca0
mov eax, dword [esi]
call fcn.006a4344
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x6bf7f4
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0x10], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xf], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xe], al
mov byte [ebp - 0xd], bl
mov eax, dword [ebp - 4]
dec eax
cmp eax, 0
jl 0x6bf7f4
mov dword [ebp - 8], eax
mov edi, dword [ebp - 0xc]
dec edi
test edi, edi
jle 0x6bf78f
mov ebx, 1
mov eax, esi
call fcn.006a459c
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
xor dl, byte [ebp - 0xe]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx]
sub dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0x6bf770
mov eax, esi
call fcn.006a459c
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0xc]
mov cl, byte [ecx + ebx - 1]
mov bl, byte [ebp - 0x10]
sub cl, bl
mov byte [eax + edx - 1], cl
mov ebx, dword [ebp - 0xc]
cmp ebx, 2
jl 0x6bf7d5
mov eax, esi
call fcn.006a459c
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
xor dl, byte [ebp - 0xd]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 2]
sub dl, cl
mov byte [eax + ebx - 1], dl
dec ebx
cmp ebx, 1
jne 0x6bf7b3
mov eax, esi
call fcn.006a459c
mov edx, dword [esi]
mov dl, byte [edx]
mov cl, byte [ebp - 0xf]
sub dl, cl
mov byte [eax], dl
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x6bf763
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10001eb0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10019138]
jne 0x10001eba
repz ret
jmp fcn.10003cf2

Function at 0x1000bcbc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10019138]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100067f7
and dword [ebp - 0x14], 0
cmp dword [0x1001b220], 0
mov dword [ebp - 0x18], eax
jne 0x1000bd6f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000be17
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000be17
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001b220], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1001b224], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1001b228], eax
call edi
push eax
call esi
mov dword [0x1001b230], eax
test eax, eax
je 0x1000bd6f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1001b22c], eax
mov eax, dword [0x1001b22c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000bdc8
cmp dword [0x1001b230], ecx
je 0x1000bdc8
push eax
call esi
push dword [0x1001b230]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000bdc8
test ebx, ebx
je 0x1000bdc8
call edi
test eax, eax
je 0x1000bdbf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000bdbf
test byte [ebp - 8], 1
jne 0x1000bdc8
or dword [ebp + 0x10], 0x200000
jmp 0x1000bdfb
mov eax, dword [0x1001b224]
cmp eax, dword [ebp - 0x18]
je 0x1000bdfb
push eax
call esi
test eax, eax
je 0x1000bdfb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000bdfb
mov eax, dword [0x1001b228]
cmp eax, dword [ebp - 0x18]
je 0x1000bdfb
push eax
call esi
test eax, eax
je 0x1000bdfb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001b220]
call esi
test eax, eax
je 0x1000be17
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000be19
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001eb0
leave
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 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x402710
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
lea ecx, [ebp - 0xc]
call fcn.00401420
lea ecx, [ebp - 0x18]
call fcn.00401420
push 0x3c
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0041ade0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], 0xa
test al, 1
je 0x402766
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x50], 0x8740
test al, 2
je 0x402771
mov dword [ebp - 0x48], str.runas
push esi
mov esi, eax
and esi, 0x10000
jne 0x402783
or dword [ebp - 0x50], 0x100
mov eax, dword [0x42a1e8]
push 5
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push ecx
call fcn.00403ec0
add esp, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.00401000
lea ecx, [ebp - 0xc]
call fcn.0040c490
test eax, eax
je 0x402801
lea ecx, [ebp - 0xc]
call fcn.0040dd70
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x44], eax
call fcn.0040dd70
lea edx, [ebp - 0x54]
push edx
mov dword [ebp - 0x40], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40281b
test esi, esi
jne 0x4027f7
mov eax, dword [ebp - 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00401cc0
lea ecx, [ebp - 0xc]
call fcn.00401cc0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
call fcn.00401cc0
lea ecx, [ebp - 0xc]
call fcn.00401cc0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4032c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
push eax
mov esi, ecx
call fcn.00402d20
lea ecx, [ebp - 4]
push ecx
push 0
push esi
push 0x403090
push 0
push 0
mov dword [0x42a1dc], esi
mov dword [0x42a1e4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42a1e0], eax
pop esi
test eax, eax
je 0x403321
cmp dword [0x42a22c], 2
je 0x403313
call fcn.0040b870
mov eax, dword [0x42a1e0]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x42a1e0]
mov ecx, dword [0x42a1e4]
mov dword [0x42a384], 0
test ecx, ecx
je 0x4033a8
lea eax, [ecx - 1]
cmp eax, 0x6a
ja case.0x403344.4
movzx edx, byte [eax + 0x40344c]
jmp dword [edx*4 + 0x403438]
push 0x11
push 0
call fcn.0040bb20
add esp, 8
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 4
push 0x12
push 0
call fcn.0040bb20
add esp, 8
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 4
push 0x13
push 0
call fcn.0040bb20
add esp, 8
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 4
push ecx
push 0x14
push 0
call fcn.0040bb20
add esp, 0xc
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov dword [ebp + 8], ecx
cmp dword [0x42a38c], ecx
jne case.0x403344.104
test eax, eax
je 0x4033d7
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x4033d7
test ecx, ecx
jne 0x4033d7
xor eax, eax
mov esp, ebp
pop ebp
ret 4
mov edx, ecx
and edx, 0x80070000
cmp edx, 0x80070000
je 0x4033ff
push ecx
push 0x21
push 0
call fcn.0040bb20
add esp, 0xc
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 4
and ecx, 0xffff
cmp ecx, 0xe
jne 0x403413
cmp dword [0x42a230], 0xffffffff
je case.0x403344.104
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 8]
push eax
push 0x22
push 1
call fcn.0040bb20
add esp, 0xc
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403fad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403f8d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403fad
test al, 0x10
jne 0x403fad
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x404530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, eax
movzx eax, word [0x42a1ec]
push eax
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x404577
mov edx, dword [ebp + 8]
push 0x409
push ebx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
je 0x4045a2
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x404588
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebx], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4045a2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x42a1f0], 0
jne 0x40460e
mov eax, dword [0x42a1f8]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push eax
mov dword [0x42a1f0], 1
call edi
movzx ecx, word [0x42a1ec]
push 0
push 0x409
push 0
push ecx
lea edx, [ebp - 0x40]
push str._04X_c_04X_c
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test esi, esi
jne 0x404604
mov eax, dword [0x42a1f8]
push str.SetThreadPreferredUILanguages
push eax
call edi
mov esi, eax
test esi, esi
je 0x40460e
push 0
lea ecx, [ebp - 0x40]
push ecx
push 4
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404950
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp dword [0x4290c0], esi
je 0x404989
mov eax, 0x4290c0
lea ecx, [ecx]
cmp dword [eax], edi
je 0x404989
inc esi
mov eax, esi
shl eax, 4
cmp dword [eax + 0x4290c0], 0
lea eax, [eax + 0x4290c0]
jne 0x404970
shl esi, 4
cmp dword [esi + 0x4290c0], 0
jne 0x4049a0
pop edi
mov eax, 0x423970
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push edi
lea ecx, [ebp - 0x5c]
push str.SfxString_d
push ecx
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
call ebx
test eax, eax
jne 0x404a4b
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041ac0e
add esp, 4
mov ebx, eax
lea eax, [edi + 1]
push eax
push ebx
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, edi
ja 0x404a42
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x404a42
mov eax, dword [esi + 0x4290cc]
test eax, eax
je 0x404a3a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404a42
mov edx, dword [esi + 0x4290cc]
push edx
call fcn.0041ab8a
mov dword [esi + 0x4290cc], ebx
jmp 0x404a48
mov dword [esi + 0x4290cc], ebx
jmp 0x404a4b
push ebx
call fcn.0041ab8a
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x4290cc]
test eax, eax
jne 0x404b19
mov ebx, dword [esi + 0x4290c4]
cmp dword [esi + 0x4290c8], eax
je 0x404a84
call fcn.004048f0
cmp eax, dword [0x4248c0]
jne 0x404a84
mov ebx, dword [esi + 0x4290c8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041ac0e
add esp, 4
cmp dword [0x429088], 0xffffffff
mov dword [esi + 0x4290cc], eax
jne 0x404af7
movzx ecx, word [0x42a1ec]
push 0x1f
lea eax, [ebp - 0x9c]
push eax
push 0x1004
push ecx
mov dword [0x429088], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x404af7
lea edx, [ebp - 0x9c]
push edx
call fcn.0041adc8
add esp, 4
mov dword [0x429088], eax
mov ecx, dword [esi + 0x4290cc]
mov edx, dword [0x429088]
lea eax, [edi + 1]
push eax
push ecx
push edi
push ebx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x4290cc]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret