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

Disassembly:
sub esp, 0x6c
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x18]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100046c3
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 1
push 1
push edi
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100046bc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x20]
push ecx
push 0xc
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x100046b5
push 0x44
lea eax, [esp + 0x34]
push edi
push eax
call fcn.10009ef0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push edi
xor eax, eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x44], str.WinSta0Default
mov dword [esp + 0x20], edi
lea esi, [edi + 0x30]
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x10004674
mov esi, 0x430
jmp 0x10004678
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
push edi
push edx
push esi
push edi
push edi
push edi
push str._RUN
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x100046b5
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov edx, dword [esp + 0x10]
push edx
call ebx
mov eax, dword [esp + 0x18]
push eax
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x6c
ret

Function at 0x100046d0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004710
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.10005ee8
add esp, 0x230
ret
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x100046f7
lea ecx, [esp + 0x2c]
push ebx
push ecx
call fcn.1000ce70
add esp, 8
test eax, eax
je 0x10004752
lea edx, [esp + 8]
push edx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10004727
jmp 0x10004756
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.10005ee8
add esp, 0x230
ret
Function at 0x10004810
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov ebx, str.explorer.exe
xor edi, edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
call fcn.100046d0
push str.SeTcbPrivilege
mov esi, eax
call fcn.10004780
add esp, 4
push str.SeDebugPrivilege
call fcn.10004780
add esp, 4
cmp esi, ebp
jne 0x10004857
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push esi
push ebp
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push 0xf01ff
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000496b
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 1
push 1
push ebp
push 0x2000000
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x10004960
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, dword [esp + 0x10]
push 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push 0x44
lea edx, [esp + 0x34]
push ebp
push edx
call fcn.10009ef0
xor eax, eax
add esp, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea esi, [eax + 0x30]
mov eax, dword [esp + 0x10]
push ebp
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x44], str.WinSta0Default
mov dword [esp + 0x20], ebp
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x10004914
mov esi, 0x430
jmp 0x10004918
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
push ebp
push ecx
push esi
push ebp
push ebp
push ebp
push str._LDR
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x10004955
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret

Function at 0x10004c10
Capabilities:
Delete registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push 0x10011e5c
push 0x80000002
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004c51
mov ecx, dword [esp]
push str.TpImmediatelyLoad
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x10004c60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x214], eax
push 0x208
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x10], 0x208
call fcn.10009ef0
push 0x104
lea ecx, [esp + 0x1c]
push 0x10012100
push ecx
call fcn.10006406
add esp, 0x18
lea edx, [esp]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoft
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push str.TpFlag
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0xc]
push str.install
push edx
call fcn.1000ce70
mov ecx, dword [esp + 0x21c]
add esp, 8
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.10005ee8
add esp, 0x218
ret

Function at 0x10004de0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x1f01ff
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004e4b
push ebp
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
mov dword [esp + 0x14], ebx
call fcn.1000d1a2
add esp, 4
push ebx
lea ecx, [esp + 0x14]
push ecx
push edi
mov ebp, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004e42
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ebx, 1
mov dword [edx], edi
mov dword [eax], ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x10004e60
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
push 0x1f01ff
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004eae
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10004ea7
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x10004ed0
Capabilities:
Parse pe header

Disassembly:
test eax, eax
je 0x10004eef
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004eef
mov edx, dword [eax + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x10004eef
test eax, eax
jne 0x10004ef2
xor eax, eax
ret
add eax, 0x18
ret
Function at 0x10004f00
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0xc
test ecx, ecx
je 0x10004f32
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10004f32
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
lea eax, [edx + ecx]
jne 0x10004f32
test eax, eax
je 0x10004f32
add eax, 0x18
je 0x10004f32
add eax, 0x68
jne 0x10004f3a
xor al, al
add esp, 0xc
ret 4
mov edx, dword [eax]
add edx, ecx
cmp dword [eax + 4], 4
mov dword [esp], edx
jb 0x10004f32
test edx, edx
je 0x10004f32
cmp dword [edx + 0xc], 0
push ebx
push ebp
push esi
push edi
je 0x10004ff7
lea esp, [esp]
mov eax, dword [edx + 0x10]
add eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [edx]
add eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [eax]
test eax, eax
je 0x10004fe6
mov esi, dword [edx + 0xc]
mov ebx, eax
shr ebx, 0x1f
add esi, ecx
and bl, 1
je 0x10004f91
and eax, 0x7fffffff
mov ebp, eax
xor edi, edi
jmp 0x10004f97
lea edi, [eax + ecx + 2]
xor ebp, ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x10004fad
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10005003
test bl, bl
je 0x10004fb4
push ebp
jmp 0x10004fb5
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10005003
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
add eax, 4
add ecx, 4
mov dword [esp + 0x14], eax
mov eax, dword [eax]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
test eax, eax
jne 0x10004f77
add edx, 0x14
cmp dword [edx + 0xc], 0
mov dword [esp + 0x10], edx
jne 0x10004f60
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 4
Function at 0x10005010
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
test eax, eax
je 0x10005110
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10005110
mov edx, dword [eax + 0x3c]
cmp dword [edx + eax], 0x4550
lea edi, [edx + eax]
jne 0x10005110
test edi, edi
je 0x10005110
xor eax, eax
cmp eax, 0x100052b0
je 0x10005110
xor ecx, ecx
cmp ecx, 0x10005310
je 0x10005110
test edi, edi
je 0x10005076
lea eax, [edi + 4]
test eax, eax
je 0x10005076
movzx eax, word [eax + 2]
jmp 0x10005078
xor eax, eax
movzx ebp, ax
test edi, edi
je 0x10005089
movzx edx, word [edi + 0x14]
lea ebx, [edx + edi + 0x18]
jmp 0x1000508b
xor ebx, ebx
mov eax, dword [edi + 0x50]
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10005110
mov edi, dword [edi + 0x54]
test edi, edi
jle 0x100050bc
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
sub edi, 1
jne 0x100050b1
test ebp, ebp
jbe 0x100050f3
lea edi, [ebx + 0x14]
mov ebx, ebp
mov ecx, dword [edi]
mov eax, dword [edi - 8]
mov edx, dword [edi - 4]
add ecx, dword [esp + 0x18]
add eax, esi
test edx, edx
jle 0x100050eb
sub ecx, eax
mov ebp, edx
jmp 0x100050e0
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
sub ebp, 1
jne 0x100050e0
add edi, 0x28
sub ebx, 1
jne 0x100050c5
call fcn.100051f0
push esi
call fcn.10004f00
test al, al
jne 0x10005118
push 0x4000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x100051f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push edi
test esi, esi
je 0x10005218
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x10005218
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + esi], 0x4550
lea eax, [ecx + esi]
je 0x1000521c
xor ecx, ecx
jmp 0x1000521e
mov ecx, eax
test esi, esi
je 0x10005249
mov edx, 0x5a4d
cmp word [esi], dx
jne 0x10005249
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x10005249
test eax, eax
je 0x10005249
add eax, 0x18
je 0x10005249
add eax, 0x88
jmp 0x1000524b
xor eax, eax
test ecx, ecx
je 0x100052a7
test eax, eax
je 0x100052a7
mov ebx, dword [eax + 4]
mov eax, dword [eax]
add eax, esi
je 0x1000529c
test ebx, ebx
je 0x1000529c
mov edi, esi
sub edi, dword [ecx + 0x34]
mov dword [esp + 0xc], 0
lea ecx, [ecx]
mov ecx, dword [eax + 4]
push dword [esp + 0xc]
mov edx, dword [eax]
sub ebx, ecx
add edx, esi
push edi
add ecx, 0xfffffff8
add eax, 8
shr ecx, 1
push edx
call fcn.10005120
test eax, eax
je 0x100052a7
test ebx, ebx
jne 0x10005270
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ecx + 0x16]
and al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005360
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, eax
push ebx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100053ae
mov ecx, ebx
call fcn.100027a0
mov edi, eax
cmp edi, 0xffffffff
je 0x100053ae
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push 0
call ebp
mov esi, eax
test esi, esi
je 0x100053ae
push edi
push esi
mov ecx, ebx
call fcn.10002870
test eax, eax
jne 0x100053b6
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp byte [esi], 0x52
jne 0x100053c7
cmp byte [esi + 1], 0x61
jne 0x100053c7
cmp byte [esi + 2], 0x72
je 0x100053a7
mov eax, 0x5a4d
cmp word [esi], ax
je 0x100053f9
lea ecx, [edi + edi*2]
add ecx, ecx
push ecx
push 0
call ebp
mov ebx, eax
test ebx, ebx
je 0x100053ae
push ebx
push edi
push esi
call fcn.10005ca0
add esp, 0xc
cmp eax, edi
jl 0x10005425
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, ebx
push esi
call fcn.10005010
mov esi, eax
add esp, 4
test esi, esi
je 0x10005434
call fcn.10004ed0
test eax, eax
je 0x10005434
mov edx, dword [eax + 0x10]
push 0
push 1
push esi
add edx, esi
call edx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10005650
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 4]
push eax
push 0x40
push esi
push edi
call ebx
test eax, eax
jne 0x1000566a
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0xc]
push esi
push ecx
push edi
call fcn.1000a5e0
mov eax, dword [esp + 0x10]
add esp, 0xc
lea edx, [esp + 4]
push edx
push eax
push esi
push edi
call ebx
pop ebx
pop ecx
ret
Function at 0x100056f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push edi
mov edi, eax
test edi, edi
je 0x100057c9
cmp dword [esp + 0xc], 0
je 0x100057c9
cmp dword [esp + 0x10], 0
je 0x100057c9
push ebx
lea ebx, [esp + 8]
call fcn.10005690
test eax, eax
jne 0x10005724
pop ebx
pop edi
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
mov esi, dword [esp + 0x10]
push 0x40
push 0x1000
lea eax, [esi + 0xe]
push eax
push 0
call ebp
mov ebx, eax
mov dword [ebx], esi
push esi
add ebx, 4
lea eax, [ebx + 5]
push edi
push eax
mov dword [esp + 0x1c], eax
call fcn.1000a5e0
add esp, 0xc
push 0x40
push 0x1000
push esi
push 0
call ebp
push esi
mov ebp, eax
push 0x90
push ebp
call fcn.10009ef0
mov eax, dword [esp + 0x24]
sub eax, ebx
mov byte [ebx], 0xe9
mov ecx, edi
sub ecx, ebx
sub eax, 5
mov dword [ebx + 1], eax
mov byte [ebx + esi + 5], 0xe9
sub ecx, 0xa
mov dword [ebx + esi + 6], ecx
sub ebx, edi
sub ebx, 5
push ebp
mov byte [ebp], 0xe9
mov dword [ebp + 1], ebx
call fcn.10005650
add esp, 0x10
push 0x8000
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
mov dword [eax], edx
mov eax, 1
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x10005ee8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10005ef2
repz ret
jmp fcn.100068f6
Function at 0x1000c13a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000765e
and dword [ebp - 4], 0
cmp dword [0x1001e9e0], 0
mov ebx, eax
jne 0x1000c1eb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000c29c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000c29c
push eax
call fcn.100075ec
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001e9e0], eax
call esi
push eax
call fcn.100075ec
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001e9e4], eax
call esi
push eax
call fcn.100075ec
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1001e9e8], eax
call esi
push eax
call fcn.100075ec
pop ecx
mov dword [0x1001e9f0], eax
test eax, eax
je 0x1000c1eb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100075ec
pop ecx
mov dword [0x1001e9ec], eax
mov eax, dword [0x1001e9ec]
cmp eax, ebx
je 0x1000c243
cmp dword [0x1001e9f0], ebx
je 0x1000c243
push eax
call fcn.10007667
push dword [0x1001e9f0]
mov esi, eax
call fcn.10007667
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000c243
test edi, edi
je 0x1000c243
call esi
test eax, eax
je 0x1000c23a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000c23a
test byte [ebp - 0xc], 1
jne 0x1000c243
or dword [ebp + 0x10], 0x200000
jmp 0x1000c27c
mov eax, dword [0x1001e9e4]
cmp eax, ebx
je 0x1000c27c
push eax
call fcn.10007667
pop ecx
test eax, eax
je 0x1000c27c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000c27c
mov eax, dword [0x1001e9e8]
cmp eax, ebx
je 0x1000c27c
push eax
call fcn.10007667
pop ecx
test eax, eax
je 0x1000c27c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001e9e0]
call fcn.10007667
pop ecx
test eax, eax
je 0x1000c29c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000c29e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a54
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.004040b0
test esi, esi
jne 0x402a8a
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.004041a0
jmp 0x402aa8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402aa8
cmp dword [ebx], 0
je 0x402aa8
dec esi
jmp 0x402a91
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403154
Capabilities:
Query or enumerate registry value

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

Function at 0x403eb0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x467048], 0
je 0x403f11
cmp word [0x46721c], 0xd7b2
jne 0x403ed9
cmp dword [0x467224], 0
jbe 0x403ed9
mov eax, 0x467218
call dword [0x467234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46506c
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 0x403f38
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x465030], 0
jne 0x403f2d
push 0
push 0x465064
push 0x46506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404064
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.004026cc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x467049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40402c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405c64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405cca
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404320
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d18
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405cb4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405cd1
lea eax, [ebp - 0x10]
call fcn.004040b0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404570
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4086dd
test al, 0x10
jne 0x4086e1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b324
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b35d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041a0
jmp 0x40b366
mov eax, ebx
mov edx, esi
call fcn.00404104
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b370
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b391
mov al, byte [esp]
jmp 0x40b393
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ba18
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b890
mov eax, dword [0x46694c]
cmp byte [eax], 0
je 0x40ba94
mov eax, dword [0x466680]
call fcn.00402b84
call fcn.00402834
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004089e8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40badc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40baca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x466608]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x467664]
call fcn.00405178
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret