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

Disassembly:
sub esp, 0x240
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebp
push esi
mov ebp, ecx
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
neg esi
sbb esi, esi
and esi, 0x112
push edi
mov edi, dword [esp + 0x250]
add esi, 0x124
mov dword [esp + 0xc], edi
test eax, eax
jl 0x404c1d
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00415084
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00414bb9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x404d06
mov esi, dword [ebp + 0x10]
mov eax, edi
test esi, esi
je 0x404c61
lea edx, [eax + 2]
jmp 0x404c50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c50
sub eax, edx
sar eax, 1
jmp 0x404c6d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404c64
sub eax, edx
push ebx
lea ebx, [eax + 1]
imul ebx, dword [ebp + 0x48]
mov edi, esi
neg edi
sbb edi, edi
and edi, 0x100
add edi, 0x100
cmp ebx, edi
jle 0x404c92
mov eax, 6
jmp 0x404d05
lea eax, [esp + 0x42]
test esi, esi
jne 0x404c9e
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x10]
push ebx
push ecx
push eax
call fcn.00416390
add esp, 0xc
lea eax, [esp + 0x42]
test esi, esi
jne 0x404cb9
lea eax, [esp + 0x30]
sub edi, ebx
push edi
add eax, ebx
push 0
push eax
call fcn.00416090
mov eax, dword [ebp + 0x14]
add esp, 0xc
neg esi
sbb esi, esi
and esi, 0x112
add esi, 0x124
test eax, eax
jl 0x404cef
mov edx, dword [ebp + 8]
push 0
push eax
push edx
call fcn.00415084
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 1
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.00414d6d
add esp, 0x10
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041389c
add esp, 0x240
ret 4
Function at 0x405480
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 8]
sub esp, 8
push 2
push 0xfffffe00
push eax
call fcn.00415084
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x14]
push 4
push edx
call fcn.00414bb9
add esp, 0x1c
cmp eax, 1
je 0x4054b3
xor eax, eax
add esp, 8
ret
push 4
lea eax, [esp + 4]
push str.TRL
push eax
call fcn.00413c15
add esp, 0xc
test eax, eax
jne 0x4054ad
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0xc]
push 4
push edx
call fcn.00414bb9
add esp, 0x10
cmp eax, 1
jne 0x4054ad
mov eax, dword [esp + 4]
mov ecx, dword [esi + 8]
push 0
push eax
push ecx
call fcn.00415084
mov edx, dword [esi + 8]
push edx
push 1
lea eax, [esp + 0x14]
push 4
push eax
call fcn.00414bb9
add esp, 0x1c
cmp eax, 1
jne 0x4054ad
push 4
lea ecx, [esp + 4]
push str.HDR
push ecx
call fcn.00413c15
add esp, 0xc
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 4]
add esp, 8
ret

Function at 0x405540
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
je 0x4055cd
cmp dword [esi + 0x14], 0
je 0x4055cd
call fcn.00405480
cmp dword [esi + 0x14], eax
je 0x4055cd
push 4
lea eax, [esp + 0xc]
push str.TRL
push eax
call fcn.004145f0
push 0x1f8
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00416090
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x14]
push 2
push 0
push eax
mov dword [esp + 0x30], edx
call fcn.00415084
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x34]
push 8
push edx
call fcn.00414d6d
mov eax, dword [esi + 8]
push eax
push 1
lea ecx, [esp + 0x4c]
push 0x1f8
push ecx
call fcn.00414d6d
add esp, 0x44
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.0041389c
add esp, 0x210
ret

Function at 0x4059e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4059e7
xor eax, eax
ret
or eax, 0xffffffff
push esi
cmp edx, 8
jb 0x405ac4
mov esi, edx
shr esi, 3
push edi
lea ebx, [ebx]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x433e48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x433e48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x433e48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x433e48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x433e48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x433e48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x433e48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x433e48]
inc ecx
sub edx, 8
sub esi, 1
jne 0x405a00
pop edi
test edx, edx
je 0x405aeb
jmp 0x405ad0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x433e48]
inc ecx
sub edx, 1
jne 0x405ad0
not eax
pop esi
ret
Function at 0x407d20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
sub eax, edi
mov ebx, edx
jns 0x407d33
xor eax, eax
jmp 0x407d39
cmp eax, ebx
jbe 0x407d39
mov eax, ebx
add dword [esp + 0x14], eax
add edi, eax
sub ebx, eax
je 0x407d9d
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
test eax, eax
ja 0x407d55
call fcn.00415667
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
mov esi, 4
lea edx, [esp + 0x18]
or eax, 0xffffffff
push ebp
jmp 0x407d70
movzx ebp, byte [edx]
xor ebp, eax
and ebp, 0xff
shr eax, 8
xor eax, dword [ebp*4 + 0x433e48]
inc edx
sub esi, 1
jne 0x407d70
mov edx, dword [ecx]
mov edx, dword [edx + 4]
not eax
push eax
mov eax, dword [esp + 0x1c]
push edi
push ebx
push eax
call edx
pop ebp
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x407db0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
sub eax, edi
mov ebx, edx
jns 0x407dc3
xor eax, eax
jmp 0x407dc9
cmp eax, ebx
jbe 0x407dc9
mov eax, ebx
add dword [esp + 0x14], eax
add edi, eax
sub ebx, eax
je 0x407e2d
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
test eax, eax
ja 0x407de5
call fcn.00415667
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
mov esi, 4
lea edx, [esp + 0x18]
or eax, 0xffffffff
push ebp
jmp 0x407e00
movzx ebp, byte [edx]
xor ebp, eax
and ebp, 0xff
shr eax, 8
xor eax, dword [ebp*4 + 0x433e48]
inc edx
sub esi, 1
jne 0x407e00
mov edx, dword [ecx]
mov edx, dword [edx + 8]
not eax
push eax
mov eax, dword [esp + 0x1c]
push edi
push ebx
push eax
call edx
pop ebp
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x408260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
xor eax, eax
push edi
mov edi, ecx
test ebp, ebp
jbe 0x408289
mov cl, byte [esp + 0x18]
push esi
mov esi, dword [esp + 0x10]
mov dl, byte [eax + esi]
xor dl, cl
xor dl, byte [edi + 4]
inc eax
mov byte [eax + esi - 1], dl
cmp eax, ebp
jb 0x408277
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x40dc10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x42e6d1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x439300]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x14], ebx
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
call fcn.00409190
mov eax, edi
mov dword [esp + 0x34], 1
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40dc70
sub eax, edx
sar eax, 1
push eax
push edi
lea eax, [esp + 0x18]
call fcn.0040e720
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00409190
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x40dcc5
mov eax, dword [esp + 0x14]
push eax
call fcn.00414c00
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x40eb90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42dd9b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x439300]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00427c00
push 4
mov dword [esp + 0x24], 0
call fcn.004152b9
mov edi, eax
add esp, 4
test edi, edi
je 0x40ec12
call fcn.00427a3d
mov dword [edi], eax
call fcn.0042786b
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00427bc1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40ec07
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00427be9
jmp 0x40ec14
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x410800
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42dd9b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x439300]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00427c00
push 4
mov dword [esp + 0x24], 0
call fcn.004152b9
mov edi, eax
add esp, 4
test edi, edi
je 0x410882
call fcn.00427a3d
mov dword [edi], eax
call fcn.0042786b
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00427bc1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x410877
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00427be9
jmp 0x410884
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x410e70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42ed48
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push edi
mov eax, dword [0x439300]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, esi
lea ecx, [esp + 0x4c]
call fcn.00411a80
xor ebx, ebx
mov dword [esp + 0x78], ebx
mov ecx, dword [esi + 0x48]
sub ecx, dword [esi + 0x44]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x410fea
mov dword [esp + 0x10], ebx
lea ebx, [ebx]
lea ecx, [esp + 0x14]
push ecx
mov edi, 0x43467c
lea ecx, [esp + 0x50]
call fcn.0040dc10
add esp, 4
mov edi, eax
mov byte [esp + 0x78], 1
mov ecx, dword [esi + 0x48]
sub ecx, dword [esi + 0x44]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x410f1f
call fcn.00415667
mov eax, dword [esi + 0x44]
add eax, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, edi
call fcn.0040dce0
add esp, 8
mov byte [esp + 0x78], 3
cmp dword [esp + 0x2c], 8
jb 0x410f4f
mov edx, dword [esp + 0x18]
push edx
call fcn.00414c00
add esp, 4
lea ecx, [esp + 0x30]
xor eax, eax
mov edi, 7
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.00411d20
mov edx, dword [0x43a8cc]
lea eax, [eax + edx + 0x3dfa8970]
add esp, 4
xor eax, 0xcccccccc
push eax
xor eax, eax
push eax
mov eax, dword [esi + 0x50]
push eax
lea ecx, [esp + 0x3c]
call fcn.00406170
mov byte [esp + 0x78], 0
cmp dword [esp + 0x48], 8
jb 0x410fb0
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00414c00
add esp, 4
mov ecx, dword [esi + 0x48]
sub ecx, dword [esi + 0x44]
add dword [esp + 0x10], 0x1c
xor edx, edx
mov word [esp + 0x34], dx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], 0
cmp ebx, eax
jb 0x410ee0
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x64], 8
jb 0x411006
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00414c00
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0041389c
mov esp, ebp
pop ebp
ret
Function at 0x411900
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42ec58
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebp
push esi
push edi
mov eax, dword [0x439300]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xcc]
cmp dword [ebp + 0x18], 8
jb 0x41193e
mov eax, dword [ebp + 4]
jmp 0x411941
lea eax, [ebp + 4]
push 0x433d58
push eax
call fcn.00414509
mov esi, eax
add esp, 8
test esi, esi
jne 0x4119b1
lea eax, [esp + 0x9c]
push ebp
push eax
mov edx, str.Cant_open_file
call fcn.00412660
lea ecx, [esp + 0x88]
push ecx
mov edi, str._for_reading
mov ecx, eax
mov dword [esp + 0xd0], esi
call fcn.0040dc10
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
mov edi, eax
mov byte [esp + 0xc8], 1
call fcn.0040aa70
push 0x4366a4
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], vtable.cioe16.0
call fcn.0041b6b8
push 2
push 0
push esi
call fcn.00415084
add esp, 0xc
push esi
call fcn.00414f8c
mov edi, eax
add esp, 4
cmp edi, 0x7fa00
jbe 0x4119d6
mov edi, 0x7fa00
push edi
mov eax, ebx
call fcn.0040b8a0
push 0
push 0
push esi
call fcn.00415084
add esp, 0xc
test edi, edi
jle 0x411a5b
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
jne 0x4119fc
call fcn.00415667
mov eax, dword [ebx + 0xc]
push esi
push 1
push edi
push eax
call fcn.00414bb9
add esp, 0x10
cmp eax, 1
je 0x411a5b
push esi
call fcn.004151d1
add esp, 4
lea edx, [esp + 0x64]
push ebp
push edx
mov edx, 0x43475c
call fcn.00412660
add esp, 8
lea ecx, [esp + 0x14]
push ecx
mov edi, eax
mov dword [esp + 0xc8], 2
call fcn.0040aa70
push 0x4366a4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], vtable.cioe16.0
call fcn.0041b6b8
push esi
call fcn.004151d1
add esp, 4
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xb8
ret

Function at 0x412660
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x42e511
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x439300]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x10], ebx
xor eax, eax
mov word [esp + 0x18], ax
mov eax, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
lea esi, [eax + 2]
jmp 0x4126b0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4126b0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00408cc0
mov ecx, dword [esp + 0x44]
push ebx
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x1c]
mov dword [esp + 0x40], 1
call fcn.0040e610
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push eax
mov ecx, edi
mov word [edi + 4], dx
call fcn.00409190
mov byte [esp + 0x38], bl
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x10], 1
jb 0x41271f
mov eax, dword [esp + 0x18]
push eax
call fcn.00414c00
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x412734
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x435890
call fcn.0041610c
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x412752
lea esi, [eax + 0x10000]
push 0x1c
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.00416090
add esp, 0xc
push 0xfffffffffffffffe
pop edi
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jbe 0x4127cc
cmp dword [ebp - 0x24], 0x1000
jne 0x412799
test dword [ebp - 0x20], 0x100
jne 0x412799
and dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [esi], ax
je 0x4127a4
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
lea esi, [eax + ecx]
jmp 0x412765
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x412796
mov dword [ebp - 4], edi
mov eax, esi
call fcn.00416151
ret 4
xor eax, eax
jmp 0x4127b6

Function at 0x4127d0
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4358b0
call fcn.0041610c
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
xor edi, edi
cmp eax, edi
jne 0x4127f2
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
mov dword [ebp - 4], edi
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x412809
push 0xc1
jmp 0x4128a5
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
je 0x412820
push 0xbf
jmp 0x4128a5
movzx eax, word [esi + 0x14]
cmp ax, di
je 0x4128a0
movzx eax, ax
lea ebx, [eax + esi + 0x18]
mov dword [ebp - 0x1c], edi
movzx eax, word [esi + 6]
cmp dword [ebp - 0x1c], eax
jae 0x4128a0
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
lea edi, [eax + ebx]
push str..detour
push edi
call fcn.00416300
pop ecx
pop ecx
test eax, eax
jne 0x412894
mov eax, dword [edi + 0xc]
xor ecx, ecx
cmp eax, ecx
je 0x4128a0
cmp dword [edi + 0x10], ecx
je 0x4128a0
mov edx, dword [ebp + 8]
lea esi, [eax + edx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x4128a0
cmp dword [esi + 4], 0x727444
jne 0x4128a0
cmp dword [esi + 8], ecx
jne 0x412882
mov dword [esi + 8], eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4128b4
inc dword [ebp - 0x1c]
jmp 0x412833
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.00416151
ret 4
Function at 0x4129b8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
mov eax, 0x150
cmp dword [esi], eax
jne 0x412a97
cmp dword [ebp + 0xc], eax
jb 0x412a97
and dword [ebp - 4], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 0xc]
push eax
push 0x40
push 0x40
push dword [esi + 4]
call edi
test eax, eax
je 0x412a91
push ebx
lea eax, [ebp - 8]
push eax
push 0x40
mov ebx, pe_nt_image_headers32
push ebx
push dword [esi + 8]
call edi
test eax, eax
je 0x412a82
mov eax, dword [esi + 0xc]
test eax, eax
je 0x412a24
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push 4
push eax
call edi
test eax, eax
je 0x412a75
push 0x40
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.00416390
push ebx
lea eax, [esi + 0x54]
push eax
push dword [esi + 8]
call fcn.00416390
mov eax, dword [esi + 0xc]
add esp, 0x18
test eax, eax
je 0x412a5b
push 4
lea ecx, [esi + 0x14c]
push ecx
push eax
call fcn.00416390
add esp, 0xc
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], 1
test eax, eax
je 0x412a75
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push 4
push eax
call edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
push ebx
push dword [esi + 8]
call edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push 0x40
push dword [esi + 4]
call edi
pop ebx
mov eax, dword [ebp - 4]
pop edi
jmp 0x412aa4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
leave
ret 8

Function at 0x412aef
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x4358f0
call fcn.0041610c
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov edx, dword [ebp - 0x30]
cmp word [edx], ax
jne 0x412b57
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x412b57
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x412b57
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x412b57
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x412b60
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.00416151
ret
Function at 0x412c58
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
mov ebx, 0x10000
cmp esi, 0x7ff80000
jbe 0x412c7b
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x412c7e
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x412c91
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x412c98
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x43ae24]
mov ecx, dword [0x43ae20]
test eax, eax
jne 0x412cb2
test ecx, ecx
je 0x412cc7
mov eax, ecx
mov dword [0x43ae24], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x412cc7
cmp edx, dword [ebp - 4]
jb 0x412cc7
cmp edx, dword [ebp - 8]
jbe 0x412d98
mov eax, ecx
test ecx, ecx
jmp 0x412ceb
test eax, eax
je 0x412ce6
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x412ce6
cmp ecx, dword [ebp - 4]
jb 0x412ce6
cmp ecx, dword [ebp - 8]
jbe 0x412d98
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x43ae24], eax
jne 0x412ccd
mov eax, esi
and eax, 0xffff
sub esi, eax
mov edi, esi
cmp esi, dword [ebp - 4]
jbe 0x412e2d
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x412d18
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412e2d
cmp dword [ebp - 0x30], ebx
jne 0x412d37
cmp dword [ebp - 0x34], ebx
jae 0x412d4a
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x412d06
jmp 0x412e2d
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x43ae24], eax
test eax, eax
je 0x412e2d
mov ecx, dword [0x43ae20]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x43ae20], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x412d8a
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x412e32
cmp esi, dword [ebp - 8]
ja 0x412e32
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.00416090
add esp, 0xc
mov eax, esi
jmp 0x412e34
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x412dd9
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412e32
cmp dword [ebp - 0x14], ebx
jne 0x412e24
cmp dword [ebp - 0x18], ebx
jb 0x412e24
movzx ecx, si
test ecx, ecx
je 0x412e08
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x43ae24], eax
test eax, eax
jne 0x412d66
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x412dc7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret