joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458040
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x458073
push esi
call fcn.004663e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45806c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4580f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4580e2
mov eax, dword [esi + 8]
test eax, eax
je 0x458097
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4580de
cmp eax, 2
je 0x4580e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45808a
cmp eax, 3
je 0x4580bd
cmp eax, 1
jne 0x45808a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45808a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45808a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00458120
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x458108
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00458120
add esp, 4
pop esi
ret

Function at 0x458990
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4589b1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4589b1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4589b1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x473dd0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x473e73
test eax, eax
jbe 0x473e73
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x473e73
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x473e1e
xor esi, esi
jmp 0x473e24
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x473e4f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00477710
add esi, eax
push esi
mov ebx, esi
call fcn.00477710
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x473e30
pop ebp
test edi, edi
pop edi
jne 0x473e73
test ebx, ebx
je 0x473e73
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004896b0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x473f95
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 0x4740ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4740ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.0049b3ed
mov esi, eax
test esi, esi
je 0x4740ad
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 0x4740ad
mov ecx, esi
call fcn.00473f20
cmp edi, eax
jge 0x4740ad
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 0x474033
mov dword [esp + 0x34], 1
jmp 0x47408e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4740ad
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.004734d0
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 0x478db0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x478dfa
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x478e29
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x478e6b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x49bd91
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49bdc9
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.00499d7e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00499d56
jmp 0x49bdd5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49d486
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 0x49d4c8
call fcn.004a31ab
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49d4c8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49d4bf
xor eax, eax
jmp 0x49d4d0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049d4d6
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a36db
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 0x4a3709
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a3727
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a3641
jmp 0x4a3727
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a3727
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a3641
test edi, edi
mov eax, edi
jne 0x4a3711
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x401530
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40155b
push 0
push 0x40c2f0
push str.Not_a_valid_executable_file
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x401584
push 0
push 0x40c2f0
push str.No_PE_header_found
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x4015ca
mov ecx, dword [ebx + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x4015ca
mov edi, str.Cant_reserve_memory
call fcn.00401000
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x50]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call fcn.00401fa0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.004010a0
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x40164e
push eax
mov eax, esi
call fcn.00401230
add esp, 4
mov ecx, esi
call fcn.004012c0
test eax, eax
je 0x401699
push esi
call fcn.00401150
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
test eax, eax
je 0x4016b2
add eax, edi
push 0
jne 0x40167d
push 0x40c2f0
push str.Library_has_no_entry_point
jmp 0x401691
push 1
push edi
call eax
test eax, eax
jne 0x4016ab
push eax
push 0x40c2f0
push str.Cant_attach_library
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call fcn.004014a0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401770
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
push edi
mov edi, dword [esi + eax + 0x50]
test edi, edi
jne 0x40178b
pop edi
xor al, al
pop esi
pop ebp
ret 4
push ebx
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x40180b
lea ecx, [ebp + 8]
push ecx
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push esi
push ebx
call fcn.00401fa0
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + edx + 0x28]
mov cl, byte [eax + esi]
add eax, esi
add esp, 0xc
cmp cl, 0xe9
jne 0x4017d5
mov ecx, dword [eax + 1]
lea eax, [eax + ecx + 5]
jmp 0x4017e2
cmp cl, 0xeb
jne 0x4017e2
movsx edx, byte [eax + 1]
lea eax, [eax + edx + 2]
push esi
mov dword [eax], 0x1b8
mov dword [eax + 4], 0x12c200
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x40
push 0x3000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x401814
pop ebx
pop edi
xor al, al
pop esi
pop ebp
ret 4
push edi
push ebx
push esi
call fcn.00401fa0
add esp, 0xc
push 0x4000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x400
push 0
push esi
call fcn.00402310
add esp, 0xc
pop ebx
pop edi
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x401d30
Capabilities:
Read .ini file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 0x401a40
push 0x40c438
mov dword [0x40fef4], eax
call fcn.00401ac0
push 0x40c2f0
push 0x40c438
call fcn.00401b30
push eax
mov dword [0x40fef8], eax
call fcn.00401b70
mov ecx, dword [0x40fef8]
add esp, 0x14
push 0x3e9
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push str.ASO
push 0
push 0
push 0
push 0
push 0x86
push 0
push 0
push 1
push 0
push 0
push 0
push 7
push 0xc
mov dword [0x40fefc], eax
call dword [sym.imp.GDI32.dll_CreateFontW]
mov edx, dword [0x40fefc]
push 0
push eax
push 0x30
push edx
mov dword [0x40ff00], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.D:QQPCMgrInterface.ini
push 0
push str.ComboBoxSysType
push 0x40c3d4
call esi
push str.D:QQPCMgrInterface.ini
push 0
push str.ComboBoxSystem
push 0x40c3d4
mov edi, eax
call esi
cmp edi, 2
jne 0x401e2d
test eax, eax
je 0x401dfb
cmp eax, 1
jne 0x401e0b
push str.C:WindowsKt.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x40fee8], eax
mov eax, dword [0x40fee8]
push str.Interface
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x40fee8]
push ecx
mov dword [0x40fef0], eax
call fcn.00401770
push 0x40c380
lea edx, [ebp + 8]
push str.C:ooo.dll
push edx
mov dword [ebp + 8], 0
call fcn.00402c17
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x401e6b
push eax
push 0x40c2f0
push 0x40c364
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
push 2
push 0
push eax
call fcn.00402adf
mov eax, dword [ebp + 8]
push eax
call fcn.004029f0
mov edi, eax
push edi
call fcn.004027c8
mov ecx, dword [ebp + 8]
push 0
push 0
push ecx
mov esi, eax
call fcn.00402adf
mov edx, dword [ebp + 8]
push edx
push edi
push 1
push esi
call fcn.004027ab
mov eax, dword [ebp + 8]
push eax
call fcn.004024ed
push esi
call fcn.00401530
add esp, 0x38
test eax, eax
jne 0x401ecd
test esi, esi
je 0x401f11
push esi
call fcn.00402446
add esp, 4
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
push str.ItInA
push eax
call fcn.004016c0
mov ecx, dword [0x40fef8]
add esp, 8
push 0x40fee0
push 0x40fee4
push 0x40fef0
push ecx
mov dword [0x40feec], eax
mov dword [0x40fee4], 0x401c10
mov dword [0x40fee0], 0x401c30
call eax
call fcn.00401ba0
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x402437
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f020]
jne 0x402441
repz ret
jmp fcn.004040cd
Function at 0x408dd3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40f020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004064cf
and dword [ebp - 0x14], 0
cmp dword [0x4123c0], 0
mov dword [ebp - 0x18], eax
jne 0x408e86
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408f2e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40d3e4
push ebx
call edi
test eax, eax
je 0x408f2e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4123c0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4123c4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4123c8], eax
call edi
push eax
call esi
mov dword [0x4123d0], eax
test eax, eax
je 0x408e86
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4123cc], eax
mov eax, dword [0x4123cc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408edf
cmp dword [0x4123d0], ecx
je 0x408edf
push eax
call esi
push dword [0x4123d0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408edf
test ebx, ebx
je 0x408edf
call edi
test eax, eax
je 0x408ed6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408ed6
test byte [ebp - 8], 1
jne 0x408edf
or dword [ebp + 0x10], 0x200000
jmp 0x408f12
mov eax, dword [0x4123c4]
cmp eax, dword [ebp - 0x18]
je 0x408f12
push eax
call esi
test eax, eax
je 0x408f12
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408f12
mov eax, dword [0x4123c8]
cmp eax, dword [ebp - 0x18]
je 0x408f12
push eax
call esi
test eax, eax
je 0x408f12
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4123c0]
call esi
test eax, eax
je 0x408f2e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408f30
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402437
leave
ret
Function at 0x4e25e3
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
shr edi, 0x10
and ecx, 0xffff
cmp ebx, 1
jne 0x4e262f
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax]
add ecx, edx
cmp ecx, 0xfff1
jb 0x4e2614
sub ecx, 0xfff1
add edi, ecx
cmp edi, 0xfff1
jb 0x4e2624
sub edi, 0xfff1
mov eax, edi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4e263f
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 0x10
jae 0x4e267e
test ebx, ebx
je 0x4e2653
movzx eax, byte [esi]
add ecx, eax
inc esi
add edi, ecx
dec ebx
jne 0x4e2648
cmp ecx, 0xfff1
jb 0x4e2661
sub ecx, 0xfff1
mov eax, 0x80078071
mul edi
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, edi
pop esi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
cmp ebx, 0x15b0
jb 0x4e2769
mov eax, 0x5e6ea9af
mul ebx
shr edx, 0xb
mov dword [ebp + 8], edx
jmp 0x4e26a3
Function at 0x10017b1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 1
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_SaferCreateLevel]
mov edi, eax
cmp edi, esi
je 0x100180f
push esi
push 4
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SaferComputeTokenFromLevel]
mov edi, eax
cmp edi, esi
je 0x100180f
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push 0x10
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
cmp dword [ebp - 4], esi
je 0x100181d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SaferCloseLevel]
cmp dword [ebp - 8], esi
je 0x100182b
push dword [ebp - 8]
call dword [0x1001058]
mov eax, edi
pop edi
pop esi
leave
ret 0x18
Function at 0x403a53
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4178d8
call fcn.00404e34
mov edi, 0x94
mov eax, edi
call fcn.00403180
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x416238]
mov ecx, dword [esi + 0x10]
mov dword [0x41f784], ecx
mov eax, dword [esi + 4]
mov dword [0x41f790], eax
mov edx, dword [esi + 8]
mov dword [0x41f794], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41f788], esi
cmp ecx, 2
je 0x403ab3
or esi, 0x8000
mov dword [0x41f788], esi
shl eax, 8
add eax, edx
mov dword [0x41f78c], eax
xor esi, esi
push esi
mov edi, dword [0x4161c4]
call edi
cmp word [eax], 0x5a4d
jne 0x403aee
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403aee
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403b06
cmp eax, 0x20b
je 0x403af3
mov dword [ebp - 0x1c], esi
jmp 0x403b1a
cmp dword [ecx + 0x84], 0xe
jbe 0x403aee
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x403b14
cmp dword [ecx + 0x74], 0xe
jbe 0x403aee
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004052d8
pop ecx
test eax, eax
jne 0x403b2e
push 0x1c
call fcn.00403a2f
pop ecx
call fcn.00406cc6
test eax, eax
jne 0x403b3f
push 0x10
call fcn.00403a2f
pop ecx
call fcn.004077d2
mov dword [ebp - 4], esi
call fcn.004075d4
test eax, eax
jge 0x403b58
push 0x1b
call fcn.00403a0a
pop ecx
call dword [0x4160b0]
mov dword [0x421050], eax
call fcn.004074b2
mov dword [0x41f774], eax
call fcn.00407410
test eax, eax
jge 0x403b7e
push 8
call fcn.00403a0a
pop ecx
call fcn.004071dd
test eax, eax
jge 0x403b8f
push 9
call fcn.00403a0a
pop ecx
push 1
call fcn.00403d2d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x403ba5
push eax
call fcn.00403a0a
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x4160ac]
call fcn.00407180
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x403bc6
movzx eax, word [ebp - 0x40]
jmp 0x403bc9
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040d436
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x403be7
push edi
call fcn.00403e5a
call fcn.00403e7c
jmp 0x403c19
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00404e6f
ret