joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1a4fb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1caaa8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1ff584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], vtable.google::protobuf::DescriptorProto.0
call fcn.0019e720
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
mov dword [esi + 8], 0x2006e0
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1a6fc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1caaa8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1ff584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], vtable.google::protobuf::UninterpretedOption.0
call fcn.0019e720
fldz
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
fstp qword [esi + 0x30]
mov eax, 0x2006e0
mov dword [esi + 0x18], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x44], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1a7110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1cca23
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1ff584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x48
call fcn.00162640
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x1a71a3
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
mov dword [esi], vtable.google::protobuf::UninterpretedOption.0
call fcn.0019e720
fldz
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
fstp qword [esi + 0x30]
mov eax, 0x2006e0
mov dword [esi + 0x18], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x44], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x8f6820
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x78a015
lea edi, [esi - 0x389015]
push edi
jmp 0x8f683a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8f6841
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8f6830
mov eax, 1
add ebx, ebx
jne 0x8f6853
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8f6864
jne 0x8f6883
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8f6883
dec eax
add ebx, ebx
jne 0x8f6870
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8f6848
add ebx, ebx
jne 0x8f687f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8f68d5
xor ecx, ecx
sub eax, 3
jb 0x8f689b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8f690a
sar eax, 1
mov ebp, eax
jmp 0x8f68a6
add ebx, ebx
jne 0x8f68a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8f6874
inc ecx
add ebx, ebx
jne 0x8f68b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8f6874
add ebx, ebx
jne 0x8f68c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8f68b6
jne 0x8f68d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8f68b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8f68f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8f68e6
jmp 0x8f6836
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8f68f4
add edi, ecx
jmp 0x8f6836
pop esi
mov edi, esi
mov ecx, 0x2554
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8f6912
cmp byte [edi], 0x12
jne 0x8f6912
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 0x8f6917
lea edi, [esi + 0x4f3000]
mov eax, dword [edi]
or eax, eax
je 0x8f698f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x507134]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x507288]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8f6944
mov ecx, edi
jns 0x8f6973
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x507290]
or eax, eax
je 0x8f6989
mov dword [ebx], eax
add ebx, 4
jmp 0x8f6961
call dword [esi + 0x50728c]
mov ebp, dword [esi + 0x507294]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x8f69c3
sub esp, 0xffffff80
jmp 0x423630

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 0x4020c0
Capabilities:
Query or enumerate registry value

