joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495a33
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0040c0d1
test al, al
je 0x495ab9
mov ecx, dword [ebp - 4]
mov eax, dword [0x4d2910]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp + 8], eax
mov eax, dword [0x4d2924]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp + 0xc]
mov edi, dword [eax]
mov esi, dword [edi]
mov bl, byte [edi + 0x90]
mov dword [ebp - 8], esi
call fcn.00402478
cmp dword [edi + 0x48], 0
jl 0x495a8e
push dword [edi + 0x48]
call fcn.00497919
cmp bl, 0x12
ja 0x495b3b
je 0x495afc
test bl, bl
je 0x495af0
cmp bl, 4
jbe 0x495b7f
cmp bl, 8
je 0x495ad4
cmp bl, 0x10
je 0x495ac2
cmp bl, 0x11
je 0x495b8f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp + 0xc], 0
jl 0x495ab9
push dword [ebp + 0xc]
push 0
push 0x111d
jmp 0x495ae4
cmp dword [ebp + 0xc], 0
jl 0x495ab9
push dword [ebp + 0xc]
push 0
push 0x2001
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x495c02
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x495ab9
jmp 0x495bc8
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jl 0x495ab9
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00401fa0
test byte [edi + 0x92], 0x20
jne 0x495c02
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi]
call esi
push 5
push dword [edi]
call esi
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x495c02
cmp bl, 0x13
je 0x495bb4
cmp bl, 0x14
je 0x495b8f
cmp bl, 0x17
je 0x495b7f
cmp bl, 0x18
je 0x495b5f
jbe 0x495ab9
cmp bl, 0x1b
jbe 0x495b7f
jmp 0x495ab9
cmp dword [ebp + 0xc], 0
jl 0x495ab9
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0xb
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebp + 0xc]
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00401fa0
jmp 0x495bf7
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x495ab9
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00401fa0
push 1
push 0
push dword [edi + 0x34]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x495c02
cmp dword [ebp + 0xc], 0xfffffffe
je 0x495ab9
mov eax, 0xfe000000
cmp dword [ebp + 0xc], eax
jne 0x495bd5
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00401fa0
jmp 0x495c02
push dword [ebp + 0xc]
push 0
push 0x1001
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
push dword [ebp + 0xc]
push 0
push 0x1026
push dword [ebp - 8]
call esi
push 1
push edi
push dword [ebp + 8]
call fcn.00498773
cmp dword [0x4d2390], 0
je 0x495c18
cmp bl, 8
jne 0x495c18
or eax, 0xffffffff
jmp 0x495abb
xor eax, eax
inc eax
jmp 0x495abb
Function at 0x4974d5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0040c0d1
test al, al
je 0x497549
mov ecx, dword [ebp - 8]
mov eax, dword [0x4d2910]
mov esi, dword [ebp + 0xc]
mov edx, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [0x4d2924]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax]
mov ecx, dword [edi]
mov dword [ebp + 8], ecx
cmp esi, 0xffffffff
je 0x49759d
movzx eax, byte [edi + 0x90]
dec eax
sub eax, 1
je 0x497564
sub eax, 1
je 0x497567
sub eax, 3
je 0x49755f
sub eax, 1
je 0x49755a
sub eax, 3
je 0x497552
sub eax, 0xc
jne 0x497588
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
or esi, 0x4000000
jmp 0x497588
or esi, 3
jmp 0x497588
or esi, 0xe
jmp 0x497588
or esi, 4
push 0
test esi, 0x800
je 0x497575
push 1
jmp 0x49757d
or esi, 0x10000
push 0
push 0xcf
push ecx
call edx
mov ecx, dword [ebp + 8]
or esi, 0x50000000
push esi
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp + 8]
mov ebx, eax
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
je 0x4975da
push esi
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov eax, dword [0x4d2924]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
cmp byte [eax + 0x90], 0x13
jne 0x4975da
push esi
push 0
push 0x1036
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov al, byte [edi + 0x93]
mov ecx, dword [ebp - 8]
cmp al, 0xff
je 0x4975ff
movzx eax, al
cmp eax, dword [ecx + 0x190]
je 0x4975ff
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x497608
push 1
push edi
push ecx
call fcn.00498773
mov al, byte [edi + 0x90]
cmp al, 2
je 0x49761b
cmp al, 3
je 0x49761b
cmp esi, 0xffffffff
je 0x49762c
push 0x27
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
test ebx, ebx
setne al
jmp 0x49754b
Function at 0x498ad1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x44
push 0
mov ebx, 0x4d4018
push ebx
call fcn.004226d0
push 0x10
push 0
mov esi, 0x4d405c
push esi
call fcn.004226d0
add esp, 0x18
mov dword [0x4d4018], 0x44
xor eax, eax
inc eax
mov dword [0x4d4044], eax
push esi
push ebx
mov word [0x4d4048], ax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop esi
pop ebx
test eax, eax
je 0x498b36
push dword [0x4d405c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret 4

Function at 0x498b3a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 3
pop esi
mov edx, dword [edi + 4]
mov dword [ebp + 8], edx
cmp dword [edi + 0x190], ebx
je 0x498bec
mov ebx, esi
cmp dword [0x4d2934], esi
jl 0x498be3
mov eax, dword [0x4d2924]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x498bda
cmp dword [ecx + 4], edx
jne 0x498bda
mov dl, byte [ecx + 0x90]
cmp dl, 0xb
je 0x498bd7
mov dh, byte [ecx + 0x93]
movzx eax, dh
cmp eax, dword [edi + 0x190]
je 0x498ba7
cmp byte [edi + 0x198], 0
je 0x498bd7
cmp dh, 0xff
je 0x498bd7
cmp dl, 0xa
je 0x498bd7
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d2924]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x498bd7
cmp byte [eax + 0x90], 0x1a
jne 0x498bd7
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc ebx
cmp ebx, dword [0x4d2934]
jle 0x498b65
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0x190], ebx
cmp dword [0x4d2934], esi
jl 0x498c80
mov eax, dword [0x4d2924]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x498c70
cmp dword [ecx + 4], edx
jne 0x498c70
cmp byte [ecx + 0x90], 0xb
je 0x498c70
movzx eax, byte [ecx + 0x93]
cmp eax, dword [edi + 0x190]
jne 0x498c70
test byte [ecx + 0x92], 0x20
jne 0x498c70
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d2924]
push 4
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d2924]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x498c70
cmp byte [eax + 0x90], 0x1a
jne 0x498c70
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [0x4d2934]
jle 0x498bf8
push 0
push ebx
push 0x130c
push dword [edi + 0x188]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x498ece
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [eax], di
je 0x498fe7
push edi
push edi
push 3
push edi
push edi
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x498f1f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x498f26
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x499016
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x498f1f
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x4a0c04
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x498f1f
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x498fc4
mov eax, edi
cmp dword [ecx], edi
jne 0x498fc4
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [edx]
push 0x2000
push dword [ecx]
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
jmp 0x498fec
mov eax, edi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x64], 0
je 0x499001
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov dword [esi + 0x64], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x499928
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x4d28b0
push edi
call fcn.00402441
mov ecx, dword [0x4d2910]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax]
cmp dword [ebp + 0xc], edi
jne 0x49997d
xor esi, esi
cmp dword [ebx + 0x1a0], esi
je 0x4999df
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push esi
push edi
push dword [ebp - 4]
push dword [ebp - 8]
push esi
push dword [ebx + 0x1a0]
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x4999f9
push dword [ebp + 0xc]
call fcn.004021e4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x4999df
mov ecx, dword [0x4d2924]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx]
mov cl, byte [eax + 0x90]
cmp cl, 0xe
je 0x4999df
cmp cl, 0xf
je 0x4999df
cmp cl, 0x13
je 0x4999df
cmp cl, 0x10
je 0x4999df
xor esi, esi
cmp dword [eax + 0xc], esi
je 0x4999df
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4d2924]
mov ecx, dword [ebp + 8]
push esi
push dword [ebx]
push dword [ebp - 4]
mov eax, dword [eax + ecx*4]
push dword [ebp - 8]
push esi
mov eax, dword [eax]
push dword [eax + 0xc]
jmp 0x499975
movzx ecx, word [ebp + 0x14]
movzx eax, word [ebp + 0x10]
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp + 0xc]
push 0x7b
push edi
call dword [sym.imp.USER32.dll_DefDlgProcW]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x401180
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 1
jle 0x4011be
mov ecx, dword [ebp + 0xc]
nop
mov edx, dword [ecx + 4]
cmp word [edx], 0x2d
jne 0x4011be
cmp word [edx + 2], 0x63
jne 0x4011c7
dec eax
cmp eax, 1
jle 0x4011c7
mov edx, dword [ecx + 8]
add ecx, 8
cmp word [edx], 0x2d
je 0x4011c7
dec eax
mov dword [0x40d3c4], edx
cmp eax, 1
jg 0x401190
cmp dword [0x40d3c4], 0
jne 0x4011cc
or eax, 0xffffffff
pop ebp
ret
pop ebp
jmp fcn.004011e0
Function at 0x401420
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0xffffffff
push eax
xor esi, esi
xor ebx, ebx
push 0x28
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x40157a
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
push ebx
push 3
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x401488
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40157a
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x40157a
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
push ebx
push 3
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40157a
mov dword [ebp - 0x34], esi
cmp dword [ebx], esi
jbe 0x40157a
add ebx, 4
mov eax, dword [ebx + 8]
mov edi, 2
movq xmm0, qword [ebx]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x10]
movq qword [ebp - 0x10], xmm0
push eax
push 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
jne 0x401508
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401571
mov eax, dword [ebp - 0x2c]
mov ecx, 0xffffffff
inc eax
mov dword [ebp - 0x2c], eax
mul edi
cmovb eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
xor esi, esi
test edi, edi
je 0x401571
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
je 0x401571
push str.SeImpersonatePrivilege
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4015a5
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, dword [ebp - 0x34]
add esp, 4
mov eax, dword [ebp - 0x30]
inc edi
add ebx, 0xc
mov dword [ebp - 0x34], edi
cmp edi, dword [eax]
jb 0x4014ca
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x401588
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x401592
push ebx
call edi
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004097a3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
xor esi, esi
mov ecx, dword [ebp - 0xc]
push esi
push esi
push 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 0x28]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x401571
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, 1
call edi
add esp, 4
jmp 0x401577
Function at 0x409fd2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a011
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a011
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a011
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a011
cmp dword [ecx + 0x74], 0xe
jbe 0x40a011
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x50b580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x50b59a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50b5a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50b590
mov eax, 1
add ebx, ebx
jne 0x50b5b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50b5a8
jne 0x50b5c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5a8
xor ecx, ecx
sub eax, 3
jb 0x50b5d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50b64a
mov ebp, eax
add ebx, ebx
jne 0x50b5e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50b5f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50b614
inc ecx
add ebx, ebx
jne 0x50b600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50b5f5
jne 0x50b611
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50b634
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50b625
jmp 0x50b596
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50b634
add edi, ecx
jmp 0x50b596
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50b652
cmp byte [edi], 6
jne 0x50b652
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 0x50b657
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x50b6c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50b684
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb2c]
or eax, eax
je 0x50b6c0
mov dword [ebx], eax
add ebx, 4
jmp 0x50b6a1
call dword [esi + 0xdb28]
mov ebp, dword [esi + 0xdb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50b6fa
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x401090
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [eax], 0xfffffff6
je 0x401167
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401167
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401167
lea ecx, [ebp + 8]
push ebx
push ecx
push edi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 8]
push 0
push eax
push edx
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x40115f
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x401158
push esi
call fcn.00401000
add esp, 4
test eax, eax
je 0x401148
mov ecx, dword [esi + 0x10]
mov ax, word [esi + 0x1c]
add ecx, esi
push eax
push ecx
call fcn.00401050
add esp, 8
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x104]
push eax
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x104]
push edx
call fcn.00405f50
add esp, 4
lea eax, [ebp - 0x104]
push eax
call fcn.00405f90
add esp, 4
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
je 0x4011c2
cmp eax, 2
jne 0x4011f1
cmp byte [ebp - 0x103], 0x3a
jne 0x4011f1
lea edx, [ebp - 0x104]
mov esi, 1
push edx
call fcn.00401380
add esp, 4
lea eax, [ebp - 0x104]
push 0x414030
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401212
xor eax, eax
test esi, esi
setne al
add eax, 0xfffffffe
pop esi
mov esp, ebp
pop ebp
ret
neg esi
sbb esi, esi
add esi, 2
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4016c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call edi
test eax, eax
jne 0x40173b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40173b
cmp eax, 5
jne 0x4016fa
mov eax, 7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00401660
add esp, 8
test eax, eax
je 0x401730
lea ecx, [ebp - 0x104]
push ecx
call fcn.004016c0
add esp, 4
test eax, eax
jne 0x401730
push eax
push esi
call edi
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401810
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x418810]
test eax, eax
je 0x40185b
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push eax
push 0x414038
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x418810]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push edx
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push 0x4172fc
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401870
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 5
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push eax
push 0x41403c
push ecx
call edi
add esp, 0xc
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x14]
push 0x104
push edx
push 0
push eax
call fcn.00401810
add esp, 0x10
test eax, eax
jne 0x4018d3
lea ecx, [ebp - 0x118]
push 0x104
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [ebp - 0x118]
test al, al
je 0x40192f
lea edx, [ebp - 0x118]
push edx
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40192f
mov eax, dword [0x41884c]
lea ecx, [ebp - 0x118]
test eax, eax
push ecx
je 0x40191a
mov edx, dword [0x418848]
push eax
push 0x414048
push edx
call edi
mov eax, dword [0x418848]
add esp, 0x10
push eax
push 0
push 0x46f
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x401982
push 0xfffffffffffffff4
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, eax
push edi
push ebx
call fcn.00405310
mov edx, dword [0x418848]
add esp, 8
lea eax, [ebp - 0x14]
push 0x104
push edx
push edi
push eax
call fcn.00401810
add esp, 0x10
test eax, eax
je 0x401973
mov ecx, dword [0x418848]
push ecx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x401933
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret