joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419325c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x41fc008], 0x8088405
inc edx
mov dword [ebx + 0x41fc008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41937b8
Capabilities:
Query or enumerate registry value

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

Function at 0x41945b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4201044], 0
je 0x4194619
cmp word [0x4201218], 0xd7b2
jne 0x41945e1
cmp dword [0x4201220], 0
jbe 0x41945e1
mov eax, 0x4201214
call dword [0x4201230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41fc07c
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 0x4194640
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41fc034], 0
jne 0x4194635
push 0
push 0x41fc074
push 0x41fc07c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4196750
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 0x41967b6
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.041949ac
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.04193278
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x41967a0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41967bd
lea eax, [ebp - 0x10]
call fcn.0419473c
ret

Function at 0x41993ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x4199488
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.04194d08
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.04194c30
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x4199414
cmp byte [esp], 0
je 0x4199459
mov eax, edi
call fcn.04194c30
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x4199494
mov eax, edi
call fcn.04194c30
push eax
mov eax, edi
call fcn.04194c30
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.04192f74
mov edx, ebx
mov eax, edi
call fcn.04194d08
jmp 0x4199494
mov eax, edi
mov edx, 0x41994a4
call fcn.04194790
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4199aec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.04194bc8
xor eax, eax
push ebp
push 0x4199b4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.04194790
mov eax, ebx
call fcn.04194c28
mov eax, dword [ebx]
call fcn.041949d8
test eax, eax
jle 0x4199b38
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x4199b2d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4199b55
lea eax, [ebp - 4]
call fcn.0419473c
ret

Function at 0x419a2bc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x419a30f
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov esi, ebx
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x419a305
cmp word [esi], 0x5a4d
jne 0x419a305
lea eax, [ebx + 0x3c]
add ebx, dword [eax]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x419a305
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419a31e
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x419a500
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov dword [esp], eax
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x419a555
push 0x20a
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov dword [esp + 4], eax
push 0x104
mov eax, dword [esp + 8]
push eax
push ebx
call sub.kernel32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
jmp 0x419a590
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov dword [esp + 4], eax
push 0x104
mov eax, dword [esp + 8]
push eax
push ebx
call sub.kernel32.dll_GetModuleFileNameA_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_LocalFree_2
cmp ebx, 0xffffffff
je 0x419a5f2
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x419a5bf
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingW
mov esi, eax
jmp 0x419a5d1
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x419a5ec
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
mov dword [esp], eax
push esi
call sub.kernel32.dll_CloseHandle
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x419d7d0
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffed8
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 8]
push eax
push edi
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
jne 0x419d855
cmp dword [esp + 0x14], 0x1000
jne 0x419d855
cmp dword [esp + 8], 0
je 0x419d855
push 0x104
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
test eax, eax
je 0x419d855
mov eax, dword [esp + 8]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x419d855
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
mov dword [esp], eax
mov eax, dword [esp]
cmp dword [eax], 0x4550
jne 0x419d855
mov eax, dword [esi]
mov edx, dword [esp]
add eax, dword [edx + 0x78]
mov dword [ebp], eax
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x128
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x419ffb8
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffeec
cmp dword [0x41fd2c8], 0xffffffff
jne 0x41a0007
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x41a0000
mov eax, esp
mov edx, 0x114
call fcn.04196fe8
mov dword [esp], 0x114
mov eax, esp
push eax
call sub.kernel32.dll_GetVersionExW
cmp dword [esp + 4], 6
setae al
and eax, 0x7f
mov dword [0x41fd2c8], eax
jmp 0x41a0007
xor eax, eax
mov dword [0x41fd2c8], eax
cmp dword [0x41fd2c8], 1
sete al
add esp, 0x114
ret

Function at 0x41a0758
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x41a080f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, 0x41a0828
call fcn.04199aec
push dword [ebp - 0xc]
push 0x41a083c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov cl, byte [ebp - 1]
mov eax, 0x41a0848
call fcn.041a061c
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.04194a98
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.04194bd8
push eax
call fcn.041a0338
mov esi, eax
test esi, esi
je 0x41a07f4
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x41a07ee
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a0816
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.04194760
ret

Function at 0x41a0aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, eax
xor esi, esi
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x41a0b11
mov ebx, 0x5f040000
jmp 0x41a0aff
cmp dword [esp + 0x10], 0x10000
jne 0x41a0add
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
jmp 0x41a0b11
cmp dword [esp + 0xc], 0x10000
jae 0x41a0af1
mov dword [esp + 0xc], 0x10000
jmp 0x41a0af9
and dword [esp + 0xc], 0xffff0000
mov eax, dword [esp + 0xc]
add ebx, eax
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
je 0x41a0abd
push 0x40
push 0x1000
push edi
push esi
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x41a0c6c
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x41fd2b4]
cmp eax, 0x1c
jne 0x41a0ce7
cmp dword [ebp - 0xc], 0x1000
jne 0x41a0ce2
cmp dword [ebp - 0x18], 0
je 0x41a0ce2
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x41a0ce2
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x41a0cc1
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x41a0ce7
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x41fd284]
cmp eax, 0
je 0x41a0ce2
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x41fd2d0]
add ebx, dword [ebp - 0x10]
jmp 0x41a0c83
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x41a467c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x41a4861
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, 0x41a487c
call fcn.0419d61c
mov dword [0x4203904], eax
xor edx, edx
mov eax, 0x41a48a0
call fcn.0419d61c
mov dword [0x4203908], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.04194d08
lea eax, [ebp - 8]
call fcn.04194c30
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.04194c30
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.04194c30
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.04194c30
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.04194c30
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, 0x41a48c8
call fcn.04199aec
push dword [ebp - 0xc]
push 0x41a48d8
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.04199780
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 4
call fcn.04194a98
mov eax, dword [ebp - 8]
call fcn.04194bd8
push eax
push 0
push 0
call fcn.04196c18
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x41a4846
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [0x42038f8], esi
mov dword [0x42038fc], edi
cmp dword [0x4203904], 0
je 0x41a4798
cmp dword [0x4203908], 0
jne 0x41a4818
mov eax, 0x41a48e4
call fcn.0419d71c
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x41a482a
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x41a482a
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x41a482a
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x41a482a
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x41a482a
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x41a482a
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x4203900], edx
mov edx, 0x41a462c
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 4]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov bl, 1
jmp 0x41a482a
push 0x41a45d8
push 1
call dword [0x4203904]
test eax, eax
setne bl
test bl, bl
jne 0x41a4846
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a4868
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.04194760
ret
Function at 0x41a4900
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x4203904], 0
je 0x41a4918
cmp dword [0x4203908], 0
jne 0x41a496f
mov eax, 0x41a4988
call fcn.0419d71c
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x41a4955
mov eax, dword [0x4203900]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x41a497a
push 0x41a45d8
call dword [0x4203908]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41a7aa4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x41a7b81
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x41fd3c0], 0
jne 0x41a7b4d
lea edx, [ebp - 8]
mov eax, 0x41a7b98
call fcn.04199aec
push dword [ebp - 8]
lea edx, [ebp - 0xc]
mov eax, 0x41a7ba8
call fcn.04199aec
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.04199780
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 3
call fcn.04194a98
mov eax, dword [ebp - 4]
call fcn.04194bd8
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
push 0
push 0
push 0
push 0xf001f
push ebx
call sub.kernel32.dll_MapViewOfFile
mov dword [0x41fd3c0], eax
mov eax, dword [0x41fd3c0]
xor edx, edx
mov dword [eax], edx
push ebx
call sub.kernel32.dll_CloseHandle
cmp dword [0x41fd3c0], 0
je 0x41a7b64
mov eax, dword [0x41fd3c0]
call fcn.041a7a94
mov ebx, eax
jmp 0x41a7b66
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a7b88
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.04194760
ret
Function at 0x41a8090
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x41a821b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x41a8200
xor eax, eax
push ebp
push 0x41a81f9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x41a81e2
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x41a81dc
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x1c]
mov eax, 0x41a8234
call fcn.04199aec
mov eax, dword [ebp - 0x1c]
call fcn.04194bd8
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x41a8158
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x20]
mov eax, 0x41a8250
call fcn.04199aec
mov eax, dword [ebp - 0x20]
call fcn.04194bd8
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x41a818b
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x41a81c8
inc esi
xor ecx, ecx
lea edi, [ecx + ecx*2]
mov eax, dword [ebx + edi*4 + 4]
mov edx, dword [ebx + edi*4 + 8]
cmp edx, dword [ebp - 0xc]
jne 0x41a81a8
cmp eax, dword [ebp - 0x10]
je 0x41a81c4
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x14]
jne 0x41a81bd
cmp eax, dword [ebp - 0x18]
je 0x41a81c4
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x41a8195
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push ebx
call sub.kernel32.dll_LocalFree_2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a8200
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a8222
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.04194760
ret

