joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497580
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7d88
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x523f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4975fc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4975e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov ebx, esp
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
push eax
lea edi, [ebp - 0x14]
lea esi, [ebp - 0x10]
call fcn.0042545f
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.0046ed30
add esp, 4
or edx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test eax, eax
mov eax, dword [ebp + 8]
jne 0x49766a
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4975e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x497683
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x499840
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebx + 0x3c]
movzx ecx, word [eax + ebx + 0x14]
add eax, ebx
push esi
push edi
movzx edi, word [eax + 6]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov dword [ebp - 4], edx
test edi, edi
jle 0x499888
lea eax, [edx + 8]
mov edx, dword [eax]
mov esi, edx
test edx, edx
jne 0x49986f
mov esi, dword [eax + 8]
mov edx, dword [eax + 4]
cmp dword [ebp + 8], edx
jb 0x499880
add esi, edx
mov edx, dword [ebp + 8]
cmp edx, esi
jb 0x499892
inc ecx
add eax, 0x28
cmp ecx, edi
jl 0x499864
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ecx + ecx*4]
mov ecx, dword [ebp - 4]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
pop edi
add eax, ebx
add eax, edx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4998b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7df3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x523f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea edi, [esi + 0x20]
call fcn.004ab443
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4998fc
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
lea ecx, [ebp + 0xc]
push ecx
mov byte [ebp - 4], 1
mov ecx, edi
mov dword [esi + 0x38], 0
call fcn.00424ef9
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
push 0x80
push 3
mov edx, ebx
neg edx
sbb edx, edx
push edi
and edx, 0x116
push 1
add edx, 0x120089
push edx
push eax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x49996e
push 0x514bb0
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], str.Cant_open_file
call fcn.004c02cc
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
cmp edi, edi
ja 0x4999a5
jb 0x499987
cmp eax, 0x40
jae 0x4999a5
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x514bb0
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], str.Incorrect_PE_file__too_small_
call fcn.004c02cc
mov edx, dword [esi]
xor ecx, ecx
cmp ebx, edi
push edi
setne cl
push edi
push edi
lea ecx, [ecx + ecx + 2]
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x4999e3
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x514bb0
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], str.Cant_create_file_mapping
call fcn.004c02cc
xor edx, edx
cmp ebx, edi
setne dl
push edi
push edi
push edi
lea edx, [edx + edx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x30], eax
cmp eax, edi
jne 0x499a26
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi]
push ecx
call edi
push 0x514bb0
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], str.Cant_create_map_file_view
call fcn.004c02cc
mov dword [esi + 0x34], 1
mov dword [esi + 0x38], ebx
call fcn.00499a70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499a5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x499a70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x30]
mov ecx, 0x5a4d
mov dword [esi + 0xc], eax
push edi
cmp word [eax], cx
je 0x499ac2
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x499a95
push eax
call edi
mov eax, dword [esi]
test eax, eax
je 0x499aa3
cmp eax, 0xffffffff
je 0x499aa3
push eax
call edi
mov edx, dword [esi + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x514bb0
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], str.Incorrect_PE_file__e_magic___IMAGE_DOS_SIGNATURE_
call fcn.004c02cc
mov ecx, dword [eax + 0x3c]
xor edx, edx
lea edi, [ecx + 0xf8]
cmp edx, dword [esi + 0x2c]
jb 0x499b1c
ja 0x499ad9
cmp edi, dword [esi + 0x28]
jb 0x499b1c
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x499ae9
push eax
call edi
mov eax, dword [esi]
test eax, eax
je 0x499af7
cmp eax, 0xffffffff
je 0x499af7
push eax
call edi
cmp dword [esi + 0x34], 0
je 0x499b07
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x514bb0
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], str.Incorrect_PE_file__header___filesize_
call fcn.004c02cc
add ecx, eax
mov dword [esi + 0x40], ecx
cmp dword [ecx], 0x4550
je 0x499b6c
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x499b39
push eax
call edi
mov eax, dword [esi]
test eax, eax
je 0x499b47
cmp eax, 0xffffffff
je 0x499b47
push eax
call edi
cmp dword [esi + 0x34], 0
je 0x499b57
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x514bb0
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], str.Incorrect_PE_file__incorrect_signature_
call fcn.004c02cc
add ecx, 0x18
push ebx
xor ebx, ebx
mov dword [esi + 0x14], ecx
mov edx, 0x20b
cmp word [ecx], dx
sete bl
mov ecx, ebx
mov dword [esi + 0x3c], ecx
pop ebx
test ecx, ecx
je 0x499b9d
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [esi + 0x44], eax
mov edx, dword [esi + 0x44]
add eax, 0x18
mov dword [esi + 0x18], eax
jmp 0x499ba0
mov edx, dword [esi + 0x40]
mov ax, word [edx + 6]
mov ecx, edx
add ecx, 4
cmp dword [esi + 0x3c], 0
mov dword [esi + 0x10], ecx
mov word [esi + 8], ax
pop edi
je 0x499bc4
mov eax, dword [esi + 0x18]
add eax, 0x70
mov dword [esi + 0x1c], eax
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
add eax, 0x60
mov dword [esi + 0x1c], eax
mov esp, ebp
pop ebp
ret
Function at 0x49b9f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x49ba1b
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x52612c], 0xffffffff
jne 0x49baf0
push ecx
mov ecx, esp
mov dword [ebp - 8], esp
push str.License.dat
call fcn.004247eb
lea eax, [ebp - 8]
push eax
call fcn.0046b300
mov esi, dword [eax]
add esp, 8
call fcn.004ab443
test eax, eax
jne 0x49ba59
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, eax
add edi, 0x10
mov dword [ebp - 4], edi
test esi, esi
je 0x49ba8f
test esi, 0xffff0000
jne 0x49ba93
movzx esi, si
push esi
call fcn.004b33b0
test eax, eax
je 0x49baa9
push esi
push eax
lea ecx, [ebp - 4]
call fcn.00424e6b
jmp 0x49baa6
xor eax, eax
jmp 0x49ba9c
push esi
call fcn.004b9b7a
add esp, 4
push eax
push esi
lea ecx, [ebp - 4]
call fcn.004253ee
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49bac8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, edi
call fcn.0049adb0
mov dword [0x52612c], eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49baf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [0x52612c]
test ebx, ebx
je 0x49bb08
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49f830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x38], 0
mov dl, byte [eax + 0x34]
push ebx
push esi
mov dword [ebp - 4], 0
mov ebx, 1
jle 0x49f87b
movzx esi, dl
push edi
nop
mov ecx, dword [eax + 0x260]
mov edi, ecx
shr edi, 0x18
shl ecx, 8
xor edi, esi
xor ecx, dword [edi*4 + 0x525438]
mov dword [eax + 0x260], ecx
mov ecx, dword [ebp - 4]
add ecx, ebx
cmp ecx, dword [eax + 0x38]
mov dword [ebp - 4], ecx
jl 0x49f850
pop edi
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], bl
mov esi, dword [eax + 0x38]
mov ecx, esi
sub ecx, ebx
je 0x49f909
sub ecx, ebx
je 0x49f8eb
sub ecx, ebx
je 0x49f8df
mov byte [esi + eax + 0x54], bl
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov dl, byte [eax + 0x38]
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a1880
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x523f10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.004ba4b0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a18d2
cmp dword [ebp - 0x114], 6
lea eax, [esi + 1]
jae 0x4a18d4
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b9212
mov esp, ebp
pop ebp
ret
Function at 0x4a3d10
Capabilities:
Write clipboard data

Disassembly:
push ebx
push esi
xor ebx, ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a3d20
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4a3d77
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4a3d77
mov edx, eax
mov ecx, edi
sub edx, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x4a3d53
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebx, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4a8d10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
mov ebx, ecx
test esi, esi
je 0x4a8d46
test ebx, ebx
je 0x4a8d46
mov dl, byte [esi + edi]
mov ecx, dword [ebp + 8]
xor dl, byte [ecx]
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
inc eax
inc ecx
inc esi
dec ebx
and esi, 0xf
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ecx
jne 0x4a8d26
cmp ebx, 0x10
jb 0x4a8dcf
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, ecx
sub eax, edi
mov dword [ebp - 4], eax
mov eax, edx
sub eax, edi
mov dword [ebp - 8], eax
mov eax, ebx
shr eax, 4
mov dword [ebp - 0xc], eax
shl eax, 4
add ecx, eax
add edx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
push edi
push ecx
call fcn.0048e710
mov edx, dword [ebp + 0x14]
add esp, 0xc
call fcn.004a8cf0
cmp esi, 0x10
jae 0x4a8dba
mov ecx, 0xf
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + eax]
xor edx, dword [eax]
mov esi, dword [ebp - 4]
mov dword [esi + eax], edx
add eax, 4
sub ecx, 1
jne 0x4a8da4
mov eax, 0x10
add dword [ebp - 4], eax
add dword [ebp - 8], eax
sub ebx, eax
xor esi, esi
sub dword [ebp - 0xc], 1
jne 0x4a8d78
test ebx, ebx
je 0x4a8e1d
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
push edi
push ecx
call fcn.0048e710
mov edx, dword [ebp + 0x14]
add esp, 0xc
call fcn.004a8cf0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub edx, edi
lea eax, [esi + edi]
sub ecx, edi
mov dword [ebp - 0xc], edx
add esi, ebx
mov edi, edi
mov dl, byte [eax + ecx]
xor dl, byte [eax]
mov edi, dword [ebp - 0xc]
dec ebx
mov byte [eax + edi], dl
inc eax
test ebx, ebx
jne 0x4a8e00
mov eax, dword [ebp + 0x18]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4acdae
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 0x4acdd2
cmp dword [edi + 0x54], 0
jne 0x4acdd2
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004ad7a5
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.004acd6f
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 0x4b2fcc
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 0x4b3013
call fcn.004ad7a5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4b3013
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4b302f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004b2b44
mov esi, eax
test edi, edi
je 0x4b302d
test ebx, ebx
je 0x4b302d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4b9212
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x523f10]
jne 0x4b921c
repz ret
jmp fcn.004c193e

Function at 0x4ccb29
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.004c12a2
and dword [ebp - 4], 0
cmp dword [0x529528], 0
mov ebx, eax
jne 0x4ccbda
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4ccc8b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4e8220
push edi
call esi
test eax, eax
je 0x4ccc8b
push eax
call fcn.004c1230
mov dword [esp], 0x4e8210
push edi
mov dword [0x529528], eax
call esi
push eax
call fcn.004c1230
mov dword [esp], 0x4e81fc
push edi
mov dword [0x52952c], eax
call esi
push eax
call fcn.004c1230
mov dword [esp], 0x4e81e0
push edi
mov dword [0x529530], eax
call esi
push eax
call fcn.004c1230
pop ecx
mov dword [0x529538], eax
test eax, eax
je 0x4ccbda
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c1230
pop ecx
mov dword [0x529534], eax
mov eax, dword [0x529534]
cmp eax, ebx
je 0x4ccc32
cmp dword [0x529538], ebx
je 0x4ccc32
push eax
call fcn.004c12ab
push dword [0x529538]
mov esi, eax
call fcn.004c12ab
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4ccc32
test edi, edi
je 0x4ccc32
call esi
test eax, eax
je 0x4ccc29
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4ccc29
test byte [ebp - 0xc], 1
jne 0x4ccc32
or dword [ebp + 0x10], 0x200000
jmp 0x4ccc6b
mov eax, dword [0x52952c]
cmp eax, ebx
je 0x4ccc6b
push eax
call fcn.004c12ab
pop ecx
test eax, eax
je 0x4ccc6b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4ccc6b
mov eax, dword [0x529530]
cmp eax, ebx
je 0x4ccc6b
push eax
call fcn.004c12ab
pop ecx
test eax, eax
je 0x4ccc6b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x529528]
call fcn.004c12ab
pop ecx
test eax, eax
je 0x4ccc8b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4ccc8d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x450012
Capabilities:
Encode data using xor

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
xor ebx, ebx
push ebx
push ebx
push 0x80000000
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [0x44ff28]
sub edi, edi
sub ecx, ecx
mov cl, 0xe5
inc edi
loop 0x45003a
call 0x450042
pop esi
sub esi, 0xffffffc2
push esi
sub ebx, ebx
or ebx, 0x2394
mov al, byte [esi]
xor ax, di
xchg byte [esi], al
inc esi
sub ebx, 1
cmp ebx, 0
ja 0x450052
pop esi
mov esp, dword fs:[0]
pop dword fs:[0]
pop edi
pop ebp
jmp esi

Function at 0x40c470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c488
mov eax, 1
add ebx, ebx
jne 0x40c4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c4a0
jne 0x40c4bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4a0
xor ecx, ecx
sub eax, 3
jb 0x40c4d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c542
mov ebp, eax
add ebx, ebx
jne 0x40c4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c50c
inc ecx
add ebx, ebx
jne 0x40c4f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c4ed
jne 0x40c509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c52c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c51d
jmp 0x40c48e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c52c
add edi, ecx
jmp 0x40c48e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c54a
cmp byte [edi], 1
jne 0x40c54a
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 eax, ebx
loop 0x40c54f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c5c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd70c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd748]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c57c
mov ecx, edi
jns 0x40c5ab
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 + 0xd74c]
or eax, eax
je 0x40c5c1
mov dword [ebx], eax
add ebx, 4
jmp 0x40c599
call dword [esi + 0xd750]
popal
jmp 0x401128
Function at 0x409230
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47c06b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046eb1d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4092b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046c3dd
mov eax, dword [eax]
push 0x49b1f0
push eax
call fcn.0045f0a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046eda8
test bl, bl
je 0x4092b2
push 0x49b1f0
lea ecx, [esp + 0xc]
call fcn.0046f184
push 0x49ed64
lea ecx, [esp + 0xc]
call fcn.0046f184
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4092ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046eda8
jmp 0x4093b9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x409372
lea edx, [esp + 0x7c]
push 0x49ed60
push edx
call fcn.0045f0a4
add esp, 8
test eax, eax
je 0x409372
lea eax, [esp + 0x7c]
push 0x49ed5c
push eax
call fcn.0045f0a4
add esp, 8
test eax, eax
je 0x409372
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409302
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046eda8
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x409bb0
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 0x409c12
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