joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008e18
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push dword [ebp + 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push dword [ebp + 0x18]
push eax
push 0x10008de0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000b62d
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x10008e72
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x10008e91
mov dl, byte [ecx + eax]
sub dl, 0x31
xor dl, 0xfc
mov byte [ecx + eax], dl
inc ecx
cmp ecx, dword [esp + 8]
jl 0x10008e7e
ret

Function at 0x10008e92
Capabilities:
Enumerate processes

Disassembly:
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, 0x128
mov ebx, eax
push edi
call fcn.1000a044
pop ecx
mov esi, eax
push esi
push ebx
mov dword [esi], edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10008eeb
push dword [esp + 0x10]
lea edi, [esi + 0x24]
push edi
call fcn.1000e920
pop ecx
pop ecx
jmp 0x10008ee2
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10008eeb
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10008ecc
mov eax, dword [esi + 8]
jmp 0x10008eed
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x10008ef1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e508
push 0x1000b070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push esi
push edi
push str.user32.dll
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call edi
mov ebx, eax
mov dword [ebp - 0x2c], ebx
push str.GetThreadDesktop
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x3c], eax
push str.GetUserObjectInformationA
push ebx
call esi
mov dword [ebp - 0x20], eax
push str.SetThreadDesktop
push ebx
call esi
mov dword [ebp - 0x140], eax
push str.CloseDesktop
push ebx
call esi
mov dword [ebp - 0x38], eax
push str.kernel32.dll
call edi
mov dword [ebp - 0x30], eax
push str.GetCurrentThreadId
push eax
call esi
call eax
push eax
call dword [ebp - 0x3c]
mov esi, eax
mov dword [ebp - 0x28], 1
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x34]
push eax
push 0x100
lea eax, [ebp - 0x13c]
push eax
push 2
push dword [ebp + 8]
call dword [ebp - 0x20]
test eax, eax
je 0x10008fad
push dword [ebp + 8]
call dword [ebp - 0x140]
test eax, eax
jne 0x10008fb2
mov dword [ebp - 0x28], edi
jmp 0x10008fb6
push esi
call dword [ebp - 0x38]
or dword [ebp - 4], 0xffffffff
call fcn.10008fd4
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008fef
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e518
push 0x1000b070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x44], 0x4f
mov byte [ebp - 0x43], 0x70
mov byte [ebp - 0x42], 0x65
mov byte [ebp - 0x41], 0x6e
mov byte [ebp - 0x40], 0x49
mov byte [ebp - 0x3f], 0x6e
mov byte [ebp - 0x3e], 0x70
mov byte [ebp - 0x3d], 0x75
mov byte [ebp - 0x3c], 0x74
mov byte [ebp - 0x3b], 0x44
mov byte [ebp - 0x3a], 0x65
mov byte [ebp - 0x39], 0x73
mov byte [ebp - 0x38], 0x6b
mov byte [ebp - 0x37], 0x74
mov byte [ebp - 0x36], 0x6f
mov byte [ebp - 0x35], 0x70
xor ebx, ebx
mov byte [ebp - 0x34], bl
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x1c], eax
push str.OpenDesktopA
push dword [ebp - 0x24]
call esi
mov edi, eax
push str.CloseDesktop
push dword [ebp - 0x24]
call esi
mov esi, eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
push 0x1ff
push ebx
push ebx
je 0x100090ac
push dword [ebp + 8]
call edi
jmp 0x100090af
call dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x100090c6
push eax
call fcn.10008ef1
pop ecx
test eax, eax
jne 0x100090c9
push dword [ebp - 0x2c]
call esi
mov dword [ebp - 0x20], ebx
or dword [ebp - 4], 0xffffffff
call fcn.100090e6
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100090f5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ADVAPI32.dll
mov byte [ebp - 1], 1
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.OpenProcessToken
push ebx
call esi
push str.AdjustTokenPrivileges
push ebx
mov dword [ebp - 0x10], eax
call esi
push str.LookupPrivilegeValueA
push ebx
mov dword [ebp - 0x18], eax
call esi
push str.kernel32.dll
mov dword [ebp - 0x14], eax
call edi
push str.GetCurrentProcess
push eax
mov dword [ebp - 0xc], eax
call esi
lea ecx, [ebp - 8]
push ecx
push 0x28
call eax
push eax
call dword [ebp - 0x10]
test eax, eax
je 0x100091c9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], 1
neg eax
sbb eax, eax
and eax, 2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
push 0
call dword [ebp - 0x14]
xor eax, eax
lea ecx, [ebp - 0x28]
push eax
push eax
push 0x10
push ecx
push eax
push dword [ebp - 8]
call dword [ebp - 0x18]
push str.KERNEL32.dll
call edi
push str.GetLastError
push eax
call esi
call eax
test eax, eax
je 0x100091a4
and byte [ebp - 1], 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x100091ba
push ebx
call esi
cmp dword [ebp - 0xc], 0
je 0x100091c5
push dword [ebp - 0xc]
call esi
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10009521
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e538
push 0x1000b070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x38], edi
push str.RegCreateKeyExA
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x2c], eax
push str.RegSetValueExA
push edi
call esi
mov dword [ebp - 0x34], eax
push str.RegDeleteKeyA
push edi
call esi
mov dword [ebp - 0x1c], eax
push str.RegDeleteValueA
push edi
call esi
mov dword [ebp - 0x40], eax
push str.RegOpenKeyExA
push edi
call esi
mov dword [ebp - 0x28], eax
push str.RegCloseKey
push edi
call esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x20]
sub eax, ebx
je 0x10009607
dec eax
je 0x10009625
dec eax
je 0x100095e1
dec eax
jne 0x10009682
lea eax, [ebp - 0x3c]
push eax
push 0x2001f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 0x28]
test eax, eax
jne 0x10009682
push dword [ebp + 0x10]
push dword [ebp - 0x3c]
call dword [ebp - 0x40]
jmp 0x10009677
lea eax, [ebp - 0x3c]
push eax
push 0x2001f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 0x28]
test eax, eax
jne 0x10009682
push dword [ebp + 0x10]
push dword [ebp - 0x3c]
call dword [ebp - 0x1c]
jmp 0x10009677
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 0x2c]
test eax, eax
jne 0x10009682
lea eax, [ebp - 0x3c]
push eax
push 0x2001f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 0x28]
test eax, eax
jne 0x10009682
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jbe 0x10009682
cmp esi, 2
jbe 0x1000965e
cmp esi, 4
je 0x10009654
cmp esi, 7
je 0x1000965e
jmp 0x10009682
push 4
lea eax, [ebp + 0x1c]
push eax
push 4
jmp 0x1000966d
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x18]
push esi
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x3c]
call dword [ebp - 0x34]
test eax, eax
jne 0x10009682
mov dword [ebp - 0x20], 1
or dword [ebp - 4], 0xffffffff
call fcn.100096ad
cmp edi, ebx
je 0x10009696
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100096d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x100096d7
xor eax, eax
ret
push 1
pop eax
ret
Function at 0x1000a2c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000a2e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000e072
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1000a303
test byte [esp + 8], 2
je 0x1000a303
call fcn.1000e0e5
mov dword [eax], 0xd
call fcn.1000e0ee
mov dword [eax], 5
jmp 0x1000a2dc
xor eax, eax
ret
Function at 0x4016e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov esi, eax
mov edi, 0x40ba48
sub edi, esi
mov edx, 4
push ebx
jmp 0x401700
mov ecx, 4
mov bl, byte [edi + eax]
xor byte [eax], bl
inc eax
dec ecx
jne 0x401705
dec edx
jne 0x401700
mov byte [ebp - 1], 0xd
mov dword [ebp - 8], 0x40ba38
lea esp, [esp]
movzx ecx, byte [esi + 9]
movzx edx, byte [esi + 5]
mov al, byte [esi + 0xd]
mov byte [esi + 9], dl
movzx edx, byte [esi + 0xa]
mov byte [esi + 0xd], cl
movzx ecx, byte [esi + 1]
mov byte [esi + 1], al
mov al, byte [esi + 2]
mov byte [esi + 2], dl
movzx edx, byte [esi + 7]
mov byte [esi + 0xa], al
mov al, byte [esi + 6]
mov byte [esi + 5], cl
movzx ecx, byte [esi + 0xe]
mov byte [esi + 0xe], al
mov al, byte [esi + 3]
mov byte [esi + 3], dl
movzx edx, byte [esi + 0xf]
mov byte [esi + 6], cl
movzx ecx, byte [esi + 0xb]
mov byte [esi + 0xb], dl
mov byte [esi + 7], cl
mov byte [esi + 0xf], al
mov edi, esi
mov edx, 4
jmp 0x401780
mov eax, edi
mov ecx, 4
jmp 0x401790
movzx ebx, byte [eax]
mov bl, byte [ebx + 0x409148]
mov byte [eax], bl
add eax, 4
dec ecx
jne 0x401790
inc edi
dec edx
jne 0x401780
mov ecx, dword [ebp - 8]
mov eax, esi
mov edx, 4
nop
mov edi, 4
mov bl, byte [ecx]
xor byte [eax], bl
inc ecx
inc eax
dec edi
jne 0x4017b5
dec edx
jne 0x4017b0
mov eax, esi
call fcn.00401440
mov al, byte [ebp - 1]
sub dword [ebp - 8], 0x10
dec al
mov byte [ebp - 1], al
test al, al
jne 0x401720
movzx ecx, byte [esi + 9]
movzx edx, byte [esi + 5]
mov al, byte [esi + 0xd]
mov byte [esi + 9], dl
movzx edx, byte [esi + 0xa]
mov byte [esi + 0xd], cl
movzx ecx, byte [esi + 1]
mov byte [esi + 1], al
mov al, byte [esi + 2]
mov byte [esi + 2], dl
movzx edx, byte [esi + 7]
mov byte [esi + 0xa], al
mov al, byte [esi + 6]
mov byte [esi + 5], cl
movzx ecx, byte [esi + 0xe]
mov byte [esi + 0xe], al
mov al, byte [esi + 3]
mov byte [esi + 3], dl
movzx edx, byte [esi + 0xf]
mov byte [esi + 6], cl
movzx ecx, byte [esi + 0xb]
mov byte [esi + 0xb], dl
mov byte [esi + 7], cl
mov byte [esi + 0xf], al
mov edi, esi
mov edx, 4
mov eax, edi
mov ecx, 4
lea ebx, [ebx]
movzx ebx, byte [eax]
mov bl, byte [ebx + 0x409148]
mov byte [eax], bl
add eax, 4
dec ecx
jne 0x401840
inc edi
dec edx
jne 0x401833
mov edi, 0x40b968
sub edi, esi
mov eax, esi
lea esi, [ecx + 4]
pop ebx
mov ecx, 4
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x401867
dec esi
jne 0x401862
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
test eax, eax
je 0x4018f3
push ebx
push edi
dec eax
mov edi, 0x40ba58
shr eax, 4
sub edi, esi
inc eax
mov dword [ebp - 4], eax
mov edi, edi
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ebx, dword [esi]
mov dword [ebp - 0x10], eax
mov eax, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
call fcn.004016e0
mov eax, 0x10
mov cl, byte [edi + esi]
xor byte [esi], cl
inc esi
dec eax
jne 0x4018c0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
sub edi, 0x10
dec dword [ebp - 4]
mov dword [0x40ba58], ebx
mov dword [0x40ba5c], edx
mov dword [0x40ba60], eax
mov dword [0x40ba64], ecx
jne 0x4018a0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401900
Capabilities:
Create process on windows
Get file size
Read file via mapping
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x40a03c]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
push 0x104
call fcn.00401b6b
push 0x104
mov esi, eax
call fcn.00401b6b
add esp, 8
push 0x3e8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
push 0
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push esi
mov edi, eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea edi, [eax + edi - 1]
mov eax, edi
mov bl, 0xe2
cmp byte [eax], bl
je 0x40199e
dec eax
inc dword [esp + 0x10]
jmp 0x401993
cmp byte [eax - 1], bl
jne 0x4019ad
cmp byte [eax - 2], bl
jne 0x4019ad
cmp byte [eax - 3], bl
je 0x4019b4
dec eax
inc dword [esp + 0x10]
jmp 0x401993
mov esi, dword [esp + 0x10]
push esi
call fcn.00401b6b
mov ecx, eax
mov dword [esp + 0x20], ecx
add esp, 4
mov eax, edi
lea ecx, [ecx + esi - 1]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, bl
je 0x4019dc
mov byte [ecx], dl
dec eax
dec ecx
jmp 0x4019d0
cmp byte [eax - 1], bl
jne 0x4019eb
cmp byte [eax - 2], bl
jne 0x4019eb
cmp byte [eax - 3], bl
je 0x4019f1
mov byte [ecx], bl
dec eax
dec ecx
jmp 0x4019d0
mov eax, edi
xor esi, esi
mov cl, 0xe3
cmp byte [eax], cl
je 0x4019ff
dec eax
inc esi
jmp 0x4019f7
cmp byte [eax - 1], cl
jne 0x401a0e
cmp byte [eax - 2], cl
jne 0x401a0e
cmp byte [eax - 3], cl
je 0x401a12
dec eax
inc esi
jmp 0x4019f7
mov ecx, 0xfffffffc
sub ecx, dword [esp + 0x10]
push 4
push 0x3000
add esi, ecx
push esi
push 0
lea edi, [eax + 1]
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test esi, esi
je 0x401a4b
sub edi, ebx
mov ecx, esi
mov dl, byte [edi + eax]
mov byte [eax], dl
inc eax
dec ecx
jne 0x401a42
mov eax, dword [esp + 0x1c]
call section..text
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [0x40ba58], eax
mov eax, dword [esp + 0x2c]
mov dword [0x40ba5c], ecx
mov dword [0x40ba64], eax
mov eax, esi
mov ecx, ebx
mov dword [0x40ba60], edx
call fcn.00401880
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push 0x409254
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401abe
or eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00401b0d
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
add ebx, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
push edi
call esi
push 1
push 0
push 0
push 0x409254
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00401b0d
mov esp, ebp
pop ebp
ret
Function at 0x401b0d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a03c]
jne 0x401b17
repz ret
jmp fcn.00401d7f

Function at 0x40408c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a03c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402e82
and dword [ebp - 0x14], 0
cmp dword [0x40b8ec], 0
mov dword [ebp - 0x18], eax
jne 0x40413f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4041e7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4041e7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b8ec], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b8f0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b8f4], eax
call edi
push eax
call esi
mov dword [0x40b8fc], eax
test eax, eax
je 0x40413f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b8f8], eax
mov eax, dword [0x40b8f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404198
cmp dword [0x40b8fc], ecx
je 0x404198
push eax
call esi
push dword [0x40b8fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404198
test ebx, ebx
je 0x404198
call edi
test eax, eax
je 0x40418f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40418f
test byte [ebp - 8], 1
jne 0x404198
or dword [ebp + 0x10], 0x200000
jmp 0x4041cb
mov eax, dword [0x40b8f0]
cmp eax, dword [ebp - 0x18]
je 0x4041cb
push eax
call esi
test eax, eax
je 0x4041cb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4041cb
mov eax, dword [0x40b8f4]
cmp eax, dword [ebp - 0x18]
je 0x4041cb
push eax
call esi
test eax, eax
je 0x4041cb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b8ec]
call esi
test eax, eax
je 0x4041e7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4041e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b0d
leave
ret
Function at 0x41b140
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x426138], 0
jne 0x41b1c1
cmp dword [0x426158], 0
jne 0x41b170
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x426158], eax
test eax, eax
jne 0x41b170
push str.GetEnvironmentStrings_failed
call fcn.0041a95c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x426158]
jmp 0x41b184
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004154e4
pop ecx
mov edi, eax
test eax, eax
jne 0x41b17c
lea edi, [ebp + 1]
push edi
call fcn.00414de8
pop ecx
mov ebx, eax
mov dword [0x42613c], ebx
test ebx, ebx
jne 0x41b1ae
xor eax, eax
jmp 0x41b284
push edi
mov edx, dword [0x426158]
push edx
push ebx
call fcn.00415394
add esp, 0xc
jmp 0x41b1e1
xor esi, esi
mov ebx, dword [0x426138]
jmp 0x41b1db
push eax
call fcn.004154e4
pop ecx
test eax, eax
jne 0x41b1d7
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41b1cb
lea ebx, [esi + 4]
push 4
mov dword [0x426140], ebx
inc ebx
push ebx
call fcn.004148c0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41b204
xor eax, eax
jmp 0x41b284
cmp dword [0x426138], 0
jne 0x41b235
xor esi, esi
mov ebx, dword [0x42613c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41b226
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004154e4
pop ecx
mov edi, eax
test eax, eax
jne 0x41b21c
jmp 0x41b266
xor esi, esi
mov ebx, dword [0x426138]
mov eax, dword [esp]
mov edi, eax
jmp 0x41b260
push eax
call fcn.004154e4
pop ecx
test eax, eax
je 0x41b255
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41b259
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41b244
mov eax, dword [0x426138]
test eax, eax
je 0x41b276
push eax
call fcn.00414df8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x426138], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x25142f27
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x1024776
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x419769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41d190
cmp edx, dword [eax]
je 0x41978b
add eax, 8
inc ecx
cmp eax, 0x41d220
jl 0x41977c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41d190]
jne 0x4198b9
mov eax, dword [0x41dbb0]
cmp eax, 1
je 0x419893
test eax, eax
jne 0x4197bc
cmp dword [0x41d0e4], 1
je 0x419893
cmp edx, 0xfc
je 0x4198b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4197f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041a670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041a490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x419836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041a490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c45c
push edi
call fcn.0041af00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041a670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041a680
lea eax, [ebp - 0xa0]
push 0x41c43c
push eax
call fcn.0041a680
push dword [esi + 0x41d194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041a680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041ae75
add esp, 0x2c
pop edi
jmp 0x4198b9
lea eax, [ebp + 8]
lea esi, [esi + 0x41d194]
push 0
push eax
push dword [esi]
call fcn.0041a490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x5ee86b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5ee886
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124b3aab]
pop edx
test eax, eax
je 0x5ee958
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5ee947
test dword [ebp - 0x2a8], 1
jne 0x5ee947
and dword [ebp - 0x2a8], 0x100
jne 0x5ee947
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2bb2]
pop edx
pop esi
test eax, eax
je 0x5ee8ea
jmp 0x5ee947
cmp word [esi], 0x5a4d
jne 0x5ee947
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5ee947
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2bf2]
pop edx
test eax, eax
je 0x5ee947
lea eax, [ebp - 0x28c]
push eax
call fcn.005ee7c7
test eax, eax
jne 0x5ee940
jmp 0x5ee947
mov eax, esi
jmp 0x5ee958
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5ee886
pop esi
leave
ret 4