joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404590
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x4c0
push esi
mov esi, ecx
mov dword [esp + 0x4c0], 0
call fcn.004010a0
lea eax, [esp + 0x28]
mov dword [esp + 0xbc], 1
push eax
mov dword [esp + 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x38]
sub eax, 0
je 0x40468e
dec eax
je 0x404661
dec eax
jne 0x404699
lea ecx, [esp + 4]
mov dword [esp + 0xbc], 2
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
and eax, 0xffff
dec eax
je 0x404624
dec eax
je 0x404617
dec eax
jne 0x40462f
mov dword [esp + 0xbc], 5
jmp 0x40462f
mov dword [esp + 0xbc], 3
jmp 0x40462f
mov dword [esp + 0xbc], 4
mov eax, dword [esp + 0x2c]
cmp eax, 4
jb 0x404643
mov dword [esp + 0x4c0], 1
mov edx, dword [esp + 0x30]
push edx
push eax
lea eax, [esp + 0xc8]
push str._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x404699
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0xc8]
push str._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [esp + 0x4c0], 1
jmp 0x404699
mov dword [esp + 0xbc], 7
lea ecx, [esp + 0xbc]
push ecx
mov ecx, esi
call fcn.00401060
mov ecx, eax
call fcn.00404920
mov eax, 1
pop esi
add esp, 0x4c0
ret

Function at 0x404750
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x14]
push edi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8

Function at 0x405420
Capabilities:
Hash data with crc32

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x405465
push 0x400
call fcn.004075a4
add esp, 4
mov dword [esi + 0x6c], eax
xor ecx, ecx
mov eax, ecx
mov edx, 8
test al, 1
je 0x405450
shr eax, 1
xor eax, 0xedb88320
jmp 0x405452
shr eax, 1
dec edx
jne 0x405443
mov edx, dword [esi + 0x6c]
inc ecx
cmp ecx, 0xff
mov dword [edx + ecx*4 - 4], eax
jle 0x40543c
pop esi
ret

Function at 0x405490
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov edx, eax
dec eax
test edx, edx
je 0x4054cc
mov edx, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [ecx + 0x6c]
lea esi, [eax + 1]
mov eax, dword [esp + 0x18]
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
inc edx
shr eax, 8
mov ecx, dword [edi + ecx*4]
xor eax, ecx
dec esi
jne 0x4054ac
pop edi
pop esi
pop ebx
ret 0xc
mov eax, dword [esp + 0xc]
ret 0xc
Function at 0x405720
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40e1de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x108], ebx
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
mov edi, dword [esp + 0x20]
lea eax, [esi + 4]
push edi
push eax
mov dword [esp + 0x20], ebx
mov dword [esi], 0x40f340
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.00405d40
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push edi
mov dword [esi + 0x110], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x4057be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
jmp 0x40584d
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.004075a4
mov edi, eax
mov ecx, 0xb
xor eax, eax
mov dword [esi + 0x118], edi
rep stosd dword es:[edi], eax
add esp, 4
stosw word es:[edi], ax
mov ecx, dword [esi + 0x110]
mov edx, dword [esi + 0x108]
push ebx
push ebx
push ecx
push edx
mov ecx, esi
call fcn.00405e50
test eax, eax
je 0x40584d
mov ecx, dword [esi + 0x118]
mov edx, dword [esi + 0x108]
lea eax, [esp + 0x20]
push ebx
push eax
push 0x2e
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40584d
cmp dword [esp + 0x20], ebx
je 0x40584d
mov ecx, esi
call fcn.004059f0
test eax, eax
je 0x40584d
mov eax, dword [esi + 0x118]
mov ax, word [eax + 0xe]
cmp ax, bx
je 0x40584d
and eax, 0xffff
mov ecx, esi
push eax
call fcn.00405ca0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x405b60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x405ba9
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x405ba9
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esi + 4]
push 0x80000000
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405bb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov ecx, dword [esp + 0x18]
push 0
push 0
push ecx
push ebx
mov ecx, esi
call fcn.00405e50
test eax, eax
je 0x405ba9
mov edx, dword [esp + 0x1c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x405c05
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x114], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov edi, dword [ebp + 0x10c]
mov ebp, 0x400
cmp edi, ebp
jae 0x405c16
mov ebp, edi
push ebp
call fcn.004075a4
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405c77
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
sub edi, eax
je 0x405c77
test eax, eax
je 0x405c77
cmp edi, 0x400
jae 0x405c63
mov ebp, edi
lea ecx, [esp + 0x14]
push 0
push ecx
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405c35
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
mov edx, dword [esp + 0x18]
push edx
call edi
push esi
call fcn.00407599
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x405ca0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
test eax, eax
push edi
mov ebx, ecx
mov dword [esp + 0x10], 0
jle 0x405d34
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x138
call fcn.004075a4
mov esi, eax
add esp, 4
mov ecx, 0x4e
xor eax, eax
mov edi, esi
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x108]
lea eax, [esp + 0x18]
push eax
push 0x138
push esi
push ecx
call ebp
test eax, eax
je 0x405d34
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405d34
push esi
lea ecx, [ebx + 0x11c]
call fcn.00405f00
mov edx, dword [esi + 0x10c]
mov eax, dword [ebx + 0x108]
push 1
push 0
push edx
push eax
mov ecx, ebx
call fcn.00405e50
test eax, eax
je 0x405d34
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x405cbf
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x405d40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x130
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
mov edi, ecx
push 0x80
push 3
push ebp
push 3
lea eax, [edi + 4]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405d88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x114], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x44]
push 0x40
push edx
push esi
call ebx
mov eax, dword [esp + 0x78]
push 0
push 0
push eax
push esi
mov ecx, edi
call fcn.00405e50
test eax, eax
jne 0x405dbf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x84]
push 0x18
push edx
push esi
call ebx
mov eax, dword [esp + 0x90]
push 1
and eax, 0xffff
push 0
push eax
push esi
mov ecx, edi
call fcn.00405e50
test eax, eax
jne 0x405dfb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
xor edi, edi
cmp word [esp + 0x82], di
jbe 0x405e32
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x28
push edx
push esi
call ebx
test di, di
jne 0x405e21
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add ebp, edx
inc edi
cmp di, word [esp + 0x82]
jb 0x405e07
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x130
ret

Function at 0x4061b0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x41473c]
sub esp, 0x14
lea ecx, [esp]
push esi
push eax
push str._04x
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.USER32.dll_CharNextA]
add esp, 0xc
lea edx, [esp + 4]
push edx
call esi
push eax
call esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0x41433c
push 0x12c
push eax
push 0x413da0
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop esi
add esp, 0x14
ret
Function at 0x406480
Capabilities:
Get disk size

Disassembly:
sub esp, 0x828
push ebx
mov ebx, dword [esp + 0x834]
push esi
push edi
xor edi, edi
push str.KERNEL32
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4065b4
push ebp
push str.GetDiskFreeSpaceExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
xor eax, eax
cmp ebp, eax
je 0x406535
mov eax, dword [esp + 0x83c]
lea ecx, [esp + 0x438]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x438]
push edx
call fcn.00406880
test eax, eax
je 0x4064f2
lea eax, [esp + 0x438]
push eax
call fcn.00406780
lea ecx, [esp + 0x20]
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x440]
push eax
push ecx
call ebp
test eax, eax
je 0x4065a0
mov edx, dword [esp + 0x20]
push esi
shr edx, 0xa
mov dword [ebx], edx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x828
ret
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x83c]
mov byte [esp + 0x3b], 0
mov cl, byte [eax]
mov dl, byte [eax + 1]
mov al, byte [eax + 2]
mov byte [esp + 0x38], cl
mov byte [esp + 0x39], dl
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3a], al
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4065a0
mov eax, dword [esp + 0x18]
mov edi, 1
imul eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
shr eax, 0xa
mov dword [ebx], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x828
ret
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x828
ret

Function at 0x406690
Capabilities:
Get disk information

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
mov esi, dword [esp + 0x18]
xor ebx, ebx
mov cl, 0x3a
mov al, 0x5c
push edi
mov edi, dword [esp + 0x14]
mov byte [esi], bl
mov byte [esi + 1], cl
mov byte [esi + 2], al
mov byte [esi + 3], bl
mov byte [esp + 0x1d], cl
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], bl
mov al, bl
lea ecx, [esp + 0x1c]
add al, 0x41
push ecx
mov byte [esp + 0x20], al
call ebp
cmp eax, edi
jne 0x4066f7
mov eax, dword [esp + 0x18]
mov dl, byte [esp + 0x1c]
push eax
push esi
mov byte [esi], dl
call fcn.00406430
add esp, 8
test eax, eax
je 0x4066f7
push esi
call fcn.00406620
add esp, 4
test eax, eax
jne 0x406705
inc ebx
cmp ebx, 0x1a
jl 0x4066bf
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4068b0
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
push edi
mov dword [esp + 0x14], 1
call ebx
add eax, 2
push eax
call fcn.004075a4
add esp, 4
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x411314
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov edi, esi
call ebx
mov ebx, eax
xor ebp, ebp
test ebx, ebx
jbe 0x40692e
cmp byte [edi], 0x5c
jne 0x40691e
push 0
push esi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40691b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406926
mov byte [edi], 0x5c
inc edi
inc ebp
cmp ebp, ebx
jb 0x4068f9
jmp 0x40692e
mov dword [esp + 0x10], 0
push esi
call fcn.00407599
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40696c
test al, 0x10
jne 0x40696c
mov eax, 1
ret 4
xor eax, eax
ret 4

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40699c
test al, 0x10
je 0x40699c
mov eax, 1
ret 4
xor eax, eax
ret 4

Function at 0x406b70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x474
xor eax, eax
push edi
mov dword [esp + 8], eax
mov ecx, 0x11
mov dword [esp + 0xc], eax
lea edi, [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x480]
mov dword [esp + 0x18], 0x44
test eax, eax
mov dword [esp + 0x44], 1
je 0x406bc3
mov word [esp + 0x48], 1
mov ecx, dword [esp + 0x47c]
lea edx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
lea edx, [esp + 0x94]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406c74
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push esi
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push 0
push eax
push 1
call esi
test eax, eax
je 0x406c4a
cmp eax, 1
jne 0x406c4a
push 0
push 0
push 0
lea ecx, [esp + 0x6c]
push 0
push ecx
call edi
mov eax, dword [esp + 0x64]
cmp eax, 0x11
je 0x406c4a
cmp eax, 0x10
je 0x406c4a
cmp eax, 0x12
jne 0x406c0d
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, dword [esp]
add esp, 0x474
ret 8
mov eax, 0xcccccccc
pop edi
add esp, 0x474
ret 8
Function at 0x406c90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x454
xor eax, eax
push edi
mov dword [esp + 4], eax
mov ecx, 0x11
mov dword [esp + 8], eax
lea edi, [esp + 0x14]
mov dword [esp + 0xc], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov word [esp + 0x44], ax
mov eax, dword [esp + 0x460]
mov dword [esp + 0x14], 0x44
test eax, eax
mov dword [esp + 0x40], 1
pop edi
je 0x406cdc
mov word [esp + 0x40], 1
mov ecx, dword [esp + 0x458]
lea edx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push 0x20
push 1
push 0
lea edx, [esp + 0x70]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
add esp, 0x454
ret 8

