joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409db4
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 0x409f19
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004076f8
cmp si, word [0x5bba08]
jb 0x409e4c
cmp si, word [0x5bbc08]
ja 0x409e4c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409e4c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5bba08]
jae 0x409e26
mov edi, ebx
dec edi
jmp 0x409e47
cmp si, word [ebx*8 + 0x5bba08]
jbe 0x409e36
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409e47
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5bba0c]
call fcn.00409cc4
jmp 0x409e4c
cmp edi, dword [ebp - 8]
jae 0x409e10
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409efb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409efb
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.004083f0
push dword [ebp - 0x160]
push 0x409f34
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004083f0
push dword [ebp - 0x164]
push 0x409f44
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004083f0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408628
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f20
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407758
ret
Function at 0x40a0cc
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 0x40a1cf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5c5b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5c5ba0]
jne 0x40a118
mov eax, esi
mov edx, 0x5c5ba2
mov ecx, 0x55
call fcn.004083f0
push 0x5c5b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a1b9
push 0x5c5b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004076f8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a187
cmp byte [0x5c5b84], 0
je 0x40a14c
mov edx, esi
mov eax, ebx
call fcn.00409fb0
jmp 0x40a187
mov edx, esi
mov eax, ebx
call fcn.00409db4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a187
cmp dword [esi], 0
je 0x40a170
mov eax, esi
mov edx, 0x40a1e8
call fcn.00408548
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409db4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408548
push 0x5c5b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5c5ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00408344
push eax
push 0x5c5ba2
call sub.kernel32.dll_lstrcpynW
push 0x5c5b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a1d6
lea eax, [ebp - 4]
call fcn.004076f8
ret
Function at 0x40a404
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.004077dc
xor eax, eax
push ebp
push 0x40a629
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a444
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a45e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00408344
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a613
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a638
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a52d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a638
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a52d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a674
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a52d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a674
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a52d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a6a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40a52d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a6dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a613
xor eax, eax
push ebp
push 0x40a60c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040a210
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 0x40a59c
mov eax, dword [ebp - 0x10]
call fcn.004046a8
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.0040839c
jmp 0x40a5e7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a71c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a5e7
mov eax, dword [ebp - 0x10]
call fcn.004046a8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a71c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040839c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a613
cmp dword [ebp - 8], 0
je 0x40a602
mov eax, dword [ebp - 8]
call fcn.004046c4
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 0x40a630
lea eax, [ebp - 4]
call fcn.004076f8
ret
Function at 0x40a90c
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.004077dc
xor eax, eax
push ebp
push 0x40a9cc
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.004083f0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004085a0
mov eax, dword [ebx]
call fcn.0040a7d4
test al, al
jne 0x40a9a9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004083f0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004085a0
mov eax, dword [ebx]
call fcn.0040a7d4
test al, al
jne 0x40a9a9
mov eax, ebx
call fcn.004076f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a9d3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407758
lea eax, [ebp - 4]
call fcn.004076f8
ret

Function at 0x40b4b8
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 0x420024
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x42007d
test eax, edx
je 0x420080
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x42003b
movzx eax, word [eax]
sub eax, ecx
jmp 0x420062
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 0x420063
add ecx, 4
js 0x420053
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420060
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420062
xor eax, eax
ret
test eax, eax
je 0x42008c
test edx, edx
jne 0x42002c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x420700
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 0x420718
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x420720
mov al, 1
jmp 0x42073d
movzx esi, word [ebp]
mov eax, esi
call fcn.004113ec
test al, al
jne 0x420739
cmp si, 0x5f
je 0x420739
xor eax, eax
jmp 0x42073b
mov al, 1
xor al, 1
test al, al
jne 0x4207cd
test bl, bl
je 0x42078d
mov eax, ebp
test eax, eax
je 0x420754
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x4207c9
mov eax, ebp
test eax, eax
je 0x420798
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x4207c9
inc ebx
mov esi, 2
Function at 0x421378
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.00408344
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4213e2
test ah, 4
je 0x4213db
test bl, bl
jne 0x4213a0
mov al, 1
jmp 0x421409
test al, 0x10
je 0x4213a8
xor eax, eax
jmp 0x421409
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4213cc
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x421409
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x421409
test al, 0x10
sete al
jmp 0x421409
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x421403
cmp ebx, 3
je 0x421403
cmp ebx, 0x7b
je 0x421403
mov eax, esi
call fcn.00421338
test al, al
jne 0x421407
xor eax, eax
jmp 0x421409
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x421410
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.00408344
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4214b7
test esi, 0x400
jne 0x42144c
test esi, 0x10
setne bl
jmp 0x4214d6
cmp byte [esp], 0
je 0x421480
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4214d6
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x4214d6
test esi, 0x10
je 0x42148c
mov bl, 1
jmp 0x4214d6
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4214b3
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x4214d6
mov bl, 1
jmp 0x4214d6
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x4214d0
cmp eax, 3
je 0x4214d0
cmp eax, 0x7b
je 0x4214d0
cmp eax, 0x35
jne 0x4214d4
xor ebx, ebx
jmp 0x4214d6
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4215f8
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.00408344
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x42164d
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x421647
test ah, 4
je 0x421647
test al, 0x10
je 0x421647
mov eax, esi
call fcn.00408344
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x42164d
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x426818
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 0x426851
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407880
jmp 0x42685a
mov eax, ebx
mov edx, esi
call fcn.00407ad8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426864
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 0x426886
movzx eax, word [esp]
jmp 0x426888
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x428700
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 0x4287d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407b20
lea eax, [ebp - 4]
call fcn.00407cc0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408344
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4287c0
mov eax, ebx
call fcn.004046a8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4287b9
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.00408344
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4287a3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4287e8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4287a3
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 0x4287c0
mov eax, dword [ebp - 0x10]
call fcn.004046c4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4287dd
lea eax, [ebp - 4]
call fcn.004076f8
ret
Function at 0x4294a0
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.00407c00
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b498
mov edi, eax
cmp edi, 0x104
jbe 0x429447
mov eax, edi
add eax, eax
call fcn.004046a8
mov esi, eax
jmp 0x429449
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b498
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x429484
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 0x42946e
mov eax, esp
cmp esi, eax
je 0x429491
mov eax, esi
call fcn.004046c4
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 0x4294cc
cmp bl, 0
je 0x4294c8
cmp bl, 0x41
jl 0x4294c3
cmp bl, 0x5a
jg 0x4294c3
or bl, 0x20
xor al, bl
inc esi
jmp 0x4294a7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x429408

Function at 0x4295f4
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 0x429664
push ebx
call sub.kernel32.dll_FindResourceW
test eax, eax
je 0x42965b
push eax
push ebx
call sub.kernel32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42965b
xor eax, eax
push ebp
push 0x429654
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 0x42965b
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 0x42980c
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 0x429958
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004076f8
mov byte [ebp - 9], 1
mov dl, 1
mov eax, ebx
call fcn.0040aaf4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4298ab
push ebx
call sub.kernel32.dll_GetModuleHandleW_2
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x429866
push 2
push 0
push ebx
call sub.kernel32.dll_LoadLibraryExW_1
mov dword [ebp - 4], eax
jmp 0x42986a
mov byte [ebp - 9], 0
cmp dword [ebp - 4], 0
jne 0x4298ab
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0xa
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x20]
call fcn.0042677c
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 [0x5c1e08]
mov dl, 1
mov eax, dword [0x41cb84]
call fcn.004278d0
call fcn.00406dd4
xor edx, edx
push ebp
push 0x42993b
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xa
push 0x429968
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindResourceW
test eax, eax
je 0x42991e
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 0x42991e
xor eax, eax
push ebp
push 0x429917
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.0040839c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42991e
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 0x429942
cmp byte [ebp - 9], 0
je 0x42993a
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret

Function at 0x42a060
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.004083f0
add esp, 0x800
pop ebx
ret

Function at 0x455fd8
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x456076
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x45603a
cmp byte [ebx + 0x10], 0
jne 0x45603a
cmp byte [ebx + 0x3c], 0
jne 0x45603a
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 0x45605b
lea edx, [ebp - 4]
mov eax, dword [0x5c2284]
call fcn.0040b404
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x44300c]
call fcn.004276cc
call fcn.00406dd4
jmp 0x45605b
lea edx, [ebp - 8]
mov eax, dword [0x5c2284]
call fcn.0040b404
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x44300c]
call fcn.004276cc
call fcn.00406dd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45607d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407758
ret
Function at 0x456978
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 0x4569c6
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.00455f10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4569df
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4569e8
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.00455f10
dec esi
jne 0x456a0a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x458c8c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5c8020
cmp dword [edi], 0
jne 0x458d08
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5c801c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5bda24
mov ecx, 2
call fcn.0040486c
mov edx, 0x458c64
lea eax, [esi + 5]
call fcn.00458c84
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00458c84
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 0x458cdd
mov dword [0x5c801c], 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

Function at 0x45dd68
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x45ddba
test eax, edx
je 0x45ddbd
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x45dd7d
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x45dda3
add ecx, 4
js 0x45dd93
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x45dda0
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x45ddc9
test edx, edx
jne 0x45dd70
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret