joyce8/EMBER2024-capa huggingface dataset:
Function at 0x625250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x639808
push 0x629288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x625329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x625329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.006281d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x625329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x625329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x62532c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00625351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x625d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x625d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x625d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x625d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x625d94
push eax
push esi
call fcn.0062820b
add esp, 8
pop esi
ret 0x10

Function at 0x625da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x625e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x625e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x63e320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00627dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x625dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x625e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x625ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x625eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x63e320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00627dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x625eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x625e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x626000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x626131
push esi
call fcn.00629145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00618080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x626131
push 0
push ebp
call fcn.006183a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00618260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x62608b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.006182f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x626121
push 0x63e918
push edi
call fcn.006273f0
push eax
push ebx
push esi
call fcn.00625f60
push 0x63e8f8
push edi
call fcn.006273f0
push eax
push ebx
push esi
call fcn.00625f60
push 0x63e8d8
push edi
call fcn.006273f0
push eax
push ebx
push esi
call fcn.00625f60
push 0x63e8c0
push edi
call fcn.006273f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00625f60
push 0x63e8a0
push edi
call fcn.006273f0
push eax
push ebx
push esi
call fcn.00625f60
push 0x63e888
push edi
call fcn.006273f0
push eax
push ebx
push esi
call fcn.00625f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x6271b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00627140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00627140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00627140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00627140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x627bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x627c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x63987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x627c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x627c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40506c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x444b0c
cmp dword [ebp + 0xc], 2
jl 0x405080
mov ebx, 0x444b3c
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x4050b8
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x401f44
mov dword [0x442014], eax
mov eax, 0x401f4c
mov dword [0x442018], eax
mov eax, ebx
call fcn.00404f50
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x4050ed
cmp al, 3
jge 0x4050ed
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4050fe
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x405109
call dword [ecx + eax*4]
cmp dword [0x442034], 0
jne 0x40511f
mov byte [0x44203c], 1
fnstcw word [0x41e018]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00405380
call fcn.00405000
ret 4

Function at 0x4052e8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44204c], 0
je 0x40534f
cmp word [0x442338], 0xd7b2
jne 0x405311
cmp dword [0x442340], 0
jbe 0x405311
mov eax, 0x442334
call dword [0x442350]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x41e9b0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40537c
call fcn.00405c48
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41e022], 0
jne 0x40536b
push 0
push 0x41e9aa
push 0x41e9b0
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406e84
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x406fe9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405568
cmp si, word [0x41e9e8]
jb 0x406f1c
cmp si, word [0x41ebe8]
ja 0x406f1c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x406f1c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x41e9e8]
jae 0x406ef6
mov edi, ebx
dec edi
jmp 0x406f17
cmp si, word [ebx*8 + 0x41e9e8]
jbe 0x406f06
inc ebx
mov dword [ebp - 8], ebx
jmp 0x406f17
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x41e9ec]
call fcn.00406d94
jmp 0x406f1c
cmp edi, dword [ebp - 8]
jae 0x406ee0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x406fcb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x406fcb
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00405de0
push dword [ebp - 0x160]
push 0x407004
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00405de0
push dword [ebp - 0x164]
push 0x407014
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00405de0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00405f98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ff0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004055c8
ret
Function at 0x40719c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40729f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x444b7c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x444b94]
jne 0x4071e8
mov eax, esi
mov edx, 0x444b96
mov ecx, 0x55
call fcn.00405de0
push 0x444b7c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x407289
push 0x444b7c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405568
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407257
cmp byte [0x444b78], 0
je 0x40721c
mov edx, esi
mov eax, ebx
call fcn.00407080
jmp 0x407257
mov edx, esi
mov eax, ebx
call fcn.00406e84
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x407257
cmp dword [esi], 0
je 0x407240
mov eax, esi
mov edx, 0x4072b8
call fcn.00405eb8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00406e84
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00405eb8
push 0x444b7c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x444b94], bx
push 0xaa
mov eax, dword [esi]
call fcn.00405d4c
push eax
push 0x444b96
call sub.kernel32.dll_lstrcpynW
push 0x444b7c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4072a6
lea eax, [ebp - 4]
call fcn.00405568
ret
Function at 0x4074d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040564c
xor eax, eax
push ebp
push 0x4076f9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x407514
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40752e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00405d4c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4076e3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407708
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4075fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407708
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4075fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407744
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4075fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407744
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4075fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407778
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4075fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4077ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4076e3
xor eax, eax
push ebp
push 0x4076dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004072e0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40766c
mov eax, dword [ebp - 0x10]
call fcn.00403bc4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00405da4
jmp 0x4076b7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4077ec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4076b7
mov eax, dword [ebp - 0x10]
call fcn.00403bc4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4077ec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00405da4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4076e3
cmp dword [ebp - 8], 0
je 0x4076d2
mov eax, dword [ebp - 8]
call fcn.00403be0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407700
lea eax, [ebp - 4]
call fcn.00405568
ret
Function at 0x4079dc
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040564c
xor eax, eax
push ebp
push 0x407a9c
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00405de0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405f10
mov eax, dword [ebx]
call fcn.004078a4
test al, al
jne 0x407a79
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00405de0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405f10
mov eax, dword [ebx]
call fcn.004078a4
test al, al
jne 0x407a79
mov eax, ebx
call fcn.00405568
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407aa3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004055c8
lea eax, [ebp - 4]
call fcn.00405568
ret

Function at 0x408138
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x416788
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4167c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004056d0
jmp 0x4167ca
mov eax, ebx
mov edx, esi
call fcn.00405884
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4167d4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4167f6
movzx eax, word [esp]
jmp 0x4167f8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4174cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4175f1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004172d4
mov esi, eax
mov eax, dword [0x441910]
cmp byte [eax], 0
je 0x417599
mov eax, dword [0x441834]
call fcn.00403ec4
call fcn.00403d18
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41749c]
call fcn.00406910
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41760c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4175d5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x44180c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x444c44]
call fcn.004069c8
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4175f8
lea eax, [ebp - 4]
mov edx, dword [0x41749c]
call fcn.0040691c
ret

Function at 0x418b7c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004059a0
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00408118
mov edi, eax
cmp edi, 0x104
jbe 0x418b23
mov eax, edi
add eax, eax
call fcn.00403bc4
mov esi, eax
jmp 0x418b25
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00408118
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x418b60
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x418b4a
mov eax, esp
cmp esi, eax
je 0x418b6d
mov eax, esi
call fcn.00403be0
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x418ba8
cmp bl, 0
je 0x418ba4
cmp bl, 0x41
jl 0x418b9f
cmp bl, 0x5a
jg 0x418b9f
or bl, 0x20
xor al, bl
inc esi
jmp 0x418b83
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x418ae4

Function at 0x418da4
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00405de0
add esp, 0x800
pop ebx
ret
Function at 0x419c8c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffed4
mov esi, eax
test esi, esi
je 0x419da9
push 0x419db4
call sub.kernel32.dll_GetModuleHandleW_1
mov ebx, eax
mov dword [esp], esi
push pe_nt_image_headers32
lea eax, [esp + 0x30]
push eax
push esi
call sub.kernel32.dll_GetModuleFileNameA
push 0x419dd0
push ebx
call fcn.00408b34
mov dword [esp + 8], eax
push 0x419df4
push ebx
call fcn.00408b34
mov dword [esp + 0xc], eax
push 0x419e10
push ebx
call fcn.00408b34
mov dword [esp + 0x10], eax
push 0x419e30
push ebx
call fcn.00408b34
mov dword [esp + 0x14], eax
push 0x419e48
push ebx
call fcn.00408b34
mov dword [esp + 0x18], eax
push 0x419e70
push ebx
call fcn.00408b34
mov dword [esp + 0x1c], eax
push 0x419e94
push ebx
call fcn.00408b34
mov dword [esp + 0x20], eax
push 0x419eac
push ebx
call fcn.00408b34
mov dword [esp + 0x24], eax
push 0x419ec8
push ebx
call fcn.00408b34
mov dword [esp + 0x28], eax
mov edi, fcn.00419bd4
mov ebp, 0x419ab8
sub edi, ebp
push 0x40
push 0x3000
push 0x12c
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
je 0x419da9
mov edx, ebx
mov eax, esp
mov ecx, 0x12c
call fcn.00403d68
push 0x40
push 0x3000
push edi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
test esi, esi
je 0x419da9
mov ecx, edi
mov edx, esi
mov eax, ebp
call fcn.00403d68
mov eax, dword [esp]
call fcn.00419bd4
mov eax, esi
mov esi, eax
mov eax, ebx
call esi
add esp, 0x12c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x419f7c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
mov eax, dword [ebp + 0xc]
call fcn.0040565c
xor eax, eax
push ebp
push 0x419fe0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00405c48
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x104]
mov ecx, 0x104
push 0
call fcn.00405acc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419fe7
lea eax, [ebp + 0xc]
call fcn.0040558c
ret

Function at 0x41a084
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe8
xor ebx, ebx
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 0xc]
push eax
push 0x41a0e4
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
test eax, eax
je 0x41a0dd
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0x10
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
add esp, 0x18
pop ebx
ret