joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415e20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d760
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x46b074]
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 edi, ecx
mov dword [ebp - 0x13c], edi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x100
push 0
push eax
call fcn.0043a370
add esp, 0xc
lea ecx, [ebp - 0x12c]
mov edx, esi
call fcn.00415af0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, dword [0x46ba70]
test ecx, ecx
je 0x416021
cmp dword [ebp - 0x11c], 0
je 0x416021
xor eax, eax
nop word [eax + eax]
mov byte [ebp + eax - 0x114], al
inc eax
cmp eax, 0x100
jl 0x415eb0
test ecx, ecx
je 0x415f2d
xor edi, edi
xor esi, esi
nop word [eax + eax]
cmp dword [0x46ba74], 0x10
mov ecx, 0x46ba60
mov eax, esi
mov bl, byte [ebp + esi - 0x114]
cmovae ecx, dword [0x46ba60]
xor edx, edx
div dword [0x46ba70]
movsx eax, byte [edx + ecx]
add edi, eax
movzx ecx, bl
add edi, ecx
and edi, 0x800000ff
jns 0x415f0f
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x114]
mov byte [ebp + esi - 0x114], al
inc esi
mov byte [ebp + edi - 0x114], bl
cmp esi, 0x100
jl 0x415ed0
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x12c]
mov ecx, dword [ebp - 0x12c]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x138], ebx
cmp edx, 0x10
cmovae eax, ecx
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x12c]
cmovae eax, ecx
add eax, dword [ebp - 0x11c]
mov edi, eax
sub edi, dword [ebp - 0x130]
mov dword [ebp - 0x134], edi
xor edi, edi
cmp dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x134]
cmova eax, edi
mov edi, dword [ebp - 0x13c]
mov dword [ebp - 0x134], eax
test eax, eax
je 0x41602d
inc esi
and esi, 0x800000ff
jns 0x415fa8
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [ebp + esi - 0x114]
movzx edx, cl
add ebx, edx
and ebx, 0x800000ff
jns 0x415fc4
dec ebx
or ebx, 0xffffff00
inc ebx
movzx eax, byte [ebp + ebx - 0x114]
mov byte [ebp + esi - 0x114], al
mov byte [ebp + ebx - 0x114], cl
movzx eax, byte [ebp + esi - 0x114]
mov ecx, dword [ebp - 0x130]
add eax, edx
movzx eax, al
movzx eax, byte [ebp + eax - 0x114]
xor al, byte [ecx]
mov ecx, edi
movzx eax, al
push eax
call fcn.0040e700
mov eax, dword [ebp - 0x138]
inc dword [ebp - 0x130]
inc eax
mov dword [ebp - 0x138], eax
cmp eax, dword [ebp - 0x134]
jne 0x415f97
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x416057
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41604d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416075
push edx
push ecx
call fcn.00422d4e
add esp, 8
mov eax, edi
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.00422d0d
mov esp, ebp
pop ebp
ret
call fcn.0043d6f9
int3
Function at 0x416950
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d7f0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x46b074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ecx + 8]
mov dword [ebp - 4], 0
xor eax, eax
xor edi, edi
mov word [ebp - 0x2c], ax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 7
test eax, eax
je 0x416a1e
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4169bb
mov ecx, dword [esi]
push dword [ebp - 0x60]
mov edx, eax
push 1
push 0x45e7d8
push ecx
call fcn.0040a020
add esp, 0x10
cmp eax, 0xffffffff
je 0x416a1e
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov word [ebp - 0x44], cx
lea ecx, [eax + 1]
cmp dword [esi + 0x10], ecx
mov dword [ebp - 0x30], 7
cmovb ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
jb 0x4169f7
mov esi, dword [esi]
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.00401b50
lea ecx, [ebp - 0x2c]
call fcn.00401970
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [ebp - 0x1c], xmm0
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x416ae2
push 0x46baa8
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.00418f80
add esp, 4
cmp dword [eax + 0x10], 0
je 0x416aac
cmp dword [0x46bb20], 0
je 0x416aac
cmp dword [eax + 0x14], 8
jb 0x416a57
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x416aac
cmp dword [0x46bb24], 0x10
lea eax, [ebp - 0x60]
push 0
push eax
push dword [0x46bb20]
mov ecx, 0x46bb10
mov dword [ebp - 0x60], 0
cmovae ecx, dword [0x46bb10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x416ae2
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416ad8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416b36
push edx
push ecx
call fcn.00422d4e
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x416b18
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416b0e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416b3b
push edx
push ecx
call fcn.00422d4e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00422d0d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0043d6f9
call fcn.0043d6f9
int3
Function at 0x4195a0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edx]
cmp dword [ebp + 8], 0x100
push esi
push edi
mov edi, ecx
mov esi, str.expand_16_byte_k
mov ecx, str.expand_32_byte_k
cmove esi, ecx
lea ecx, [edx + 0x10]
cmovne ecx, edx
mov dword [edi + 4], eax
mov eax, dword [edx + 4]
mov dword [edi + 8], eax
mov eax, dword [edx + 8]
mov dword [edi + 0xc], eax
mov eax, dword [edx + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [ecx]
mov dword [edi + 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0x30], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x34], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x38], eax
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x3c], eax
pop edi
pop esi
pop ebp
ret
Function at 0x419b40
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d960
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1c
mov eax, dword [0x46b074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0x2c]
push 0
push dword [ebx + 0xc]
call fcn.00409220
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x1c]
push dword [0x46f1c0]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x419bbf
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
jmp 0x419c00
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x419bef
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x419be5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419c21
push edx
push ecx
call fcn.00422d4e
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00422d0d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.0043d6f9
int3
Function at 0x41a890
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44da50
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x46b074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], edx
mov edi, ecx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [edx + 0x50]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x41aa74
mov ecx, dword [edx + 0x68]
mov dword [ebp - 0x54], ecx
test ecx, ecx
je 0x41aa74
mov esi, dword [0x46ba44]
test esi, esi
je 0x41a932
push 0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 1
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov edx, dword [ebp - 0x4c]
neg eax
mov ecx, dword [ebp - 0x54]
sbb esi, esi
mov eax, dword [ebp - 0x50]
and esi, dword [ebp - 0x48]
test eax, eax
je 0x41aa74
test ecx, ecx
je 0x41aa74
test esi, esi
je 0x41aa74
lea eax, [edx + 0x40]
push 0
push esi
mov ecx, eax
mov dword [ebp - 0x48], eax
call fcn.00404960
mov eax, dword [ebp - 0x4c]
add eax, 0x58
push 0
push esi
mov ecx, eax
mov dword [ebp - 0x4c], eax
call fcn.00404960
push esi
push dword [ebp - 0x50]
push dword [ebp - 0x48]
push ecx
mov ecx, 0x46ba10
call fcn.00419560
test al, al
je 0x41aa74
push esi
push dword [ebp - 0x54]
mov esi, dword [ebp - 0x4c]
push esi
push ecx
mov ecx, 0x46ba10
call fcn.00419560
test al, al
je 0x41aa74
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov eax, dword [eax + 0x10]
add eax, dword [esi + 0x10]
push eax
call fcn.0041b570
push dword [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.004091a0
push esi
lea ecx, [ebp - 0x2c]
call fcn.004091a0
push 0x46ba28
lea ecx, [ebp - 0x2c]
call fcn.004091a0
mov ecx, edi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x44]
push eax
movq qword [ebp - 0x34], xmm0
call fcn.0040e850
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x41aa44
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41aa3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41aa94
push edx
push ecx
call fcn.00422d4e
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x41aa74
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41aa6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41aa99
push edx
push ecx
call fcn.00422d4e
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00422d0d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0043d6f9
call fcn.0043d6f9
int3
Function at 0x41aaa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor bl, bl
cmp dword [ecx + 0x10], 0
push esi
je 0x41ab5b
cmp dword [ecx + 0x14], 8
jb 0x41aabc
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41ab5b
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 8], xmm0
lea edx, [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add ecx, 0xfffffff0
push 2
push edx
adc eax, 0xffffffff
mov word [ebp - 0x1c], 0
push eax
push ecx
push esi
mov byte [ebp - 0x1a], 0
movlpd qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x41ab54
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x10
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ab54
cmp dword [ebp - 4], 0x10
jne 0x41ab54
cmp dword [ebp - 0x20], 0xd3b1d3ff
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b3d0
Capabilities:
Create new key via cryptacquirecontext
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
lea esi, [edi + 0x30]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
mov dword [esi], 0
mov dword [edi + 0x34], 0
cmp dword [ebx + 0x10], 0
je 0x41b55d
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x41b463
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x41b55d
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
setne al
test al, al
je 0x41b55d
cmp dword [ebx + 0x10], 0
mov byte [ebp - 8], 0
je 0x41b531
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
mov dword [ebp - 4], 0
jb 0x41b482
mov eax, dword [ebx]
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 1
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x41b531
mov esi, dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x41b52e
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x41b4c5
mov eax, dword [ebx]
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push 1
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x41b50a
lea eax, [edi + 0x34]
push eax
push 0x40
push 0
push dword [ebp - 4]
push esi
push dword [edi + 0x30]
lea esi, [edi + 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov ecx, dword [ebp - 8]
test eax, eax
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 8], ecx
jmp 0x41b50d
lea esi, [edi + 0x30]
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp byte [ebp - 8], 0
je 0x41b531
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [edi + 0x30]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x41b556
cmp dword [ebx + 0x14], 0x10
jb 0x41b540
mov ebx, dword [ebx]
lea ecx, [edi + 0x34]
push ecx
push 0x40
push 0
push eax
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x41b55d
mov ecx, edi
call fcn.004194c0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c5a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ecx + 0x10], 0
xorps xmm0, xmm0
push ebx
push esi
push edi
movlpd qword [ebp - 8], xmm0
je 0x41c626
cmp dword [ecx + 0x14], 8
jb 0x41c5bf
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c626
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41c60e
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f940
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0x3ff
add eax, 0xffffffe8
cmp eax, 0x42
ja case.0x41f95a.26
movzx eax, byte [eax + 0x41f990]
jmp dword [eax*4 + 0x41f988]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
and eax, 0x3ff
add eax, 0xffffffe8
cmp eax, 0x42
ja case.0x41f97b.26
movzx eax, byte [eax + 0x41f9dc]
jmp dword [eax*4 + 0x41f9d4]
mov al, 1
ret
xor al, al
ret

Function at 0x41fa20
Capabilities:
Check for debugger via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x46b074]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x41fad8
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
test eax, eax
je 0x41fad8
cmp dword [ebp - 0x2d4], 0
jne 0x41fad8
push 0x2c8
lea eax, [ebp - 0x2cc]
push 0
push eax
call fcn.0043a370
add esp, 0xc
mov dword [ebp - 0x2d0], 0x10010
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x41fac8
cmp dword [ebp - 0x2cc], 0
jne 0x41fad8
cmp dword [ebp - 0x2c8], 0
jne 0x41fad8
cmp dword [ebp - 0x2c4], 0
jne 0x41fad8
cmp dword [ebp - 0x2c0], 0
jne 0x41fad8
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422d0d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.00422d0d
mov esp, ebp
pop ebp
ret

Function at 0x425b82
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x402f74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40300c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402fec
xor eax, eax
push ebp
push 0x402fe5
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 0x403028
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 0x402fec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46b020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46b020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cd0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46d048], 0
je 0x403d31
cmp word [0x46d21c], 0xd7b2
jne 0x403cf9
cmp dword [0x46d224], 0
jbe 0x403cf9
mov eax, 0x46d218
call dword [0x46d234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46b06c
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 0x403d58
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46b030], 0
jne 0x403d4d
push 0
push 0x46b064
push 0x46b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405a00
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 0x405a66
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.004040bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a50
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a6d
lea eax, [ebp - 0x10]
call fcn.00403e4c
ret

Function at 0x40ab18
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 0x40ab51
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f3c
jmp 0x40ab5a
mov eax, ebx
mov edx, esi
call fcn.00403ea0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ab64
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 0x40ab85
mov al, byte [esp]
jmp 0x40ab87
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b20c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b084
mov eax, dword [0x46c9f8]
cmp byte [eax], 0
je 0x40b288
mov eax, dword [0x46c810]
call fcn.004029a4
call fcn.00402824
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.0040838c
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 0x40b2d0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b2be
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46c7c0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46d664]
call fcn.00404f14
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