joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453a50
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2e8
test eax, eax
push esi
push edi
je 0x453c3c
mov esi, dword [esp + 0x2f8]
test esi, esi
je 0x453c3c
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 8
push 0
push 0x469530
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x453bd6
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x14], eax
mov ebx, 0x104
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
lea edx, [esp + 0x100]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x453bc2
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 1
push eax
lea eax, [esp + 0xfc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x453bb9
lea edx, [esp + 0x1c]
lea eax, [esp + 0x1f4]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push 0x4655b4
push edx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x34], ebx
call ebp
test eax, eax
jne 0x453bae
mov ecx, 0x19
lea edi, [esp + 0x8c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x8c]
push 0x64
lea ecx, [esp + 0x1f8]
push eax
push ecx
call fcn.00453c50
add esp, 0xc
test eax, eax
je 0x453bae
mov al, byte [esp + 0x28]
test al, al
je 0x453b81
lea edx, [esp + 0x28]
lea eax, [esp + 0x8c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x453bae
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x28]
mov esi, 0x64
lea eax, [esp + 0x28]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x453ba6
mov byte [eax], cl
inc eax
dec esi
jne 0x453b97
jmp 0x453baa
test esi, esi
jne 0x453bab
dec eax
mov byte [eax], 0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0x14]
jmp 0x453ab2
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x300]
pop ebp
pop ebx
mov al, byte [esp + 0x20]
test al, al
je 0x453c3c
cmp esi, 0x7fffffff
jbe 0x453bfd
mov eax, 0x80070057
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
pop esi
add esp, 0x2e8
ret
mov eax, dword [esp + 0x2f4]
lea edx, [esp + 0x20]
xor edi, edi
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x453c1b
mov byte [eax], cl
inc eax
dec esi
jne 0x453c0c
jmp 0x453c1f
test esi, esi
jne 0x453c25
dec eax
mov edi, 0x8007007a
mov byte [eax], 0
mov eax, edi
xor ecx, ecx
pop edi
test eax, eax
setge cl
mov eax, ecx
pop esi
add esp, 0x2e8
ret
pop edi
xor eax, eax
pop esi
add esp, 0x2e8
ret
Function at 0x454360
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x508
push ebx
push ebp
mov ebp, dword [esp + 0x514]
push esi
test ebp, ebp
push edi
je 0x454519
mov ebx, dword [esp + 0x520]
cmp ebx, 0x20
jb 0x454519
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x118]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x118]
push eax
push ecx
push edx
push 0x4695dc
push 0x4695c4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x454519
lea edi, [esp + 0x118]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x40
jne 0x454519
lea edx, [esp + 0x118]
lea ecx, [esp + 0x18]
mov esi, 0x80
lea eax, [esp + 0x18]
sub edx, ecx
lea ecx, [esi - 0x60]
test ecx, ecx
je 0x45441c
mov cl, byte [edx + eax]
test cl, cl
je 0x45441c
mov byte [eax], cl
inc eax
dec esi
jne 0x454406
jmp 0x454420
test esi, esi
jne 0x454421
dec eax
lea edx, [esp + 0x138]
lea ecx, [esp + 0x98]
mov byte [eax], 0
mov esi, 0x80
lea eax, [esp + 0x98]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x45444f
mov byte [eax], cl
inc eax
dec esi
jne 0x454440
jmp 0x454453
test esi, esi
jne 0x454454
dec eax
mov byte [eax], 0
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x118]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x118]
push 0x400
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00454170
add esp, 0xc
lea ecx, [esp + 0x98]
lea edx, [esp + 0x118]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x454519
cmp ebx, 0x7fffffff
jbe 0x4544bc
mov eax, 0x80070057
xor ecx, ecx
test eax, eax
pop edi
pop esi
sete cl
pop ebp
mov eax, ecx
pop ebx
add esp, 0x508
ret
xor edi, edi
mov edx, ebx
test ebx, ebx
mov eax, ebp
jne 0x4544e1
mov edi, 0x80070057
xor ecx, ecx
mov eax, edi
pop edi
test eax, eax
sete cl
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x508
ret
lea esi, [esp + 0x18]
sub esi, ebp
mov cl, byte [esi + eax]
test cl, cl
je 0x4544f6
mov byte [eax], cl
inc eax
dec edx
jne 0x4544e7
jmp 0x4544fa
test edx, edx
jne 0x454500
dec eax
mov edi, 0x8007007a
mov byte [eax], 0
mov eax, edi
xor ecx, ecx
pop edi
test eax, eax
sete cl
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x508
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x508
ret
Function at 0x454530
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov ecx, 0x20
xor eax, eax
push esi
mov esi, dword [esp + 0x190]
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x80
push eax
push esi
call fcn.00454170
mov edx, esi
lea ecx, [esp + 0x98]
add esp, 0xc
mov edi, 0x104
lea eax, [esp + 0x8c]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x454585
mov byte [eax], cl
inc eax
dec edi
jne 0x454576
jmp 0x454589
test edi, edi
jne 0x45458a
dec eax
mov byte [eax], 0
mov ecx, 0x104
lea eax, [esp + 0x8c]
cmp byte [eax], 0
je 0x4545a4
inc eax
dec ecx
jne 0x454599
jmp 0x4545ea
test ecx, ecx
je 0x4545ea
lea edx, [esp + 8]
test edx, edx
je 0x4545b9
mov eax, 0x104
sub eax, ecx
jmp 0x4545bd
mov eax, dword [esp + 8]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0x8c]
je 0x4545ea
lea esi, [esp + 0xc]
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x4545e2
mov byte [eax], cl
inc eax
dec edx
jne 0x4545d3
jmp 0x4545e6
test edx, edx
jne 0x4545e7
dec eax
mov byte [eax], 0
lea edi, [esp + 0x8c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x8c]
push ecx
push eax
push 1
push 0x4695dc
push 0x4695c4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop edi
pop esi
add esp, 0x188
ret
Function at 0x1042872
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1046080]
and word [ebp - 0x20c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push dword [esi + 0x250]
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.GDI32.dll_SetTextColor]
push ebx
call edi
push dword [esi + 0x24c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov dword [ebp - 0x218], eax
call esi
push 1
push ebx
mov dword [ebp - 0x220], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
and dword [ebp - 0x210], 0
mov dword [ebp - 0x21c], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x104291f
push 0x1029d3c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x104291f
push 2
push 0
lea eax, [ebp - 0x20c]
push eax
jmp 0x1042928
push 2
push 0
push 0x1029d3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 0x214], eax
je 0x10429ca
push 0x10429f8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 0x224], eax
je 0x1042986
push 0x64
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x210], eax
je 0x1042986
push 0x32
push eax
call dword [ebp - 0x224]
test eax, eax
jne 0x1042986
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0x210], 0
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x210], 0
je 0x10429ca
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
push ecx
push eax
push dword [ebp - 0x210]
push ecx
push ecx
push 0x12
push 0x46
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x218]
push ebx
call edi
push dword [ebp - 0x220]
push ebx
call esi
push dword [ebp - 0x21c]
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01001aff
leave
ret 4

