joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420568
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x8cfb83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4205a3
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4205bc
lea eax, [ebp - 0x10]
mov edx, dword [0x8ed5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4205cf
lea eax, [ebp - 0x10]
mov edx, dword [0x8ed5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4205db
adc edx, 0
mov edx, dword [edx*4 + 0x8ec3fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420755
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420748
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420748
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4206e6
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4206e6
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4206e6
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4206e6
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420748
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420748
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420748
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420748
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x42076d
inc ebx
cmp ebx, 0x19
jne 0x420595
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8cfb8a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4d49a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x4d49a0
lcall 0x5de5, 0x8b10c483
jmp fcn.00bdd20c

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40c444
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d9e0]
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.0040949a
mov dword [ebp - 0x14], eax
cmp dword [0x2c8a210], esi
jne 0x40c537
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c4c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c617
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c617
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c617
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x2c8a210], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x2c8a214], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x2c8a218], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2c8a220], eax
test eax, eax
je 0x40c534
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2c8a21c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c55c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c54f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c571
push 4
pop eax
jmp 0x40c619
cmp dword [ebp - 0x14], esi
je 0x40c571
push dword [0x2c8a210]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c556
mov eax, dword [0x2c8a21c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c5cf
cmp dword [0x2c8a220], edi
je 0x40c5cf
push eax
call ebx
push dword [0x2c8a220]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c5cf
test eax, eax
je 0x40c5cf
call ecx
test eax, eax
je 0x40c5c4
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 0x40c5c4
test byte [ebp - 8], 1
jne 0x40c5cf
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c5ff
mov eax, dword [0x2c8a214]
cmp eax, edi
je 0x40c5fc
push eax
call ebx
test eax, eax
je 0x40c5fc
call eax
mov esi, eax
test esi, esi
je 0x40c5fc
mov eax, dword [0x2c8a218]
cmp eax, edi
je 0x40c5fc
push eax
call ebx
test eax, eax
je 0x40c5fc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x2c8a210]
call ebx
test eax, eax
je 0x40c617
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c619
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fce
mov esp, ebp
pop ebp
ret
Function at 0x42bc80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x26000]
push edi
jmp 0x42bc9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42bca1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42bc90
mov eax, 1
add ebx, ebx
jne 0x42bcb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42bca8
jne 0x42bcc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42bca8
xor ecx, ecx
sub eax, 3
jb 0x42bcd8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42bd4a
mov ebp, eax
add ebx, ebx
jne 0x42bce3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42bcf0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42bd14
inc ecx
add ebx, ebx
jne 0x42bd00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42bcf5
jne 0x42bd11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42bcf5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42bd34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42bd25
jmp 0x42bc96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42bd34
add edi, ecx
jmp 0x42bc96
pop esi
mov edi, esi
mov ecx, 0x581
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42bd52
cmp byte [edi], 1
jne 0x42bd52
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 0x42bd57
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42bdc6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2c198]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2c238]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42bd84
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2c23c]
or eax, eax
je 0x42bdc0
mov dword [ebx], eax
add ebx, 4
jmp 0x42bda1
call dword [esi + 0x2c24c]
mov ebp, dword [esi + 0x2c240]
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 0x42bdfa
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x46b492
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x48e820]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046b427
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00458160
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x46b4e1
cmp dword [ebp - 0x1c], 5
jb 0x46b4f9
jmp 0x46b4f5
cmp dword [ebp - 0x10], 1
jne 0x46b4f9
cmp dword [ebp - 0x1c], 4
ja 0x46b4f5
jne 0x46b4f9
cmp dword [ebp - 0x18], 0
jbe 0x46b4f9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x47a880
call fcn.0046b2fb
test eax, eax
jge 0x46b51a
mov byte [0x492eb4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004540ed
add ebp, 0x78
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4012c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401314
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401310
lea ebx, [ebx]
cmp esi, eax
jae 0x401314
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401300
cmp esi, eax
jb 0x40131a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x402b80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41e5a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x425424]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x426abc]
mov edx, dword [eax + 0xc]
mov ecx, 0x426abc
mov dword [esp + 0x1c], 0
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x24]
push 0x5c
push esi
mov byte [esp + 0x24], 1
call fcn.004087a0
add esp, 8
test eax, eax
je 0x402c27
sub eax, esi
test eax, eax
jle 0x402c27
add eax, 1
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.004023d0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0xc]
push 1
push edi
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [edi - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret

Function at 0x405b20
Capabilities:
Access the windows event log

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
push 0x4268e8
call fcn.004057e0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004059f0
mov ecx, esi
call fcn.00404130
push str.LightScribeLauncher
push 0
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x405bb7
mov ecx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 1
push 0
push ecx
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x405bb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReportEvent___returned_error_code
push 0x4268e8
call fcn.004057e0
add esp, 8
mov ecx, eax
call fcn.00404fa0
mov edi, eax
push 0xa
mov ecx, edi
call fcn.004059f0
mov ecx, edi
call fcn.00404130
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
ret
Function at 0x405bc0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41e9e1
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x425424]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x425424]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x440]
xor ebx, ebx
mov dword [esp + 0x18], ebx
call dword [0x4253fc]
lea eax, [esp + 0x224]
push eax
push ebx
push ebx
push 0x2b
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x405c36
push 0x41f560
mov ecx, ebp
call fcn.00402ca0
jmp 0x405da9
lea ecx, [esp + 0x224]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402d50
mov edx, dword [0x426abc]
mov eax, dword [edx + 0xc]
mov ecx, 0x426abc
mov dword [esp + 0x438], ebx
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x43c], 1
call fcn.00402540
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x43c], 2
call fcn.004023d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x438], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405cb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push str.Getting_Started.html
push esi
push str.content
push str.LightScribe
lea ecx, [esp + 0x24]
push str._s_s_s_s
push ecx
call fcn.00402450
mov eax, dword [esp + 0x2c]
add esp, 0x14
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
push eax
call fcn.00401980
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00401c70
add esp, 4
cmp al, bl
je 0x405d30
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00401980
add eax, 0x10
mov dword [ebp], eax
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x438], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x405d76
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push str.Default_LSS__Getting_Started.html__not_found:___s_
push edx
call fcn.00409d76
lea eax, [esp + 0x30]
push eax
push 0xb
call fcn.00405b20
add esp, 0x14
push 0x41f560
mov ecx, ebp
call fcn.00402ca0
lea eax, [esi - 0x10]
mov byte [esp + 0x438], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x438], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405da9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00408fe9
add esp, 0x428
ret
Function at 0x408170
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x425424]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004080af
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00409aa0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4081bf
cmp dword [ebp - 0x1c], 5
jb 0x4081d7
jmp 0x4081d3
cmp dword [ebp - 0x10], 1
jne 0x4081d7
cmp dword [ebp - 0x1c], 4
ja 0x4081d3
jne 0x4081d7
cmp dword [ebp - 0x18], 0
jbe 0x4081d7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41f8fc
call fcn.00407f62
test eax, eax
jge 0x4081f8
mov byte [0x4267f0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408fe9
add ebp, 0x78
leave
ret

Function at 0x408fe9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425424]
jne 0x408ff3
repz ret
jmp fcn.004117fb
Function at 0x411519
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x426018]
je 0x411534
inc edi
cmp edi, 0x17
jb 0x411525
cmp edi, 0x17
jae 0x4116b4
push ebp
push 3
call fcn.00418a52
cmp eax, 1
pop ecx
je 0x411680
push 3
call fcn.00418a52
test eax, eax
pop ecx
jne 0x411568
cmp dword [0x425478], 1
je 0x411680
cmp ebx, 0xfc
je 0x4116b3
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x426d78
push ebp
call fcn.0040dd51
add esp, 0xc
test eax, eax
je 0x41159e
push esi
push esi
push esi
push esi
push esi
call fcn.00409b4a
add esp, 0x14
push 0x104
mov esi, 0x426d91
push esi
push 0
mov byte [0x426e95], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4115e2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040dd51
add esp, 0xc
test eax, eax
je 0x4115e2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00409b4a
add esp, 0x14
push esi
call fcn.0040a690
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411627
push esi
call fcn.0040a690
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42708c
push 0x4209b4
sub ecx, eax
push ecx
push eax
call fcn.00414b06
add esp, 0x14
test eax, eax
je 0x411627
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00409b4a
add esp, 0x14
jmp 0x411629
xor esi, esi
push 0x4209b0
push ebx
push ebp
call fcn.00414a95
add esp, 0xc
test eax, eax
je 0x411649
push esi
push esi
push esi
push esi
push esi
call fcn.00409b4a
add esp, 0x14
push dword [edi*8 + 0x42601c]
push ebx
push ebp
call fcn.00414a95
add esp, 0xc
test eax, eax
je 0x41166b
push esi
push esi
push esi
push esi
push esi
call fcn.00409b4a
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00418895
add esp, 0xc
jmp 0x4116b3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4116b3
cmp ebp, 0xffffffff
je 0x4116b3
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42601c]
push dword [esi]
call fcn.0040a690
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x418895
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040e9bc
xor ebx, ebx
cmp dword [0x427538], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41896b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x418a4b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x418a4b
push eax
call fcn.0040e94e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x427538], eax
call esi
push eax
call fcn.0040e94e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42753c], eax
call esi
push eax
call fcn.0040e94e
mov dword [0x427540], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004112a6
test eax, eax
pop ecx
pop ecx
je 0x418939
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409b4a
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41896b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040e94e
cmp eax, ebx
pop ecx
mov dword [0x427548], eax
je 0x41896b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040e94e
pop ecx
mov dword [0x427544], eax
mov eax, dword [0x427544]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4189f0
cmp dword [0x427548], ecx
je 0x4189f0
push eax
call fcn.0040e9c5
push dword [0x427548]
mov esi, eax
call fcn.0040e9c5
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4189f0
cmp edi, ebx
je 0x4189f0
call esi
cmp eax, ebx
je 0x4189bd
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4189bd
test byte [ebp - 0x18], 1
jne 0x4189f0
lea eax, [ebp - 0x10]
push eax
call fcn.004112dd
test eax, eax
pop ecx
je 0x4189d8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409b4a
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4189e7
or dword [ebp + 0x10], 0x200000
jmp 0x418a2b
or dword [ebp + 0x10], 0x40000
jmp 0x418a2b
mov eax, dword [0x42753c]
cmp eax, dword [ebp - 8]
je 0x418a2b
push eax
call fcn.0040e9c5
cmp eax, ebx
pop ecx
je 0x418a2b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x418a2b
mov eax, dword [0x427540]
cmp eax, dword [ebp - 8]
je 0x418a2b
push eax
call fcn.0040e9c5
cmp eax, ebx
pop ecx
je 0x418a2b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x427538]
call fcn.0040e9c5
cmp eax, ebx
pop ecx
je 0x418a4b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x418a4d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret