joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp int.00401219
Function at 0x4014a0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x445ec0]
xor eax, esp
mov dword [esp + 0x9c], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4014ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 1
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0041e94a
add esp, 0xa0
ret
mov eax, dword [esp + 4]
cmp eax, 5
jl 0x401527
cmp eax, 6
jg 0x401527
cmp eax, 5
jne 0x40151b
cmp dword [esp + 8], 0
jne 0x4014d0
xor eax, eax
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0041e94a
add esp, 0xa0
ret
cmp eax, 6
jne 0x4014d0
cmp dword [esp + 8], 1
jle 0x4014d0
mov ecx, dword [esp + 0x9c]
xor ecx, esp
xor eax, eax
call fcn.0041e94a
add esp, 0xa0
ret

Function at 0x401540
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0041e410
add esp, 0xc
lea edx, [esp]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
mov ecx, 3
mov word [esp + 0x5c], cx
mov ecx, dword [esp + 0x74]
push 0
push ecx
push 0
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x64], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4015a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add esp, 0x54
ret
mov edx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 4]
push eax
call esi
mov eax, 1
pop esi
add esp, 0x54
ret
Function at 0x4015d0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x414
mov eax, dword [0x445ec0]
xor eax, esp
mov dword [esp + 0x410], eax
mov ecx, dword [esp + 0x424]
mov eax, dword [esp + 0x420]
push ebx
push ebp
mov ebp, dword [esp + 0x424]
push esi
push edi
mov edi, dword [esp + 0x428]
push 0x43761c
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.0041eb3f
add esp, 0xc
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
push ebx
call fcn.0041ea75
mov esi, eax
add esp, 4
test esi, esi
je 0x40164d
push esi
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x401654
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call fcn.0041e998
add esp, 4
xor eax, eax
jmp 0x401718
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40163e
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ebp
push ecx
push edx
push str.StringFileInfo_04x_04x_s
lea eax, [esp + 0x30]
push 0x400
push eax
call fcn.0041e959
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4016f3
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push ebp
push str.StringFileInfo040904e4_s
lea ecx, [esp + 0x28]
push 0x400
push ecx
call fcn.0041e959
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4016f3
call edi
push esi
call fcn.0041e998
add esp, 4
xor eax, eax
jmp 0x401718
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x434]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call fcn.0041eb3f
push esi
call fcn.0041e998
add esp, 0x10
mov eax, 1
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e94a
add esp, 0x414
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4017ea
test al, 0x10
je 0x4017ea
mov eax, 1
ret
xor eax, eax
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x4021c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push 0x43769c
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0
call fcn.0041ef64
add esp, 0xc
test eax, eax
jne 0x402200
mov eax, dword [esp + 4]
test eax, eax
je 0x4021f7
push eax
call fcn.0041ee24
add esp, 4
mov eax, 1
add esp, 0x18
ret
call fcn.0040e630
mov eax, dword [eax + 0xc]
push 2
push 0x82
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x402226
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add esp, 0x18
ret
push esi
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test esi, esi
je 0x402343
test edi, edi
je 0x402343
movzx ecx, word [edi + 0xe]
push ebx
mov eax, ecx
xor ebx, ebx
sub eax, 1
je 0x402279
sub eax, 3
je 0x402272
sub eax, 4
jne 0x40227e
mov ebx, 0x400
jmp 0x40227e
mov ebx, 0x40
jmp 0x40227e
mov ebx, 8
mov eax, dword [edi + 4]
imul eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov edx, eax
and edx, 0x80000003
jns 0x40229c
dec edx
or edx, 0xfffffffc
inc edx
mov ecx, 4
sub ecx, edx
cmp ecx, 4
jne 0x4022aa
xor ecx, ecx
lea esi, [ecx + eax]
imul esi, dword [edi + 8]
lea ecx, [esi + ebx + 0x36]
xor edx, edx
mov dword [esp + 0x16], ecx
mov ecx, dword [esp + 0x28]
mov eax, 0x4d42
push 0x437698
mov word [esp + 0x1e], dx
mov word [esp + 0x18], ax
xor eax, eax
push ecx
lea edx, [esp + 0x14]
push edx
mov word [esp + 0x28], ax
mov dword [esp + 0x2a], 0x36
mov dword [esp + 0x18], eax
call fcn.0041ef64
add esp, 0xc
test eax, eax
jne 0x40233a
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40233a
push eax
push 1
lea eax, [esp + 0x1c]
push 0xe
push eax
call fcn.0041ed2b
mov ecx, dword [esp + 0x1c]
push ecx
push 1
lea edx, [esi + ebx + 0x28]
push edx
push edi
call fcn.0041ed2b
mov eax, dword [esp + 0x2c]
push eax
call fcn.0041ee24
add esp, 0x24
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x18
ret
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
Function at 0x402380
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x445ec0]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
mov ebx, dword [esp + 0x128]
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4023e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x12c]
push str.Microsoft_Windows
push ecx
push ebx
call fcn.0041eb3f
add esp, 0xc
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041e94a
add esp, 0x120
ret
movzx eax, word [esp + 0x98]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, edx
test eax, eax
je 0x402420
push eax
push edx
push ecx
push str._Version__d._d_Service_Pack__d_
lea edx, [esp + 0xb8]
push 0x80
push edx
call fcn.0041e959
add esp, 0x18
jmp 0x40243c
push edx
push ecx
push str._Version__d._d_
lea eax, [esp + 0xb4]
push 0x80
push eax
call fcn.0041e959
add esp, 0x14
cmp edi, 5
jne 0x40248f
test esi, esi
jne 0x40245f
mov edx, dword [esp + 0x134]
lea ecx, [esp + 0xa8]
push ecx
push str.Windows_2000__s
push edx
jmp 0x4024e0
cmp esi, 1
jne 0x40247b
mov ecx, dword [esp + 0x134]
lea eax, [esp + 0xa8]
push eax
push str.Windows_XP__s
push ecx
jmp 0x4024e0
cmp esi, 2
jne 0x4024cb
lea edx, [esp + 0xa8]
push edx
push str.Windows_2003__s
jmp 0x4024d8
cmp edi, 6
jne 0x4024cb
test esi, esi
jne 0x4024af
mov edx, dword [esp + 0x134]
lea ecx, [esp + 0xa8]
push ecx
push str.Windows_Vista__s
push edx
jmp 0x4024e0
cmp esi, 1
jne 0x4024cb
mov ecx, dword [esp + 0x134]
lea eax, [esp + 0xa8]
push eax
push str.Windows_7__s
push ecx
jmp 0x4024e0
lea edx, [esp + 0xa8]
push edx
push str.Windows__s
mov eax, dword [esp + 0x13c]
push eax
push ebx
call fcn.0041e959
mov ecx, dword [esp + 0x138]
add esp, 0x10
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0041e94a
add esp, 0x120
ret

Function at 0x403510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403529
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403564
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403560
lea ebx, [ebx]
cmp esi, eax
jae 0x403564
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403550
cmp esi, eax
jb 0x40356a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x408de0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4350a8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x445ec0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x1c]
push 2
push 0
push 0
push eax
push str.open
push 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esi + 0x20]
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00414eb3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x14], 0xffffffff
cmp edi, 0x20
jae 0x408e79
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408e63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x412187
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 + 0x58], ebx
test ebx, 0xffff0000
jne 0x4121ab
cmp dword [edi + 0x54], 0
jne 0x4121ab
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040e630
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.00412148
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 0x417c21
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 0x417c68
call fcn.0040e630
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x417c68
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x417c84
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041779b
mov esi, eax
test edi, edi
je 0x417c82
test ebx, ebx
je 0x417c82
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x417f89
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43535e
call fcn.00421c9b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x417fae
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x417ff4
lea ecx, [ebp - 0x10]
call fcn.00401330
mov ecx, dword [esi + 0x50]
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.0040d088
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401020
mov eax, esi
call fcn.00421d73
ret 8

Function at 0x41e94a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445ec0]
jne 0x41e954
repz ret
jmp fcn.004261ac
Function at 0x42e881
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00425af0
and dword [ebp - 4], 0
cmp dword [0x449ba0], 0
mov ebx, eax
jne 0x42e932
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42e9e3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43e640
push edi
call esi
test eax, eax
je 0x42e9e3
push eax
call fcn.00425a7e
mov dword [esp], 0x43e630
push edi
mov dword [0x449ba0], eax
call esi
push eax
call fcn.00425a7e
mov dword [esp], 0x43e61c
push edi
mov dword [0x449ba4], eax
call esi
push eax
call fcn.00425a7e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x449ba8], eax
call esi
push eax
call fcn.00425a7e
pop ecx
mov dword [0x449bb0], eax
test eax, eax
je 0x42e932
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00425a7e
pop ecx
mov dword [0x449bac], eax
mov eax, dword [0x449bac]
cmp eax, ebx
je 0x42e98a
cmp dword [0x449bb0], ebx
je 0x42e98a
push eax
call fcn.00425af9
push dword [0x449bb0]
mov esi, eax
call fcn.00425af9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42e98a
test edi, edi
je 0x42e98a
call esi
test eax, eax
je 0x42e981
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42e981
test byte [ebp - 0xc], 1
jne 0x42e98a
or dword [ebp + 0x10], 0x200000
jmp 0x42e9c3
mov eax, dword [0x449ba4]
cmp eax, ebx
je 0x42e9c3
push eax
call fcn.00425af9
pop ecx
test eax, eax
je 0x42e9c3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42e9c3
mov eax, dword [0x449ba8]
cmp eax, ebx
je 0x42e9c3
push eax
call fcn.00425af9
pop ecx
test eax, eax
je 0x42e9c3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x449ba0]
call fcn.00425af9
pop ecx
test eax, eax
je 0x42e9e3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42e9e5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f898
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40f8a7
pop dword [ebp - 0x48]
mov eax, 0x9127a464
add eax, 0x6f195443
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x40088
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x22cb7a40
add ecx, 0xdd34d688
mov ebx, eax
mov esi, 0x435400
add esi, dword [ebp - 0x48]
mov edi, 0xf521b3f0
add edi, 0x3949b146
mov edx, dword [esi]
sub dword [ebp - 0x18], 0x7e9fe529
add edx, edi
add dword [ebp - 0x14], ebx
mov dword [ebx], edx
xor dword [ebp - 0x44], edi
add ebx, 4
add esi, 4
loop 0x40f8fb
add eax, 0x135f3
mov ebx, eax
add eax, 0x19313488
sub eax, 0x19313483
mov ecx, 0x2c8ebd0a
sub ecx, 0x2c4ebd0a
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x504880
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xae000]
push edi
jmp 0x50489a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5048a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x504890
mov eax, 1
add ebx, ebx
jne 0x5048b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5048c4
jne 0x5048e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5048e3
dec eax
add ebx, ebx
jne 0x5048d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5048a8
add ebx, ebx
jne 0x5048df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x504935
xor ecx, ecx
sub eax, 3
jb 0x5048fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50496a
sar eax, 1
mov ebp, eax
jmp 0x504906
add ebx, ebx
jne 0x504906
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5048d4
inc ecx
add ebx, ebx
jne 0x504914
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5048d4
add ebx, ebx
jne 0x504921
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x504916
jne 0x504932
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x504916
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x504954
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x504946
jmp 0x504896
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x504954
add edi, ecx
jmp 0x504896
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x504972
cmp byte [edi], 0x11
jne 0x504972
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x504977
lea edi, [esi + 0xfd000]
mov eax, dword [edi]
or eax, eax
je 0x5049ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x131970]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x131aec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5049a4
mov ecx, edi
jns 0x5049d3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x131af0]
or eax, eax
je 0x5049e9
mov dword [ebx], eax
add ebx, 4
jmp 0x5049c1
call dword [esi + 0x131b00]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x504a20
cmp al, 0xef
ja 0x504a13
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5049f5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x504a02
mov ebp, dword [esi + 0x131af4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x504a54
sub esp, 0xffffff80
jmp 0x42800a