joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b460
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0xc]
push esi
push edi
xor edi, edi
add ecx, eax
mov eax, dword [esp + 0xc]
nop dword [eax]
mov esi, ecx
shr ecx, 1
and esi, 1
neg esi
shr esi, 4
movzx edx, word [eax + ecx*2]
and esi, 0x7f
shr edx, 4
xor edx, esi
movzx edx, byte [edx + 0x4ba0e8]
add edi, edx
cmp ecx, 1
jne 0x47b480
mov eax, edi
pop edi
pop esi
ret

Function at 0x47d4f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047d500

Function at 0x47d820
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x4bcc10]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x4bcc10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4bcc10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4bcc10]
mov eax, edx
pop ebp
ret

Function at 0x47f0b0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047f0c0
Function at 0x480e97
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00481047
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x480f95
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x480f38
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x480f7b
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x480f4f
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x480f6a
test al, 0x40
je 0x480f61
mov ecx, dword [edi + 0x20]
jmp 0x480f68
test al, 0x80
je 0x480f7b
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x480f7b
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x480f07
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x450e83
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x4f3100
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x520eb0], 1
jge 0x4f316f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x4f3145
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x4f3145
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x4f3122
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x4f315b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x4f3162
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x4f325f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x4f3230
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x4f3225
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x4f3219
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x4f3220
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x4f325f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x4f325a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x4f3243
mov eax, dword [ebx + 8]
jmp 0x4f325f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4f3251
xor eax, eax
jmp 0x4f325f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x4f318f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x4524e0
Capabilities:
Query environment variable

Disassembly:
jmp 0x4caaa0
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4caab4
xor edi, edi
jmp 0x4caaf8
push ebx
push esi
call fcn.004ca999
push 0x40
mov ebx, eax
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
sub ebx, esi
and ebx, 0xfffffffe
push 2
push ebx
call fcn.00452a12
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4caae5
push ebx
push esi
push edi
call fcn.004525e4
add esp, 0xc
push 2
push 0
call fcn.00452e81
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x404584
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.00406e44
test esi, esi
jne 0x4045bc
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.00406f80
jmp 0x4045da
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044c8
mov edi, eax
test esi, esi
je 0x4045da
cmp dword [ebx], 0
je 0x4045da
dec esi
jmp 0x4045c3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404bdc
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x404bf2
sub ecx, 2
jne 0x404c14
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x404c1b
cmp edx, dword [ebx + 8]
je 0x404c25
mov eax, 0x64
jmp 0x404c20
mov eax, 0x67
jmp 0x404c20
call sub.kernel32.dll_GetLastError
call fcn.0040438c
pop ebx
ret

Function at 0x404e90
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x404ec3
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x404eca
cmp edx, dword [ebx + 8]
je 0x404ed4
mov eax, 0x65
jmp 0x404ecf
mov eax, 5
jmp 0x404ecf
call sub.kernel32.dll_GetLastError
call fcn.0040438c
mov eax, ebx
pop ebx
ret