Function at 0x41acce4
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 0x41acd1d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0419482c
jmp 0x41acd26
mov eax, ebx
mov edx, esi
call fcn.04194790
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41acd30
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 0x41acd51
mov al, byte [esp]
jmp 0x41acd53
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41ad3e8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x41ad250
mov eax, dword [0x4200b38]
cmp byte [eax], 0
je 0x41ad464
mov eax, dword [0x4200a18]
call fcn.04193078
call fcn.04192ee0
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.041aa498
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 0x41ad4ac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41ad49a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x42009f0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4201660]
call fcn.04195bbc
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 0x41ae1d0
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 0x41ae234
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.041949ac
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.041a9ea8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ae23b
lea eax, [ebp - 0xc]
call fcn.0419473c
ret

Function at 0x41bb490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.04194bd8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41bb4e8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4200be8]
mov dl, 1
mov eax, dword [0x41baf9c]
call fcn.041ad5cc
call fcn.041940c8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.041bb110
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41cbf7c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov edx, ebx
mov ecx, 0xfffffff8
test dl, 1
je 0x41cbf95
shr edx, 1
xor edx, 0xedb88320
jmp 0x41cbf97
shr edx, 1
inc ecx
jne 0x41cbf86
mov dword [eax + ebx*4 + 0xc], edx
inc ebx
cmp ebx, 0x100
jne 0x41cbf7f
pop ebx
ret

Function at 0x41cc2bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
not ebx
dec ecx
test ecx, ecx
jl 0x41cc2fd
inc ecx
xor edx, edx
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edx]
xor eax, ebx
and eax, 0xff
mov esi, dword [ebp - 4]
mov eax, dword [esi + eax*4 + 0xc]
shr ebx, 8
and ebx, 0xffffff
xor eax, ebx
mov ebx, eax
inc edx
dec ecx
jne 0x41cc2d7
mov eax, ebx
not eax
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x41cc514
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], edx
mov ebx, dword [ebp + 8]
not ebx
mov edx, ecx
dec edx
test edx, edx
jl 0x41cc570
inc edx
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 8]
movzx ecx, byte [ecx + esi]
xor ecx, ebx
and ecx, 0xff
shr ebx, 8
and ebx, 0xffffff
xor ebx, dword [eax + ecx*4 + 0xc]
mov ecx, ebx
xor ecx, 0
and ecx, 0xff
shr ebx, 8
and ebx, 0xffffff
xor ebx, dword [eax + ecx*4 + 0xc]
inc dword [ebp - 8]
dec edx
jne 0x41cc533
mov eax, ebx
not eax
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x41ccd0c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
not ebx
mov dword [edx], ebx
mov eax, dword [eax + 4]
not eax
mov dword [edx + 4], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x41ccd8a
inc eax
mov dword [ebp - 0x10], 0
mov ebx, dword [ecx]
mov ebx, dword [edx + ebx*4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
movzx esi, byte [esi + edi]
xor ebx, esi
and ebx, 0xff
mov dword [ebp - 0x14], ebx
mov ebx, dword [ecx]
mov ebx, dword [edx + ebx*4]
shr ebx, 8
and ebx, 0xffffff
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
xor ebx, dword [esi + edi*4 + 0xc]
mov esi, dword [ecx]
mov dword [edx + esi*4], ebx
mov ebx, dword [ecx]
inc ebx
and ebx, 1
mov dword [ecx], ebx
inc dword [ebp - 0x10]
dec eax
jne 0x41ccd45
not dword [edx]
not dword [edx + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc