joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009de1
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
mov edi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
cmp edi, ebx
jne 0x10009dff
mov eax, dword [0x1000d2a8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
mov edx, esi
call fcn.10004e13
cmp edi, ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
jne 0x10009e65
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10009e74
add eax, eax
push eax
push ebx
push dword [0x1000d270]
call edi
mov ebx, eax
test ebx, ebx
je 0x10009e74
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10009e54
mov eax, dword [ebp - 4]
add eax, eax
mov edx, ebx
call fcn.1000680b
xor dword [esi], eax
push ebx
push 0
push dword [0x1000d270]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10009e74
mov eax, dword [esi]
xor eax, dword [0x1000d2dc]
xor eax, 0x46d76429
mov dword [esi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
call ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x10009ec9
add eax, eax
push eax
push 0
push dword [0x1000d270]
call edi
mov edi, eax
test edi, edi
je 0x10009ec9
lea eax, [ebp - 4]
push eax
push edi
call ebx
test eax, eax
je 0x10009eba
mov eax, dword [ebp - 4]
add eax, eax
mov edx, edi
call fcn.1000680b
xor dword [esi + 0xc], eax
push edi
push 0
push dword [0x1000d270]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
xor ecx, ecx
cpuid
lea edi, [ebp - 0x18]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x10]
pop edi
xor eax, dword [ebp - 0x18]
pop ebx
xor dword [esi + 4], eax
leave
ret
Function at 0x10009eee
Capabilities:
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [esi + 0x28]
push ebx
xor ebx, ebx
push edi
lea edi, [esi + 0x2c]
mov dword [ebp - 0xc], ebx
mov dword [edi], ebx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x10009feb
push ebx
push dword [esi + 0x18]
mov dword [ebp - 4], 4
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10009fe2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push ebx
push 0x20000013
push dword [esi + 0x18]
call edi
test eax, eax
je 0x10009fe2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x16
push dword [esi + 0x18]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call edi
mov eax, dword [ebp - 4]
add eax, 2
push eax
call fcn.10005157
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10009fd9
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push 0x16
push dword [esi + 0x18]
call edi
test eax, eax
je 0x10009fc6
shr dword [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
xor eax, eax
mov word [ecx + edx*2], ax
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.10005157
mov edi, eax
cmp edi, ebx
je 0x10009fbd
mov eax, dword [ebp - 4]
inc eax
push eax
push dword [ebp - 0x10]
push edi
call sub.ntdll.dll_wcstombs
add esp, 0xc
mov dword [esi + 0xc], edi
jmp 0x10009fcf
mov dword [ebp - 8], 8
jmp 0x10009fcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push dword [ebp - 0x10]
call fcn.100053bb
jmp 0x10009feb
mov dword [ebp - 8], 8
jmp 0x10009feb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret

Function at 0x1000a1d4
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, edi
je 0x1000a238
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32First
jmp 0x1000a228
mov eax, dword [0x1000d2e0]
lea eax, [eax + 0x1000ee3c]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x1000a22e
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000a1fe
jmp 0x1000a231
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1000a43f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x1000d2dc]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [0x1000d29c]
mov eax, dword [edi + 0x3c]
add eax, edi
movzx edx, word [eax + 6]
movzx esi, word [eax + 0x14]
imul edx, edx, 0x28
xor ecx, 0x150e
movzx ecx, cx
add edx, eax
mov dword [ebp - 0xc], ecx
lea esi, [esi + edx + 0x40]
jmp 0x1000a484
cmp ax, cx
je 0x1000a48e
add esi, 0x14
movzx eax, word [esi]
test ax, ax
jne 0x1000a47c
jmp 0x1000a4f5
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1000a49a
cmp dword [esi + 8], eax
jne 0x1000a4ed
test byte [esi + 3], 2
jne 0x1000a4ed
mov eax, dword [esi + 0x10]
inc eax
push eax
call fcn.10005157
mov ebx, eax
test ebx, ebx
je 0x1000a4ea
test byte [esi + 3], 1
je 0x1000a4fc
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc]
push ebx
add eax, edi
call fcn.10004771
cmp eax, dword [ebp - 8]
jne 0x1000a4d3
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 4
jb 0x1000a4de
mov eax, dword [esi + 4]
xor dword [ebx], eax
cmp dword [ebp - 4], 0
jne 0x1000a547
push ebx
call fcn.100053bb
mov ecx, dword [ebp - 0xc]
movzx eax, byte [esi + 2]
lea esi, [esi + eax*4 + 0x14]
cmp word [esi], cx
je 0x1000a48e
jmp 0x1000a55b
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0xc]
shr ecx, 2
add eax, edi
mov dword [ebp + 0x10], ebx
test ecx, ecx
je 0x1000a52b
mov edx, dword [eax]
sub edx, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
add dword [ebp - 4], edx
add dword [ebp + 0x10], 4
add eax, 4
dec ecx
mov dword [edi], edx
jne 0x1000a514
mov ecx, dword [esi + 0x10]
and ecx, 3
je 0x1000a540
push ecx
push eax
push dword [ebp + 0x10]
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 0xc]
mov byte [ebx + eax], 0
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403fc9
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x403fd6
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x403fd1
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x403fbb
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x403fc3
cmp edx, ebx
jne 0x404111
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add al, byte [ebx]
enter 0x4d39, 8
add al, byte [ebx]
enter 0x4d39, 8
jb 0x403f92
add eax, dword [eax + 4]
jmp 0x403f7f
mov dword [ebp + 0xc], ebx
jmp 0x403fe1

Function at 0x4047e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00403900
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
push dword [eax]
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.00403932
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004038e7
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.00403922
out 0xed, eax
sub dword [edx + 0x68], ecx
add al, 1
add byte [eax], al
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.00403922
invalid
inc dword [0x80c13d70]
Function at 0x10004300
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000436e
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10004150
push 0
push 0
mov dword [0x1001386c], eax
call esi
push 0
push 0
push 0
push 0x10003c60
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10003950
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10003a60
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10002a40
push 0
push 0
call esi
pop esi
mov eax, 1
pop ebp
ret 0xc

Function at 0x10004b90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x10004bc1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10004bb0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x1000d620
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
xor ebx, ebx
push ebx
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000d79c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1000d737
mov ebx, 1
cmp dword [ebp - 0x20], 0x10
jb 0x1000d6fa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1000d6fa
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1000d6fa
mov edx, dword [esi]
test edx, edx
jne 0x1000d6c6
push 0x200
push edx
push dword [0x100138f4]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1000d71f
jmp 0x1000d6ee
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1000d6ee
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x100138f4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1000d71f
mov dword [esi], edx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1000d681
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1000d737
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x1000d737
push eax
push ebx
push dword [0x100138f4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1000d79c
cmp dword [esi], 0
je 0x1000d789
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1000d789
nop
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1000d783
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.1000d4b0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1000d750
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e16b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 9
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e16b
mov esp, ebp
pop ebp
ret
Function at 0x1000d7c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1001300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x10013a30]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000d821
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e16b
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1000d842
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1000d863
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1000d863
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1000d85d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1000d863
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, byte [esi + 0x14]
and bl, 1
and cl, 0xfd
mov al, bl
add al, al
shl bl, 2
or cl, al
xor eax, eax
and cl, 0xfb
or cl, bl
mov byte [esi + 0x14], cl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e16b
mov esp, ebp
pop ebp
ret
Function at 0x1000d8c0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x10013a38]
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov ebx, ecx
test edx, edx
je 0x1000d8f4
mov eax, dword [0x10013a30]
add eax, 0x14
nop
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x1000d8fc
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x1000d8e0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp esi, 0xffffffff
je 0x1000d9b2
test ebx, ebx
lea ecx, [ebp - 0x10]
setne al
or edx, 0xffffffff
push eax
call fcn.1000d620
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000d9b2
mov ecx, dword [0x10013a38]
push edi
cmp esi, ecx
jae 0x1000d96a
imul edi, esi, 0x2c
mov eax, dword [0x10013a30]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x1000d95f
mov edx, ebx
mov ecx, esi
call fcn.1000d7c0
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000d96a
mov ecx, dword [0x10013a38]
jmp 0x1000d962
mov eax, dword [ebp - 4]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x1000d934
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000d9b1
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1000d99f
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1000d999
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1000d978
push ebx
push 0
push dword [0x100138f4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ad5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412284]
jne 0x401adf
repz ret
jmp fcn.0040320d

Function at 0x40b7e7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x412284]
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.004053f6
and dword [ebp - 0x14], 0
cmp dword [0x413b48], 0
mov dword [ebp - 0x18], eax
jne 0x40b89a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b942
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40b942
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x413b48], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x413b4c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x413b50], eax
call edi
push eax
call esi
mov dword [0x413b58], eax
test eax, eax
je 0x40b89a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x413b54], eax
mov eax, dword [0x413b54]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b8f3
cmp dword [0x413b58], ecx
je 0x40b8f3
push eax
call esi
push dword [0x413b58]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b8f3
test ebx, ebx
je 0x40b8f3
call edi
test eax, eax
je 0x40b8ea
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b8ea
test byte [ebp - 8], 1
jne 0x40b8f3
or dword [ebp + 0x10], 0x200000
jmp 0x40b926
mov eax, dword [0x413b4c]
cmp eax, dword [ebp - 0x18]
je 0x40b926
push eax
call esi
test eax, eax
je 0x40b926
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b926
mov eax, dword [0x413b50]
cmp eax, dword [ebp - 0x18]
je 0x40b926
push eax
call esi
test eax, eax
je 0x40b926
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x413b48]
call esi
test eax, eax
je 0x40b942
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b944
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401ad5
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x19ff231b
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x56f87c2f
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x409568
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x41e23f
call fcn.0041d6dc
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], esi
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], esi
push esi
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
call fcn.0040c010
add esp, 0xc
mov dword [ebp - 0x424], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x4095f1
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x430], eax
test edi, edi
jne 0x4095f1
call fcn.00401c76
mov esi, eax
jmp 0x4096f4
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x409614
call fcn.00401c76
jmp 0x4096e7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x40960a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x409647
mov esi, 0x8007000e
jmp 0x4096e9
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x409717
jb 0x409662
cmp eax, 0xffffffff
ja 0x409717
cmp eax, 0x400
jbe 0x409677
push eax
lea ecx, [ebp - 0x424]
call fcn.00407f38
jmp 0x409699
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x409699
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
je 0x40963d
push ebx
push dword [ebp - 0x424]
push ebx
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40960a
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.00409413
mov esi, eax
test edi, edi
je 0x4096f4
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40970d
lea ecx, [ebp - 0x424]
call fcn.00407f23
mov eax, esi
call fcn.0041d629
ret 0x10
push 0x80070216
call fcn.004021d4
int3

Function at 0x416575
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004161ee

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x406016
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x406025
pop dword [ebp - 0x30]
mov eax, 0x3c743181
add eax, 0xc3cc2ea4
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x5f72b105
sub dword [ebp - 0x40], 0x11206bba
mov dword [ebp - 0x3c], 0xc9bc94da
sub dword [ebp - 0x3c], 0x97894895
mov dword [ebp - 0x38], 0xb2bde30b
sub dword [ebp - 0x38], 0x66719edd
mov dword [ebp - 0x34], 0x942db7b4
add dword [ebp - 0x34], 0x6bd2484c
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xb10645cf
add dword [ebp - 0x40], 0xc36c2387
mov dword [ebp - 0x3c], 0xa01a233a
sub dword [ebp - 0x3c], 0x5eadc1c5
mov dword [ebp - 0x38], 0xc3f13441
sub dword [ebp - 0x38], 0x6081c7d5
mov dword [ebp - 0x34], 0xfb01bac2
add dword [ebp - 0x34], 0x4fe453e
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x2725c08e
sub eax, 0x26e5506e
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x35aa4
push 0
call eax
mov ecx, 0x3b70e212
add ecx, 0xc48f5da4
mov edx, eax
mov ebx, 0x40c800
add ebx, dword [ebp - 0x30]
mov esi, 0xcc5b2a8f
xor dword [ebp - 0x20], 0x73d96e43
mov edi, dword [ebx]
add dword [ebp - 0x10], 0x2f21d85c
add edi, esi
xor dword [ebp - 4], 0xd91d4af9
mov dword [edx], edi
xor dword [ebp - 0x1c], edx
add edx, 0xe831b5de
add edx, 0x17ce4a26
add ebx, 0x5d17c9d8
sub ebx, 0x5d17c9d4
loop 0x406136
add eax, 0xf1ab
mov ebx, eax
add eax, 0x3e53d073
sub eax, 0x3e53d06e
mov ecx, 0x6b0a65fe
add ecx, 0x95359a02
add ecx, dword [ebp - 0x30]
call ebx
leave
ret