Function at 0x4063ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c5050], 0
je 0x40640d
cmp word [0x4c532c], 0xd7b2
jne 0x4063d5
cmp dword [0x4c5334], 0
jbe 0x4063d5
mov eax, 0x4c5328
call dword [0x4c5344]
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 0x406438
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c2030], 0
jne 0x406429
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406598
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 [0x4c2038], 0
je 0x4065be
mov edx, esi
mov eax, ebx
call dword [0x4c2038]
jmp 0x4065cd
mov eax, 8
call fcn.00404204
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c5051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406560
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 0x408c14
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 0x408d7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406e44
cmp si, word [0x4c2800]
jb 0x408cae
cmp si, word [0x4c2a00]
ja 0x408cae
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408cae
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4c2800]
jae 0x408c88
mov edi, ebx
dec edi
jmp 0x408ca9
cmp si, word [ebx*8 + 0x4c2800]
jbe 0x408c98
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408ca9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4c2804]
call fcn.00408b24
jmp 0x408cae
cmp edi, dword [ebp - 0xc]
jae 0x408c72
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408d5d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d5d
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.0040702c
push dword [ebp - 0x164]
push 0x408d98
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.0040702c
push dword [ebp - 0x168]
push 0x408da8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040702c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004073e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d82
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406e3c
ret
Function at 0x408f34
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 0x409039
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4c7b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4c7b70]
jne 0x408f80
mov eax, esi
mov edx, 0x4c7b74
mov ecx, 0x55
call fcn.0040702c
push 0x4c7b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409023
push 0x4c7b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406e44
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408ff1
cmp byte [0x4c7b54], 0
je 0x408fb6
mov edx, esi
mov eax, ebx
call fcn.00408e14
jmp 0x408ff1
mov edx, esi
mov eax, ebx
call fcn.00408c14
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408ff1
cmp dword [esi], 0
je 0x408fda
mov eax, esi
mov edx, 0x409054
call fcn.00407240
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408c14
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407240
push 0x4c7b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4c7b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406ed0
push eax
push 0x4c7b74
call sub.kernel32.dll_lstrcpynW
push 0x4c7b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409040
lea eax, [ebp - 4]
call fcn.00406e34
ret
Function at 0x409278
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.00406e2c
xor eax, eax
push ebp
push 0x40945d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4092b8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4092d2
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406ed0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409447
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40946c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409361
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40946c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409361
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409361
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4094d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409447
xor eax, eax
push ebp
push 0x409440
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040907c
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 0x4093d0
mov eax, dword [ebp - 0x10]
call fcn.00404204
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.00406ff0
jmp 0x40941b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409514
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40941b
mov eax, dword [ebp - 0x10]
call fcn.00404204
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409514
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406ff0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409447
cmp dword [ebp - 8], 0
je 0x409436
mov eax, dword [ebp - 8]
call fcn.00404220
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 0x409464
lea eax, [ebp - 4]
call fcn.00406e34
ret
Function at 0x409728
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.00406e2c
mov eax, dword [ebp - 0x21c]
call fcn.00406e2c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4098c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406e44
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406ed0
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 0x4097c8
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4097da
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4097c5
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409893
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 0x409803
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.00409278
cmp dword [ebp - 0x220], 0
je 0x40983b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040961c
pop ecx
mov ebx, eax
jmp 0x409893
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408f34
mov eax, dword [ebp - 0x224]
call fcn.0040961c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409886
cmp byte [0x4c7b54], 0
jne 0x409886
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408f34
mov eax, dword [ebp - 0x228]
call fcn.0040961c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409893
push ebp
call fcn.004096cc
pop ecx
mov ebx, eax
test bl, bl
je 0x4098a9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040702c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4098ce
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406e3c
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x4c7c58
push 0xa
push 0x40d250
mov eax, dword [0x4c7c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d1e0
call fcn.00419360
push ebx
mov eax, dword [0x4c7c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d1f7
call fcn.00419360
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d209
call fcn.00419360
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4c7c5c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4c7c60], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4c7c64], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4c7c68], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4c7c6c], ecx
add edx, dword [eax + 0x14]
mov dword [0x4c7c70], edx
pop esi
pop ebx
ret

Function at 0x411d18
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x411dc1
test eax, edx
je 0x411dc4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x411d41
push edx
mov edx, eax
mov eax, esp
call fcn.00407048
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x411d57
push eax
lea eax, [esp + 8]
call fcn.00407048
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x411d66
movzx eax, word [eax]
sub eax, ecx
jmp 0x411d8d
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 0x411da7
add ecx, 4
js 0x411d7e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x411da4
push eax
mov eax, ecx
mov edx, 2
call fcn.00406638
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x411d8b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x411d8d
xor eax, eax
ret
test eax, eax
je 0x411dd4
test edx, edx
jne 0x411d28
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406ed0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41300a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41302b
cmp ebx, 3
je 0x41302b
cmp ebx, 0x7b
je 0x41302b
mov eax, esi
call fcn.00412fac
test al, al
jne 0x41302f
xor eax, eax
jmp 0x413031
mov al, 1
pop esi
pop ebx
ret

Function at 0x416554
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 0x41658d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406f80
jmp 0x416596
mov eax, ebx
mov edx, esi
call fcn.00406e44
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4165a0
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 0x4165c2
movzx eax, word [esp]
jmp 0x4165c4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x416d54
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 0x416e79
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00416b64
mov esi, eax
mov eax, dword [0x4c44d0]
cmp byte [eax], 0
je 0x416e21
mov eax, dword [0x4c4258]
call fcn.00404978
call fcn.0040436c
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 [0x416d2c]
call fcn.00408610
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 0x416e94
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x416e5d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4c41ec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c7c3c]
call fcn.00408704
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 0x416e80
lea eax, [ebp - 4]
mov edx, dword [0x416d2c]
call fcn.0040861c
ret