joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401537
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov esi, dword [esp + 0x90]
and esi, 0xffff0000
mov eax, esi
cmp word [eax], 0x5a4d
jne 0x401556
add eax, dword [eax + 0x3c]
sub esi, 0x10000
cmp word [eax], 0x4550
jne 0x40154a
add esi, 0x10000
push esi
mov eax, 0x40400c
pop dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004014a5
mov dword [0x40410b], eax
push 0x404023
push 0x3e9
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x40159a
leave
ret 8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x4015ab
leave
ret 8
mov dword [ebp - 8], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4015bf
leave
ret 8
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x4015cd
leave
ret 8
mov dword [ebp - 0xc], eax
push 4
push 0x3000
push dword [ebp - 8]
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
jne 0x4015e9
leave
ret 8
push eax
mov esi, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 8]
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [esp + 0xc]
call fcn.004013ec
mov ebx, dword [esp]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
pop eax
push ebx
push 0x8000
push 0
push eax
call sub.kernel32.dll_VirtualFree
mov ebx, dword [ebp + 0xc]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
mov dword [ebp - 4], ebx
mov ebx, dword [esp]
add ebx, dword [ebp + 0xc]
and ebx, 0xffff0000
add ebx, 0x10000
push 0x40
push 0x3000
push dword [ebp - 4]
push ebx
call sub.kernel32.dll_VirtualAlloc
or eax, eax
je 0x40163c
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
push eax
sub eax, dword [ebp + 0xc]
add dword [ebp + 8], eax
mov ebx, 0x4016b6
add ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov ebx, 0x401b5a
add ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x14]
push ebx
push 0x401303
push dword [ebp + 0xc]
call fcn.0040105b
pop eax
pop ebx
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, 0x40189c
nop
nop
add eax, dword [ebp + 8]
nop
call eax
nop
leave
ret 8
Function at 0x401e63
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x58
mov eax, dword [0x446b80]
xor eax, esp
mov dword [esp + 0x54], eax
push ebp
mov ebp, dword [esp + 0x68]
xor eax, eax
push edi
xor edi, edi
cmp ax, bp
jge 0x401f8f
push ebx
push esi
push 2
pop esi
push 0x48
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.0040c0d0
mov eax, ebp
mov byte [esp + 0x6f], 0
sub eax, edi
movzx ebx, ax
push 0x10
pop eax
cmp bx, ax
cmovg ebx, eax
movsx eax, di
push eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x2c]
push esi
push eax
mov dword [esp + 0x30], ebx
call fcn.00401dce
xor eax, eax
add esp, 0x18
cmp ax, bx
jge 0x401f34
mov ebp, dword [esp + 0x14]
xor esi, esi
add ebp, dword [esp + 0x70]
movzx eax, bx
mov dword [esp + 0x14], eax
mov ebx, eax
movsx eax, byte [ebp]
push eax
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
push 1
lea eax, [esp + eax + 0x2a]
lea eax, [eax + esi*2]
push eax
call fcn.00401dce
mov al, byte [ebp]
add esp, 0xc
mov byte [esp + esi + 0x48], al
cmp al, 0x7f
jbe 0x401f13
sub al, 0x80
mov byte [esp + esi + 0x48], al
mov al, byte [esp + esi + 0x48]
cmp al, 0x20
jb 0x401f1f
cmp al, 0x7f
jbe 0x401f24
mov byte [esp + esi + 0x48], 0x2e
inc esi
inc ebp
dec ebx
jne 0x401ee0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x74]
push 2
pop esi
mov ax, word [esp + 0x6c]
cmp ax, si
jne 0x401f56
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x41e3b8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x401f82
movsx esi, ax
lea eax, [esp + 0x1c]
push eax
call fcn.0040a180
push eax
lea eax, [esp + 0x24]
push eax
push esi
call fcn.0040b12a
push 1
push 0x41e3b8
push esi
call fcn.0040b12a
add esp, 0x1c
push 2
pop esi
add edi, ebx
cmp di, bp
jl 0x401e89
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop edi
pop ebp
xor ecx, esp
call fcn.0040a6e0
add esp, 0x58
ret

Function at 0x401fa2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov di, word [ebp + 8]
push dword [ebp + 0xc]
cmp di, 2
jne 0x401fc5
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call esi
push 0x41e3b8
call esi
jmp 0x401fe7
movsx esi, di
call fcn.0040a180
push eax
push dword [ebp + 0xc]
push esi
call fcn.0040b12a
push 1
push 0x41e3b8
push esi
call fcn.0040b12a
add esp, 0x1c
mov eax, dword [ebp + 0x14]
cwde
push eax
push dword [ebp + 0x10]
movsx eax, di
push eax
call fcn.00401e63
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x402001
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x446b80]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 0x60]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x5c]
push dword [ebp + 0x58]
push dword [ebp + 0x54]
push dword [ebp + 0x50]
push dword [ebp + 0x4c]
push dword [ebp + 0x48]
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00409bd1
add esp, 0x5c
lea eax, [ebp - 0x404]
cmp dword [ebp + 8], 2
push eax
jne 0x40207b
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x402093
call fcn.0040a180
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call fcn.0040b12a
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0040a6e0
mov esp, ebp
pop ebp
ret

Function at 0x4025b6
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x23c
mov eax, dword [0x446b80]
xor eax, esp
mov dword [esp + 0x238], eax
mov eax, dword [esp + 0x244]
push ebx
push ebp
mov ebp, dword [esp + 0x248]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x254]
push edi
push 0x103
mov dword [esp + 0x20], eax
lea eax, [esp + 0x149]
push ebx
push eax
mov byte [esp + 0x150], bl
call fcn.0040c0d0
add esp, 0xc
mov dword [esp + 0x18], 0x104
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x44]
push eax
push ebx
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x16c]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push 0x41e594
push esi
mov edi, ebx
call fcn.00409ff0
pop ecx
pop ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x7d
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x18], 0x7d
push eax
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xd8]
push eax
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push dword [esp + 0x1c]
mov ebx, eax
inc edi
lea eax, [esp + 0xc8]
push eax
call fcn.0040a0f0
pop ecx
pop ecx
test eax, eax
jne 0x4026b6
push 0x100
push esi
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
test ebx, ebx
pop ebx
je 0x40265a
mov ecx, dword [esp + 0x248]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a6e0
add esp, 0x23c
ret
Function at 0x402a1a
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, 0x448110
push edi
xor edi, edi
test esi, esi
je 0x402a39
push ebx
push esi
call fcn.0040a0f0
pop ecx
pop ecx
test eax, eax
je 0x402a70
mov eax, dword [0x44810c]
test eax, eax
je 0x402a4f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x44810c], edi
test esi, esi
je 0x402acb
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x44810c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ebx
call fcn.00409ff0
pop ecx
pop ecx
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x402a90
push 0xffffffffffffffff
push dword [0x44810c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x402a79
jmp 0x402acb
cmp eax, 1
je 0x402abf
cmp eax, 3
jne 0x402aa9
push edi
push dword [0x44810c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x402acb
cmp eax, 4
jne 0x402acb
push edi
push dword [0x44810c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
js 0x402acb
push dword [0x44810c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x404cd3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x446b80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1b4
push 0x102
push esi
call fcn.00402300
movzx eax, ax
add esp, 0xc
test ax, ax
js 0x404d0a
cwde
push eax
call fcn.00409c55
pop ecx
push 0x41e328
push esi
call fcn.004020a3
pop ecx
pop ecx
push 0x8000
push eax
mov dword [0x44de48], eax
call fcn.0040c53c
pop ecx
push eax
call fcn.0040c58a
movsx eax, word [0x44de46]
push 0
push 0xf
push eax
call fcn.0040a6ef
mov ax, word [0x44de46]
add esp, 0x14
pop esi
test ax, ax
jle 0x404d66
push 9
lea ecx, [ebp - 0x2c]
cwde
push ecx
push eax
call fcn.0040a885
add esp, 0xc
mov word [0x460ca4], ax
jmp 0x404d6c
mov ax, word [0x460ca4]
test ax, ax
jle 0x404d9a
lea eax, [ebp - 0x2c]
push eax
call fcn.0040a6cc
pop ecx
test eax, eax
jle 0x404d9a
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.0040a6cc
pop ecx
push eax
push dword [0x44de48]
call fcn.0040e5c3
add esp, 0xc
call fcn.00404db5
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
mov word [0x44de4e], ax
call fcn.0040a6e0
mov esp, ebp
pop ebp
ret

Function at 0x404db5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x446b80]
xor eax, ebp
mov dword [ebp - 4], eax
movsx eax, word [0x44de46]
push 0
push 0xf
push eax
mov byte [ebp - 0x18], 0
call fcn.0040a6ef
mov ax, word [0x44de46]
add esp, 0xc
test ax, ax
jle 0x404df8
push 9
lea ecx, [ebp - 0x18]
cwde
push ecx
push eax
call fcn.0040a885
add esp, 0xc
push esi
push 2
push 0
push dword [0x44de48]
call fcn.0040e5c3
push dword [0x44de48]
call fcn.0040e9d6
mov esi, eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040a6cc
add esp, 0x14
cmp esi, eax
pop esi
jle 0x404e31
xor eax, eax
inc eax
mov word [0x44de4e], ax
jmp 0x404e37
mov ax, word [0x44de4e]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a6e0
mov esp, ebp
pop ebp
ret
Function at 0x405ca3
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
call fcn.00409633
mov esi, edx
mov ebp, eax
push 0
mov dword [esp + 0x18], esi
call fcn.00409633
push 0
mov ebx, eax
mov edi, edx
call fcn.00409633
add esp, 0xc
sub eax, ebp
sbb edx, esi
test edx, edx
jg 0x405e07
jl 0x405ce3
cmp eax, 5
ja 0x405e07
mov esi, dword [esp + 0x18]
mov eax, dword [0x448f3c]
and dword [0x460c90], 0
push 0x460c90
push 0
push 0
push 0x448e38
push 0x1f
mov dword [0x460c94], 0x3d090
mov dword [0x448e3c], eax
mov dword [0x448e38], 1
call sub.WSOCK32.dll_select
test eax, eax
je 0x405dc5
push 0x449870
push 0x449860
push 0
push 0x5dc
push 0x448f40
push dword [0x448f3c]
mov dword [0x449870], 0x10
call sub.WSOCK32.dll_recvfrom
test eax, eax
jle 0x405dc5
push 0x449864
call fcn.00405479
pop ecx
test eax, eax
jne 0x405da5
movzx eax, byte [0x449867]
push eax
movzx eax, byte [0x449866]
push eax
movzx eax, byte [0x449865]
push eax
movzx eax, byte [0x449864]
push eax
push str.COMM_UDP_Block_von_unbekannter_Adresse__d._d._d._d__
push 0x449740
call fcn.00409bd1
push 0x449740
call fcn.00408d8a
add esp, 0x1c
jmp 0x405de6
push 0
push eax
call fcn.00405047
pop ecx
pop ecx
test esi, esi
je 0x405dc5
cmp dword [esi + 0x44], 3
je 0x405e14
test byte [esi + 0x1c], 0x40
je 0x405dc5
cmp dword [esi + 0x44], 3
jl 0x405e0f
push 0
call fcn.00409633
pop ecx
cmp eax, ebx
jne 0x405dd5
cmp edx, edi
je 0x405de6
push 0
call fcn.00409633
pop ecx
mov ebx, eax
mov edi, edx
call fcn.0040549b
push 0
call fcn.00409633
sub eax, ebp
pop ecx
sbb edx, dword [esp + 0x10]
test edx, edx
jg 0x405e07
jl 0x405ce7
cmp eax, 5
jbe 0x405ce7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
or eax, 0xffffffff
jmp 0x405e09
xor eax, eax
inc eax
jmp 0x405e09
Function at 0x406268
Capabilities:
Move file

Disassembly:
push dword [esp + 8]
call fcn.00409b86
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.0040f30f
add esp, 0xc
cwde
ret

Function at 0x407e30
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
call fcn.004082fa
movzx eax, ax
pop ecx
test ax, ax
jns 0x407e47
xor eax, eax
pop ecx
ret
push ebx
push ebp
push 0
movsx ebx, ax
push 0
push ebx
call fcn.0040a6ef
push 4
pop ebp
push ebp
push 0x434784
push ebx
call fcn.0040a885
add esp, 0x18
mov word [0x460ca4], ax
cmp ax, bp
je 0x407e7b
push 0xfffffffffffffffd
pop eax
jmp 0x407f1c
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x407e8d
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x407ea0
push 1
push dword [0x434784]
call fcn.004030f5
pop ecx
pop ecx
mov esi, eax
xor edi, edi
push esi
push dword [0x434784]
call fcn.004031bb
push 0x44ebf4
mov ebp, eax
call fcn.0040a6c3
add esp, 0xc
cmp edi, eax
jle 0x407ec3
push 0xfffffffffffffff8
jmp 0x407ed7
push dword [0x434784]
push esi
call fcn.004031d6
pop ecx
pop ecx
test eax, eax
jns 0x407eda
push 0xfffffffffffffff7
pop eax
jmp 0x407f1a
push 0x44ebf4
call fcn.0040a6c3
inc eax
imul eax, ebp
push 0
add eax, edi
shl eax, 2
push eax
push ebx
call fcn.0040a6ef
push 4
pop esi
push esi
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.0040a885
xor ecx, ecx
mov word [0x460ca4], ax
add esp, 0x1c
cmp ax, si
cmove ecx, dword [esp + 0x10]
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x407fd5
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push dword [esp + 0x10]
call fcn.004082fa
movzx eax, ax
pop ecx
test ax, ax
jns 0x407ff2
or eax, 0xffffffff
jmp 0x4080cd
push ebx
push ebp
push esi
push edi
push 2
xor edi, edi
movsx ebp, ax
push edi
push ebp
call fcn.0040a6ef
push 0x44ebf4
mov esi, eax
call fcn.0040a6c3
xor edx, edx
push edi
push edi
lea ebx, [eax + 1]
mov eax, esi
mov ecx, ebx
shl ecx, 2
div ecx
push ebp
inc eax
mov dword [esp + 0x34], eax
call fcn.0040a6ef
push 4
pop esi
push esi
push 0x434784
push ebp
mov dword [esp + 0x3c], esi
call fcn.0040a885
add esp, 0x28
mov word [0x460ca4], ax
cmp ax, si
je 0x408051
push 0xfffffffffffffffd
pop eax
jmp 0x4080c9
mov esi, dword [esp + 0x24]
xor eax, eax
mov ecx, dword [esp + 0x28]
inc eax
test esi, esi
cmove esi, eax
mov eax, dword [0x434784]
test ecx, ecx
cmove ecx, eax
push ecx
push eax
call fcn.004031bb
pop ecx
pop ecx
mov edi, eax
mov ecx, edi
imul ecx, ebx
push 0
add ecx, esi
shl ecx, 2
push ecx
push ebp
call fcn.0040a6ef
push 4
pop eax
push eax
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.0040a885
mov ecx, dword [esp + 0x28]
xor edx, edx
add esp, 0x18
mov word [0x460ca4], ax
cmp ax, word [esp + 0x14]
cmovne ecx, edx
mov dword [esp + 0x10], ecx
cmp edi, dword [esp + 0x18]
jge 0x4080bc
inc edi
jmp 0x4080bf
xor edi, edi
inc esi
test ecx, ecx
jne 0x4080c7
cmp esi, ebx
jl 0x408076
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4080d1
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push dword [esp + 0x10]
call fcn.004082fa
movzx eax, ax
pop ecx
test ax, ax
jns 0x4080ee
or eax, 0xffffffff
jmp 0x4081da
push ebx
push ebp
push esi
xor esi, esi
movsx ebx, ax
push esi
push esi
push ebx
call fcn.0040a6ef
push 4
pop ebp
push ebp
push 0x434784
push ebx
mov dword [esp + 0x2c], ebp
call fcn.0040a885
add esp, 0x18
mov word [0x460ca4], ax
cmp ax, bp
je 0x408127
push 0xfffffffffffffffd
pop eax
jmp 0x4081d7
push edi
push 0x44ebf4
call fcn.0040a6c3
push 2
push esi
push ebx
lea ebp, [eax + 1]
mov dword [esp + 0x24], ebp
call fcn.0040a6ef
mov ecx, ebp
mov edi, dword [esp + 0x34]
shl ecx, 2
xor edx, edx
div ecx
add esp, 0x10
mov ebp, eax
test edi, edi
je 0x408172
cmp dword [esp + 0x28], esi
je 0x408172
push dword [esp + 0x28]
push dword [0x434784]
call fcn.004031bb
pop ecx
mov esi, eax
jmp 0x408181
push 0x44ebf4
call fcn.0040a6c3
mov edi, eax
lea esi, [ebp + 1]
pop ecx
mov ecx, esi
imul ecx, dword [esp + 0x14]
push 0
add ecx, edi
shl ecx, 2
push ecx
push ebx
call fcn.0040a6ef
push 4
pop eax
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.0040a885
mov ecx, dword [esp + 0x28]
xor edx, edx
add esp, 0x18
mov word [0x460ca4], ax
cmp ax, word [esp + 0x18]
cmovne ecx, edx
mov dword [esp + 0x10], ecx
test esi, esi
jle 0x4081c8
dec esi
jmp 0x4081cc
lea esi, [ebp + 1]
dec edi
test ecx, ecx
jne 0x4081d4
test edi, edi
jg 0x408182
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4081de
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push 0x41e89c
push dword [eax*4 + 0x434788]
call fcn.00403da9
movzx eax, ax
pop ecx
pop ecx
test ax, ax
jns 0x408201
or eax, 0xffffffff
ret
push ebx
push esi
push 0
movsx esi, ax
push 0
push esi
call fcn.0040a6ef
push 4
pop ebx
push ebx
push 0x434784
push esi
call fcn.0040a885
add esp, 0x18
mov word [0x460ca4], ax
cmp ax, bx
je 0x408235
push 0xfffffffffffffffd
pop eax
jmp 0x4082f7
push ebp
push edi
push 0x44ebf4
call fcn.0040a6c3
mov ebx, dword [esp + 0x1c]
pop ecx
lea ebp, [eax + 1]
test ebx, ebx
je 0x408255
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x408268
push 1
push dword [0x434784]
call fcn.004030f5
pop ecx
pop ecx
mov edi, eax
xor ebx, ebx
push 2
push 0
push esi
call fcn.0040a6ef
push edi
push dword [0x434784]
mov dword [esp + 0x28], eax
call fcn.004031bb
mov edi, eax
add esp, 0x14
mov eax, dword [esp + 0x14]
imul edi, ebp
add edi, ebx
shl edi, 2
cmp edi, eax
jle 0x4082c7
mov ebx, edi
sub ebx, eax
push ebx
call fcn.0040e03c
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x4082ad
push 0xfffffffffffffffa
pop eax
jmp 0x4082f5
push ebx
push 0
push ebp
call fcn.0040c0d0
push ebx
push ebp
push esi
call fcn.0040b12a
push ebp
call fcn.0040e004
add esp, 0x1c
push 0
push edi
push esi
call fcn.0040a6ef
push 4
pop edi
push edi
lea eax, [esp + 0x30]
push eax
push esi
call fcn.0040b12a
add esp, 0x18
mov word [0x460ca4], ax
xor edx, edx
cmp ax, di
push 0xfffffffffffffffd
pop ecx
cmove ecx, edx
mov eax, ecx
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x408ee4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
imul eax, dword [ebp + 0x10]
push 0
push eax
push dword [ebp + 8]
call fcn.0040a6ef
add esp, 0xc
test eax, eax
jns 0x408f06
push 0xfffffffffffffffe
pop eax
pop ebp
ret
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0040a885
mov ecx, eax
add esp, 0xc
test ecx, ecx
jns 0x408f21
push 0xfffffffffffffffd
jmp 0x408f03
xor eax, eax
cmp ecx, dword [ebp + 0x10]
push 0xfffffffffffffffb
pop edx
cmovne eax, edx
pop ebp
ret
Function at 0x41845b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x446b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040fb8e
mov dword [ebp - 0x14], eax
cmp dword [0x44c594], esi
jne 0x41854e
push 0x800
push esi
push 0x42fc8c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4184db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41862e
push esi
push esi
push 0x42fc8c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41862e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41862e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x44c594], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x44c598], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x44c59c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44c5a4], eax
test eax, eax
je 0x41854b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44c5a0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x418573
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x418566
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x418588
push 4
pop eax
jmp 0x418630
cmp dword [ebp - 0x14], esi
je 0x418588
push dword [0x44c594]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41856d
mov eax, dword [0x44c5a0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4185e6
cmp dword [0x44c5a4], edi
je 0x4185e6
push eax
call ebx
push dword [0x44c5a4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4185e6
test eax, eax
je 0x4185e6
call ecx
test eax, eax
je 0x4185db
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4185db
test byte [ebp - 8], 1
jne 0x4185e6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x418616
mov eax, dword [0x44c598]
cmp eax, edi
je 0x418613
push eax
call ebx
test eax, eax
je 0x418613
call eax
mov esi, eax
test esi, esi
je 0x418613
mov eax, dword [0x44c59c]
cmp eax, edi
je 0x418613
push eax
call ebx
test eax, eax
je 0x418613
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44c594]
call ebx
test eax, eax
je 0x41862e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x418630
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a6e0
mov esp, ebp
pop ebp
ret