Disassembly:
lea eax, [esp + 0xc]
sub esp, 4
mov dword [esp], 1
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push edi
mov ebx, dword [esp + 0x1c]
push ecx
push 0
mov eax, dword [esi + 4]
push ebx
mov ecx, dword [esi + eax*4 + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402106
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 4
ret 0xc
lea eax, [esp + 0x1c]
mov ecx, dword [esi + 4]
push eax
push edi
push ebx
mov edx, dword [esi + ecx*4 + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
pop edi
cmp eax, 1
sbb eax, eax
pop esi
neg eax
pop ebx
add esp, 4
ret 0xc

Function at 0x402130
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
sub esp, 4
mov dword [esp], 3
push eax
push edx
lea eax, [esp + 8]
mov edx, dword [esp + 0x10]
push eax
push 0
push edx
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + eax*4 + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 1
sbb eax, eax
add esp, 4
neg eax
ret 0xc

Function at 0x402170
Capabilities:
Query or enumerate registry key

Disassembly:
lea eax, [esp + 0xc]
push 0
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push eax
push edx
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
mov ecx, dword [ecx + edx*4 + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 1
sbb eax, eax
neg eax
ret 0xc

Function at 0x402670
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x104
push esi
push edi
cmp dword [ecx], 0
mov esi, ecx
je 0x402684
call fcn.00402770
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x110]
lea edx, [esp + 8]
push eax
push ecx
push edx
call fcn.0040b0a0
lea ecx, [esp + 0x14]
add esp, 0xc
push ecx
call fcn.0040b070
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x4026c1
xor eax, eax
pop edi
pop esi
add esp, 0x104
ret 8
push str.DllRegisterServer
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.DllUnregisterServer
mov dword [esi + 4], eax
mov eax, dword [esi]
push eax
call edi
push str.IsRegistServer
mov dword [esi + 8], eax
mov eax, dword [esi]
push eax
call edi
push str.SetMenuFlags
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push eax
call edi
push str.GetMenuFlags
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push eax
call edi
push str.UpdateDll
mov dword [esi + 0x14], eax
mov eax, dword [esi]
push eax
call edi
cmp dword [esi + 4], 0
mov dword [esi + 0x18], eax
je 0x402745
cmp dword [esi + 8], 0
je 0x402745
cmp dword [esi + 0xc], 0
je 0x402745
cmp dword [esi + 0x10], 0
je 0x402745
cmp dword [esi + 0x14], 0
je 0x402745
test eax, eax
je 0x402745
mov eax, 1
pop edi
pop esi
add esp, 0x104
ret 8
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
mov dword [esi], 0
pop esi
add esp, 0x104
ret 8
Function at 0x405880
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push esi
mov ebx, dword [esp + 0x20]
push edi
push ebp
xor edi, edi
mov eax, ebx
mov dword [esp + 0x1c], edi
shr eax, 2
and ebx, 3
mov dword [esp + 0x10], eax
cmp eax, edi
jle 0x4058e5
mov ebp, dword [ecx + 4]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
sub edx, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
xor eax, dword [esp + 0x14]
div dword [ecx]
mov eax, dword [ecx + 4]
add ebp, 4
add esi, 4
mov eax, dword [eax + edx*4]
mov edx, edi
shl edx, 7
shr edi, 0x19
or edx, edi
xor eax, edx
xor eax, dword [esp + 0x14]
mov edi, eax
dec dword [esp + 0x18]
jne 0x4058b0
test ebx, ebx
je 0x405933
xor esi, esi
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x24]
lea edx, [ebx + eax*4]
add edx, ebp
mov eax, ebx
dec ebx
test eax, eax
je 0x405910
shl esi, 8
dec edx
xor eax, eax
mov ebp, ebx
mov al, byte [edx]
dec ebx
or esi, eax
test ebp, ebp
jne 0x4058ff
mov ebx, dword [ecx + 4]
mov eax, dword [esp + 0x1c]
sub edx, edx
mov eax, dword [ebx + eax*4]
xor eax, esi
div dword [ecx]
mov ecx, edi
mov eax, dword [ebx + edx*4]
shl ecx, 7
shr edi, 0x19
or ecx, edi
xor eax, ecx
xor eax, esi
mov edi, eax
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
Function at 0x40aae0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [ecx]
push ebp
mov edi, ecx
cmp esi, 1
sbb ebp, ebp
mov ebx, dword [eax + 0xa8]
neg ebp
push ebp
push 0x3ec
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push ebp
mov ecx, edi
push 0x3ef
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, edi
cmp esi, 1
sbb eax, eax
and eax, 5
push eax
push 0x421
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, edi
call fcn.00407e80
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x40b400
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 0xc]
push eax
push edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push eax
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret 0x10
Function at 0x40f450
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
push ebp
mov ebx, 1
mov edi, dword [esp + 0x38]
mov edx, dword [edi + 0x24]
lea eax, [edi + 0x20]
test edx, edx
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jne 0x40f481
cmp dword [esp + 0x18], 0
je 0x40f67f
test byte [esi + 0xf7], 0x10
jne 0x40f67f
cmp dword [edi + 0x2c], 0xffffffff
jne 0x40f4fc
inc dword [esi + 0x3e4]
mov eax, dword [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
mov eax, dword [esi + 0x150]
imul eax, dword [0x4165b4]
add eax, dword [esi + 0x13c]
mov ecx, esi
push eax
push str.OpenFile
call fcn.004113c0
cmp eax, 2
jne 0x40f4f0
lea eax, [edi + 0x20]
mov dword [eax], 0
mov dword [eax + 4], 0
test byte [esi + 0xf4], 1
je 0x40f4f0
push edi
mov ecx, esi
push 0
push 0
call fcn.00410c90
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
test ecx, ecx
mov dword [esp + 0x14], ecx
jl 0x40f657
jg 0x40f51e
test eax, eax
je 0x40f657
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x1c], ecx
jne 0x40f537
mov ebp, 1
cmp dword [esp + 0x18], eax
je 0x40f539
xor ebp, ebp
mov ecx, 0
test ebp, ebp
je 0x40f545
mov ecx, dword [edi + 0x40]
lea eax, [esp + 0x24]
mov ebx, dword [edi]
push eax
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x14]
push edx
push ebx
add ecx, 0x18
mov ebx, dword [esp + 0x20]
push ebx
push eax
push ecx
mov ecx, esi
call fcn.00410bf0
mov ebx, eax
test ebx, ebx
je 0x40f673
lea eax, [esp + 0x20]
push 0
mov ecx, dword [esp + 0x2c]
push eax
mov edx, dword [esp + 0x2c]
push ecx
push edx
mov eax, dword [edi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test ebx, ebx
je 0x40f5ea
lea eax, [esi + 0x3a8]
mov ecx, dword [esp + 0x20]
add dword [eax], ecx
mov ecx, esi
adc dword [eax + 4], 0
mov eax, 0
cmp ebp, 1
adc eax, 0xffffffff
and eax, edi
cmp ebp, 1
push eax
lea eax, [esp + 0x28]
push eax
sbb eax, eax
neg eax
push eax
call fcn.00410c90
mov ecx, dword [esp + 0x20]
sub dword [esp + 0x10], ecx
sbb dword [esp + 0x14], 0
cmp dword [esp + 0x14], 0
jg 0x40f51e
jl 0x40f657
cmp dword [esp + 0x10], 0
ja 0x40f51e
jmp 0x40f657
push 1
mov eax, dword [esi + 0x150]
mov ecx, esi
inc dword [esi + 0x3e4]
imul eax, dword [0x4165b4]
add eax, dword [esi + 0x13c]
push eax
push str.ReadFile
call fcn.004113c0
cmp eax, 2
je 0x40f62b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x1c], ecx
jne 0x40f62b
cmp dword [esp + 0x18], eax
je 0x40f657
lea ecx, [edi + 0x20]
xor eax, eax
mov dword [esp + 0x28], eax
cmp ebp, 1
mov dword [ecx], eax
mov dword [ecx + 4], eax
adc eax, 0xffffffff
and eax, edi
cmp ebp, 1
push eax
mov ecx, esi
lea eax, [esp + 0x28]
push eax
sbb eax, eax
and eax, 2
push eax
call fcn.00410c90
test ebx, ebx
je 0x40f673
cmp dword [esi + 0x408], 0
jne 0x40f673
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
push edi
mov ecx, esi
push 0
push 0
call fcn.00410c90
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
Function at 0x40f720
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x250
push ebx
push esi
push edi
mov esi, ecx
push ebp
cmp dword [esi + 0x410], 0
jne 0x40f742
lea eax, [esi + 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esi + 0x218]
mov ebp, dword [esi + 0x228]
lea eax, [esp + 0x10]
mov ecx, dword [esi + 0x144]
mov dword [esi + 0x420], 1
mov dword [esi + 0x220], 0
mov dword [esi + 0x230], 0
push eax
push ecx
call dword [0x4165b8]
cmp eax, 0xffffffff
mov edi, eax
jne 0x40f7f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40f90b
mov eax, dword [0x416690]
push eax
mov eax, dword [esi + 0x14c]
imul eax, dword [0x4165b4]
add eax, dword [esi + 0x144]
push eax
call dword [0x416694]
add esp, 8
test eax, eax
jne 0x40f90b
push 1
mov eax, dword [esi + 0x154]
mov dword [esi + 0x420], 0
mov ecx, esi
inc dword [esi + 0x3e8]
imul eax, dword [0x4165b4]
add eax, dword [esi + 0x144]
push eax
push str.FindFirstFile_stat_
call fcn.004113c0
jmp 0x40f90b
cmp byte [esp + 0x3c], 0x2e
jne 0x40f831
mov eax, dword [0x4165a0]
lea ecx, [esp + 0x3c]
push eax
push ecx
call dword [0x416694]
add esp, 8
test eax, eax
je 0x40f8a1
mov eax, dword [0x41668c]
lea ecx, [esp + 0x3c]
push eax
push ecx
call dword [0x416694]
add esp, 8
test eax, eax
je 0x40f8a1
mov dword [ebp], ebx
add ebp, 4
lea eax, [esp + 0x10]
push 1
push ebx
mov ecx, esi
push eax
call fcn.004111f0
mov ecx, dword [esi + 0x220]
mov ebx, dword [esi + 0x218]
add dword [esi + 0x230], 4
add ecx, eax
mov eax, dword [esi + 0x21c]
add ebx, ecx
sub eax, ecx
mov dword [esi + 0x220], ecx
cmp eax, dword [esi + 8]
jg 0x40f880
push 0x40000
lea ecx, [esi + 0x218]
call fcn.00404b20
mov eax, dword [esi + 0x22c]
sub eax, dword [esi + 0x230]
cmp eax, 4
ja 0x40f8a1
push 0x10000
lea ecx, [esi + 0x228]
call fcn.00404b20
cmp dword [esi + 0x408], 0
jne 0x40f904
lea eax, [esp + 0x10]
push eax
push edi
call dword [0x416660]
test eax, eax
jne 0x40f7f6
cmp dword [esi + 0x408], 0
jne 0x40f904
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x40f904
push 1
mov eax, dword [esi + 0x154]
mov dword [esi + 0x420], 0
mov ecx, esi
inc dword [esi + 0x3e4]
imul eax, dword [0x4165b4]
add eax, dword [esi + 0x144]
push eax
push str.FindNextFile_stat_
call fcn.004113c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x420], 0
je 0x40f921
mov ecx, esi
call fcn.0040f960
mov dword [esi + 0x420], eax
cmp dword [esi + 0x410], 0
jne 0x40f93e
lea edi, [esi + 0x430]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
call fcn.00404a00
mov eax, dword [esi + 0x420]
pop ebp
mov dword [esi + 0x41c], 0
pop edi
pop esi
pop ebx
add esp, 0x250
ret
Function at 0x411020
Capabilities:
Suspend thread

Disassembly:
push esi
push edi
mov eax, dword [ecx + 0x424]
mov esi, ecx
test eax, eax
jne 0x411037
cmp dword [esi + 0x428], 0
je 0x411080
cmp dword [esi + 0x40c], 0
jne 0x411080
test eax, eax
je 0x41104f
push eax
mov edi, dword [sym.imp.KERNEL32.dll_SuspendThread]
call edi
jmp 0x411055
mov edi, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [esi + 0x428]
test eax, eax
je 0x411062
push eax
call edi
mov dword [esi + 0x40c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x404], eax
mov eax, 1
pop esi
ret
xor eax, eax
pop edi
pop esi
ret

Function at 0x411090
Capabilities:
Resume thread

Disassembly:
push esi
push edi
cmp dword [ecx + 0x424], 0
mov edi, ecx
jne 0x4110a6
cmp dword [edi + 0x428], 0
je 0x4110fb
cmp dword [edi + 0x40c], 0
je 0x4110fb
mov dword [edi + 0x40c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x404]
add dword [edi + 0x400], eax
mov eax, dword [edi + 0x424]
test eax, eax
je 0x4110e0
push eax
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call esi
jmp 0x4110e6
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [edi + 0x428]
test eax, eax
je 0x4110f3
push eax
call esi
mov eax, 1
pop edi
pop esi
ret
xor eax, eax
pop edi
pop esi
ret
Function at 0x4124c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414620
push 0x4126a2
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT40.dll___set_app_type]
add esp, 4
mov dword [0x4166a4], 0xffffffff
mov eax, dword [0x4166a4]
mov dword [0x4166a8], eax
call dword [sym.imp.MSVCRT40.dll___p__fmode]
mov ecx, dword [0x416230]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT40.dll___p__commode]
mov ecx, dword [0x41622c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT40.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4166ac], eax
call fcn.004126a0
cmp dword [0x416228], 0
jne 0x412550
push 0x412690
call dword [sym.imp.MSVCRT40.dll___setusermatherr]
add esp, 4
call fcn.00412670
push 0x41500c
push 0x415008
call sub.MSVCRT40.dll__initterm
add esp, 8
mov eax, dword [0x416224]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x416220]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCRT40.dll___getmainargs]
add esp, 0x14
push 0x415004
push section..data
call sub.MSVCRT40.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT40.dll___p__acmdln]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x4125c4
mov al, byte [ebp - 0x40]
inc esi
mov al, byte [esi]
test al, al
je 0x4125bc
cmp al, 0x22
jne 0x4125b1
cmp byte [esi], 0x22
jne 0x4125ce
inc esi
jmp 0x4125ce
cmp al, 0x20
jbe 0x4125ce
inc esi
cmp byte [esi], 0x20
ja 0x4125c8
cmp byte [esi], 0
je 0x4125de
cmp byte [esi], 0x20
ja 0x4125de
inc esi
cmp byte [esi], 0
jne 0x4125d3
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x5c], 1
mov eax, 0xa
je 0x412605
mov eax, dword [ebp - 0x58]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.MSVCRT40.dll_exit]
jmp 0x412648
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x104ea
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x28]
push esi
push edi
push 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0xd
mov dword [ebp - 8], 0x1a
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 0x60]
lea eax, [esi - 0x24]
push 7
mov edi, eax
pop ecx
rep movsd dword es:[edi], dword [esi]
mov byte [eax + 3], 0
mov eax, dword [edx + 0x60]
sub eax, 0x24
lea ecx, [ebp - 0x18]
mov dword [eax + 0x1c], 0x10404
mov dword [eax + 0x20], ecx
mov byte [eax + 3], 0xe0
mov ecx, dword [ebx + 8]
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
cmp eax, 0x103
jne 0x10565
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
lea eax, [ebp - 0x88]
push eax
xor esi, esi
push 0x70c0b
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
push dword [ebx + 8]
call fcn.000118bc
mov edi, eax
cmp edi, esi
jl 0x10688
mov eax, dword [ebp - 0x6c]
mov dword [ebx + 0x6c], eax
cmp byte [ebp - 0x68], 0
je 0x105c4
cmp byte [ebp - 0x67], 0
je 0x105c4
lea eax, [ebp - 0x88]
push eax
push ebx
call fcn.0001031c
cmp byte [ebx + 0x92], 4
mov edi, eax
jne 0x1060d
mov ecx, dword [ebp - 0x74]
mov al, 1
shl al, cl
or byte [ebx + 0xe0], al
jmp 0x1060d
cmp byte [ebx + 0x92], 4
jne 0x105da
mov ecx, dword [ebp - 0x74]
mov al, 1
shl al, cl
or byte [ebx + 0xe0], al
push ebx
push 0x1122e
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], esi
call dword [sym.imp.ntoskrnl.exe_IoQueryDeviceDescription]
mov edi, eax
test edi, edi
jge 0x10611
inc esi
cmp esi, 0x10
jl 0x105da
test edi, edi
jl 0x10688
cmp dword [0xffdf02c0], 1
jne 0x10628
mov al, byte [ebp - 0x70]
mov byte [ebx + 0xa4], al
mov al, byte [ebp - 0x70]
jmp 0x1063a
mov al, byte [ebp - 0x74]
mov byte [ebx + 0xa4], al
mov ecx, dword [ebp - 0x74]
mov al, 0x10
shl al, cl
or al, cl
lea esi, [ebx + 0xec]
push esi
push 0
push 0x10c2c
push dword [ebx + 4]
mov byte [ebx + 0xa5], al
call dword [sym.imp.ntoskrnl.exe_IoRegisterDeviceInterface]
test eax, eax
jl 0x10664
push 1
push esi
call dword [sym.imp.ntoskrnl.exe_IoSetDeviceInterfaceState]
lea esi, [ebx + 0x134]
mov ecx, esi
mov byte [ebx + 0xc], 1
call dword [sym.imp.HAL.dll_ExAcquireFastMutex]
mov ecx, esi
mov byte [ebx + 0xe], 0
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
push ebx
call fcn.000108f8
mov ecx, dword [ebp + 0xc]
xor dl, dl
mov dword [ecx + 0x18], edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8