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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004133d8

Function at 0x413741
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00413567

Function at 0x413b3b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407bb0
mov eax, dword [0x428040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004125cd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413b7d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413cd9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d260
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x476d90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414d0b
mov ecx, dword [esi*4 + 0x476d90]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x413cd2
cmp eax, dword [edi + ecx + 0x24]
jne 0x413cd2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413cd2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414d0b
add esp, 0x14
test edx, edx
jl 0x413cd2
jg 0x413c48
test eax, eax
jb 0x413cd2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413cd2
jl 0x413c62
cmp dword [ebp - 0x1008], eax
ja 0x413cd2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413c80
test ebx, ebx
je 0x413cb9
cmp ecx, edi
jae 0x413cb9
mov al, byte [ecx]
cmp al, 0xd
jne 0x413c9a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413ca6
cmp byte [ecx + 1], 0xa
jne 0x413ca6
inc ecx
jmp 0x413ca6
movzx eax, al
movsx eax, byte [eax + 0x4282f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413c80
cmp edx, ebx
jne 0x413c80
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413cd7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406c93
leave
ret
Function at 0x4141a9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x476d90]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4141e9
cmp byte [ebx], 0xa
jne 0x4141e9
or byte [eax + edi + 0x28], 4
jmp 0x4141ee
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4142ec
mov al, byte [edx]
cmp al, 0x1a
je 0x4142ce
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41421d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x414242
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41424c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4141ff
jmp 0x4142ec
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4142c9
cmp dword [ebp - 0xc], 0
je 0x4142c9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x476d90]
test byte [eax + edi + 0x28], 0x48
je 0x4142a3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41428e
mov byte [esi], dl
jmp 0x41429f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x476d90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4142ec
cmp byte [ebp - 1], 0xa
jne 0x4142b2
cmp esi, ebx
jne 0x4142b2
mov byte [esi], 0xa
jmp 0x4142eb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414d29
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4142ec
mov byte [esi], 0xd
jmp 0x4142eb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x476d90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4142e8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4142ec
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4142f5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x476d90]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x414338
cmp word [esi], dx
jne 0x414338
or byte [edi + eax + 0x28], 4
jmp 0x41433d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x414490
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x414470
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41437f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4143b5
cmp eax, edx
jae 0x4143c1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x414357
jmp 0x414490
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41446c
cmp dword [ebp - 0x14], 0
je 0x41446c
mov eax, dword [ebx*4 + 0x476d90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x414444
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41440d
mov word [esi], cx
jmp 0x414440
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x476d90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x476d90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x476d90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x414490
pop ebx
cmp word [ebp - 4], bx
jne 0x414455
cmp esi, dword [ebp + 0xc]
jne 0x414455
mov word [esi], bx
jmp 0x41448d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414d29
add esp, 0x10
cmp word [ebp - 4], bx
je 0x414490
push 0xd
jmp 0x414489
mov ecx, dword [ebx*4 + 0x476d90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414487
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414490
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10002ca0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1006b834], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x10002d5a
xor ebx, ebx
nop dword [eax]
mov edx, ebx
mov eax, ebx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebx*4 + 0x1006b830], eax
inc ebx
cmp ebx, 0x100
jb 0x10002cc0
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x10002d86
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1006b830]
sub edi, 1
jne 0x10002d65
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10002db8
nop dword [eax]
cmp cl, 0x23
jne 0x10002d9f
cmp byte [esi], cl
jne 0x10002d9f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x1006b830]
test cl, cl
jne 0x10002d90
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x10002f50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10002f62
mov dword [edi], 0
mov edx, 0x10067720
call fcn.10002dc0
mov esi, eax
test esi, esi
jne 0x10002f76
pop edi
pop esi
pop ebp
ret
push ebx
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000302e
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x1000302e
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000302e
mov eax, dword [0x1006bc38]
test eax, eax
je 0x10002fc6
inc dword [eax + 0x394]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000302e
push esi
push dword [ebp + 8]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x10003015
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x1006bc38]
add esp, 4
test eax, eax
je 0x10003004
dec dword [eax + 0x394]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x10003027
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x10011a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x1006bc38]
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [esi + 0x2c2c], 0
test eax, eax
je 0x10011b23
push edi
lea edi, [esi + 0x2c30]
mov dword [esi + 0x2c2c], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10011a84
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.100128b0
mov dword [edi], 0
cmp dword [edi + 4], 0
jne 0x10011a99
push 8
mov ecx, edi
call fcn.100128b0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
push ebx
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [edi]
cmp dword [esi + 0x2c3c], 0
jle 0x10011adc
xor ebx, ebx
mov eax, dword [esi + 0x2c44]
add eax, ebx
push edi
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x2c3c]
jl 0x10011ab7
cmp dword [edi + 8], 0
je 0x10011ae7
mov edi, dword [edi]
dec edi
jmp 0x10011ae9
xor edi, edi
mov eax, dword [esi + 0x2c38]
mov ebx, 0x1006bc34
mov ecx, dword [ebp - 8]
test eax, eax
mov edx, 0x10067724
cmovne ebx, eax
call fcn.10002dc0
mov esi, eax
test esi, esi
je 0x10011b21
push esi
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100334d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1006b040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x34], edx
xorps xmm0, xmm0
mov dword [ebp - 0x30], ecx
mov ebx, 0x20000000
mov dword [ebp - 8], esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0xc], esi
movq qword [ebp - 0x14], xmm0
mov dword [ebp - 0x28], ebx
nop dword [eax + eax]
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100335f3
cmp dword [ebp - 0x14], 0x1000
jne 0x100335f3
cmp dword [ebp - 0x10], 1
je 0x100335f3
lea eax, [ebp - 8]
push eax
push 0x40
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call edi
test eax, eax
je 0x100335f3
mov edx, dword [ebp - 0x34]
mov esi, edx
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10033560
sub esi, ecx
xor eax, eax
mov ecx, dword [ebp - 0x18]
sub ecx, esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], ecx
je 0x100335e1
mov edi, dword [ebp - 0x30]
mov ecx, edx
sub edi, ebx
sub ecx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], ecx
xor edx, edx
test esi, esi
je 0x100335a9
add eax, ebx
lea ebx, [ecx + edi]
cmp byte [ebx + eax], 0x3f
je 0x1003359d
mov cl, byte [edi + eax]
cmp cl, byte [eax]
jne 0x100335c8
inc edx
inc eax
cmp edx, esi
jb 0x10033590
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esi, [eax + ebx]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
mov eax, dword [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call edi
test esi, esi
jne 0x10033605
jmp 0x100335f3
mov eax, dword [ebp - 0x2c]
dec edi
mov ebx, dword [ebp - 0x28]
inc eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x38]
jb 0x10033585
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
mov eax, dword [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call edi
xor esi, esi
add ebx, dword [ebp - 0x18]
mov dword [ebp - 0x28], ebx
cmp ebx, 0xa0000000
jb 0x10033510
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003f8a4
mov esp, ebp
pop ebp
ret
Function at 0x1003f150
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x1006b040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2d8], ecx
push esi
sub eax, 0
je 0x1003f2a8
sub eax, 1
jne 0x1003f317
push ebx
push edi
push str.ntdll
mov dword [0x1006bd5c], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
push edi
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 8
lea ebx, [edi + 8]
nop dword [eax + eax]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx esi, al
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx eax, al
mov ecx, ebx
or eax, esi
shl eax, cl
or edi, eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, ebx
movzx eax, al
shl eax, cl
add ebx, 8
or edi, eax
cmp ebx, 0x20
jl 0x1003f1b0
cmp edi, 0x7fffffff
jbe 0x1003f1fe
lea eax, [edi - 0x80000000]
shr eax, 0xc
inc eax
sub edi, 0x1000
sub eax, 1
jne 0x1003f1f3
push 0
push 0x40
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push str.RtlCreateUserThread
push str.ntdll
mov dword [ebp - 0x2d4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov esi, eax
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp - 0x2d8]
push edi
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10003
push eax
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x220], 0x1003ee90
push eax
push dword [ebp - 0x2d4]
mov dword [ebp - 0x2d0], 0x10003
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop ebx
jmp 0x1003f317
push 0x10033320
push 0xfffffffffffffffc
push dword [0x1006bd1c]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [0x1006bfe8], 0
call fcn.100205e0
mov esi, dword [0x1006bc38]
mov ecx, esi
mov dword [0x1006bfe0], 0
call fcn.100064b0
cmp dword [0x1006bc38], esi
jne 0x1003f2f3
mov dword [0x1006bc38], 0
test esi, esi
je 0x1003f317
mov ecx, esi
call fcn.10012b20
mov eax, dword [0x1006bc38]
test eax, eax
je 0x1003f30d
dec dword [eax + 0x394]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.1003f8a4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10040a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10040be0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10040afd
mov edx, dword [ebp - 4]
cmp edx, dword [0x1006b09c]
jb 0x10040a7a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1006b0a0]
ja 0x10040a7a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10040a4a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10040aa0
jmp 0x10040afd
cmp dword [ebp - 0x14], 0x10000
jne 0x10040ae3
cmp dword [ebp - 0x18], 0x10000
jb 0x10040ae3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10040ad6
mov eax, dword [ebp - 8]
jmp 0x10040aff
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10040af8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10040be0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10040a4a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10040b10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10040c10
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10040bd5
mov edx, dword [ebp - 4]
cmp edx, dword [0x1006b09c]
jb 0x10040b55
mov eax, dword [ebp - 4]
cmp eax, dword [0x1006b0a0]
ja 0x10040b55
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10040b25
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10040b7b
jmp 0x10040bd5
cmp dword [ebp - 0x14], 0x10000
jne 0x10040bbe
cmp dword [ebp - 0x18], 0x10000
jb 0x10040bbe
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10040bb1
mov eax, dword [ebp - 8]
jmp 0x10040bd7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10040bd0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10040c10
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10040b25
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10040c40
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10041030
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1006b804], 0
jne 0x10040c7d
cmp dword [0x1006b800], 0
je 0x10040c7d
mov eax, dword [0x1006b800]
mov dword [0x1006b804], eax
cmp dword [0x1006b804], 0
je 0x10040cfa
mov ecx, dword [0x1006b804]
cmp dword [ecx + 8], 0
je 0x10040cfa
mov edx, dword [0x1006b804]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x10040cfa
mov ecx, dword [0x1006b804]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x10040cfa
mov eax, dword [0x1006b804]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10040cc9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10040cd0
xor eax, eax
jmp 0x10040e19
mov ecx, dword [0x1006b804]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10040e19
mov edx, dword [0x1006b800]
mov dword [0x1006b804], edx
jmp 0x10040d16
mov eax, dword [0x1006b804]
mov ecx, dword [eax + 4]
mov dword [0x1006b804], ecx
cmp dword [0x1006b804], 0
je 0x10040d56
cmp dword [0x1006b804], 0
je 0x10040d54
mov edx, dword [0x1006b804]
cmp dword [edx + 8], 0
je 0x10040d54
mov eax, dword [0x1006b804]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10040d54
mov edx, dword [0x1006b804]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10040d54
jmp 0x10040cae
jmp 0x10040d08
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10040e20
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10040e17
mov eax, dword [ebp - 0x18]
mov dword [0x1006b804], eax
mov ecx, dword [0x1006b804]
mov dword [ecx], 0x52727464
mov edx, dword [0x1006b804]
mov dword [edx + 8], 0
mov eax, dword [0x1006b804]
mov ecx, dword [0x1006b800]
mov dword [eax + 4], ecx
mov edx, dword [0x1006b804]
mov dword [0x1006b800], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1006b804]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10040de7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10040e07
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x10040dde
mov eax, dword [0x1006b804]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x10040cae
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x406c50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4378d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45e4c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00406d40
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x406cee
cmp eax, dword [esi + 0x10]
jne 0x406cbf
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
cmp dword [esi + 0x14], 8
jb 0x406caf
mov ecx, dword [esi]
jmp 0x406cb1
mov ecx, esi
push eax
push ecx
call fcn.00421ae7
add esp, 8
test eax, eax
je 0x406cee
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406cee
cmp eax, 0x10
je 0x406cee
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00402ae0
mov bl, 1
jmp 0x406cf0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x406d08
push dword [ebp - 0x2c]
call fcn.00421a46
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov al, bl
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004210ea
mov esp, ebp
pop ebp
ret 4