joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

Function at 0x4038fa
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fa], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404658], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045ec], eax
mov dword [0x4040f2], eax
mov dword [0x4045d8], 0x30
mov dword [0x4045dc], 2
jmp 0x40393f
mov dword [0x4045e0], 0x403153
mov dword [0x4045e4], 0
mov dword [0x4045e8], 0
mov dword [0x404600], 0x40454e
mov dword [0x4045f8], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045f0], eax
mov dword [0x404604], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045f4], eax
push 0x4045d8
fadd dword [ebp + 0x40]
add bh, bh
adc eax, sym.imp.user32.dll_RegisterClassExA
push 0
push dword [0x4040f2]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push 0x40454e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404650], eax
push 5
push dword [0x404650]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404650]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404608]
jmp 0x403a13
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a05
mov eax, dword [0x404610]
jmp 0x403a2e
call 0x402bd5
ret
Function at 0x100026d7
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x120], edx
cmp edx, 0x10
je 0x10002854
cmp edx, 0x18
je 0x100027ba
cmp edx, 0x20
jne 0x100028b9
movdqu xmm0, xmmword [ecx]
movdqa xmmword [eax + 0x30], xmm0
movdqu xmm2, xmmword [ecx + 0x10]
movdqa xmmword [eax + 0x40], xmm2
xor ecx, ecx
add eax, 0x60
movzx edx, byte [ecx + 0x41a854]
movdqa xmm1, xmm0
pslldq xmm1, 4
pxor xmm0, xmm1
movdqa xmm1, xmm0
pslldq xmm0, 4
pxor xmm1, xmm0
movdqa xmm3, xmm1
pslldq xmm1, 4
aeskeygenassist xmm0, xmm2, 0
pshufd xmm0, xmm0, 0xff
pxor xmm3, xmm1
pxor xmm3, xmm0
movd xmm0, edx
pshufd xmm0, xmm0, 0
pxor xmm0, xmm3
movdqa xmmword [eax - 0x10], xmm0
cmp ecx, 6
je 0x100028b9
movdqa xmm1, xmm2
pslldq xmm2, 4
pxor xmm1, xmm2
movdqa xmm2, xmm1
pslldq xmm1, 4
pxor xmm2, xmm1
movdqa xmm1, xmm2
pslldq xmm2, 4
pxor xmm1, xmm2
aeskeygenassist xmm2, xmm0, 0
pshufd xmm2, xmm2, 0xaa
pxor xmm2, xmm1
movdqa xmmword [eax], xmm2
inc ecx
add eax, 0x20
cmp ecx, 7
jb 0x10002716
jmp 0x100028b9
movdqu xmm0, xmmword [ecx]
movdqa xmmword [eax + 0x30], xmm0
movdqu xmm2, xmmword [ecx + 8]
psrldq xmm2, 8
movdqa xmmword [eax + 0x40], xmm2
xor ecx, ecx
add eax, 0x58
movzx edx, byte [ecx + 0x41a854]
movdqa xmm1, xmm0
pslldq xmm1, 4
pxor xmm0, xmm1
movdqa xmm1, xmm0
pslldq xmm0, 4
pxor xmm1, xmm0
movdqa xmm3, xmm1
pslldq xmm1, 4
aeskeygenassist xmm0, xmm2, 0
pshufd xmm0, xmm0, 0x55
pxor xmm3, xmm1
pxor xmm3, xmm0
movd xmm0, edx
pshufd xmm0, xmm0, 0
pxor xmm0, xmm3
movdqu xmmword [eax - 0x10], xmm0
cmp ecx, 7
je 0x100028b9
movdqa xmm1, xmm2
pslldq xmm2, 4
pxor xmm1, xmm2
pshufd xmm2, xmm0, 0xff
pxor xmm2, xmm1
movq qword [eax], xmm2
inc ecx
add eax, 0x18
cmp ecx, 8
jb 0x100027d7
jmp 0x100028b9
movdqu xmm0, xmmword [ecx]
movdqa xmmword [eax + 0x30], xmm0
xor ecx, ecx
add eax, 0x40
movzx edx, byte [ecx + 0x41a854]
movdqa xmm1, xmm0
aeskeygenassist xmm2, xmm0, 0
pslldq xmm1, 4
pxor xmm0, xmm1
movdqa xmm1, xmm0
pslldq xmm0, 4
pxor xmm1, xmm0
movdqa xmm3, xmm1
pslldq xmm1, 4
pshufd xmm0, xmm2, 0xff
pxor xmm3, xmm1
pxor xmm3, xmm0
movd xmm0, edx
pshufd xmm0, xmm0, 0
pxor xmm0, xmm3
movdqa xmmword [eax], xmm0
inc ecx
add eax, 0x10
cmp ecx, 0xa
jb 0x10002862
pop ebp
ret 4
Function at 0x10006081
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 1
jne 0x100061d4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x50]
push ebx
push esi
add ecx, eax
push edi
lea esi, [ecx - 0x18]
jmp 0x100060c3
mov edx, dword [eax]
test edx, edx
je 0x100060c2
mov edi, edx
xor edi, 0x88bbdd8d
cmp dword [eax + 4], edi
jne 0x100060c2
xor edx, 0xddbca2b2
cmp dword [eax + 8], edx
je 0x100060e1
inc eax
cmp eax, esi
jb 0x100060a4
xor ebx, ebx
pop edi
pop esi
mov dword [0x422370], ebx
test ebx, ebx
pop ebx
jne 0x100061cb
xor eax, eax
jmp 0x100061d7
mov ebx, dword [eax]
mov esi, dword [eax + 0xc]
lea edx, [eax + 0x14]
mov eax, dword [eax + 0x10]
xor eax, ebx
xor esi, ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
test edx, edx
je 0x100060c7
cmp esi, eax
ja 0x100060c7
add edx, esi
cmp edx, ecx
ja 0x100060c7
mov edi, dword [0x4171a4]
push 4
push 0x3000
push esi
push 0
call edi
mov dword [ebp + 0xc], eax
test eax, eax
je 0x100060c7
add ebx, 0xa078c405
xor edx, edx
test esi, esi
je 0x10006161
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov cl, dl
and cl, 0x1f
mov eax, ebx
rol eax, cl
ror ebx, 3
mov ecx, edx
add ebx, eax
mov eax, dword [ebp + 0xc]
ror ecx, 0xb
add ecx, 0x72462828
xor ebx, ecx
mov ecx, dword [ebp - 8]
add eax, edx
mov cl, byte [ecx + eax]
xor cl, bl
inc edx
mov byte [eax], cl
cmp edx, esi
jb 0x10006132
cmp esi, dword [ebp - 4]
jne 0x1000616e
mov ebx, dword [ebp + 0xc]
jmp 0x100060c9
push 4
push 0x3000
push dword [ebp - 4]
push 0
call edi
mov esi, dword [0x4171a0]
mov ebx, eax
mov edi, 0x8000
test ebx, ebx
je 0x100061a9
call fcn.1000203c
mov ecx, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 4]
call fcn.1000207f
pop ecx
test eax, eax
je 0x100061b6
push edi
push 0
push ebx
call esi
push edi
push 0
push dword [ebp + 0xc]
call esi
jmp 0x100060c7
push 0x8000
push 0
push dword [ebp + 0xc]
call dword [0x4171a0]
jmp 0x100060c9
push dword [ebp + 8]
call dword [0x41711c]
xor eax, eax
inc eax
leave
ret 0xc
Function at 0x4011a7
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x408040]
add eax, 8
mov dword [0x408040], eax
push 0x3ff
push 0x40ef10
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4011d8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x408040]
shl eax, 3
mov dword [0x408040], eax
mov eax, dword [0x408040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x408040], eax
push 0x40ef10
call fcn.00401000
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [0x40803c]
mov ecx, dword [0x408040]
lea eax, [ecx + eax - 9]
mov dword [0x40803c], eax
push 0
push 0x80
jmp loc.0042010d
Function at 0x4014be
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
and dword [ebp - 0x44c], 0
mov dword [0x41dd94], 0x6925
push 0x6925
call fcn.00403892
pop ecx
mov dword [0x41dd8c], eax
push 0x6925
push 0x408048
push dword [0x41dd8c]
call fcn.00403797
add esp, 0xc
push 0x100
call fcn.00403892
pop ecx
mov dword [0x41dd90], eax
push 0x100
push 0x40e970
push dword [0x41dd90]
call fcn.00403797
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [0x40f31c], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x40f328], eax
cmp dword [0x40f328], 0
jne 0x401551
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.VirtualProtect
push dword [0x40f328]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40f314], eax
cmp dword [0x40f314], 0
jne 0x401578
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040103e
test eax, eax
je 0x401589
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x408040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x408040], eax
mov eax, dword [0x40803c]
sub eax, 4
mov dword [0x408040], eax
push dword [0x41dd94]
call fcn.00403892
pop ecx
mov dword [0x40f310], eax
and dword [ebp - 0x30c], 0
jmp 0x4015ce
mov eax, dword [ebp - 0x30c]
inc eax
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp - 0x30c]
cmp eax, dword [0x41dd94]
jae 0x401638
mov eax, dword [0x40803c]
imul eax, dword [0x408040]
mov ecx, dword [0x408040]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x40803c], eax
mov eax, dword [0x41dd8c]
add eax, dword [ebp - 0x30c]
mov al, byte [eax]
mov byte [ebp - 0x208], al
mov eax, dword [0x408040]
add eax, 7
mov dword [0x40803c], eax
movzx eax, byte [ebp - 0x208]
mov ecx, dword [0x40f310]
add ecx, dword [ebp - 0x30c]
mov edx, dword [0x41dd90]
mov al, byte [edx + eax]
mov byte [ecx], al
jmp 0x4015c1
mov eax, dword [0x40803c]
sub eax, 4
mov dword [0x408040], eax
push dword [0x41dd94]
push 0x40f32c
push dword [0x40f310]
call fcn.00402089
add esp, 0xc
mov dword [ebp - 0x448], eax
mov eax, dword [0x40803c]
imul eax, dword [0x408040]
mov ecx, dword [0x408040]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x40803c], eax
mov dword [0x40f310], 0x40f32c
push 0x40f320
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x448]
mov dword [0x41dd94], eax
call fcn.004011a7
cmp dword [0x408030], 9
jne 0x4016ca
and dword [0x408038], 0
mov eax, dword [0x40803c]
sub eax, 4
mov dword [0x408040], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x30c], 0x14
jmp 0x4016e3
jmp loc.00421b32

Function at 0x402089
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x408040]
shl eax, 3
mov dword [0x408040], eax
jmp loc.00420b48
Function at 0x4051f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40eb68
cmp edx, dword [eax]
je 0x405217
add eax, 8
inc ecx
cmp eax, 0x40ebf8
jl 0x405208
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40eb68]
jne 0x405345
mov eax, dword [0x41dda0]
cmp eax, 1
je 0x40531f
test eax, eax
jne 0x405248
cmp dword [0x40eab8], 1
je 0x40531f
cmp edx, 0xfc
je 0x405345
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40527f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405ab0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405ba0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4052c2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405ba0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4073a0
push edi
call fcn.00405cb0
add esp, 0x10
lea eax, [ebp - 0xa0]
jmp 0x420fd4
lea eax, [ebp + 8]
lea esi, [esi + 0x40eb6c]
push 0
push eax
push dword [esi]
call fcn.00405ba0
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 0x40c84b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x40c88f
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x40c85e
jmp 0x40c88f
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40c87f
pop esi
pop ebp
ret

Function at 0x40d5e7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40d61c
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40d646
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40d646
test edi, edi
je 0x40d613
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40d613
test edi, edi
je 0x40d64e
mov eax, edi
jmp 0x40d615
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40d615
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.00410350
add esp, 0xc
int3
Function at 0x410384
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestIntegerPrintfMacros.exe_gMozillaPoisonSize], eax
call fcn.0040d5e7
pop ecx
mov ecx, dword [sym.TestIntegerPrintfMacros.exe_gMozillaPoisonSize]
mov dword [sym.TestIntegerPrintfMacros.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x4103bc
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestIntegerPrintfMacros.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x4022c0
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
sub esp, 0x54
lea ecx, [esp]
call fcn.004159a0
lea ecx, [esp + 0xc]
call fcn.004159a0
push 0x3c
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0041a970
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
add esp, 0xc
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], 0x740
mov dword [esp + 0x34], 0xa
test al, 1
je 0x40231d
mov dword [esp + 0x34], 0
mov dword [esp + 0x1c], 0x8740
test al, 2
je 0x402329
mov dword [esp + 0x24], str.runas
push esi
mov esi, eax
and esi, 0x10000
jne 0x40233c
or dword [esp + 0x20], 0x100
mov eax, dword [0x429208]
push 5
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 4]
push eax
push ecx
call fcn.00403960
add esp, 8
push eax
lea ecx, [esp + 0x14]
call fcn.00415f20
cmp dword [esp + 8], 0
mov edx, dword [esp + 0x10]
jne 0x40239d
push edx
call fcn.0041a71a
mov eax, dword [esp + 8]
push eax
call fcn.0041a71a
add esp, 8
mov eax, 1
pop esi
add esp, 0x54
ret
mov ecx, dword [esp + 4]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4023f5
test esi, esi
jne 0x4023c9
mov ecx, dword [esp + 0x54]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push eax
call fcn.0041a71a
mov ecx, dword [esp + 8]
push ecx
call fcn.0041a71a
add esp, 8
mov eax, 1
pop esi
add esp, 0x54
ret
mov edx, dword [esp + 0x10]
push edx
call fcn.0041a71a
mov eax, dword [esp + 8]
push eax
call fcn.0041a71a
add esp, 8
xor eax, eax
pop esi
add esp, 0x54
ret
Function at 0x402d00
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
mov edi, ecx
push eax
lea ecx, [edi + 0xc]
call fcn.00415f20
mov ecx, dword [edi + 0x14]
cmp ecx, dword [edi + 0x10]
jne 0x402d22
lea ecx, [edi + 0xc]
call fcn.004158c0
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
mov edx, 0x5c
mov word [ecx + eax*2], dx
inc eax
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [edi + 0x10], eax
xor esi, esi
lea eax, [esp + 8]
push eax
push esi
push edi
push 0x402c30
push esi
push esi
mov dword [0x4291fc], edi
mov dword [0x429204], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x429200], eax
cmp eax, esi
je 0x402d87
cmp dword [0x42924c], 2
je 0x402d79
call fcn.0040bac0
mov eax, dword [0x429200]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x429200]
mov ecx, dword [0x429204]
mov dword [0x429384], esi
cmp ecx, esi
je 0x402e06
lea eax, [ecx - 1]
cmp eax, 0x6a
ja case.0x402da6.4
movzx edx, byte [eax + 0x402eac]
jmp dword [edx*4 + 0x402e98]
push 0x11
push esi
call fcn.0040bda0
add esp, 8
pop edi
mov eax, 0x80004005
pop esi
pop ecx
ret 4
push 0x12
push esi
call fcn.0040bda0
add esp, 8
pop edi
mov eax, 0x80004005
pop esi
pop ecx
ret 4
push 0x13
push esi
call fcn.0040bda0
add esp, 8
pop edi
mov eax, 0x80004005
pop esi
pop ecx
ret 4
push ecx
push 0x14
push esi
call fcn.0040bda0
add esp, 0xc
pop edi
mov eax, 0x80004005
pop esi
pop ecx
ret 4
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp dword [0x42938c], esi
jne case.0x402da6.104
cmp eax, esi
je 0x402e38
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x402e38
cmp ecx, esi
jne 0x402e38
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
mov edx, ecx
and edx, 0x80070000
cmp edx, 0x80070000
je 0x402e5f
push ecx
push 0x21
push esi
call fcn.0040bda0
add esp, 0xc
pop edi
mov eax, 0x80004005
pop esi
pop ecx
ret 4
and ecx, 0xffff
cmp ecx, 0xe
jne 0x402e73
cmp dword [0x429250], 0xffffffff
je case.0x402da6.104
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
push eax
push 0x22
push 1
call fcn.0040bda0
add esp, 0xc
pop edi
mov eax, 0x80004005
pop esi
pop ecx
ret 4

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

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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
mov edi, eax
movzx eax, word [0x42920c]
push eax
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x404134
push 0x409
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
je 0x404161
mov ebx, dword [esp + 0x5c]
test ebx, ebx
je 0x404146
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 0x404161
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
cmp dword [0x429210], 0
jne 0x4041d1
mov ecx, dword [0x429218]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push ecx
mov dword [0x429210], 1
call edi
movzx edx, word [0x42920c]
push 0
push 0x409
push 0
push edx
mov esi, eax
lea eax, [esp + 0x20]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test esi, esi
jne 0x4041c6
mov ecx, dword [0x429218]
push str.SetThreadPreferredUILanguages
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4041d1
push 0
lea edx, [esp + 0x14]
push edx
push 4
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x404530
Capabilities:
Get geographical location
Query environment variable

Disassembly:
sub esp, 0x9c
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xa8]
cmp dword [0x4280c0], esi
je 0x404569
mov eax, 0x4280c0
mov edi, edi
cmp dword [eax], edi
je 0x404569
inc esi
mov eax, esi
shl eax, 4
cmp dword [eax + 0x4280c0], 0
lea eax, [eax + 0x4280c0]
jne 0x404550
shl esi, 4
cmp dword [esi + 0x4280c0], 0
jne 0x404583
pop edi
mov eax, 0x422948
pop esi
add esp, 0x9c
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
push edi
lea ecx, [esp + 0x14]
push str.SfxString_d
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
call ebp
test eax, eax
jne 0x404630
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
push ebx
neg ecx
or ecx, eax
push ecx
call fcn.0041a79e
add esp, 4
mov ebx, eax
lea eax, [edi + 1]
push eax
push ebx
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, edi
ja 0x404626
call ebp
test eax, eax
jne 0x404626
mov eax, dword [esi + 0x4280cc]
test eax, eax
je 0x40461e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404626
mov edx, dword [esi + 0x4280cc]
push edx
call fcn.0041a71a
mov dword [esi + 0x4280cc], ebx
jmp 0x40462c
mov dword [esi + 0x4280cc], ebx
jmp 0x40462f
push ebx
call fcn.0041a71a
add esp, 4
pop ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x4280cc]
test eax, eax
jne 0x4046fb
mov ebp, dword [esi + 0x4280c4]
cmp dword [esi + 0x4280c8], eax
je 0x40466a
call fcn.004044d0
cmp eax, dword [0x423880]
jne 0x40466a
mov ebp, dword [esi + 0x4280c8]
push ebp
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.0041a79e
add esp, 4
cmp dword [0x428088], 0xffffffff
mov dword [esi + 0x4280cc], eax
jne 0x4046d9
movzx ecx, word [0x42920c]
push 0x1f
lea eax, [esp + 0x6c]
push eax
push 0x1004
push ecx
mov dword [0x428088], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x4046d9
lea edx, [esp + 0x68]
push edx
call fcn.0041a958
add esp, 4
mov dword [0x428088], eax
mov ecx, dword [esi + 0x4280cc]
mov edx, dword [0x428088]
lea eax, [edi + 1]
push eax
push ecx
push edi
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x4280cc]
pop ebp
pop edi
pop esi
add esp, 0x9c
ret

Function at 0x4049e0
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
mov dword [esi], 0x422bf0
je 0x4049f9
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [esi + 4]
push ecx
call fcn.0041a71a
add esp, 4
pop esi
ret