joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460415
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46052d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46052d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0049bf3d
mov esi, eax
test esi, esi
je 0x46052d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46052d
mov ecx, esi
call fcn.00460380
cmp edi, eax
jge 0x46052d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4604b3
mov dword [esp + 0x34], 1
jmp 0x46050e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46052d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045f920
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x468b30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ab0e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.00468f20
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x504f54
call fcn.0047a18a
mov ecx, dword [0x4b8418]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00466280
mov esi, 0x4b8470
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x468bd7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x468bce
cmp al, 0xff
je 0x468bce
dec al
mov byte [ecx], al
jmp 0x468bd7
push ecx
call fcn.0049a231
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00495f00
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x468c1d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x468c14
cmp al, 0xff
je 0x468c14
dec al
mov byte [ecx], al
jmp 0x468c1d
push ecx
call fcn.0049a231
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0047a211
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x4903e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4ac690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.00485438
mov eax, dword [0x4bcae0]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0048536a
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00490ea0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x490487
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49047e
cmp al, 0xff
je 0x49047e
dec al
mov byte [ecx], al
jmp 0x490487
push ecx
call fcn.0049a231
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4904b8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4904af
cmp al, 0xff
je 0x4904af
dec al
mov byte [ecx], al
jmp 0x4904b8
push ecx
call fcn.0049a231
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x49c8e1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49c919
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049a96e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049a946
jmp 0x49c925
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49dfd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49e01a
call fcn.004a3d05
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49e01a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49e011
xor eax, eax
jmp 0x49e022
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049e028
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a4235
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a4263
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a4281
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a419b
jmp 0x4a4281
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a4281
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a419b
test edi, edi
mov eax, edi
jne 0x4a426b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x19541819
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42f314
nop
mov ecx, 0x2b657962
nop
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401c80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42e098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x401d2a
mov eax, dword [0x610224]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00422bf1
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00422c40
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00422bca
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401d11
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x401d11
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0042290c
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401d40
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x401da2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x401fb0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4020a2
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocString
mov ecx, edi
call fcn.00401d40
test eax, eax
jne 0x4020a2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocString
mov ecx, edi
call fcn.00401d40
test eax, eax
jne 0x4020a2
lea edx, [esp + 0x10]
push 0x43d3f0
push edx
call fcn.0040f260
mov esi, eax
add esp, 8
test esi, esi
jne 0x402073
lea eax, [esp + 0x10]
push 0x43d3ec
push eax
call fcn.0040f1e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x402073
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x402076
mov byte [esi], 0
push 0x43d3e8
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x4023e0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42e0ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
lea eax, [esp + 4]
push edi
push eax
mov dword [esp + 0x10], 0
call fcn.004022c0
add esp, 4
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push ecx
push 0x64
stosw word es:[edi], ax
push edx
push 0x6145a0
push str.Regcode
push str.PDF2Word
mov dword [esp + 0x94], 1
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x84]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00422936
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x7c], 0
call fcn.0042290c
mov ecx, dword [esp + 0x74]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x78
ret

