joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x40e9ab
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x40e9b5
mov eax, 0x1000000
jmp 0x40eacb
mov edx, dword [ebp - 0x18]
add edx, 0x244
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0x244
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
mov ax, word [edx]
mov word [ebp - 0x22], ax
add dword [ebp - 0x1c], 2
cmp word [ebp - 0x22], 0
jne 0x40e9de
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
sar ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov cx, word [eax + edx*2 + 0x242]
mov word [ebp - 8], cx
movzx edx, word [ebp - 8]
cmp edx, 0x5c
je 0x40ea4f
movzx eax, word [ebp - 8]
cmp eax, 0x2f
je 0x40ea4f
mov ecx, dword [ebp - 0x18]
add ecx, 0x242
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov ax, word [edx + 2]
mov word [ebp - 0x2e], ax
add dword [ebp - 0x2c], 2
cmp word [ebp - 0x2e], 0
jne 0x40ea2e
mov edi, dword [ebp - 0x2c]
mov ecx, dword [0x4256f0]
mov dword [edi], ecx
cmp dword [ebp + 0x10], 1
jne 0x40ea83
push 1
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp - 0x10], 0xffffffff
setne al
mov byte [ebp - 0x11], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x40ea83
mov eax, 0x2000000
jmp 0x40eacb
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040ce00
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40eaa9
mov eax, dword [ebp - 0xc]
jmp 0x40eacb
mov eax, dword [ebp - 4]
push eax
call fcn.0040d4d0
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
jne 0x40eac9
mov eax, 0x200
jmp 0x40eacb
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4100e5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428044]
jne 0x4100ef
repz ret
jmp fcn.00411dd9

Function at 0x41ada1
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.0041213b
and dword [ebp - 4], 0
cmp dword [0x429f30], 0
mov ebx, eax
jne 0x41ae52
push 0x422b78
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41af03
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x422b6c
push edi
call esi
test eax, eax
je 0x41af03
push eax
call fcn.004120c9
mov dword [esp], 0x422b5c
push edi
mov dword [0x429f30], eax
call esi
push eax
call fcn.004120c9
mov dword [esp], 0x422b48
push edi
mov dword [0x429f34], eax
call esi
push eax
call fcn.004120c9
mov dword [esp], 0x422b2c
push edi
mov dword [0x429f38], eax
call esi
push eax
call fcn.004120c9
pop ecx
mov dword [0x429f40], eax
test eax, eax
je 0x41ae52
push 0x422b14
push edi
call esi
push eax
call fcn.004120c9
pop ecx
mov dword [0x429f3c], eax
mov eax, dword [0x429f3c]
cmp eax, ebx
je 0x41aeaa
cmp dword [0x429f40], ebx
je 0x41aeaa
push eax
call fcn.00412144
push dword [0x429f40]
mov esi, eax
call fcn.00412144
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41aeaa
test edi, edi
je 0x41aeaa
call esi
test eax, eax
je 0x41aea1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41aea1
test byte [ebp - 0xc], 1
jne 0x41aeaa
or dword [ebp + 0x10], 0x200000
jmp 0x41aee3
mov eax, dword [0x429f34]
cmp eax, ebx
je 0x41aee3
push eax
call fcn.00412144
pop ecx
test eax, eax
je 0x41aee3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41aee3
mov eax, dword [0x429f38]
cmp eax, ebx
je 0x41aee3
push eax
call fcn.00412144
pop ecx
test eax, eax
je 0x41aee3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x429f30]
call fcn.00412144
pop ecx
test eax, eax
je 0x41af03
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41af05
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40288e
pop dword [ebp - 0x3c]
mov eax, 0x40288e
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xd647402a
sub dword [ebp - 0x4c], 0x87f4fadf
mov dword [ebp - 0x48], 0xa92e212c
add dword [ebp - 0x48], 0x89052b19
mov dword [ebp - 0x44], 0xa7f2c213
add dword [ebp - 0x44], 0xa459821b
mov dword [ebp - 0x40], 0xa2e6c8f1
add dword [ebp - 0x40], 0x5d19370f
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xf7c20d96
add eax, 0x87e62ce
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x57ad27c1
add dword [ebp - 0x4c], 0x1cc54195
mov dword [ebp - 0x48], 0x426b27e0
add dword [ebp - 0x48], 0xff013995
mov dword [ebp - 0x44], 0x31b86af1
sub dword [ebp - 0x44], 0xce48fe85
mov dword [ebp - 0x40], 0x5681c083
sub dword [ebp - 0x40], 0x5681c083
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x2f55b433
sub eax, 0x2f15438b
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x380c6
push 0
call eax
mov ecx, 0x448dbde0
sub ecx, 0x448d7011
mov esi, eax
mov edx, 0xd5976e52
add edx, 0x2aa991ae
add edx, dword [ebp - 0x3c]
mov edi, 0x2d3dc899
add edi, 0x2e9cef52
xor dword [ebp - 0x34], 0xbab9d527
mov ebx, dword [edx]
add dword [ebp - 0xc], 0x6402a661
sub ebx, edi
sub dword [ebp - 0xc], esi
mov dword [esi], ebx
add esi, 0x2e62af
add esi, 0xffd19d55
add edx, 0xc09a4f27
sub edx, 0xc09a4f23
loop 0x4029ab
add eax, 0x319cc072
add eax, 0xce64699d
mov ebx, eax
add eax, 0x866a3689
add eax, 0x7995c97c
mov ecx, 0x11f23ac9
add ecx, 0xee4dc537
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x40411c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x4a9a2c
mov esi, 0x4abad0
mov edi, dword [ebx + 4]
jmp 0x404141
mov ebp, dword [edi + 4]
push 0x8000
push 0
push edi
call sub.user32.dll_ShowWindow
mov edi, ebp
cmp edi, ebx
jne 0x40412f
mov edx, 0x37
mov eax, 0x4a6084
mov ecx, eax
mov dword [eax + 0x14], ecx
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [eax + 8], 1
xor ecx, ecx
mov dword [eax + 0xc], ecx
add eax, 0x20
dec edx
jne 0x40414f
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
mov edx, 0x400
mov ecx, 0x4a9acc
mov eax, ecx
mov dword [eax], eax
mov dword [eax + 4], eax
add ecx, 8
dec edx
jne 0x40417a
mov ebx, dword [esi + 4]
jmp 0x40419e
mov edi, dword [ebx + 4]
push 0x8000
push 0
push ebx
call sub.user32.dll_ShowWindow
mov ebx, edi
cmp ebx, esi
jne 0x40418c
mov dword [esi], esi
mov dword [esi + 4], esi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4041ac
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
cmp dword [0x4abae8], 0
je 0x4041c7
mov eax, dword [0x4abae8]
push eax
call sub.user32.dll_MapVirtualKeyW
xor eax, eax
mov dword [0x4abae8], eax
cmp byte [0x4a98dc], 0
je 0x4041d5
call fcn.00403bcc
cmp dword [0x4abae0], 0
je 0x4041f7
push 0x8000
push 0
mov eax, dword [0x4abae0]
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
mov dword [0x4abae0], eax
call fcn.0040411c
ret

Function at 0x40c0d8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 8], eax
push 0x40c178
push 0x40c19c
call fcn.0040bc34
mov ebx, eax
push 0x40c1ac
call sub.user32.dll_GetKeyboardLayoutNameW
mov edx, dword [ebp - 8]
mov dword [edx], eax
push 0x40c1cc
call sub.user32.dll_GetKeyboardLayoutNameW
mov dword [esi], eax
push 0x40c1f8
call sub.user32.dll_GetKeyboardLayoutNameW
mov dword [edi], eax
cmp dword [esi], 0
je 0x40c13d
test ebx, ebx
je 0x40c13d
push 0
push 0
mov eax, dword [esi]
push eax
push ebx
call sub.user32.dll_GetMenuState
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
jmp 0x40c144
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
cmp dword [edi], 0
je 0x40c161
test ebx, ebx
je 0x40c161
push 0
push 0
mov eax, dword [edi]
push eax
push ebx
call sub.user32.dll_GetMenuState
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp 0x40c16a
mov eax, dword [ebp + 8]
mov dword [eax], 3
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4106d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41077d
test eax, edx
je 0x410780
push 0
push 0
cmp word [eax - 0xa], 2
je 0x4106fd
push edx
mov edx, eax
mov eax, esp
call fcn.004074b0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410713
push eax
lea eax, [esp + 8]
call fcn.004074b0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410722
movzx eax, word [eax]
sub eax, ecx
jmp 0x410749
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x410763
add ecx, 4
js 0x41073a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x410760
push eax
mov eax, ecx
mov edx, 2
call fcn.004065f8
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410747
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410749
xor eax, eax
ret
test eax, eax
je 0x410790
test edx, edx
jne 0x4106e4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x411730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
or eax, 0xffffffff
mov esi, ebx
and esi, 3
cmp esi, 2
ja 0x411783
mov edx, ebx
and edx, 0xf0
cmp edx, 0x40
ja 0x411783
push 0
push 0x80
push 3
push 0
mov eax, ebx
and eax, 0xf0
shr eax, 4
mov eax, dword [eax*4 + 0x4a6bdc]
push eax
mov eax, dword [esi*4 + 0x4a6bd0]
push eax
mov eax, edi
call fcn.00407320
push eax
call sub.KERNEL32.DLL_LoadResource
pop edi
pop esi
pop ebx
ret

Function at 0x411788
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
or eax, 0xffffffff
mov esi, ebx
and esi, 0xf0
cmp esi, 0x40
ja 0x4117c7
push 0
push 0x80
push 2
push 0
shr esi, 4
mov eax, dword [esi*4 + 0x4a6bf0]
push eax
push 0xc0000000
mov eax, edi
call fcn.00407320
push eax
call sub.KERNEL32.DLL_LoadResource
pop edi
pop esi
pop ebx
ret

Function at 0x411b88
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf0
mov esi, edx
mov edi, eax
push esp
lea eax, [esp + 8]
push eax
push 0x104
mov eax, edi
call fcn.00407320
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileSize
mov ebx, eax
cmp ebx, 0x104
jg 0x411bc9
lea edx, [esp + 4]
mov eax, esi
mov ecx, ebx
call fcn.004073d0
jmp 0x411c0e
test ebx, ebx
jle 0x411c0e
mov eax, esi
mov edx, ebx
call fcn.00407610
push esp
mov eax, dword [esi]
call fcn.00407320
push eax
push ebx
push ebp
call sub.KERNEL32.DLL_GetFileSize
mov ebx, eax
mov eax, dword [esi]
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x20c]
test eax, eax
je 0x411c01
sub eax, 4
mov eax, dword [eax]
cmp eax, ebx
jle 0x411c0e
mov eax, esi
mov edx, ebx
call fcn.00407610
add esp, 0x210
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x414ef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jle 0x414f29
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004073d0
jmp 0x414f32
mov eax, ebx
mov edx, esi
call fcn.00407294
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x414f3c
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jle 0x414f5e
movzx eax, word [esp]
jmp 0x414f60
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4156f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x415815
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00415500
mov esi, eax
mov eax, dword [0x4a83e4]
cmp byte [eax], 0
je 0x4157bd
mov eax, dword [0x4a81ac]
call fcn.004049ec
call fcn.00404380
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_TlsGetValue
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4156c8]
call fcn.004089f0
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_TlsGetValue
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_UnhandledExceptionFilter
push eax
call sub.KERNEL32.DLL_TlsSetValue
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x415830
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_UnhandledExceptionFilter
push eax
call sub.KERNEL32.DLL_TlsSetValue
jmp 0x4157f9
push pe_nt_image_headers32
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4a8150]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4abc40]
call fcn.00408ae4
push eax
call sub.user32.dll_GetClassLongW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_GetCursorPos
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41581c
lea eax, [ebp - 4]
mov edx, dword [0x4156c8]
call fcn.004089fc
ret

Function at 0x41651c
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
mov esi, edx
test esi, esi
jl 0x416544
inc esi
mov ebx, eax
push 0
push 1
push ebx
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
jne 0x416527
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GlobalDeleteAtom
add ebx, 8
dec esi
jne 0x416527
pop esi
pop ebx
ret
Function at 0x416610
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4166e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004072e8
lea eax, [ebp - 4]
call fcn.00407c98
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407320
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4166d0
mov eax, ebx
call fcn.00404218
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4166c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407320
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4166b3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4166f8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4166b3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4166d0
mov eax, dword [ebp - 0x10]
call fcn.00404234
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4166ed
lea eax, [ebp - 4]
call fcn.00407284
ret

Function at 0x417493
Capabilities:
Encode data using xor
Identify system language via api

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004069a8
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
mov edi, eax
cmp edi, 0x104
jbe 0x4174b6
mov eax, edi
add eax, eax
call fcn.00404218
mov esi, eax
jmp 0x4174b8
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
push edi
push esi
call fcn.0040bb2c
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4174f1
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4174db
mov eax, esp
cmp esi, eax
je 0x4174fe
mov eax, esi
call fcn.00404234
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x417538
cmp bl, 0
je 0x417534
cmp bl, 0x41
jl 0x41752f
cmp bl, 0x5a
jg 0x41752f
or bl, 0x20
xor al, bl
inc esi
jmp 0x417513
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x417478
Function at 0x417ce0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
push edx
call sub.KERNEL32.DLL_MultiByteToWideChar
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x417d52
push dword fs:[eax]
mov dword fs:[eax], esp
fnstcw word [ebp - 2]
xor eax, eax
push ebp
push 0x417d34
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00407320
push eax
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417d3b
fnclex
fldcw word [ebp - 2]
ret

Function at 0x417e18
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
cmp dword [0x4abd94], 0
jne 0x417e4a
mov dl, 1
mov eax, dword [0x410380]
call fcn.00418978
mov ebx, eax
mov esi, 0x4abd94
push 0
push ebx
push esi
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
je 0x417e4a
mov eax, ebx
call fcn.0040532c
mov eax, dword [0x4abd94]
pop esi
pop ebx
ret

Function at 0x418554
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
cmp dword [0x4abd98], 0
jne 0x41858c
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x40fbbc]
call fcn.00418760
mov ebx, eax
mov esi, 0x4abd98
push 0
push ebx
push esi
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
je 0x41858c
mov eax, ebx
call fcn.0040532c
mov eax, dword [0x4abd98]
pop esi
pop ebx
ret

Function at 0x418628
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
cmp dword [0x4abd9c], 0
jne 0x41865a
mov dl, 1
mov eax, dword [0x4101c0]
call fcn.00418978
mov ebx, eax
mov esi, 0x4abd9c
push 0
push ebx
push esi
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
je 0x41865a
mov eax, ebx
call fcn.0040532c
mov eax, dword [0x4abd9c]
pop esi
pop ebx
ret

Function at 0x418664
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
cmp dword [0x4abda4], 0
jne 0x418696
mov dl, 1
mov eax, dword [0x410000]
call fcn.004188fc
mov ebx, eax
mov esi, 0x4abda4
push 0
push ebx
push esi
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
je 0x418696
mov eax, ebx
call fcn.0040532c
mov eax, dword [0x4abda4]
pop esi
pop ebx
ret

Function at 0x4187f4
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0
push 0
mov ebx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push ecx
push edx
mov edx, dword [eax + 0x14]
push edx
mov eax, dword [eax + 0xc]
push eax
call sub.KERNEL32.DLL_TlsGetValue
pop ebx
pop ebp
ret 8

Function at 0x41882c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push ecx
push edx
mov edx, dword [eax + 0x10]
push edx
mov eax, dword [eax + 0xc]
push eax
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
pop ebx
pop ebp
ret 8
Function at 0x4217fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp dword [0x4adf2c], 0
je 0x42181e
cmp bx, 0x100
jb 0x42181e
cmp bx, 0x7ff
jbe 0x421822
xor eax, eax
jmp 0x421824
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x4218ab
push 0x4adf30
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
push ebp
push 0x4218a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4adf2c]
call fcn.00408828
movzx edi, bx
mov edx, edi
sub edx, 0x100
cmp eax, edx
setg byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x42188c
mov eax, dword [0x4adf2c]
mov eax, dword [eax + edi*4 - 0x400]
mov dword [esi], eax
cmp dword [esi], 0
je 0x421883
mov eax, dword [esi]
cmp eax, dword [0x4a6e64]
jne 0x421887
xor eax, eax
jmp 0x421889
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4218ab
push 0x4adf30
call sub.KERNEL32.DLL_GetLocaleInfoW
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4218b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42197a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 0x4adf30
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
push ebp
push 0x42195d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4adf2c]
call fcn.00408830
mov esi, eax
test esi, esi
jl 0x421945
inc esi
xor edi, edi
mov eax, dword [0x4adf2c]
mov ebx, dword [eax + edi*4]
test ebx, ebx
je 0x421941
cmp ebx, dword [0x4a6e64]
je 0x421941
lea edx, [ebp - 0x10]
mov eax, dword [ebx]
call fcn.00405204
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00410938
test al, al
je 0x421941
mov eax, dword [ebp - 8]
mov dword [eax], ebx
mov byte [ebp - 9], 1
jmp 0x421945
inc edi
dec esi
jne 0x421909
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421964
push 0x4adf30
call sub.KERNEL32.DLL_GetLocaleInfoW
ret

Function at 0x421de8
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
add esp, 0xfffff800
mov esi, edx
push 0x200
lea edx, [esp + 4]
push edx
movzx edx, byte [eax]
push edx
inc eax
push eax
push 0
push 0xfde9
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
mov ebx, eax
push 0x200
lea eax, [esp + 0x404]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
mov esi, eax
push esi
lea eax, [esp + 0x404]
push eax
push ebx
lea eax, [esp + 0xc]
push eax
push 1
mov eax, dword [0x4a80f4]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GlobalFindAtomW
cmp eax, 2
sete al
add esp, 0x800
pop esi
pop ebx
ret