joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100083f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov edx, 1
push esi
push edi
mov esi, 0x1571
mov dword [ebx + 0x1384], 0xffffffff
lea edi, [ebx + 8]
mov dword [ebx + 4], 0x1571
mov eax, esi
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, esi
imul esi, eax, 0x6c078965
add esi, edx
inc edx
mov dword [edi - 4], esi
cmp edx, 0x270
jl 0x10008416
push 0x1388
push dword [ebp + 8]
mov dword [ebx], 0x270
push ebx
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x10008460
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
lea ecx, [ecx]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jl 0x10008480
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 4

Function at 0x100088b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
dec eax
mov ecx, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
test eax, eax
je 0x1000895c
lea esp, [esp]
mov ecx, dword [edi + 4]
dec ecx
shl esi, cl
add esi, esi
mov dword [ebp - 4], esi
jmp 0x100088e0
mov esi, dword [edi]
mov eax, dword [esi]
cmp eax, 0x270
jne 0x100088f4
mov ecx, esi
call fcn.10009400
jmp 0x10008902
cmp eax, 0x4e0
jb 0x10008902
mov ecx, esi
call fcn.10009340
mov eax, dword [esi]
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [edi + 8]
ja 0x100088e0
mov ecx, dword [edi + 4]
mov esi, dword [ebp - 4]
dec ecx
shl ebx, cl
or esi, eax
mov ecx, dword [ebp + 8]
add ebx, ebx
or ebx, dword [edi + 8]
lea eax, [ecx - 1]
cmp ebx, eax
jb 0x100088d0
xor edx, edx
mov eax, ebx
div ecx
mov ecx, eax
mov ebx, edx
xor edx, edx
mov eax, esi
div dword [ebp + 8]
cmp eax, ecx
mov ecx, dword [ebp + 8]
jb 0x1000897f
lea eax, [ecx - 1]
cmp ebx, eax
jne 0x100088c0
mov eax, esi
xor edx, edx
div ecx
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10009100
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
mov edi, edi
mov ecx, dword [edi + 4]
dec ecx
shl ebx, cl
add ebx, ebx
jmp 0x10009120
mov esi, dword [edi]
mov eax, dword [esi]
cmp eax, 0x270
jne 0x10009134
mov ecx, esi
call fcn.10009400
jmp 0x10009142
cmp eax, 0x4e0
jb 0x10009142
mov ecx, esi
call fcn.10009340
mov eax, dword [esi]
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [edi + 8]
ja 0x10009120
mov eax, dword [ebp - 4]
or ebx, ecx
add eax, dword [edi + 4]
mov dword [ebp - 4], eax
cmp eax, 0x20
jb 0x10009110
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009340
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
dec ecx
jne 0x10009350
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi]
lea esi, [esi + 4]
xor ecx, dword [esi]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
dec edi
jne 0x10009390
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret

Function at 0x10009400
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
lea esp, [esp]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
dec esi
jne 0x10009410
pop esi
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10480c78
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10480c82
pushal
call 0x10480c88
pop ebp
sub ebp, 0x10
sub ebp, 0x480c78
mov al, byte [esp + 0x28]
cmp al, 1
je 0x10480cac
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x10480cb5
mov eax, 0x480c78
add eax, ebp
add eax, 0x63
mov ecx, 0x5f1
mov edx, 0xfbef60b5
xor byte [eax], dl
inc eax
dec ecx
jne 0x10480ccc
jmp 0x10480cdf
js 0x10480d20
cmp al, 0x89
mov ch, 0xb5
mov ch, 0x34
je 0x10480d37
mov ch, 0xb5
mov ch, 0xb6
js 0x10480cfd
mov ch, 0xb5
mov dh, 0x78
or eax, 0xb5b5b5b6
mov dh, 0xb5
mov ch, 0xb5
setge byte [ebp + 0x5742b5b5]
mov ch, 0xb5
inc edx
push edi
mov dh, 0x7d
xor al, 0xb9
mov ch, 0xb5
mov ch, 0xb6
jo 0x10480ceb
cmp cl, dl
xchg ecx, eax
dec ecx
cmp al, 0xb1
xchg ecx, eax
ffree st(1)
iretd
mov al, 0xb5
mov ch, 0xb5
pop esp
popfd
mov ch, 0xb5
mov ch, 0xe0
pop ecx
xor byte ds:[ebp + 0x3eb5b5b5], bh
and byte [ecx + 0x3eb5b5b5], bh
mov ch, 0x3e
cmp byte [ebp + 0x74b5b5b5], ah
pop esp
mov bh, 0x84
mov bh, 0x36
ja 0x10480cf7
cld
mov edx, 0x4a4a4130
dec edx
call 0x4efdc6c9
cmp dword [ecx - 0x4a4a4a4f], edx
ffree st(1)
iretd
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push edi
push 0
push 0
push 0
push 0x5b
call esi
push 0
push 0
push 0
push 0x44
call esi
push 0
push 2
push 0
push 0x5b
call esi
push 0
push 2
push 0
push 0x44
call esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [ebp - 0x20], eax
call esi
push 0x414eac
push 0x65
push 0
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x414eb4
push 0x414eb8
mov ebx, eax
call fcn.0040142a
mov esi, eax
add esp, 8
test esi, esi
je 0x401189
push esi
push 1
push edi
push ebx
call fcn.00401598
push esi
call fcn.00401686
add esp, 0x14
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.WINMM.dll_mciSendStringW]
push 0
push 0
push 0
push str.open
call ebx
push 0
push 0
push 0
push str.play_music_repeat
call ebx
push 0
push 0
push 0
push 0
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectW]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x24]
push 0xcc0020
push 0
push 0
add eax, 0xffffff01
push esi
push dword [ebp - 0x14]
cdq
push dword [ebp - 0x18]
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x20]
add eax, 0xffffff01
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push str.pause
call fcn.004011ad
add esp, 4
push 0
push 0
push 0
push str.close_music
call dword [sym.imp.WINMM.dll_mciSendStringW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040119e
mov esp, ebp
pop ebp
ret
push 0x414ec8
call fcn.004012b7
add esp, 4
push 0
call fcn.00401a9c
int3
Function at 0x409483
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00405320
mov dword [ebp - 0x14], eax
cmp dword [0x417f50], esi
jne 0x409576
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x409503
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x409656
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x409656
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409656
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x417f50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x417f54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x417f58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417f60], eax
test eax, eax
je 0x409573
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417f5c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40959b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40958e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4095b0
push 4
pop eax
jmp 0x409658
cmp dword [ebp - 0x14], esi
je 0x4095b0
push dword [0x417f50]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x409595
mov eax, dword [0x417f5c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40960e
cmp dword [0x417f60], edi
je 0x40960e
push eax
call ebx
push dword [0x417f60]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40960e
test eax, eax
je 0x40960e
call ecx
test eax, eax
je 0x409603
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x409603
test byte [ebp - 8], 1
jne 0x40960e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40963e
mov eax, dword [0x417f54]
cmp eax, edi
je 0x40963b
push eax
call ebx
test eax, eax
je 0x40963b
call eax
mov esi, eax
test esi, esi
je 0x40963b
mov eax, dword [0x417f58]
cmp eax, edi
je 0x40963b
push eax
call ebx
test eax, eax
je 0x40963b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x417f50]
call ebx
test eax, eax
je 0x409656
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x409658
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040119e
mov esp, ebp
pop ebp
ret
Function at 0x4011c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push ebx
push esi
push str.Kernel32.dll
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40121b
push str.GetNativeSystemInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401210
lea ecx, [ebp - 0x24]
push ecx
call eax
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
jne 0x401225
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
pop esi
pop ebx
test eax, eax
je 0x40124f
cmp eax, 6
je 0x401246
xor ecx, ecx
cmp eax, 9
setne cl
lea eax, [ecx - 1]
and eax, 4
mov esp, ebp
pop ebp
ret
mov eax, 2
mov esp, ebp
pop ebp
ret
mov eax, 8
mov esp, ebp
pop ebp
ret

Function at 0x401260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftNET_Framework_SetupNDP_v2.0.50727
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4012d9
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push ebx
push str.Install
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4012c5
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
cmp dword [ebp - 8], eax
je 0x4012db
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401360
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x567510]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push edi
push str.kernel32.dll
mov dword [ebp - 0x28], 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x549934
push esi
call edi
test eax, eax
je 0x4013c0
call eax
movzx eax, ax
mov dword [ebp - 0x28], eax
movzx eax, ax
call fcn.004012e0
push 0x549950
push esi
call edi
call eax
movzx eax, ax
mov dword [ebp - 0x28], eax
jmp 0x401488
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x40145a
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push 0
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401490
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push ecx
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40144e
cmp dword [ebp - 0x38], 1
jne 0x40144e
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x24]
push 0x5499bc
push eax
call fcn.004fa624
add esp, 0xc
cmp eax, 1
jne 0x40144e
mov eax, dword [ebp - 0x34]
movzx ecx, ax
movzx eax, ax
mov dword [ebp - 0x28], ecx
call fcn.004012e0
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401490
push str.ntdll.dll
call ebx
test eax, eax
je 0x401490
lea ecx, [ebp - 0x28]
push ecx
push 0x4014f0
push 1
push 0x10
push eax
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
mov eax, dword [ebp - 0x28]
test ax, ax
je 0x401490
movzx eax, ax
call fcn.004012e0
mov eax, dword [0x56f358]
pop edi
pop esi
pop ebx
cmp eax, 0xa
jge 0x4014c2
mov dword [eax*4 + 0x56f330], 0x800
inc eax
mov dword [0x56f358], eax
mov ax, word [0x56f330]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fa43b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov ax, word [0x56f330]
xor ecx, ebp
mov dword [0x56f354], 0x800
mov dword [0x56f358], 0xa
call fcn.004fa43b
mov esp, ebp
pop ebp
ret

Function at 0x4015c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4015db
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401612
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40160e
jmp 0x401600
cmp esi, eax
jae 0x401612
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401600
cmp esi, eax
jb 0x401619
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push esi
push 0x56f128
push 0x104
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4020b4
call fcn.00402a40
call fcn.00402b10
test eax, eax
jne 0x4020cf
push 0x66
call fcn.004029b0
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00401260
test al, al
je 0x4020e1
call fcn.00401000
test al, al
jne 0x4020f3
push 0x65
call fcn.004029b0
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
call fcn.00402240
dec eax
cmp eax, 6
ja case.default.0x402104
jmp dword [eax*4 + 0x4021cc]
call fcn.00402330
movzx eax, bl
neg eax
sbb eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x68
jmp 0x4021b3
call fcn.004025b0
test eax, eax
je 0x402158
call fcn.00402610
call fcn.00402450
mov ecx, str.urOld_
call fcn.00402690
call fcn.004024d0
call fcn.00402330
movzx eax, bl
neg eax
sbb eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, str.urNew_
call fcn.00402690
call fcn.00402330
movzx eax, bl
neg eax
sbb eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004023d0
call fcn.00402330
movzx eax, bl
neg eax
sbb eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, str.urNew_
call fcn.00402690
mov ecx, str.urOld_
call fcn.00402690
call fcn.00402330
movzx eax, bl
neg eax
sbb eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x67
call fcn.004029b0
mov bl, 1
add esp, 4
movzx eax, bl
neg eax
pop esi
sbb eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x567510]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.urDrive_
push 0x56f128
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
xor edi, edi
call fcn.004fa93d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x14
lea ecx, [ebp - 0x20c]
push ecx
call esi
cmp eax, 0xffffffff
je 0x40229b
shr eax, 4
and eax, 1
je 0x40229b
mov edi, 1
push str.urNew_
push 0x56f128
push str._s_s
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.004fa93d
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
je 0x4022d7
shr eax, 4
and eax, 1
je 0x4022d7
xor edi, 2
push str.urOld_
push 0x56f128
push str._s_s
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.004fa93d
add esp, 0x14
lea edx, [ebp - 0x20c]
push edx
call esi
cmp eax, 0xffffffff
je 0x402313
shr eax, 4
and eax, 1
je 0x402313
xor edi, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004fa43b
mov esp, ebp
pop ebp
ret