Function at 0x4025b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44c
xor eax, eax
push ebx
mov dword [esp + 4], eax
xor ecx, ecx
mov dword [esp + 8], eax
push ebp
push esi
mov word [esp + 0x14], ax
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x18]
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ecx
push edx
push eax
mov dword [esp + 0x2c], ecx
call fcn.00402570
mov edx, eax
mov ecx, 0x100
mov eax, 0x58585858
lea edi, [esp + 0x64]
add esp, 8
rep stosd dword es:[edi], eax
xor eax, eax
mov cl, al
xor cl, 0x55
mov byte [esp + eax + 0x5c], cl
inc eax
cmp eax, 0x100
jl 0x4025fd
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x15c], eax
mov ax, word [esp + 0x18]
mov dword [esp + 0x160], ecx
mov ecx, dword [esp + 0x1c]
mov word [esp + 0x164], ax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x166], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x16a], eax
mov eax, edx
mov dword [esp + 0x16e], ecx
xor ecx, ecx
shr eax, 0x10
mov cl, ah
mov esi, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
mov byte [esp + 0x172], cl
mov ecx, 9
lea edi, [esp + 0x34]
mov byte [esp + 0x173], al
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x460]
xor eax, eax
mov al, dh
mov byte [esp + 0x175], dl
mov byte [esp + 0x174], al
lea eax, [ecx - 0x11a]
lea edx, [esp + 0x5c]
mov ebx, 0x11a
movsb byte es:[edi], byte [esi]
sub edx, eax
lea edi, [esp + 0x5c]
lea esi, [eax + 0x11a]
sub edi, eax
lea ebp, [edx - 0x10]
mov al, byte [esi + ebp]
mov cl, bl
not cl
xor al, cl
mov byte [edi + esi], al
and eax, 0xff
and eax, 0x8000000f
jns 0x4026d0
dec eax
or eax, 0xfffffff0
inc eax
xor edx, edx
mov dl, byte [esp + eax + 0x34]
lea eax, [esp + 0x28]
push edx
push 0x43d450
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov al, byte [esp + 0x34]
add esp, 0xc
mov byte [edi + esi], al
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 0x12a
jl 0x4026b3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44c
ret
Function at 0x402d20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0xcc
mov edx, 0x32
push edi
mov ecx, edx
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov eax, 0x30
mov word [esp + 0x20], dx
mov word [esp + 0x22], ax
mov word [esp + 0x24], ax
mov word [esp + 0x2c], ax
mov word [esp + 0x2e], ax
mov eax, 0x77
mov word [esp + 0x26], dx
mov word [esp + 0x2a], dx
mov word [esp + 0x34], ax
mov word [esp + 0x36], ax
mov word [esp + 0x38], ax
mov edi, 0x79
mov ecx, 0x20
mov eax, 0x2e
mov edx, 0x63
mov word [esp + 8], 0x43
mov word [esp + 0xa], 0x6f
mov word [esp + 0xc], 0x70
mov word [esp + 0xe], di
mov word [esp + 0x10], 0x72
mov word [esp + 0x12], 0x69
mov word [esp + 0x14], 0x67
mov word [esp + 0x16], 0x68
mov word [esp + 0x18], 0x74
mov word [esp + 0x1a], cx
mov word [esp + 0x1c], 0x40
mov word [esp + 0x1e], cx
mov word [esp + 0x28], 0x2d
mov word [esp + 0x30], 0x36
mov word [esp + 0x32], cx
mov word [esp + 0x3a], ax
mov word [esp + 0x3c], 0x76
mov word [esp + 0x3e], 0x65
mov word [esp + 0x40], 0x72
mov word [esp + 0x42], di
mov word [esp + 0x44], 0x70
mov word [esp + 0x46], 0x64
mov word [esp + 0x48], 0x66
mov word [esp + 0x4a], ax
mov word [esp + 0x4c], dx
mov word [esp + 0x4e], 0x6f
mov word [esp + 0x50], 0x6d
mov word [esp + 0x52], cx
mov word [esp + 0x54], 0x49
mov word [esp + 0x56], 0x6e
mov word [esp + 0x58], dx
mov word [esp + 0x5a], ax
call fcn.0040fb21
lea eax, [esp + 4]
push eax
call fcn.0040fa17
lea ecx, [esp + 8]
push ecx
call fcn.0040f8b7
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
add esp, 8
add ecx, 0x76c
inc edx
cmp ecx, 0x7d1
pop edi
jne 0x402e92
cmp edx, 1
jne 0x402f34
cmp eax, edx
jmp 0x402eed
cmp ecx, 0x7d5
jne 0x402eae
cmp edx, 0xa
jne 0x402f34
cmp eax, 1
jne 0x402f34
jmp 0x402f1e
cmp ecx, 0x9c5
jne 0x402edd
cmp edx, 8
jne 0x402f34
cmp eax, 1
jne 0x402f34
push 0x40
lea ecx, [esp + 8]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
add esp, 0xcc
ret
cmp ecx, 0x899
jne 0x402f0c
cmp edx, 7
jne 0x402f34
cmp eax, 0x13
jne 0x402f34
push 0x40
lea edx, [esp + 8]
push 0
push edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
add esp, 0xcc
ret
cmp ecx, 0x3e9
jne 0x402f34
cmp edx, 1
jne 0x402f34
cmp eax, 0xd
jne 0x402f34
push 0x40
lea eax, [esp + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
add esp, 0xcc
ret
Function at 0x403c20
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x1ac
push ebp
push esi
mov esi, dword [esp + 0x1b8]
mov ebp, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x403d43
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
test eax, eax
jle 0x403d43
push ebx
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
jmp 0x403c63
mov esi, dword [esp + 0x1c0]
mov eax, dword [ebp + 0xdc]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 4]
mov ebx, eax
mov eax, dword [esp + 0x10]
mov esi, 0x430c08
add eax, edx
mov eax, dword [eax + 4]
test eax, eax
je 0x403c92
mov esi, eax
push 0x4c01
lea ecx, [esp + 0x60]
push 0x160
push ecx
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov edx, dword [esp + 0x60]
push 0xffffffffffffffff
push edx
push 0xffffffffffffffff
push 0
push ebx
push esi
mov ecx, ebp
call fcn.00403b70
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00410232
add esp, 8
test eax, eax
je 0x403ce5
mov dword [esp + 0x4c], 0
mov eax, 0x10624dd3
imul dword [esp + 0x4c]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push edx
lea edx, [esp + 0x1c]
push str._5d_KB
push edx
call fcn.0040f544
add esp, 0xc
lea eax, [esp + 0x18]
mov ecx, ebp
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push ebx
push eax
call fcn.00403b70
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 0x10
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x403c5c
pop edi
pop ebx
mov ecx, ebp
call fcn.00405480
pop esi
pop ebp
add esp, 0x1ac
ret 4

Function at 0x4049d0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42e438
push eax
mov eax, dword [0x43d890]
mov dword fs:[0], esp
push esi
cmp eax, 0xffffffff
mov esi, ecx
je 0x404a58
call fcn.0042abeb
mov ecx, dword [eax + 4]
call fcn.00425edb
mov eax, dword [0x43d890]
push 0x1388
push eax
mov dword [esp + 0x14], 0
mov dword [0x614668], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x404a38
mov ecx, dword [0x43d890]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004050c0
mov dword [esp + 0xc], 0xffffffff
call fcn.0042abeb
mov ecx, dword [eax + 4]
call fcn.00425ef0
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret
Function at 0x405270
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4052d2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x4052e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4053c9
lea eax, [esp + 0x10]
push eax
push str..htm
push SysReAllocString
call fcn.00405270
add esp, 0xc
test eax, eax
jne 0x4053c9
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push SysReAllocString
call fcn.00405270
add esp, 0xc
test eax, eax
jne 0x4053c9
lea ecx, [esp + 0x10]
push 0x43d3f0
push ecx
call fcn.0040f260
mov esi, eax
add esp, 8
test esi, esi
jne 0x4053a3
lea edx, [esp + 0x10]
push 0x43d3ec
push edx
call fcn.0040f1e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4053a3
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4053a6
mov byte [esi], 0
push 0x43d3e8
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x4065b0
Capabilities:
Parse pe header

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
cmp word [eax], 0x5a4d
push edi
je 0x4065c8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [eax + 0x3c]
add edi, eax
mov dword [esp + 0x10], edi
cmp dword [edi], 0x4550
je 0x4065e1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
mov ebp, eax
test ebp, ebp
jne 0x406618
mov edx, dword [edi + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x406618
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
xor eax, eax
push 4
push 0x1000
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x50]
push eax
push ebp
call esi
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebp
call esi
mov esi, dword [esp + 0x18]
mov edx, dword [edi + 0x54]
mov edi, eax
push ebx
mov ecx, dword [esi + 0x3c]
add ecx, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
push esi
push ecx
mov edx, dword [ecx + 0x3c]
add eax, edx
mov dword [ebx], eax
mov dword [eax + 0x34], ebp
call fcn.00406700
mov ecx, dword [esi + 0x34]
mov eax, ebp
add esp, 0xc
sub eax, ecx
je 0x4066a1
push eax
push ebx
call fcn.00406890
add esp, 8
push ebx
call fcn.00406910
add esp, 4
test eax, eax
je 0x4066d1
push ebx
call fcn.004067d0
mov eax, dword [ebx]
add esp, 4
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4066e9
add eax, ebp
test eax, eax
je 0x4066d1
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x4066e2
push ebx
call fcn.00406b60
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [ebx + 0x10], 1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret