joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb321
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33a8
cmp edx, dword [eax]
je 0x4bb343
add eax, 8
inc ecx
cmp eax, 0x4c3438
jl 0x4bb334
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33a8]
jne 0x4bb471
mov eax, dword [0x4c7d34]
cmp eax, 1
je 0x4bb44b
test eax, eax
jne 0x4bb374
cmp dword [0x4c32d0], 1
je 0x4bb44b
cmp edx, 0xfc
je 0x4bb471
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb3ab
lea eax, [ebp - 0x1a4]
push 0x4c0830
push eax
call fcn.004bbd00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc190
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb3ee
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc190
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c082c
push edi
call fcn.004be060
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0810
push eax
call fcn.004bbd00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbd10
lea eax, [ebp - 0xa0]
push 0x4c080c
push eax
call fcn.004bbd10
push dword [esi + 0x4c33ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbd10
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c07e4
push eax
call fcn.004bdfd4
add esp, 0x2c
pop edi
jmp 0x4bb471
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33ac]
push 0
push eax
push dword [esi]
call fcn.004bc190
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x101cd3c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x2c
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x101cd456
jmp 0x101cd43f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x12], 0x64
sete dl
mov byte [ebp - 0x25], dl
mov eax, 0x106d
xor ecx, ecx
mov dl, byte [ebp - 0x25]
test dl, 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
jne 0x101cd4e1
jmp 0x101cd530
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
jl 0x101cd3f6
mov eax, dword [ebp - 0x20]
mov ecx, 0x106d
xor edx, edx
mov esi, dword [ebp - 0x14]
cmp word [esi + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jne 0x101cd530
mov eax, 0x106d
xor ecx, ecx
mov dword [0x101d9994], 0x11f2
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
cmp word [edx + esi*2 - 0x18], 0x6f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
jne 0x101cd530
mov eax, 0x106d
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
cmp word [edx + esi*2 - 0x16], 0x61
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
jne 0x101cd530
mov eax, 0x106d
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
cmp word [edx + esi*2 - 0x14], 0x64
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
je 0x101cd40e
jmp 0x101cd530
mov eax, 0x106d
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
cmp word [edx + esi*2 - 0x10], 0x6c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
jne 0x101cd530
mov eax, 0x106d
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
jne 0x101cd530
mov eax, 1
mov ecx, dword [0x101d9998]
add ecx, 0xef6
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [0x101d9998], ecx
add esp, 0x2c
pop esi
pop ebp
ret
Function at 0x101cd550
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
lea eax, [esp + 0x38]
lea ecx, [esp + 0x48]
mov edx, dword [0x101d9994]
mov esi, edx
add esi, 0xffffff71
mov dword [0x101d9994], esi
add edx, 0xfffff428
mov dword [0x101d9998], edx
mov dword [esp], eax
mov dword [esp + 0x34], ecx
call fcn.101cc680
lea ecx, [esp + 0x48]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x74], edx
mov dword [0x101d9998], 0x12c8
mov dword [esp + 0x54], 0x130e00
mov edx, dword [0x101d9980]
mov dword [esp + 0x48], edx
mov edx, dword [0x101d9984]
mov dword [esp + 0x78], edx
mov edx, dword [0x101d9988]
add ecx, 0x54
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov eax, 0xa69
lea ecx, [0x101cd910]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [edx], esi
mov edi, dword [0x101d998c]
mov dword [esp + 0x84], edi
mov dword [0x101d9994], 0x1bd1
mov edi, dword [0x101d9990]
mov dword [esp + 0x64], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
jmp 0x101cd639
mov eax, 0x890
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp word [eax], 0x5a4d
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
je 0x101cd690
jmp 0x101cd61c
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101cde50
mov ecx, esp
lea edx, [esp + 0x48]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov ecx, dword [0x101d9998]
add ecx, 0xffffd92f
mov dword [0x101d9994], ecx
mov dword [esp + 0x14], eax
jmp 0x101cd6f4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
jne 0x101cd61c
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [0x101d9998], eax
mov dword [esp + 0x4c], ecx
mov dword [0x101d9994], 0x39d
mov eax, dword [ecx + edx + 0x50]
mov dword [esp + 0x88], eax
call fcn.101cd3c0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x14], ecx
je 0x101cd652
mov eax, dword [esp + 0x14]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x101cd7a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x101d9994], 0x66e
mov dword [0x101d999c], 0
mov dword [0x101d99a0], 0
mov dword [0x101d99ac], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x101cd8c7
jmp 0x101cd8cf
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
add edx, 1
mov edi, eax
add edi, 1
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x101d999c], edx
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101d99a0], edx
mov ecx, dword [0x101d9998]
add ecx, 0xffffe6d4
mov dword [0x101d9998], ecx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x101d99a4], cl
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x101d99a4]
mov edx, dword [0x101d99a0]
mov byte [ebx + edx], cl
mov dword [0x101d9994], 0xa12
mov edx, dword [0x101d999c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101d99a0]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101d99ac], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
xor cl, byte [edx + esi]
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], cl
mov dword [0x101d9994], 0x1c6d
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x34], edi
je 0x101cd8ff
jmp 0x101cd8e3
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], eax
jmp 0x101cd7f9
mov eax, dword [0x101d999c]
mov ecx, dword [0x101d99a0]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
jmp 0x101cd7f9
jmp 0x101cd8c7
Function at 0x40470c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406f30
test esi, esi
jne 0x404744
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040706c
jmp 0x404762
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004045f0
mov edi, eax
test esi, esi
je 0x404762
cmp dword [ebx], 0
je 0x404762
dec esi
jmp 0x40474b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4062e0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ef054], 0
je 0x406341
cmp word [0x4ef330], 0xd7b2
jne 0x406309
cmp dword [0x4ef338], 0
jbe 0x406309
mov eax, 0x4ef32c
call dword [0x4ef348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40636c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4eb030], 0
jne 0x40635d
push 0
push 0x4eb79c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4064ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4eb034], 0
je 0x406512
mov edx, esi
mov eax, ebx
call dword [0x4eb034]
jmp 0x406521
mov eax, 8
call fcn.00404338
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4ef055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4064b4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x409110
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x409277
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406f30
cmp si, word [0x4eb7e4]
jb 0x4091aa
cmp si, word [0x4eb9e4]
ja 0x4091aa
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4091aa
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4eb7e4]
jae 0x409184
mov edi, ebx
dec edi
jmp 0x4091a5
cmp si, word [ebx*8 + 0x4eb7e4]
jbe 0x409194
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4091a5
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4eb7e8]
call fcn.00409020
jmp 0x4091aa
cmp edi, dword [ebp - 0xc]
jae 0x40916e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409259
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409259
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407128
push dword [ebp - 0x164]
push 0x409294
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407128
push dword [ebp - 0x168]
push 0x4092a4
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407128
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004074e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40927e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406f28
ret
Function at 0x409430
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 0x409535
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f1b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4f1b74]
jne 0x40947c
mov eax, esi
mov edx, 0x4f1b78
mov ecx, 0x55
call fcn.00407128
push 0x4f1b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40951f
push 0x4f1b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406f30
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4094ed
cmp byte [0x4f1b58], 0
je 0x4094b2
mov edx, esi
mov eax, ebx
call fcn.00409310
jmp 0x4094ed
mov edx, esi
mov eax, ebx
call fcn.00409110
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4094ed
cmp dword [esi], 0
je 0x4094d6
mov eax, esi
mov edx, 0x409550
call fcn.0040733c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409110
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040733c
push 0x4f1b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4f1b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406fbc
push eax
push 0x4f1b78
call sub.kernel32.dll_lstrcpynW
push 0x4f1b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40953c
lea eax, [ebp - 4]
call fcn.00406f20
ret
Function at 0x409774
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.00406f18
xor eax, eax
push ebp
push 0x409959
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4097b4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4097ce
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406fbc
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409943
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409968
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40985d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409968
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40985d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40999c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40985d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409943
xor eax, eax
push ebp
push 0x40993c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409578
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 0x4098cc
mov eax, dword [ebp - 0x10]
call fcn.00404338
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.004070ec
jmp 0x409917
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409a10
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409917
mov eax, dword [ebp - 0x10]
call fcn.00404338
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409a10
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004070ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409943
cmp dword [ebp - 8], 0
je 0x409932
mov eax, dword [ebp - 8]
call fcn.00404354
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 0x409960
lea eax, [ebp - 4]
call fcn.00406f20
ret
Function at 0x409c24
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406f18
mov eax, dword [ebp - 0x21c]
call fcn.00406f18
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409dc3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406f30
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406fbc
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409cc4
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409cd6
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409cc1
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409d8f
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409cff
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00409774
cmp dword [ebp - 0x220], 0
je 0x409d37
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409b18
pop ecx
mov ebx, eax
jmp 0x409d8f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409430
mov eax, dword [ebp - 0x224]
call fcn.00409b18
pop ecx
mov ebx, eax
test bl, bl
jne 0x409d82
cmp byte [0x4f1b58], 0
jne 0x409d82
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409430
mov eax, dword [ebp - 0x228]
call fcn.00409b18
pop ecx
mov ebx, eax
test bl, bl
jne 0x409d8f
push ebp
call fcn.00409bc8
pop ecx
mov ebx, eax
test bl, bl
je 0x409da5
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407128
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409dca
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406f28
ret

Function at 0x40a53c
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 0x40d090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4f1c54
push 0xa
push 0x40d124
mov eax, dword [0x4f1c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d0b4
call fcn.004194e0
push ebx
mov eax, dword [0x4f1c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d0cb
call fcn.004194e0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d0dd
call fcn.004194e0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4f1c58], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4f1c5c], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4f1c60], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4f1c64], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4f1c68], ecx
add edx, dword [eax + 0x14]
mov dword [0x4f1c6c], edx
pop esi
pop ebx
ret

Function at 0x410eb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x410f59
test eax, edx
je 0x410f5c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410ed9
push edx
mov edx, eax
mov eax, esp
call fcn.00407144
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410eef
push eax
lea eax, [esp + 8]
call fcn.00407144
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410efe
movzx eax, word [eax]
sub eax, ecx
jmp 0x410f25
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 0x410f3f
add ecx, 4
js 0x410f16
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x410f3c
push eax
mov eax, ecx
mov edx, 2
call fcn.0040658c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410f23
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410f25
xor eax, eax
ret
test eax, eax
je 0x410f6c
test edx, edx
jne 0x410ec0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x416424
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 0x41645d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040706c
jmp 0x416466
mov eax, ebx
mov edx, esi
call fcn.00406f30
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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