joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401740
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 4
push 1
push dword [ebp + 0xc]
call fcn.0041e5a5
add esp, 0x10
cmp eax, 4
sete al
pop ebp
ret

Function at 0x402930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e269
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43a204]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov eax, dword [ebp + 0xc]
lea esi, [edi + 0x28]
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [edi], vtable.CConfigDlg.0
mov dword [edi + 0x24], eax
mov dword [esi], 5
mov dword [edi + 0x2c], 1
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
lea ebx, [edi + 0x50]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
push 0
push 0
push 0x2001f
push 0
push 0
push 0x42fae0
push 0x80000001
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 3
call fcn.00404a30
lea eax, [ebp + 8]
mov dword [ebp + 8], 4
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x14]
push eax
push 0
push str.area
push dword [edi + 0x38]
call esi
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0
lea eax, [ebp + 8]
push eax
push 0
push str.expo
push dword [edi + 0x38]
call esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x402a8d
mov eax, 0xaaaaaaab
mul ecx
shr edx, 3
lea eax, [edx + edx*2]
shl eax, 2
sub ecx, eax
jne 0x402a8d
push ebx
push edx
mov ecx, ebx
call fcn.00402570
lea eax, [ebp + 0xc]
push eax
push dword [ebx]
lea eax, [ebp + 8]
push eax
push 0
push str.expo
push dword [edi + 0x38]
call esi
push 0
lea eax, [edi + 0x48]
push eax
lea eax, [edi + 0x44]
push eax
push dword [edi + 0x24]
call dword [sym.imp.toupcam.dll_Toupcam_get_ExpTimeRange]
push 0
lea eax, [edi + 0x4e]
push eax
lea eax, [edi + 0x4c]
push eax
push dword [edi + 0x24]
call dword [sym.imp.toupcam.dll_Toupcam_get_ExpoAGainRange]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402bd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e2de
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43a204]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
lea ecx, [edi + 0x38]
mov dword [ebp - 4], 0
call fcn.00402770
mov dword [edi], vtable.CMainFrame.0
lea eax, [edi + 0x99]
mov dword [edi + 0x34], vtable.CMainFrame.1.0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 1
mov dword [edi + 0x64], 5
mov dword [edi + 0x68], 0
mov word [edi + 0x70], 0
mov byte [edi + 0x72], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x88], 0
push 0x428
push 0
push eax
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], esi
mov dword [edi + 0x74], vtable.CVideoView.0
mov byte [edi + 0x98], 0
mov dword [edi + 0x4c4], 0
mov dword [edi + 0x4c8], eax
mov dword [edi + 0x4cc], 0
call fcn.00415b10
mov eax, dword [edi + 0x4c8]
mov ecx, 8
add esp, 0xc
mov dword [eax], 0x28
mov eax, dword [edi + 0x4c8]
mov word [eax + 0xe], cx
mov ecx, 1
mov eax, dword [edi + 0x4c8]
mov word [eax + 0xc], cx
xor eax, eax
mov ecx, dword [edi + 0x4c8]
mov ecx, dword [ecx]
add ecx, 0x9b
add ecx, edi
mov byte [ecx - 2], al
lea ecx, [ecx + 4]
mov byte [ecx - 5], al
mov byte [ecx - 4], al
inc eax
cmp eax, 0x100
jl 0x402d37
push 1
lea ecx, [edi + 0x4d4]
mov byte [ebp - 4], 2
mov dword [edi + 0x4d0], 0
call fcn.00410570
mov dword [edi + 0x5a4], 0
mov eax, edi
mov dword [edi + 0x5a8], 0
mov dword [edi + 0x5ac], 0xffffffff
mov dword [edi + 0x5b0], 0
mov dword [edi + 0x5b4], 0
mov dword [edi + 0x5b8], 0
mov dword [edi + 0x5bc], 0
mov dword [edi + 0x5c0], 0
mov dword [edi + 0x5c4], 0
mov dword [edi + 0x5c8], 0
mov dword [edi + 0x5cc], 0
mov dword [edi + 0x5d0], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43a204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push 1
push eax
mov byte [ebp - 8], 0
call fcn.0041e5a5
add esp, 0x10
cmp eax, 4
jne 0x4047df
lea eax, [ebp - 0xc]
cmp dword [eax], 0x534e4340
jne 0x4047df
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a6c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00413a6c
mov esp, ebp
pop ebp
ret
Function at 0x4059e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x405a6e
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x405acd
mov esi, dword [ebp + 0xc]
mov ecx, 1
mov edx, dword [esi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x405a29
push edi
mov ecx, esi
call fcn.0040c000
mov edx, dword [esi]
push edi
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x405a4f
mov ecx, dword [esi]
test ecx, ecx
je 0x405a53
push dword [ecx - 8]
push ecx
call fcn.00417844
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x405acd
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x405acd
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
lea edx, [eax - 0x10]
mov edi, dword [edx]
je 0x405ac4
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x405aa4
cmp dword [eax - 8], 0
jl 0x405acd
mov dword [eax - 0xc], 0
xor ecx, ecx
mov eax, dword [esi]
pop edi
pop esi
pop ebx
mov word [eax], cx
xor eax, eax
pop ebp
ret 8
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x405ab8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push 0x80070057
call fcn.00404590
int3
Function at 0x40ab10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
mov edi, ecx
push 0
push 0x130b
push dword [edi + 0x4d0]
call esi
mov ebx, eax
test ebx, ebx
js 0x40ab6b
mov ecx, dword [edi + 0x5b4]
mov eax, 0x4ec4ec4f
sub ecx, dword [edi + 0x5b0]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x40ab6b
imul esi, ebx, 0xd0
add esi, dword [edi + 0x5b0]
lea eax, [esi + 4]
jmp 0x40abf0
cmp dword [edi + 0x54], 0
jne 0x40ab9e
cmp byte [edi + 0x72], 0
je 0x40ac85
push 0
push 0
push 0x1304
push dword [edi + 0x4d0]
call esi
lea ecx, [ebx + 1]
cmp ecx, eax
je 0x40abe4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push 0x1304
push dword [edi + 0x4d0]
call esi
lea ecx, [ebx + 1]
cmp ecx, eax
jne 0x40abbe
lea esi, [edi + 0x74]
lea eax, [edi + 0x78]
jmp 0x40abf0
cmp byte [edi + 0x72], 0
je 0x40ac85
push 0
push 0
push 0x1304
push dword [edi + 0x4d0]
call esi
lea ecx, [ebx + 2]
cmp ecx, eax
jne 0x40ac85
lea eax, [edi + 0x4d8]
lea esi, [edi + 0x4d4]
neg esi
sbb esi, esi
and esi, eax
test esi, esi
je 0x40ac85
mov eax, dword [edi + 0x5a8]
cmp eax, esi
je 0x40ac85
mov ecx, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], ecx
test eax, eax
je 0x40ac1b
push 0
push dword [eax]
call ecx
mov dword [edi + 0x5a8], esi
test ebx, ebx
js 0x40ac54
mov ecx, dword [edi + 0x5b4]
mov eax, 0x4ec4ec4f
sub ecx, dword [edi + 0x5b0]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x40ac54
imul eax, ebx, 0xd0
add eax, dword [edi + 0x5b0]
jmp 0x40ac6f
lea edx, [edi + 0x4d4]
mov ecx, edx
lea eax, [edi + 0x4d8]
neg ecx
sbb ecx, ecx
and ecx, eax
xor eax, eax
cmp esi, ecx
cmove eax, edx
push 5
mov dword [edi + 0x5a4], eax
push dword [esi]
call dword [ebp - 4]
push 1
mov ecx, edi
call fcn.0040f0a0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40dd40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e8e6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x43a204]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40ddec
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40ddec
call fcn.004043d0
mov esi, eax
jmp 0x40dedc
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40de0f
call fcn.004043d0
jmp 0x40decf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40de2d
call fcn.004043d0
jmp 0x40decf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40de4e
mov esi, 0x8007000e
jmp 0x40ded1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00404200
jmp 0x40de78
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40de8f
mov esi, 0x8007000e
jmp 0x40ded1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40deaf
call fcn.004043d0
jmp 0x40decf
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040dba0
mov esi, eax
test edi, edi
je 0x40dedc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40df00
lea ecx, [ebp - 0x418]
call fcn.00405880
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413a6c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410250
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8418
call fcn.00413ba0
mov eax, dword [0x43a204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.0041bca2
cmp dword [eax], 2
jne 0x41033b
call fcn.0041bca8
mov ecx, 0x43038c
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4102ad
test dx, dx
je 0x4102a9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4102ad
add eax, 4
add ecx, 4
test dx, dx
jne 0x410287
xor eax, eax
jmp 0x4102b2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41033b
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00415b10
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x410326
lea eax, [ebp - 0x8410]
push eax
call dword [sym.imp.toupcam.dll_Toupcam_EnumV2]
mov edi, eax
test edi, edi
je 0x410326
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea esi, [ebp - 0x8390]
push 3
push 0
push esi
lea eax, [ebp - 0x210]
push eax
push str.open
push 0
call ebx
add esi, 0x104
sub edi, 1
jne 0x410306
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a6c
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x8418]
mov dword [ebp - 0x8418], 8
push eax
mov dword [ebp - 0x8414], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
push dword [ebp + 8]
mov ecx, 0x43b304
push 0
call fcn.00405e60
call fcn.0040e770
mov edi, dword [0x43b29c]
mov ebx, eax
add edi, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x43b33c]
test esi, esi
je 0x4103de
cmp dword [esi + 4], 0
jle 0x4103ac
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x43b33c]
test esi, esi
je 0x4103de
mov eax, dword [esi]
test eax, eax
je 0x4103c5
push eax
call fcn.00417ad5
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.004135cf
add esp, 8
push edi
mov dword [0x43b33c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x43b338]
test esi, esi
je 0x410437
mov eax, dword [esi]
test eax, eax
je 0x41040e
push eax
call fcn.00417ad5
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x410425
push eax
call fcn.00417ad5
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.004135cf
add esp, 8
mov ecx, 0x43b304
call fcn.0040ed40
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a6c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x411960
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x43a204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x14]
push eax
xorps xmm0, xmm0
xor ebx, ebx
movups xmmword [ebp - 0x14], xmm0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [edi + 4]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
mov eax, dword [sym.imp.GDI32.dll_SelectObject]
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
call eax
movups xmm0, xmmword [ebp - 0x14]
sub esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, esp
mov ecx, edi
movups xmmword [eax], xmm0
lea eax, [ebp - 0x20]
push eax
call fcn.00411090
cmp dword [ebp - 0x1c], ebx
je 0x411abd
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
push eax
push 0x18
push esi
movups xmmword [ebp - 0x48], xmm0
movq qword [ebp - 0x38], xmm0
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x411ab4
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x24], eax
test eax, eax
jle 0x411ab4
mov edi, dword [ebp - 0x40]
test edi, edi
jle 0x411ab4
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x1f]
shr eax, 3
and eax, 0x1ffffffc
imul eax, edi
add eax, 0x28
push eax
call fcn.00417ada
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x411ab4
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov eax, dword [ebp - 0x24]
push 0
push ebx
mov dword [ebx + 4], eax
lea eax, [ebx + 0x28]
push eax
push edi
push 0
push esi
push dword [ebp - 0x18]
mov dword [ebx], 0x28
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], 0x180001
mov dword [ebx + 0x10], 0
call dword [sym.imp.GDI32.dll_GetDIBits]
cmp edi, eax
je 0x411ab4
push ebx
call fcn.00417ad5
add esp, 4
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [ebp - 0x28]
test esi, esi
je 0x411ac8
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a6c
mov esp, ebp
pop ebp
ret
Function at 0x425fb7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00425e36
Function at 0x1238b40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbd1000]
push edi
or ebp, 0xffffffff
jmp 0x1238b62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1238b69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1238b58
mov eax, 1
add ebx, ebx
jne 0x1238b7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1238b8c
jne 0x1238bab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1238bab
dec eax
add ebx, ebx
jne 0x1238b98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1238b70
add ebx, ebx
jne 0x1238ba7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1238bfd
xor ecx, ecx
sub eax, 3
jb 0x1238bc3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1238c32
sar eax, 1
mov ebp, eax
jmp 0x1238bce
add ebx, ebx
jne 0x1238bce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1238b9c
inc ecx
add ebx, ebx
jne 0x1238bdc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1238b9c
add ebx, ebx
jne 0x1238be9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1238bde
jne 0x1238bfa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1238bde
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1238c1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1238c0e
jmp 0x1238b5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1238c1c
add edi, ecx
jmp 0x1238b5e
pop esi
mov edi, esi
mov ecx, 0x12
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1238c3a
cmp byte [edi], 0
jne 0x1238c3a
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 0x1238c3f
lea edi, [esi + 0xe36000]
mov eax, dword [edi]
or eax, eax
je 0x1238cae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe38510]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe38560]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1238c6c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe38564]
or eax, eax
je 0x1238ca8
mov dword [ebx], eax
add ebx, 4
jmp 0x1238c89
call dword [esi + 0xe38568]
popal
jmp section.UPX0
Function at 0x1005ad60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101258d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1005ad90
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1005adc0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1005adc0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1005aebe
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1005ade9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1005ae1d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1005ae7c
sub eax, 1
je 0x1005ae7c
sub eax, 2
jne 0x1005aebe
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1001adb0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1005ae9d
lfence
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1005aebe
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1005aebe
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
Function at 0x420bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x420bbf
pop dword [ebp - 0x4c]
mov eax, 0xdf1fef8d
add eax, 0x21221c32
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3cdee
push 0
mov eax, 0xf9420f2d
add eax, 0x70042eb
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x4312
xor edx, edx
add edx, eax
mov esi, 0x435400
add esi, dword [ebp - 0x4c]
mov ebx, 0x607c1bb1
add dword [ebp - 0x38], ecx
mov edi, dword [esi]
add dword [ebp - 0x20], 0x98419425
xor edi, ebx
mov dword [ebp - 0x30], 0xf3e55697
mov dword [edx], edi
xor dword [ebp - 0x1c], ebx
add edx, 4
add esi, 0x924454a7
add esi, 0x6dbbab5d
loop 0x420c0e
add eax, 0x6192c541
sub eax, 0x6191c626
xor ebx, ebx
add ebx, eax
add eax, 0x36a455b7
add eax, 0xc95baa4e
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret