joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409ea8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40a00d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040725c
cmp si, word [0x708a08]
jb 0x409f40
cmp si, word [0x708c08]
ja 0x409f40
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409f40
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x708a08]
jae 0x409f1a
mov edi, ebx
dec edi
jmp 0x409f3b
cmp si, word [ebx*8 + 0x708a08]
jbe 0x409f2a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409f3b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x708a0c]
call fcn.00409db8
jmp 0x409f40
cmp edi, dword [ebp - 8]
jae 0x409f04
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409fef
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409fef
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408170
push dword [ebp - 0x160]
push 0x40a028
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00408170
push dword [ebp - 0x164]
push 0x40a038
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408170
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004083a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a014
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004072bc
ret
Function at 0x40a1c0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40a2c3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x71bb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x71bba0]
jne 0x40a20c
mov eax, esi
mov edx, 0x71bba2
mov ecx, 0x55
call fcn.00408170
push 0x71bb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a2ad
push 0x71bb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040725c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a27b
cmp byte [0x71bb84], 0
je 0x40a240
mov edx, esi
mov eax, ebx
call fcn.0040a0a4
jmp 0x40a27b
mov edx, esi
mov eax, ebx
call fcn.00409ea8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a27b
cmp dword [esi], 0
je 0x40a264
mov eax, esi
mov edx, 0x40a2dc
call fcn.004082c8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409ea8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004082c8
push 0x71bb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x71bba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.004080c4
push eax
push 0x71bba2
call sub.kernel32.dll_lstrcpynW
push 0x71bb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a2ca
lea eax, [ebp - 4]
call fcn.0040725c
ret
Function at 0x40a4f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407340
xor eax, eax
push ebp
push 0x40a71d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a538
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a552
push 0x105
mov eax, dword [ebp - 4]
call fcn.004080c4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a707
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a72c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a621
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a72c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a621
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a768
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a621
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a768
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a621
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a79c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a621
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a7d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a707
xor eax, eax
push ebp
push 0x40a700
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a304
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a690
mov eax, dword [ebp - 0x10]
call fcn.00404930
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040811c
jmp 0x40a6db
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a810
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a6db
mov eax, dword [ebp - 0x10]
call fcn.00404930
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a810
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040811c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a707
cmp dword [ebp - 8], 0
je 0x40a6f6
mov eax, dword [ebp - 8]
call fcn.0040494c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a724
lea eax, [ebp - 4]
call fcn.0040725c
ret
Function at 0x40aa00
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407340
xor eax, eax
push ebp
push 0x40aac0
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408170
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408320
mov eax, dword [ebx]
call fcn.0040a8c8
test al, al
jne 0x40aa9d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408170
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408320
mov eax, dword [ebx]
call fcn.0040a8c8
test al, al
jne 0x40aa9d
mov eax, ebx
call fcn.0040725c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aac7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004072bc
lea eax, [ebp - 4]
call fcn.0040725c
ret

Function at 0x40b6c4
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x422af4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x422b4d
test eax, edx
je 0x422b50
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x422b0b
movzx eax, word [eax]
sub eax, ecx
jmp 0x422b32
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 0x422b33
add ecx, 4
js 0x422b23
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x422b30
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x422b32
xor eax, eax
ret
test eax, eax
je 0x422b5c
test edx, edx
jne 0x422afc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x423374
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x42338c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x423394
mov al, 1
jmp 0x4233b1
movzx esi, word [ebp]
mov eax, esi
call fcn.00413d04
test al, al
jne 0x4233ad
cmp si, 0x5f
je 0x4233ad
xor eax, eax
jmp 0x4233af
mov al, 1
xor al, 1
test al, al
jne 0x423441
test bl, bl
je 0x423401
mov eax, ebp
test eax, eax
je 0x4233c8
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x42343d
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.00413d90
test al, al
jne 0x4233f5
cmp di, 0x5f
je 0x4233f5
cmp di, 0x2e
je 0x4233f5
xor eax, eax
jmp 0x4233f7
mov al, 1
test al, al
je 0x423441
inc esi
dec ebx
jne 0x4233d5
jmp 0x42343d
mov eax, ebp
test eax, eax
je 0x42340c
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x42343d
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.00413d90
test al, al
jne 0x423433
cmp di, 0x5f
je 0x423433
xor eax, eax
jmp 0x423435
mov al, 1
test al, al
je 0x423441
inc esi
dec ebx
jne 0x423419
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.004080c4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42408a
test ah, 4
je 0x424083
test bl, bl
jne 0x424048
mov al, 1
jmp 0x4240b1
test al, 0x10
je 0x424050
xor eax, eax
jmp 0x4240b1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x424074
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x4240b1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4240b1
test al, 0x10
sete al
jmp 0x4240b1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x4240ab
cmp ebx, 3
je 0x4240ab
cmp ebx, 0x7b
je 0x4240ab
mov eax, esi
call fcn.00423fe0
test al, al
jne 0x4240af
xor eax, eax
jmp 0x4240b1
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4240b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.004080c4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42415f
test esi, 0x400
jne 0x4240f4
test esi, 0x10
setne bl
jmp 0x42417e
cmp byte [esp], 0
je 0x424128
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42417e
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x42417e
test esi, 0x10
je 0x424134
mov bl, 1
jmp 0x42417e
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42415b
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x42417e
mov bl, 1
jmp 0x42417e
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x424178
cmp eax, 3
je 0x424178
cmp eax, 0x7b
je 0x424178
cmp eax, 0x35
jne 0x42417c
xor ebx, ebx
jmp 0x42417e
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4242a0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.004080c4
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4242f5
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4242ef
test ah, 4
je 0x4242ef
test al, 0x10
je 0x4242ef
mov eax, esi
call fcn.004080c4
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4242f5
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4295d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x429609
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004073e4
jmp 0x429612
mov eax, ebx
mov edx, esi
call fcn.0040763c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42961c
Capabilities:
Get geographical location

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_GetLocaleInfoW_1
test eax, eax
jle 0x42963e
movzx eax, word [esp]
jmp 0x429640
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42a314
Capabilities:
Write file on windows

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 0x42a439
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042a11c
mov esi, eax
mov eax, dword [0x718240]
cmp byte [eax], 0
je 0x42a3e1
mov eax, dword [0x717814]
call fcn.00404fa4
call fcn.00404b14
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42a2e4]
call fcn.004096a0
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_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42a454
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x42a41d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x7176a0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x71bc50]
call fcn.004099ec
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a440
lea eax, [ebp - 4]
mov edx, dword [0x42a2e4]
call fcn.004097c4
ret

Function at 0x42b4b8
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 0x42b58e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407684
lea eax, [ebp - 4]
call fcn.0040782c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004080c4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42b578
mov eax, ebx
call fcn.00404930
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42b571
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.004080c4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42b55b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42b5a0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42b55b
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 0x42b578
mov eax, dword [ebp - 0x10]
call fcn.0040494c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b595
lea eax, [ebp - 4]
call fcn.0040725c
ret
Function at 0x42c188
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040776c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b6a4
mov edi, eax
cmp edi, 0x104
jbe 0x42c12f
mov eax, edi
add eax, eax
call fcn.00404930
mov esi, eax
jmp 0x42c131
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b6a4
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42c16c
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 0x42c156
mov eax, esp
cmp esi, eax
je 0x42c179
mov eax, esi
call fcn.0040494c
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 0x42c1b4
cmp bl, 0
je 0x42c1b0
cmp bl, 0x41
jl 0x42c1ab
cmp bl, 0x5a
jg 0x42c1ab
or bl, 0x20
xor al, bl
inc esi
jmp 0x42c18f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42c0f0

Function at 0x42c2dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
push 0xa
push 0x42c34c
push ebx
call sub.kernel32.dll_FindResourceW
test eax, eax
je 0x42c343
push eax
push ebx
call sub.kernel32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42c343
xor eax, eax
push ebp
push 0x42c33c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c343
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeResource
ret
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x42c4f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42c640
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040725c
mov byte [ebp - 9], 1
mov dl, 1
mov eax, ebx
call fcn.0040abe8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42c593
push ebx
call sub.kernel32.dll_GetModuleHandleW_2
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42c54e
push 2
push 0
push ebx
call sub.kernel32.dll_LoadLibraryExW_1
mov dword [ebp - 4], eax
jmp 0x42c552
mov byte [ebp - 9], 0
cmp dword [ebp - 4], 0
jne 0x42c593
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0xa
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x20]
call fcn.00429534
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [0x717868]
mov dl, 1
mov eax, dword [0x41f630]
call fcn.0042a688
call fcn.00406938
xor edx, edx
push ebp
push 0x42c623
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xa
push 0x42c650
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindResourceW
test eax, eax
je 0x42c606
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42c606
xor eax, eax
push ebp
push 0x42c5ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
call fcn.0040811c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c606
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeResource
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c62a
cmp byte [ebp - 9], 0
je 0x42c622
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret

Function at 0x42cd40
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00408170
add esp, 0x800
pop ebx
ret

Function at 0x42d1f0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.0040725c
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004080c4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x42d235
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004073e4
jmp 0x42d24e
mov edx, ebx
dec edx
mov eax, esi
call fcn.00408248
push ebx
mov eax, dword [esi]
call fcn.004080c4
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45d794
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x45d832
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x45d7f6
cmp byte [ebx + 0x10], 0
jne 0x45d7f6
cmp byte [ebx + 0x3c], 0
jne 0x45d7f6
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x45d817
lea edx, [ebp - 4]
mov eax, dword [0x7180dc]
call fcn.0040b610
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x44a2c4]
call fcn.0042a484
call fcn.00406938
jmp 0x45d817
lea edx, [ebp - 8]
mov eax, dword [0x7180dc]
call fcn.0040b610
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x44a2c4]
call fcn.0042a484
call fcn.00406938
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d839
lea eax, [ebp - 8]
mov edx, 2
call fcn.004072bc
ret

Function at 0x45e134
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x45e182
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0045d6cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45e19b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x45e1a4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0045d6cc
dec esi
jne 0x45e1c6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x460448
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x720260
cmp dword [edi], 0
jne 0x4604c4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x72025c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x70b3ac
mov ecx, 2
call fcn.00404b64
mov edx, 0x460420
lea eax, [esi + 5]
call fcn.00460440
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00460440
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x460499
mov dword [0x72025c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8