Function at 0x406d20
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
call fcn.00406db0
test eax, eax
je 0x406d8e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406d8e
lea edx, [esp + 4]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
add esp, 0x1c
ret
Function at 0x406de0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x20
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0
push 8
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 0
mov byte [esp + 0x2a], 0
mov byte [esp + 0x2b], 0
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406e54
call esi
cmp eax, 0x3f0
jne 0x406e43
lea ecx, [esp + 0x10]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
je 0x406edd
test eax, eax
je 0x406edd
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 2
push eax
call edi
test eax, eax
jne 0x406edd
call esi
cmp eax, 0x7a
jne 0x406edd
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004075a4
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
push eax
test esi, esi
push esi
push 2
setne bl
push ecx
mov byte [esp + 0x38], bl
call edi
test eax, eax
je 0x406ed0
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x406ee6
test bl, bl
je 0x406edd
push esi
call fcn.00407599
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
mov eax, dword [esi]
xor edi, edi
test eax, eax
push ebp
mov dword [esp + 0x1c], 0
jbe 0x406f27
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebp, [esi + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp]
push ecx
push edx
call ebx
test eax, eax
jne 0x406f1b
mov eax, dword [esi]
inc edi
add ebp, 8
cmp edi, eax
jb 0x406f00
jmp 0x406f23
mov dword [esp + 0x1c], 1
mov bl, byte [esp + 0x28]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test bl, bl
pop ebp
je 0x406f40
push esi
call fcn.00407599
add esp, 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x406f50
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [0x414874]
sub esp, 0x34
cmp eax, ecx
jne 0x406f6a
mov eax, dword [0x411420]
cmp eax, 0xffffffff
jne 0x406fb0
lea eax, [esp]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x406faa
lea ecx, [esp]
push ecx
call fcn.004075e7
add esp, 4
lea edx, [esp + 0x14]
push 2
push edx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x406faa
movsx eax, word [esp + 0x14]
mov dword [0x411420], eax
mov ax, word [0x411420]
add esp, 0x34
ret
Function at 0x406fc0
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x14
lea eax, [esp]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x406ffa
lea edx, [esp]
push edx
call fcn.00407672
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [ecx], eax
mov eax, 1
add esp, 0x14
ret
xor eax, eax
add esp, 0x14
ret
Function at 0x1000d330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000d33f
pop dword [ebp - 0xc]
mov eax, 0x8aea3af1
add eax, 0x8516984e
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x39b62
push 0
mov eax, 0x11120189
sub eax, 0x10d5fbd
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x9faf93bc
sub ecx, 0x9faf5a9d
mov edx, eax
mov edi, 0xc6bb5d39
sub edi, 0xb6b4fd39
add edi, dword [ebp - 0xc]
mov esi, 0xca7bad2d
sub esi, 0xc5cfe7ea
sub dword [ebp - 4], edi
mov ebx, dword [edi]
sub dword [ebp - 4], 0xcd2327fe
sub ebx, esi
mov dword [ebp - 8], 0x831a39ac
mov dword [edx], ebx
xor dword [ebp - 8], edi
add edx, 4
add edi, 0xa1e6eb22
sub edi, 0xa1e6eb1e
loop 0x1000d39e
add eax, 0xc95614d2
sub eax, 0xc9553d83
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x41b60b
Capabilities:
Terminate process

Disassembly:
call fcn.0041b618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4

Function at 0x10001070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
jmp 0x1000113c
lea eax, [ebp - 0x104]
push eax
call fcn.100012e8
push 0x1000107e
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x10001209
lea eax, [ebp - 0x108]
push eax
push 0x20019
push 0
push 0x1000109d
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x1000126e
mov dword [ebp - 0x10c], 0x103
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x100010b7
push dword [ebp - 0x108]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x108]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x1000126e
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x100011ee
mov word [ebx], 0x5c
push 0x10001088
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x1000126e
mov dword [0x1000300c], eax
push 0x10001092
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x10001263
push eax
push 0x3ea
call eax
pop edx
test eax, eax
je 0x10001263
mov dword [0x10003008], eax
push 0x3eb
mov ebx, section..data
call edx
test eax, eax
je 0x10001263
mov dword [section..data], edx
call 0x1000124a
add dword [esp], 0x4db6
call eax
mov dword [0x10003004], eax
sub esp, 4
pop dword [0x10003010]
leave
ret
push dword [0x1000300c]
call sub.KERNEL32.dll_FreeLibrary
mov dword [0x1000300c], 0
mov dword [section..data], 0xffffffff
mov dword [0x10003010], 0
mov dword [0x10003004], 0
mov dword [0x10003008], 0
push 0x10
push 0x10001136
push 0x100010bc
push 0
call sub.USER32.dll_MessageBoxA
push 0xffffffffffffffff
call sub.KERNEL32.dll_ExitProcess
leave
ret
Function at 0x21383e0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x21383ea
pushal
call 0x21383f0
pop ebp
sub ebp, 0x10
sub ebp, 0x1d383e0
jmp 0x2138406
mov eax, 0x1d383e0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c0
mov edx, 0x30c4658c
xor byte [eax], dl
inc eax
dec ecx
jne 0x213841d
jmp 0x2138430
pop es
inc ecx
pop es
add eax, 0x8c8c8cb0
or eax, 0x8c8c744d
mov word [edi - 0x737acbbf], cs
mov word [esi + esi - 0x7373735c], cs
jnp 0x21384ba
pop dword [edi + eax + 0xd]
or byte [esp + ecx*4 - 0x23b67074], 0xdc
in al, 0x5c
in eax, dx
xchg ebx, eax
mov esp, fs
pushfd
scasb al, byte es:[edi]
cmp byte [ebp - 0x1b575f73], cl
invalid
test al, 0x70
add eax, 0x8964a880
mov word [esp + ecx*4 - 0x7371389b], cs
mov word [ecx], es
call 0xa218f577
test al, 0xd8
sal dword [ebx - 7], 1
xor byte [ebx - 7], 0x84
hlt