joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f910
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, ecx
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040f6b0
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x40f977
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword [eax], ecx
mov byte [eax + 4], 0
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 8], 0x15555555
je 0x40fab3
push esi
push 0xc
call fcn.00449148
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
mov dword [esi + 8], ecx
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
inc ecx
mov eax, ebx
movss xmm3, dword [edi]
shr eax, 0x1f
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4bc9f0]
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x4bc9f0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x40fa4d
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0xc], xmm0
fld qword [ebp - 0xc]
fstp qword [esp]
call fcn.0048d680
fstp qword [ebp - 0xc]
movsd xmm0, qword [ebp - 0xc]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.00449540
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x40fa2f
cmp ebx, 0x200
jae 0x40fa2d
shl ebx, 3
cmp ebx, ecx
jae 0x40fa2f
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.004195a0
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040f6b0
mov edx, dword [eax]
jmp 0x40fa50
mov edx, dword [ebp - 0xc]
mov eax, dword [edi + 8]
mov ebx, dword [edx + 4]
inc eax
mov dword [edi + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
mov esi, dword [ecx + eax*8]
cmp esi, dword [edi + 4]
mov esi, dword [ebp - 4]
jne 0x40fa7d
mov dword [ecx + eax*8], esi
jmp 0x40fa9d
cmp dword [ecx + eax*8], edx
jne 0x40fa97
mov dword [ecx + eax*8], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop esi
pop edi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ecx + eax*8 + 4], ebx
jne 0x40faa1
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop esi
pop edi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.0044bb59
int3
Function at 0x411ad0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x411b4d
mov esi, dword [ebp + 8]
mov ecx, 1
mov edx, dword [esi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x411b07
push edi
mov ecx, esi
call fcn.00406440
mov edx, dword [esi]
push edi
push edx
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x411b2e
mov ecx, dword [esi]
test ecx, ecx
je 0x411b32
push dword [ecx - 8]
push ecx
call fcn.0048cf3b
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x411b4d
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x411b4d
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.004059f0
int3

Function at 0x412df0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
movzx eax, bl
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
mov eax, ebx
sar eax, 8
movzx eax, al
push esi
push edi
xor edx, eax
mov edi, ecx
imul ecx, edx, 0x1000193
mov eax, ebx
sar eax, 0x10
movzx eax, al
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
sar eax, 0x18
movzx eax, al
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [edi + 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040f6b0
mov eax, dword [eax + 4]
test eax, eax
jne 0x412e57
mov eax, dword [edi + 0xc]
mov edi, dword [edi + 0xc]
cmp eax, edi
jne 0x412e8d
mov esi, dword [edi]
cmp esi, edi
je 0x412e82
mov ebx, dword [sym.imp.USER32.dll_IsChild]
nop word [eax + eax]
push dword [ebp + 8]
push dword [esi + 8]
call ebx
test eax, eax
jne 0x412e8d
mov esi, dword [esi]
cmp esi, edi
jne 0x412e70
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418690
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4d9694]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
mov edi, ecx
mov dword [ebp - 0x1c], 0x17
push eax
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetScrollInfo]
push 1
lea eax, [ebp - 0x20]
push eax
push 2
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4186ed
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
inc eax
cmp ecx, eax
jge 0x4186ed
mov ebx, 5
push ebx
jmp 0x4186f0
xor ebx, ebx
push ebx
push dword [edi + 0x24]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x3c], ebx
call esi
lea eax, [ebp - 0x20]
push eax
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetScrollInfo]
push 1
lea eax, [ebp - 0x20]
push eax
push 2
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41873b
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
inc eax
cmp ecx, eax
jge 0x41873b
mov dword [ebp - 0x38], 5
push 5
jmp 0x418744
mov dword [ebp - 0x38], 0
push 0
push dword [edi + 0x28]
call esi
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
jne 0x418771
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push dword [edi + 4]
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0xc], eax
cmp ebx, 5
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
jne 0x4187b7
cmp dword [ebp - 0x38], 5
jne 0x41878b
push 3
call ebx
mov dword [ebp - 0x34], eax
jmp 0x418792
mov dword [ebp - 0x34], 0
push 2
call ebx
push 2
mov esi, eax
call ebx
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 8]
push 1
push ecx
push esi
push 0
sub edx, eax
push edx
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [ebp - 0x38], 5
jne 0x4187f4
push 3
call ebx
cmp dword [ebp - 0x3c], 5
mov dword [ebp - 0x34], eax
jne 0x4187d2
push 2
call ebx
mov esi, eax
jmp 0x4187d4
xor esi, esi
push 3
call ebx
mov ecx, dword [ebp + 0xc]
push 1
push dword [ebp - 0x34]
sub ecx, eax
mov eax, dword [ebp + 8]
sub eax, esi
push eax
push ecx
push 0
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448f14
mov esp, ebp
pop ebp
ret 8
Function at 0x4195a0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0xc], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x4196fe
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.00419460
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x4196d0
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp + 8], eax
cmp ebx, esi
jne 0x419653
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x4196bf
mov eax, dword [eax + 4]
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x41968a
mov eax, dword [eax]
cmp eax, ecx
je 0x419682
mov ebx, dword [ecx + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x4196bf
cmp ebx, eax
je 0x41969c
nop
mov eax, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x4196d9
cmp ebx, eax
jne 0x419690
mov ebx, dword [ecx + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ebx, dword [ebp - 0xc]
mov ecx, edx
cmp edx, esi
jne 0x419602
nop dword [eax]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp + 8], eax
mov esi, dword [ebp + 8]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x4196bf
push str.invalid_hash_bucket_count
call fcn.0044bb59
int3
Function at 0x419a10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4d9694]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0xf8
push 0
push edi
call fcn.00464ad0
add esp, 0xc
test esi, esi
jne 0x419a47
push 0x57
jmp 0x419ace
push 0x1c
lea eax, [ebp - 0x60]
mov dword [ebp - 0x48], 0
push eax
xorps xmm0, xmm0
push esi
push ebx
movups xmmword [ebp - 0x60], xmm0
movq qword [ebp - 0x50], xmm0
call sub.KERNEL32.dll_VirtualQueryEx
test eax, eax
je 0x419ad3
push 0
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
push ebx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x419ad3
mov eax, 0x5a4d
cmp word [ebp - 0x44], ax
jne 0x419ac9
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x54]
ja 0x419ac9
cmp eax, 0x40
jb 0x419ac9
push 0
push 0xf8
push edi
add eax, esi
push eax
push ebx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x419ad3
cmp dword [edi], 0x4550
jne 0x419ac9
mov eax, dword [ebp - 8]
pop edi
add eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448f14
mov esp, ebp
pop ebp
ret
push 0xc1
call sub.KERNEL32.dll_SetLastError
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448f14
mov esp, ebp
pop ebp
ret
Function at 0x41afd0
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x4d9694]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x210], eax
xor edi, edi
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x214], edi
push eax
push 0x4bcc1c
call sub.KERNEL32.dll_GetEnvironmentVariableA
mov ecx, dword [ebp + 0xc]
mov esi, eax
lea eax, [ecx - 1]
cmp eax, 0xfff
ja 0x41b223
push ebx
push ecx
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call fcn.00419770
test eax, eax
je 0x41b20e
test esi, esi
je 0x41b20e
cmp esi, 0x104
jae 0x41b20e
mov ecx, 0x104
lea eax, [ebp - 0x108]
nop dword [eax + eax]
cmp byte [eax], 0
je 0x41b06b
inc eax
sub ecx, 1
jne 0x41b060
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x41b20e
lea ecx, [ebp - 0x108]
lea ecx, [ecx + esi]
sub edx, esi
je 0x41b0b4
mov esi, 0x4bcc24
mov eax, CreateSecurityPage
sub esi, ecx
nop dword [eax]
test eax, eax
je 0x41b0b4
mov bl, byte [esi + ecx]
test bl, bl
je 0x41b0b4
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x41b0a0
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
je 0x41b20e
mov esi, dword [ebp - 0x214]
lea eax, [esi + 0xc]
push eax
push 0x4bcc3c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00419bd0
add esp, 0x10
test eax, eax
js 0x41b20e
lea eax, [ebp - 0x224]
mov dword [ebp - 0x268], 0x44
push eax
lea eax, [ebp - 0x268]
xorps xmm0, xmm0
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
movlpd qword [ebp - 0x264], xmm0
push eax
lea eax, [ebp - 0x108]
movlpd qword [ebp - 0x25c], xmm0
push eax
movups xmmword [ebp - 0x224], xmm0
movlpd qword [ebp - 0x254], xmm0
movlpd qword [ebp - 0x24c], xmm0
movlpd qword [ebp - 0x244], xmm0
movlpd qword [ebp - 0x23c], xmm0
movlpd qword [ebp - 0x234], xmm0
movlpd qword [ebp - 0x22c], xmm0
call dword [ebp - 0x210]
test eax, eax
je 0x41b20e
push dword [esi]
push esi
push 0x4bca00
push dword [ebp - 0x224]
call fcn.0041a440
test eax, eax
jne 0x41b1b6
push 0xffffffffffffffff
push dword [ebp - 0x224]
call sub.KERNEL32.dll_TerminateProcess
push dword [ebp - 0x224]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x220]
call sub.KERNEL32.dll_CloseHandle
jmp 0x41b20e
push dword [ebp - 0x220]
call sub.KERNEL32.dll_ResumeThread
push 0xffffffffffffffff
push dword [ebp - 0x224]
call sub.KERNEL32.dll_WaitForSingleObject
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x1f4
push eax
push dword [ebp - 0x224]
call sub.KERNEL32.dll_GetExitCodeProcess
push dword [ebp - 0x224]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x220]
call sub.KERNEL32.dll_CloseHandle
cmp dword [ebp - 0x210], edi
mov eax, 1
cmove edi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x41b22a
push eax
call fcn.0044990a
add esp, 4
jmp 0x41b22a
push 0x57
call sub.KERNEL32.dll_SetLastError
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448f14
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41b8e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x41b9a8
nop dword [eax]
cmp edi, dword [0x4d9224]
jb 0x41b928
cmp edi, dword [0x4d9228]
ja 0x41b928
sub edi, 0x8000000
jmp 0x41b9a0
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x41b9a8
cmp dword [ebp - 0xc], 0x10000
jne 0x41b98b
cmp dword [ebp - 0x10], 0x10000
jb 0x41b98b
push 0x40
push 0x3000
push 0x10000
push edi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x41ba5a
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x41b9a8
sub edi, 0x10000
jmp 0x41b9a0
mov ecx, dword [ebp - 0x18]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x41b910
movzx eax, si
test eax, eax
je 0x41b9b7
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 0x10]
cmp esi, edi
jae 0x41ba58
cmp esi, dword [0x4d9224]
jb 0x41b9da
cmp esi, dword [0x4d9228]
ja 0x41b9da
add esi, 0x8000000
jmp 0x41ba50
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x41ba58
cmp dword [ebp - 0xc], 0x10000
mov ecx, dword [ebp - 0x10]
jne 0x41ba3b
cmp ecx, 0x10000
jb 0x41ba3b
push 0x40
push 0x3000
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x41ba5a
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x41ba58
add esi, 0x10000
jmp 0x41ba50
mov esi, dword [ebp - 0x1c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x41ba50
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x41b9c2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41bd80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4d24c0
push 0x465880
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4d9694]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_VirtualQuery
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x41be31
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x41be31
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x41be31
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x41be31
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c730
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4ddce0], 0
jne 0x41c7a7
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov edx, 0x4ddce0
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x41c7a7
push esi
mov esi, dword [0x4ddcd0]
mov dword [0x4ddcf0], eax
mov dword [0x4ddcec], eax
mov dword [0x4ddce8], eax
test esi, esi
je 0x41c78c
nop dword [eax]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x41c798
mov esi, dword [esi + 4]
test esi, esi
jne 0x41c770
xor eax, eax
mov dword [0x4ddce4], eax
pop esi
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [0x4ddce4], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
Function at 0x41cc70
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4ddce4]
test eax, eax
jne 0x41ccef
push edi
call sub.KERNEL32.dll_GetCurrentThread
mov edi, dword [ebp + 8]
cmp edi, eax
jne 0x41cc90
xor eax, eax
pop edi
pop ebp
ret 4
push esi
push 8
call fcn.00449148
mov esi, eax
add esp, 4
test esi, esi
jne 0x41cca6
lea edi, [eax + 8]
jmp 0x41ccc3
push edi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x41ccdb
call sub.KERNEL32.dll_GetLastError
mov edi, eax
push 8
push esi
call fcn.00449178
add esp, 8
pop esi
mov dword [0x4ddce4], edi
mov eax, edi
mov dword [0x4ddce8], 0
pop edi
pop ebp
ret 4
mov eax, dword [0x4ddcec]
mov dword [esi + 4], edi
mov dword [esi], eax
xor eax, eax
mov dword [0x4ddcec], esi
pop esi
pop edi
pop ebp
ret 4

Function at 0x422a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x94]
mov ecx, dword [edi + 0x90]
dec eax
mov dword [ebp - 4], edx
lea esi, [edx + eax]
not eax
and esi, eax
mov eax, dword [edi + 0x14]
dec eax
mov dword [edi + 0x10], esi
add eax, ecx
neg ecx
and eax, ecx
mov dword [edi + 0x14], eax
cmp ebx, 0xffffffff
je 0x422b36
cmp esi, edx
jbe 0x422b36
push 0
push 0
push edx
push ebx
call sub.KERNEL32.dll_SetFilePointer
cmp eax, 0xffffffff
jne 0x422ac2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [edi + 0x10]
mov ecx, edi
sub esi, dword [ebp - 4]
push 0x1000
call fcn.00424170
test eax, eax
je 0x422ab7
push 0x1000
push 0
push dword [edi + 0x3f8]
call fcn.00464ad0
add esp, 0xc
test esi, esi
je 0x422b36
mov ecx, 4
nop word [eax + eax]
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 4
mov eax, esi
cmova eax, ecx
push eax
push dword [edi + 0x3f8]
push ebx
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x422ab7
mov eax, dword [ebp + 8]
test eax, eax
je 0x422b36
mov ecx, 4
sub esi, eax
jne 0x422b00
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x422df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 0xc]
lea ecx, [ebp - 4]
add eax, dword [ebp + 0xc]
push 0
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteFile
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4256d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4d25e0
push 0x465880
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4d9694]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x425712
push ebx
call sub.KERNEL32.dll_GetModuleHandleW
mov ebx, eax
mov dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x42572d
push 0xc1
jmp 0x42581d
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
mov dword [ebp + 8], ecx
cmp dword [ecx], 0x4550
je 0x425747
push 0xbf
jmp 0x42581d
movzx eax, word [ecx + 0x14]
test ax, ax
je 0x425818
lea edx, [ecx + 0x18]
add edx, eax
mov dword [ebp - 0x20], edx
xor esi, esi
mov dword [ebp - 0x1c], esi
movzx eax, word [ecx + 6]
cmp esi, eax
jae 0x425818
lea eax, [esi + esi*4]
lea edi, [edx + eax*8]
mov ecx, str..detour
mov eax, edi
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4257a0
test dl, dl
je 0x42579c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4257a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x425780
xor eax, eax
jmp 0x4257a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4257f6
mov eax, dword [edi + 0xc]
test eax, eax
je 0x425818
cmp dword [edi + 0x10], 0
je 0x425818
lea esi, [eax + ebx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x425818
cmp dword [esi + 4], 0x727444
jne 0x425818
cmp dword [esi + 8], 0
jne 0x4257d2
mov dword [esi + 8], eax
push 0
call sub.KERNEL32.dll_SetLastError
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
jmp 0x42575e
push 0xc0
call sub.KERNEL32.dll_SetLastError
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4