Function at 0x41eed0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4a04cc
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x41ef50
arpl word [edx + esi], si
xor byte [eax], 0xdf
pop ecx
sub esp, ebx
adc esp, dword [edx + 0x4d36237a]
insb byte es:[edi], dx
rcl ecx, cl
test al, 0xfb
jns 0x41ef52
add dword [eax - 0x10e7e3ca], ebp
xchg ebx, esi
xor bh, byte [ebx]
mov dl, 0x47
pop eax
mov al, byte [0x70e0846a]
imul dword [ebx]
mov ecx, 0xd6d2c95b
xchg ebx, eax
mov ecx, esi
leave
push cs
sal dword [esi], 1
ror cl, 0xff
clc
push ecx
dec ebx
enter 0xffffffffffffaff1, 0x41
invalid
invalid
inc edx
cmp eax, 0x8315b488
stosd dword es:[edi], eax
mov ah, 0xcd
fisttp word [ecx]
fiadd dword [ebx]
invalid
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 0x15e15a4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x15e15ae
pushal
call 0x15e15b4
pop ebp
sub ebp, 0x10
sub ebp, 0x11e15a4
jmp 0x15e15ca
movsb byte es:[edi], byte [esi]
adc eax, 0x4e9011e
add byte [eax], al
add byte [ebx], ah
cmpsd dword [esi], dword es:[edi]
inc ebx
sar dword [eax + 0x11e15a4], cl
mov eax, 0x11e15a4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d9
mov edx, 0xfcf57689
xor byte [eax], dl
inc eax
dec ecx
jne 0x15e15e1
jmp 0x15e15f4
add al, byte [edx + eax]
mov ch, 0x89
mov dword [ecx - 0x768eb7f8], ecx
mov dword [ecx - 0x7ccebb76], ecx
mov dword [ecx - 0x765ecc77], ecx
mov dword [ecx + 0x418a6b7e], ecx
add cl, byte [eax]
test dword [ecx + 0x4c8a8989], ecx
fld dword [ebp*8 - 0x72ff8a53]
lodsd eax, dword [esi]
loope 0x15e15bd
enter 0xffffffffffff89a5, 0xffffffffffffffe1
sbb eax, 0x8889785d
movsd dword es:[edi], dword [esi]
lodsd eax, dword [esi]
loope 0x15e15e1
stosd dword es:[edi], eax
hlt
Function at 0x403121
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040204e
xor ebx, ebx
cmp dword [0x40b2b4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4031f6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x403161
xor eax, eax
jmp 0x4032ba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40315a
push eax
call fcn.00401feb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b2b4], eax
call esi
push eax
call fcn.00401feb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b2b8], eax
call esi
push eax
call fcn.00401feb
mov dword [0x40b2bc], eax
lea eax, [ebp - 8]
push eax
call fcn.004012fd
test eax, eax
pop ecx
pop ecx
je 0x4031c4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402a0b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4031f6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00401feb
cmp eax, ebx
pop ecx
mov dword [0x40b2c4], eax
je 0x4031f6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401feb
pop ecx
mov dword [0x40b2c0], eax
mov eax, dword [0x40b2c0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40326f
cmp dword [0x40b2c4], esi
je 0x40326f
push eax
call fcn.00402057
pop ecx
call eax
cmp eax, ebx
je 0x40323c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40b2c4]
call fcn.00402057
pop ecx
call eax
test eax, eax
je 0x40323c
test byte [ebp - 0x18], 1
jne 0x40326f
lea eax, [ebp - 0xc]
push eax
call fcn.00401334
test eax, eax
pop ecx
je 0x403257
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402a0b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x403266
or dword [ebp + 0x10], 0x200000
jmp 0x4032a0
or dword [ebp + 0x10], 0x40000
jmp 0x4032a0
mov eax, dword [0x40b2b8]
cmp eax, esi
je 0x4032a0
push eax
call fcn.00402057
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4032a0
mov eax, dword [0x40b2bc]
cmp eax, esi
je 0x4032a0
push dword [ebp - 4]
push eax
call fcn.00402057
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40b2b4]
call fcn.00402057
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404f6a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40aa58]
jne 0x404f74
repz ret
jmp fcn.004065a5
Function at 0x40a648
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041a210
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x40a666
xor al, al
jmp 0x40a7d9
push ebx
push edi
push esi
call fcn.0040a0dd
push esi
call fcn.00419efe
pop ecx
push esi
mov ebx, eax
call fcn.0040a584
test al, al
je 0x40a710
push esi
call fcn.0040a0dd
test al, al
je 0x40a6bd
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x40a7d5
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0041c0bf
push esi
add edi, 8
push edi
call fcn.00419f46
add esp, 0x14
jmp 0x40a7d1
cmp word [esi], 0x5c
jne 0x40a7d5
add esi, 2
cmp word [esi], 0x5c
jne 0x40a7d5
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40a7d5
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0041c0bf
lea eax, [edi + 8]
push 0x4276ec
push eax
call fcn.00419f46
push esi
add edi, 0xe
push edi
call fcn.00419f46
add esp, 0x1c
jmp 0x40a7d1
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40a7d5
cmp eax, edi
ja 0x40a7d5
movzx eax, word [esi]
push eax
call fcn.00409ec3
test al, al
je 0x40a77d
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40a7d5
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0041c0bf
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0041c0bf
push esi
add edi, 0xc
push edi
call fcn.00419f46
add esp, 0x20
jmp 0x40a7d1
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00409ee8
lea eax, [ebp - 0x1000]
push eax
call fcn.00419efe
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x40a7d5
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0041c0bf
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.00419f46
add esp, 0x14
push dword [ebp + 0x10]
push esi
push edi
call fcn.00410865
mov al, 1
jmp 0x40a7d7
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x424375
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.0041df3c
and dword [ebp - 4], 0
cmp dword [0x44c378], 0
mov ebx, eax
jne 0x424426
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4244d7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4244d7
push eax
call fcn.0041deca
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44c378], eax
call esi
push eax
call fcn.0041deca
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44c37c], eax
call esi
push eax
call fcn.0041deca
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44c380], eax
call esi
push eax
call fcn.0041deca
pop ecx
mov dword [0x44c388], eax
test eax, eax
je 0x424426
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041deca
pop ecx
mov dword [0x44c384], eax
mov eax, dword [0x44c384]
cmp eax, ebx
je 0x42447e
cmp dword [0x44c388], ebx
je 0x42447e
push eax
call fcn.0041df45
push dword [0x44c388]
mov esi, eax
call fcn.0041df45
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42447e
test edi, edi
je 0x42447e
call esi
test eax, eax
je 0x424475
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x424475
test byte [ebp - 0xc], 1
jne 0x42447e
or dword [ebp + 0x10], 0x200000
jmp 0x4244b7
mov eax, dword [0x44c37c]
cmp eax, ebx
je 0x4244b7
push eax
call fcn.0041df45
pop ecx
test eax, eax
je 0x4244b7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4244b7
mov eax, dword [0x44c380]
cmp eax, ebx
je 0x4244b7
push eax
call fcn.0041df45
pop ecx
test eax, eax
je 0x4244b7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44c378]
call fcn.0041df45
pop ecx
test eax, eax
je 0x4244d7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4244d9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x17261762
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x35f000e6
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4032ac
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b90
test esi, esi
jne 0x4032e2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404c80
jmp 0x403300
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031b0
mov edi, eax
test esi, esi
je 0x403300
cmp dword [ebx], 0
je 0x403300
dec esi
jmp 0x4032e9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403a48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x498024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403ae0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403ac0
xor eax, eax
push ebp
push 0x403ab9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403afc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ac0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x498024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x498024], ax
mov esp, ebp
pop ebp
ret

Function at 0x40493c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49b04c], 0
je 0x40499d
cmp word [0x49b220], 0xd7b2
jne 0x404965
cmp dword [0x49b228], 0
jbe 0x404965
mov eax, 0x49b21c
call dword [0x49b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4049c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x498030], 0
jne 0x4049b9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404b14
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x498034], 0
je 0x404b3a
mov edx, esi
mov eax, ebx
call dword [0x498034]
jmp 0x404b49
mov eax, 8
call fcn.00402ec0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x49b04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404adc
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc