joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9f50
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8216
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x535224]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ecx + 8]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
test esi, esi
je 0x4ca03d
test edi, edi
je 0x4ca069
mov edx, dword [ebp + 0x10]
test edx, 0xf
jne 0x4ca095
lea eax, [edx - 0x10]
cmp dword [ebp + 0xc], eax
jbe 0x4ca0c1
cmp byte [ecx + 0x10], 0
je 0x4ca0ed
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edx
push eax
push edi
push 0
push 1
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, eax
test ecx, ecx
je 0x4ca119
jmp 0x4ca015
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004447da
mov esp, ebp
pop ebp
ret 0x10
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xc0]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0xc0]
push eax
call fcn.00468bd9
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0xcc]
push eax
call fcn.00468bd9
push 0x80090005
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Data_size_is_not_a_multple_of_block_size
lea ecx, [ebp - 0xd8]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0xd8]
push eax
call fcn.00468bd9
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xe4]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0xe4]
push eax
call fcn.00468bd9
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xf0]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0xf0]
push eax
call fcn.00468bd9
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.004cc3e0
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.004c88f0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Decrypt_1_:_CryptDecrypt_failed__
push eax
call fcn.004c8310
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.004cab60
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004c8310
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.004c8310
add esp, 8
mov ecx, eax
push 0x4cce90
call fcn.004c98e0
mov edi, eax
call esi
push eax
mov ecx, edi
call fcn.004c9620
push 0x515ca8
push eax
call fcn.004c8310
add esp, 8
mov dword [ebx], 0
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0xb0]
push eax
call fcn.004cd610
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00438cd3
push eax
lea ecx, [ebp - 0xfc]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0xfc]
push eax
call fcn.00468bd9
push 0
push 0
call fcn.00468bd9
int3
Function at 0x4ca570
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8296
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x535224]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ecx + 8]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
test edx, edx
je 0x4ca659
test esi, esi
je 0x4ca685
mov ebx, dword [ebp + 0x10]
mov eax, ebx
and eax, 0xfffffff0
add eax, 0x10
cmp dword [ebp + 0xc], eax
jb 0x4ca6b1
cmp byte [ecx + 0x10], 0
je 0x4ca6dd
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push esi
push 0
push 1
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, eax
test ecx, ecx
je 0x4ca709
jmp 0x4ca631
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004447da
mov esp, ebp
pop ebp
ret 0x10
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xc0]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0xc0]
push eax
call fcn.00468bd9
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0xcc]
push eax
call fcn.00468bd9
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xd8]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0xd8]
push eax
call fcn.00468bd9
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xe4]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0xe4]
push eax
call fcn.00468bd9
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.004cc3e0
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.004c88f0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Encrypt_1_:_CryptEncrypt_failed__
push eax
call fcn.004c8310
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.004cab60
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004c8310
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.004c8310
add esp, 8
mov ecx, eax
push 0x4cce90
call fcn.004c98e0
mov ebx, eax
call esi
push eax
mov ecx, ebx
call fcn.004c9620
push 0x515ca8
push eax
call fcn.004c8310
add esp, 8
mov dword [edi], 0
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0xb0]
push eax
call fcn.004cd610
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00438cd3
push eax
lea ecx, [ebp - 0xf0]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0xf0]
push eax
call fcn.00468bd9
push 0
push 0
call fcn.00468bd9
int3
Function at 0x4caf70
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8338
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x535224]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [edi + 8]
lea ebx, [edi + 8]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x4cafca
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x18]
mov dword [ebx], 0
mov byte [edi + 0x10], 0
cmp dword [edi + 4], 0
mov dword [ebp - 4], 0
je 0x4cb0f9
test ecx, ecx
je 0x4cb114
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
je 0x4caff9
cmp esi, 0x18
je 0x4caff9
cmp esi, 0x20
jne 0x4cb12f
push 0x2c
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004691d0
add esp, 0xc
mov dword [ebp - 0x44], 0x208
mov byte [ebp - 4], 1
cmp esi, 0x10
je 0x4cb040
cmp esi, 0x18
je 0x4cb032
cmp esi, 0x20
jne 0x4cb14a
mov dword [ebp - 0x40], 0x6610
mov eax, esi
jmp 0x4cb04c
mov dword [ebp - 0x40], 0x660f
mov eax, 0x18
jmp 0x4cb04c
mov dword [ebp - 0x40], 0x660e
mov eax, 0x10
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004cd910
add esp, 0x10
test eax, eax
jne 0x4cb165
push ebx
push 0
push 0
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4cb186
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x4cb1a7
jmp 0x4cb0c3
mov al, 1
lea ecx, [ebp - 0x44]
mov edx, 4
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x4cb0d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004447da
mov esp, ebp
pop ebp
ret 8
push str.SetKey:_Provider_is_not_valid
lea ecx, [ebp - 0x58]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0x58]
push eax
call fcn.00468bd9
push str.SetKey:_Key_buffer_is_NULL
lea ecx, [ebp - 0x64]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0x64]
push eax
call fcn.00468bd9
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x70]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0x70]
push eax
call fcn.00468bd9
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x7c]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0x7c]
push eax
call fcn.00468bd9
push str.SetKey:_Unable_to_copy_key
lea ecx, [ebp - 0x88]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0x88]
push eax
call fcn.00468bd9
push str.SetKey:_Import_key_failed
lea ecx, [ebp - 0x94]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0x94]
push eax
call fcn.00468bd9
push str.SetKey:_Set_CBC_mode_failed
lea ecx, [ebp - 0xa0]
call fcn.004c8c50
push 0x52cd00
lea eax, [ebp - 0xa0]
push eax
call fcn.00468bd9
push 0
push 0
call fcn.00468bd9
int3
Function at 0x4ccec0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8508
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x535224]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0041b9a0
mov edi, eax
add esp, 4
test edi, edi
je 0x4ccf64
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004d2b05
add esp, 4
mov dword [edi + 4], eax
jmp 0x4ccf66
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.004c85c0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x4ccfc7
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4ccfc7
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x4ccfea
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4cd00d
cmp byte [ebp + 0xc], 0
je 0x4ccff9
push esi
call fcn.004d2dbd
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4cd019
mov esi, str.ios_base::badbit_set
jmp 0x4cd029
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004cd050
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.004c8dc0
push 0x52ccbc
lea eax, [ebp - 0x30]
push eax
call fcn.00468bd9
int3
Function at 0x402cac
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402ce9
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402d09
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040492c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f84
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402fdd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402e20
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402e20
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402fc7
inc ebx
jmp 0x402fb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fe4
lea eax, [ebp - 8]
call fcn.004046bc
ret

Function at 0x402fec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004046bc
test esi, esi
jne 0x403023
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004047ac
jmp 0x403044
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402e20
mov dword [esp], eax
test esi, esi
je 0x403044
cmp dword [ebx], 0
je 0x403044
dec esi
jmp 0x40302b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x492020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403798
xor eax, eax
push ebp
push 0x403791
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4037d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403798
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x492020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x492020], ax
mov esp, ebp
pop ebp
ret
Function at 0x4044b4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x498048], 0
je 0x404515
cmp word [0x49821c], 0xd7b2
jne 0x4044dd
cmp dword [0x498224], 0
jbe 0x4044dd
mov eax, 0x498218
call dword [0x498234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49206c
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 0x40453c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x492030], 0
jne 0x404531
push 0
push 0x492064
push 0x49206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404670
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a74
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x498049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404638
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4064b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406516
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040492c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004032d8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406500
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40651d
lea eax, [ebp - 0x10]
call fcn.004046bc
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b7c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40914d
test al, 0x10
jne 0x409151
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4092e8
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b7c
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x4092fc
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404b7c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40931e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c350
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c389
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047ac
jmp 0x40c392
mov eax, ebx
mov edx, esi
call fcn.00404710
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c39c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c3bd
mov al, byte [esp]
jmp 0x40c3bf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40ca54
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c8bc
mov eax, dword [0x4971f0]
cmp byte [eax], 0
je 0x40cad0
mov eax, dword [0x496e6c]
call fcn.00403108
call fcn.00402c00
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040986c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40cb18
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cb06
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x496dd4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x498664]
call fcn.004058dc
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40d374
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d44a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404754
lea eax, [ebp - 8]
call fcn.00404bcc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b7c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d434
mov eax, ebx
call fcn.00402a74
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d42d
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 - 8]
call fcn.00404b7c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d417
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d45c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d417
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d434
mov eax, dword [ebp - 0x10]
call fcn.00402aa4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d451
lea eax, [ebp - 8]
call fcn.004046bc
ret

Function at 0x40db9c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40dc00
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040492c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408cd0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc07
lea eax, [ebp - 0xc]
call fcn.004046bc
ret
Function at 0x41c374
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]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41c3c1
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.0041c1cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41c3d9
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41c3e0
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.0041c1cc
dec esi
jne 0x41c402
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41d544
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x498888
cmp dword [edi], 0
jne 0x41d5c0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x498884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49246c
mov ecx, 2
call fcn.00402de0
mov edx, 0x41d51c
lea eax, [esi + 5]
call fcn.0041d53c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d53c
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 0x41d595
mov dword [0x498884], 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 0x41eb9c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41eba2
ret

Function at 0x421454
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4214a5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42148c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42147c
jmp 0x4214a5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42148d
pop ebx
mov esp, ebp
pop ebp
ret