joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x416b5b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x416b7f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x416b9a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x419e70
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x419ea8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041e20c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041e1e4
jmp 0x419eb4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x41b984
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41b9c6
call fcn.0042d627
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41b9c6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41b9bd
xor eax, eax
jmp 0x41b9ce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041b9d4
pop edi
pop esi
pop ebx
ret 4

Function at 0x41cbfe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x41cc20
cmp dword [edi + 0x3c], 0
jne 0x41cc20
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0042d627
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0041cc4d
pop edi
pop esi
pop ebx
ret 8

Function at 0x41cc9b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0042d627
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41cccc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0041ccdf
pop edi
pop esi
pop ebx
ret 8
Function at 0x41cfd1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x434718
call fcn.00409ce4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0042d627
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41d010
call fcn.0042d627
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41d01e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41d02c
or eax, 0xffffffff
jmp 0x41d114
mov ecx, esi
call fcn.0041cf47
mov dword [ebp - 0x14], eax
call fcn.004199bf
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41d063
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41d063
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00419973
push dword [ebp - 0x14]
call fcn.004194a5
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041ccdf
cmp eax, edi
je 0x41d0d6
test byte [esi + 0x24], 0x10
je 0x41d0a4
push 4
mov ecx, esi
pop ebx
call fcn.0041c210
test ah, 1
je 0x41d09c
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041bbdb
cmp dword [esi + 0x1c], edi
je 0x41d0d6
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041c381
jmp 0x41d0d6
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41d0ea
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41d103
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41d103
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041cf81
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x42dc06
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42dc34
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42dc52
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042db6c
jmp 0x42dc52
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42dc52
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042db6c
test edi, edi
mov eax, edi
jne 0x42dc3c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40192e
Capabilities:
Check for peb beingdebugged flag
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433268
push 0x42ea10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor eax, eax
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
push 0x39f1ffff
movsx eax, word [0x438c2e]
push eax
call fcn.0040aac5
add byte [0x438c1c], al
push 0x49
call fcn.0040ebd2
add esp, 0xc
call eax
test eax, 0x80000000
je 0x4019de
call dword [sym.imp.USER32.dll_GetActiveWindow]
add dword [0x438c38], eax
push ebx
push eax
xor eax, 0x97c9ffff
nop
nop
dec ebx
pop eax
pop ebx
mov eax, dword fs:[0x20]
push ecx
push ebx
push eax
and eax, ebx
and eax, ecx
nop
nop
nop
dec ebx
pop eax
pop ebx
pop ecx
mov dword [ebp - 0x1c], eax
push edx
push ecx
push ebx
push eax
nop
xor eax, ecx
xor eax, edx
and ecx, ebx
pop eax
pop ebx
pop ecx
pop edx
movsx eax, byte [0x438c1d]
or eax, 0xf6a1ffff
mov dword [0x438c44], eax
jmp 0x401a97
dec word [0x438c2a]
push edx
push ecx
push ebx
push eax
add ebx, 0x8cdfffff
or edx, ecx
imul ebx, eax
nop
xor edx, edx
pop eax
pop ebx
pop ecx
pop edx
mov ebx, dword fs:[0x30]
push edx
push ecx
push eax
nop
dec edx
or ecx, eax
pop eax
pop ecx
pop edx
mov al, byte [ebx + 2]
push edx
push ecx
push ebx
and edx, edx
xor ecx, edx
and ebx, 0x995bffff
dec ecx
pop ebx
pop ecx
pop edx
movzx ebx, al
push ebx
push eax
or eax, ebx
add eax, 0x320fffff
pop eax
pop ebx
mov dword [ebp - 0x1c], ebx
push ecx
push ebx
push eax
dec ebx
inc ebx
sub eax, 0x6893ffff
add ecx, 0xabc7ffff
pop eax
pop ebx
pop ecx
push 0x65ffff
push 0x53ddffff
call fcn.0040a8f9
add byte [0x438c1b], al
movsx eax, word [0x438c22]
imul eax, eax, 0x6b21ffff
add dword [0x438c40], eax
movsx eax, word [0x438c32]
push eax
push eax
call fcn.0040a9a5
add esp, 0x10
mov byte [0x438c1b], al
jmp 0x401a97
or dword [ebp - 4], 0xffffffff
push 0x124dffff
push dword [0x438c54]
call fcn.0040aa18
pop ecx
pop ecx
add byte [0x438c1c], al
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
add byte [0x438c1f], al
push 0x282bffff
push 0xfdb3ffff
call fcn.0040ab0e
pop ecx
pop ecx
add dword [0x438c38], eax
cmp dword [ebp - 0x1c], 0
je 0x401ae0
mov byte [ebp - 0x20], 1
mov al, byte [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402c47
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ax, word [0x438c48]
push esi
sub word [0x438c2c], ax
push edi
push 3
push dword [ebp + 8]
call fcn.00402bfc
mov esi, eax
mov edi, edx
movsx eax, byte [0x438c21]
push eax
mov dword [0x438c44], 1
movsx eax, word [0x438c30]
push eax
call fcn.0040aa18
add word [0x438c30], ax
add esp, 0x10
test edi, edi
jne 0x402d58
push 0x1e75ffff
push 0x8f27ffff
call fcn.0040aa4f
add word [0x438c2a], ax
movsx ax, byte [0x438c1e]
sub eax, dword [0x438c4c]
shl esi, 2
add word [0x438c2a], ax
movsx eax, word [0x438c22]
push eax
push 0x41ffffff
call fcn.0040a9de
push 0x4c
push esi
mov word [0x438c26], ax
call fcn.00402bfc
mov edi, eax
push 0x9925ffff
movsx eax, word [0x438c26]
push eax
mov dword [ebp - 4], edx
call fcn.0040aa18
push 0xb82bffff
mov dword [0x438c50], eax
push dword [0x438c38]
call fcn.0040a96f
push dword [0x438c4c]
mov dword [0x438c40], eax
push 0x2f89ffff
call fcn.0040a9a5
add dword [0x438c58], eax
push 0x2073ffff
movsx eax, word [0x438c2a]
push eax
call fcn.0040a96f
add esp, 0x38
mov dword [0x438c48], eax
mov dword [0x438c3c], 0xdd3dffff
jmp 0x402e05
push 0xd759ffff
push 0xf73dffff
call fcn.0040a9de
push dword [0x438c38]
mov word [0x438c24], ax
movsx eax, word [0x438c28]
push eax
call fcn.0040a96f
add esp, 0x10
mov word [0x438c26], ax
lea esi, [esi*4 + 4]
call dword [sym.imp.USER32.dll_GetInputState]
add dword [0x438c4c], eax
push 0x4c
push esi
call fcn.00402bfc
mov edi, eax
mov dword [ebp - 4], edx
movsx eax, word [0x438c32]
push eax
push 0xa183ffff
call fcn.0040aa83
add esp, 0x10
mov byte [0x438c1b], al
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
add word [0x438c30], ax
push 0xf75ffff
push dword [0x438c5c]
call fcn.0040a9a5
mov dword [0x438c40], eax
pop ecx
movsx eax, byte [0x438c18]
pop ecx
push eax
push 0x2957ffff
push dword [0x438c4c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [0x438c3c], eax
lea eax, [esi + edi*2 + 1]
pop edi
pop esi
leave
ret 4
Function at 0x402edf
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [0x438c1e]
dec word [0x438c26]
push ebx
push esi
push 0x70a5ffff
push eax
call fcn.0040a8f9
mov word [0x438c32], ax
movsx eax, byte [0x438c1c]
push eax
push 0x555bffff
call fcn.0040aa83
add byte [0x438c19], al
mov ecx, 0x268fffff
movsx eax, byte [0x438c21]
push 0x1df1ffff
sub ecx, eax
push dword [0x438c38]
mov dword [0x438c40], ecx
call fcn.0040aa18
add esp, 0x18
cmp byte [0x438a28], 0
mov byte [0x438c1a], al
jne 0x402fc5
mov al, byte [0x438c4c]
mov esi, dword [0x4389e4]
and al, byte [0x438c1c]
inc al
mov byte [0x438c21], al
mov al, byte [esi]
sub al, 3
movzx eax, al
add eax, 3
and al, 0xfc
call fcn.0042e9e0
mov eax, esp
push 0x40
push esi
push eax
call fcn.0042bd2b
pop ecx
pop ecx
push eax
push 0x4389e8
call sub.MSVCRT.dll_memcpy
movsx eax, byte [0x438c1a]
and eax, dword [0x438c54]
push 0xf4e3ffff
mov byte [0x438a28], 1
add dword [0x438c3c], eax
movsx eax, word [0x438c24]
push eax
call fcn.0040a9a5
add esp, 0x14
mov dword [0x438c5c], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [0x438c5c], eax
push 0xce7ffff
movsx eax, byte [0x438c18]
push eax
call fcn.0040aa18
pop ecx
mov word [0x438c28], ax
pop ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [ebp + 8]
add byte [0x438c18], al
push 0x25afffff
push 0x1455ffff
mov eax, dword [esi]
shr eax, 0x1a
mov bl, byte [eax + 0x4389e8]
call fcn.0040a8f9
add dword [0x438c58], eax
push 0xe665ffff
push 0xe2afffff
mov dword [0x438c50], 0x81ffff
call fcn.0040a9a5
mov byte [0x438c18], al
shl dword [esi], 6
movsx eax, byte [0x438c1f]
push eax
push 0x447dffff
call fcn.0040a933
mov word [0x438c2a], ax
mov al, byte [0x438c44]
add esp, 0x18
dec al
lea esp, [ebp - 8]
mov byte [0x438c1a], al
mov al, bl
pop esi
pop ebx
pop ebp
ret
Function at 0x404057
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x42f206
call fcn.0042e9c0
sub esp, 0x20
push ebx
xor ebx, ebx
xor eax, eax
cmp byte [0x438c19], bl
push esi
push 0xd051ffff
push dword [0x438c48]
mov esi, ecx
setne al
add word [0x438c2a], ax
call fcn.0040a8f9
push 0xc5cbffff
push 0xbffdffff
mov dword [0x438c4c], eax
call fcn.0040ab0e
add esp, 0x10
mov byte [0x438c19], al
cmp dword [esi + 0xa0], ebx
je 0x4041e6
movsx eax, byte [0x438c1e]
push dword [0x438c44]
sub dword [0x438c5c], 0x5da0000
push eax
call fcn.0040ab0e
add word [0x438c22], ax
lea eax, [ebp - 0x1c]
push 4
push eax
call fcn.004219ef
add esp, 0x10
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push 0x8eafffff
mov dword [0x438c58], eax
push dword [0x438c50]
call fcn.0040ab0e
mov dword [0x438c54], eax
push 0xfdb7ffff
movsx eax, word [0x438c30]
push eax
call fcn.0040a9a5
push dword [ebp + 8]
mov byte [0x438c1e], al
lea eax, [ebp - 0x2c]
push eax
call fcn.004050cd
add esp, 0x18
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 1
push dword [ecx]
lea ecx, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp + 0xc]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x40416c
mov eax, edx
cmp dword [ebp - 0x18], ebx
je 0x404174
mov edx, dword [ebp - 0x18]
inc ecx
push ecx
push eax
push 1
push ebx
push edx
push dword [esi + 0xa0]
push 0x13
call fcn.0040ebd2
pop ecx
call eax
movsx eax, word [0x438c32]
push eax
push 0xb181ffff
call fcn.0040ab0e
mov word [0x438c2a], ax
push 0x6c21ffff
movsx eax, byte [0x438c1e]
push eax
call fcn.0040aa4f
mov word [0x438c2e], ax
movsx eax, word [0x438c30]
push eax
push dword [0x438c54]
call fcn.0040a9de
or dword [ebp - 4], 0xffffffff
add esp, 0x18
lea ecx, [ebp - 0x1c]
mov word [0x438c28], ax
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40afa1
Capabilities:
Get storage device properties
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov eax, dword [eax + 4]
push edi
cmp eax, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
jne 0x40afc4
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
push 0x36
call fcn.0040ebd2
pop ecx
call eax
mov edi, eax
mov ax, word [0x438c30]
sub ax, word [0x438c2e]
push 0x7017ffff
push dword [0x438c44]
mov word [0x438c22], ax
call fcn.0040a9a5
add byte [0x438c19], al
pop ecx
cmp edi, 0xffffffff
pop ecx
je 0x40b160
movsx eax, word [0x438c2a]
push eax
mov dword [ebp + 8], ebx
push dword [0x438c4c]
call fcn.0040ab0e
mov word [0x438c22], ax
movsx eax, byte [0x438c1d]
push eax
push dword [0x438c50]
call fcn.0040aa4f
mov byte [0x438c1e], al
push 0xf
lea eax, [ebp - 0x18]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x1c
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
add byte [0x438c1f], al
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov esi, 0x403
mov dword [0x438c5c], eax
push esi
lea eax, [ebp - 0x41c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [0x439060], ebx
jne 0x40b09b
push 0x5f
call fcn.0040ebd2
pop ecx
mov dword [0x439060], eax
movsx eax, byte [0x438c19]
or word [0x438c24], 0xffff
push eax
push 0xf7ddffff
call fcn.0040a9de
add dword [0x438c58], eax
pop ecx
pop ecx
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
lea eax, [ebp - 0x18]
push 0xf
push eax
push 0x2d1400
push edi
call dword [0x439060]
push 1
test eax, eax
pop esi
je 0x40b126
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x41c]
push eax
call fcn.0040b16a
movsx eax, word [0x438c24]
push 0x29adffff
push eax
call fcn.0040aa83
mov dword [0x438c4c], eax
push 0x687fffff
movsx eax, word [0x438c34]
push eax
mov dword [ebp - 4], esi
call fcn.0040aa4f
add esp, 0x10
mov dword [0x438c50], eax
inc word [0x438c34]
call dword [sym.imp.USER32.dll_GetInputState]
add byte [0x438c20], al
push edi
push 0x33
call fcn.0040ebd2
pop ecx
call eax
cmp dword [0x438c44], ebx
jne 0x40b15a
cmp byte [0x438c1a], bl
mov dword [0x438c40], ebx
je 0x40b160
mov dword [0x438c40], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40dfbc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
movsx ecx, byte [0x438c21]
movsx eax, word [0x438c30]
imul ecx, ecx, 0x74b3ffff
add dword [0x438c40], ecx
mov ecx, dword [0x438c50]
sub eax, 0x26980001
push ebx
push edi
mov dword [0x438c4c], eax
lea eax, [ecx + eax - 0x30720001]
push 0xb871ffff
push 0x4a45ffff
xor edi, edi
mov dword [0x438c50], eax
call fcn.0040a933
add word [0x438c34], ax
mov eax, dword [ebp + 8]
pop ecx
mov eax, dword [eax + 4]
pop ecx
cmp eax, edi
jne 0x40e020
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push eax
push 0x36
call fcn.0040ebd2
pop ecx
call eax
mov ebx, eax
mov eax, dword [0x438c54]
and eax, 0xe399ffff
push 0x83a1ffff
add dword [0x438c50], eax
push dword [0x438c50]
call fcn.0040a9a5
pop ecx
cmp ebx, 0xffffffff
pop ecx
mov dword [0x438c58], eax
je 0x40e14f
movsx cx, byte [0x438c20]
mov ax, word [0x438c28]
push esi
and cx, ax
mov word [0x438c2e], cx
xor ecx, ecx
cmp ax, di
setne cl
mov dword [0x438c44], ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esi, dword [ebp + 0xc]
mov byte [0x438c1b], al
movsx eax, word [0x438c22]
add eax, 0x29ebffff
mov dword [0x438c4c], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp eax, edi
jne 0x40e0be
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [ebp + 8]
push edi
push edx
push ecx
push eax
push ebx
push 0x5e
call fcn.0040ebd2
pop ecx
call eax
push 0xf6f9ffff
push 0xf039ffff
call fcn.0040a9de
mov byte [0x438c1f], al
mov ax, word [0x438c44]
imul ax, word [0x438c28]
mov word [0x438c2c], ax
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 8]
pop ecx
pop ecx
pop esi
jne 0x40e112
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 1
mov word [0x438c2a], ax
pop edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
add word [0x438c22], ax
push ebx
push 0x33
call fcn.0040ebd2
pop ecx
call eax
push dword [0x438c5c]
push 0x847fffff
call fcn.0040aa18
add word [0x438c26], ax
mov al, byte [0x438c44]
pop ecx
inc al
pop ecx
mov byte [0x438c19], al
inc word [0x438c24]
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x40f2ae
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x42fc69
call fcn.0042e9c0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4332ec
movsx eax, byte [0x438c1f]
or eax, 0xdb81ffff
cmp word [0x438c2a], 0
mov dword [ebp - 4], 2
jne 0x40f2f0
cmp word [0x438c26], 0
jne 0x40f2f0
xor ecx, ecx
jmp 0x40f2f3
push 1
pop ecx
add eax, ecx
mov dword [0x438c48], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov byte [0x438c18], al
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x40f313
push 1
call fcn.0040f34e
mov eax, dword [esi + 0x2c]
mov byte [ebp - 4], 1
test eax, eax
je 0x40f324
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x28]
and byte [ebp - 4], 0
test eax, eax
je 0x40f335
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
call fcn.00427ed6
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret