joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489890
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x48993c
mov dword [esp + 0xc], eax
xorps xmm0, xmm0
mov dword [esp + 0x34], eax
lea eax, [esp + 8]
push eax
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0xc], 0x30
mov dword [esp + 0x20], 0x400000
mov dword [esp + 0x34], str.XDSTMgeTmWnd
mov dword [esp + 0x14], 0x4899b0
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [esp + 0x20]
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x58]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x489946
push esi
push 0xffffffffffffffeb
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x489c10
Capabilities:
Hash data with md5

Disassembly:
push esi
push edi
mov edi, ecx
push 0x40
push 0
lea esi, [edi + 0x5c]
mov dword [edi], vtable.MD5_CTX.0
push esi
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 4], 0x67452301
mov dword [edi + 8], 0xefcdab89
mov dword [edi + 0xc], 0x98badcfe
mov dword [edi + 0x10], 0x10325476
call fcn.0049edd0
add esp, 0xc
mov byte [esi], 0x80
mov eax, edi
pop edi
pop esi
ret

Function at 0x489d80
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5000a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [esi + 0x16]
nop dword [eax]
movzx ecx, byte [eax - 2]
lea eax, [eax + 4]
mov byte [ebp + edx - 0xc], cl
movzx ecx, byte [eax - 5]
mov byte [ebp + edx - 0xb], cl
movzx ecx, byte [eax - 4]
mov byte [ebp + edx - 0xa], cl
movzx ecx, byte [eax - 3]
mov byte [ebp + edx - 9], cl
add edx, 4
cmp edx, 8
jb 0x489da0
mov edx, dword [esi + 0x14]
lea ebx, [esi + 0x5c]
shr edx, 3
mov ecx, 0x78
and edx, 0x3f
mov eax, 0x38
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
mov ecx, esi
push eax
push ebx
call fcn.00489c90
push 8
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00489c90
lea ecx, [edi + 2]
mov edi, 4
lea edx, [esi + 6]
nop dword [eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ecx - 2], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 5]
mov byte [ecx - 5], al
movzx eax, byte [edx - 4]
mov byte [ecx - 4], al
movzx eax, byte [edx - 3]
mov byte [ecx - 3], al
sub edi, 1
jne 0x489e10
push 0x9c
push edi
push esi
call fcn.0049edd0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 4], 0x67452301
xor ecx, ebp
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
pop edi
mov dword [esi + 0x10], 0x10325476
pop esi
mov byte [ebx], 0x80
pop ebx
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret 4
Function at 0x48cee0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x48cf7e
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [edi + 0x30]
mov ecx, edi
push 0
call fcn.0048d0b0
mov esi, dword [edi + 0xc]
sub esi, 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
js 0x48cf5c
nop word [eax + eax]
test esi, esi
js 0x48cf87
cmp esi, dword [edi + 0xc]
jge 0x48cf87
mov eax, dword [edi + 8]
mov ebx, dword [eax + esi*4]
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x48cf4e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
sub esi, 1
jns 0x48cf20
push dword [edi + 0x40]
call ebx
lea esi, [edi + 0x14]
mov dword [edi + 0x40], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 0x3c]
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push 0xc000008c
call fcn.004102b0
int3
Function at 0x48d610
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x83c
mov eax, dword [0x5000a8]
xor eax, esp
mov dword [esp + 0x838], eax
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x48d6fe
push 0x800
push eax
mov dword [esp + 0x14], eax
xorps xmm0, xmm0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
push eax
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x34], xmm0
mov dword [esp + 0x14], 0x30
mov dword [esp + 0x28], 0x400000
call fcn.0049edd0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x4ec748
lea eax, [esp + 0x40]
push 0x400
push eax
call fcn.00465540
add esp, 0x10
mov dword [esp + 0x10], 0x48d730
lea eax, [esp + 0x38]
mov dword [esp + 0x30], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [esp + 0x20]
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x58]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48d716
push esi
push 0xffffffffffffffeb
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x83c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret
Function at 0x4906c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x5000a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x4906f7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret 0x14
push ecx
call fcn.0040aa40
add esp, 4
test al, al
je 0x4907da
push str.runas
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
push 0x10
push eax
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.004b1d3b
add esp, 0xc
mov dword [ebp - 0x858], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x848], 0
xorps xmm0, xmm0
mov dword [ebp - 0x854], eax
lea eax, [ebp - 0x860]
movlpd qword [ebp - 0x840], xmm0
push eax
movlpd qword [ebp - 0x838], xmm0
movlpd qword [ebp - 0x830], xmm0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x860], 0x3c
mov dword [ebp - 0x850], esi
mov dword [ebp - 0x84c], edi
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x85c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4906e2
cmp dword [ebp + 0x10], 0
je 0x4907c9
push dword [ebp + 0x14]
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4908de
push 0x800
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.0049edd0
add esp, 0xc
lea eax, [ebp - 0x824]
test edi, edi
je 0x49080d
push edi
push esi
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x49081d
push esi
push 0x4e8dec
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x868], 0x44
mov word [ebp - 0x826], ax
xorps xmm0, xmm0
mov ax, word [ebp + 0x18]
mov word [ebp - 0x838], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x868]
movlpd qword [ebp - 0x864], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x824]
movlpd qword [ebp - 0x85c], xmm0
push eax
push 0
movlpd qword [ebp - 0x854], xmm0
movlpd qword [ebp - 0x84c], xmm0
movlpd qword [ebp - 0x844], xmm0
movlpd qword [ebp - 0x836], xmm0
movlpd qword [ebp - 0x82e], xmm0
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x83c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4906e2
cmp dword [ebp + 0x10], 0
je 0x4908ce
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret 0x14
Function at 0x493ad0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4057
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5000a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 0x10], 1
jne 0x493c78
mov esi, dword [ebp + 0xc]
cmp esi, 1
jne 0x493c5a
push 0x6b
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edi, eax
mov eax, dword [ebp - 0x14]
push edi
add eax, 4
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x80
push dword [eax]
mov dword [ebp + 0x1c], eax
call esi
mov eax, dword [ebp + 0x1c]
push edi
push 0
push 0x80
push dword [eax]
call esi
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x14]
add edi, 0xffffffcc
push dword [ebp + 0x10]
mov ecx, edi
push 1
call fcn.0040c470
sub esp, 0x10
xorps xmm0, xmm0
mov eax, esp
mov ecx, edi
movups xmmword [eax], xmm0
call fcn.0040db10
push 0x130
call fcn.0049cf47
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x493ba4
mov ecx, eax
call fcn.00414dc0
mov esi, eax
jmp 0x493ba6
xor esi, esi
mov ecx, dword [edi + 0x110]
mov dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x493be1
mov edx, ecx
test esi, esi
je 0x493bc9
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov edx, dword [edi + 0x110]
mov dword [edi + 0x110], esi
mov ecx, esi
test edx, edx
je 0x493be1
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [edi + 0x110]
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
mov ecx, dword [edi + 0x110]
push 4
call fcn.004068f0
mov ecx, dword [edi + 0x110]
push 2
call fcn.00406910
push 0
mov ecx, edi
call fcn.00493f70
mov ecx, dword [ebp + 0x1c]
push 0
call fcn.004100b0
cmp dword [ebp - 0x10], 0
mov esi, dword [ebp + 0x18]
mov dword [esi], 0
jne 0x493c42
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x14]
push 0
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.0040ac00
test eax, eax
je 0x493c78
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp esi, 2
jne 0x493c26
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
jne 0x493c42
jmp 0x493c29
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x494470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d419b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5000a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc8]
call eax
mov dword [ebp - 0x248], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x21c]
movq qword [ebp - 0x234], xmm0
push eax
push 0x11
movups xmmword [ebp - 0x244], xmm0
push 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x238], 0x51
mov dword [ebp - 0x23c], 0x4d6f18
mov dword [ebp - 0x21c], 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
mov ecx, dword [ebp - 0x244]
test eax, eax
lea eax, [ebp - 0x248]
cmovns ecx, dword [ebp - 0x21c]
push eax
mov dword [ebp - 0x244], ecx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
test esi, esi
je 0x4945de
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4945de
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00404a60
mov eax, dword [ebp - 0x220]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24c], esp
mov esi, esp
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x228], esi
call fcn.00404470
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.00492840
mov byte [ebp - 4], 0
lea ecx, [eax + 4]
call fcn.00456870
push ecx
push esp
call fcn.00492840
lea ecx, [eax + 4]
call fcn.00456450
mov ecx, dword [ebp - 0x224]
mov ecx, dword [ecx + 0x154]
call fcn.004235c0
mov edx, dword [ebp - 0x220]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4945de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x4945ef
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret 4
Function at 0x4988d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5000a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x214], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x218]
push edi
push edx
mov edi, dword [eax + 4]
or edi, 0x2001f
mov dword [ebp - 0x220], eax
push edi
push 0
push ecx
push dword [eax]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x498a2b
mov eax, dword [ebp - 0x214]
xor esi, esi
test eax, eax
je 0x49895c
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x218]
and edi, 0x300
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], edi
test esi, esi
jne 0x498a2b
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x228]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x208], 0x100
push ecx
lea ecx, [ebp - 0x204]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x4989f7
nop dword [eax]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.004988d0
mov esi, eax
test esi, esi
jne 0x498a2b
lea eax, [ebp - 0x228]
mov dword [ebp - 0x208], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
call edi
test eax, eax
je 0x4989b0
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x498a0e
push eax
call ebx
mov dword [ebp - 0x214], 0
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x210], 0
call fcn.0045ade0
mov esi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x498a38
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret 4
Function at 0x498df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d475b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5000a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x498e9c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x498e9c
call fcn.00481620
mov esi, eax
jmp 0x498f8c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x498ebf
call fcn.00481620
jmp 0x498f7f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x498edd
call fcn.00481620
jmp 0x498f7f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x498efe
mov esi, 0x8007000e
jmp 0x498f81
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00496e10
jmp 0x498f28
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x498f3f
mov esi, 0x8007000e
jmp 0x498f81
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x498f5f
call fcn.00481620
jmp 0x498f7f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00498c50
mov esi, eax
test edi, edi
je 0x498f8c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x498fa5
lea ecx, [ebp - 0x418]
call fcn.004973a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4bb6be
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bb534

Function at 0x4c202d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c1caa
Function at 0x10006857
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x10006866
pop dword [ebp - 0x24]
mov eax, 0xb8810000
sub eax, 0xa880979a
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3a88a
push 0
mov eax, 0x1e9e5554
sub eax, 0xe9ce414
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x91c87743
sub ecx, 0x91c82caa
xor edi, edi
add edi, eax
mov ebx, 0x10025400
add ebx, dword [ebp - 0x24]
mov esi, 0xf8aa976a
sub esi, 0x9a13a894
xor dword [ebp - 4], ebx
mov edx, dword [ebx]
add dword [ebp - 0x1c], 0x67ab7ba3
xor edx, esi
add dword [ebp - 0x20], eax
mov dword [edi], edx
add dword [ebp - 0x1c], ebx
add edi, 0x1a8c2330
add edi, 0xe573dcd4
add ebx, 0xcaf0701c
sub ebx, 0xcaf07018
loop 0x100068c1
add eax, 0x3ec1910d
sub eax, 0x3ec073d6
mov ebx, eax
add eax, 0xcb0eeb0c
sub eax, 0xcb0eeb07
mov ecx, 0xe8a863c2
sub ecx, 0xd8a863c2
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x4010d8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x816004]
jne 0x4010e2
repz ret
jmp fcn.004016f1

Function at 0x4056ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x816004]
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.004044d0
and dword [ebp - 0x14], 0
cmp dword [0x818b38], 0
mov dword [ebp - 0x18], eax
jne 0x40575e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405806
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405806
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x818b38], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x818b3c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x818b40], eax
call edi
push eax
call esi
mov dword [0x818b48], eax
test eax, eax
je 0x40575e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x818b44], eax
mov eax, dword [0x818b44]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4057b7
cmp dword [0x818b48], ecx
je 0x4057b7
push eax
call esi
push dword [0x818b48]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4057b7
test ebx, ebx
je 0x4057b7
call edi
test eax, eax
je 0x4057ae
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4057ae
test byte [ebp - 8], 1
jne 0x4057b7
or dword [ebp + 0x10], 0x200000
jmp 0x4057ea
mov eax, dword [0x818b3c]
cmp eax, dword [ebp - 0x18]
je 0x4057ea
push eax
call esi
test eax, eax
je 0x4057ea
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4057ea
mov eax, dword [0x818b40]
cmp eax, dword [ebp - 0x18]
je 0x4057ea
push eax
call esi
test eax, eax
je 0x4057ea
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x818b38]
call esi
test eax, eax
je 0x405806
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405808
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010d8
leave
ret
Function at 0x80bab0
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
test ebx, ebx
jle 0x80bac4
call fcn.0080ba30
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x80bab7
pop esi
cmp ebx, 0x2d
jne 0x80bade
mov dword [0xc09b98], 0xa62e7790
mov dword [0xc09b9c], 0xffffffff
ret

Function at 0x80bae0
Capabilities:
Create pipe

Disassembly:
mov eax, dword [0x816db8]
sub esp, 0x14
push ebx
mov ebx, dword [0xc09b8c]
push edi
mov edi, dword [0xc0770c]
call fcn.0080ba80
cmp dword [0xc09b8c], 0x2f
jne 0x80bb42
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0080bab0
pop edi
pop ebx
add esp, 0x14
ret