joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401990
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40c058]
test esi, esi
jle 0x401ab0
mov eax, dword [0x40c05c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4019c4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401a47
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4019b0
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401ad7
mov eax, dword [0x40c05c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x40c05c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401ab7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401a40
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x401a50
add dword [0x40c058], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40c05c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401a40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4019ce
mov eax, dword [0x40c05c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop
Function at 0x402110
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
cmp eax, 2
je 0x402240
ja 0x402158
test eax, eax
je 0x4021d8
mov eax, dword [0x40c070]
test eax, eax
je 0x4022c0
mov dword [0x40c070], 1
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 3
jne 0x402145
mov eax, dword [0x40c070]
test eax, eax
je 0x402145
mov dword [esp], 0x40c074
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40c06c]
sub esp, 4
test ebx, ebx
je 0x4021bd
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call edi
mov ebp, eax
sub esp, 4
call esi
test ebp, ebp
je 0x4022e8
test eax, eax
jne 0x4022e8
mov eax, dword [ebx + 4]
mov dword [esp], ebp
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402190
mov dword [esp], 0x40c074
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x402145
mov eax, dword [0x40c070]
test eax, eax
jne 0x402258
mov eax, dword [0x40c070]
cmp eax, 1
jne 0x402145
mov ebx, dword [0x40c06c]
test ebx, ebx
je 0x402211
lea esi, [esi]
mov eax, ebx
mov ebx, dword [ebx + 8]
mov dword [esp], eax
call sym._free
test ebx, ebx
jne 0x402200
mov dword [0x40c06c], 0
mov dword [0x40c070], 0
mov dword [esp], 0x40c074
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
sub esp, 4
jmp 0x402145
call sym.__fpreset
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x40c074
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40c06c]
sub esp, 4
test ebx, ebx
je 0x4022a5
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov eax, dword [ebx]
mov dword [esp], eax
call edi
sub esp, 4
mov ebp, eax
call esi
test eax, eax
jne 0x4022d8
test ebp, ebp
je 0x4022d8
mov eax, dword [ebx + 4]
mov dword [esp], ebp
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402280
mov dword [esp], 0x40c074
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x4021e1
mov dword [esp], 0x40c074
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
sub esp, 4
jmp 0x40213b
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402280
jmp 0x4022a5
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402190
jmp 0x4021bd

Function at 0x402410
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402435
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402440
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402435
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402488
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40247e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40248a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402470
xor eax, eax
pop ebx
pop esi
ret
Function at 0x1000464b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
mov dword [0x10027afc], 0x121e
mov dword [0x10027b00], 0x1c3
mov dword [esp], eax
mov dword [esp + 0x2c], ecx
call fcn.100058f1
mov dword [0x10027b00], 0xc67
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], 0x12b600
mov dword [esp + 0x28], eax
mov eax, 0xc67
lea ecx, [0x100047b3]
mov dword [0x10027afc], 0x423d
mov edx, dword [0x10027ae8]
mov dword [esp + 0x74], edx
mov edx, dword [0x10027aec]
mov dword [esp + 0x94], edx
mov edx, dword [0x10027af0]
mov dword [esp + 0x58], edx
mov edx, dword [0x10027af4]
mov dword [esp + 0x44], edx
mov edx, dword [0x10027af8]
mov dword [esp + 0x48], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp word [eax], 0x5a4d
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
je 0x1000476e
jmp 0x10004782
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x18]
add ecx, 0xffffe1fb
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x8c], edx
mov dword [0x10027afc], ecx
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + ecx + 0x50]
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.10005771
mov dword [0x10027b00], 0xe4a
mov dword [esp + 0x10], eax
mov eax, esp
lea ecx, [esp + 0x40]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
call eax
sub esp, 4
mov eax, 2
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], ecx
je 0x10004709
mov eax, dword [esp + 0x1c]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
add eax, 0x954
mov dword [0x10027b00], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
jmp 0x100046f0
Function at 0x10004da1
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10027b08], 0
mov edi, dword [0x10027afc]
add edi, 0xac6
mov dword [0x10027afc], edi
mov byte [0x10027b0c], 0
mov edi, dword [0x10027b00]
add edi, 0x899
mov dword [0x10027b00], edi
mov dword [0x10027b04], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10027b00], 0x21f
mov eax, dword [0x10027b04]
add eax, 1
mov dword [0x10027b04], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10004e00
jmp 0x10004e3a
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x10027afc], 0x117c
mov dword [0x10027b04], 0
xor eax, eax
mov ecx, 0x117c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x10004e5d
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x100
add eax, 0xfffff2bb
mov dword [0x10027b00], eax
mov eax, dword [0x10027b08]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + ecx]
add edi, eax
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 0x28], edx
mov edx, ebx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov eax, edi
cdq
mov edi, dword [ebp - 0x28]
idiv edi
mov dword [0x10027b08], edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov byte [0x10027b0c], bl
mov dword [0x10027b00], 0x19c9
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x10027b0c]
mov ecx, dword [0x10027b08]
mov byte [esi + ecx], bl
mov dword [0x10027b00], 0x237e
mov ecx, dword [0x10027b04]
add ecx, 1
mov dword [0x10027b04], ecx
cmp ecx, 0x100
mov dword [ebp - 0x2c], ecx
jge 0x10004e32
mov eax, dword [0x10027afc]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
jmp 0x10004e5d
Function at 0x10004f25
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0xfffff7ea
xor ebx, ebx
mov dword [0x10027b04], 0
mov dword [0x10027b08], 0
mov dword [0x10027b10], 0
mov dword [0x10027afc], 0x1640
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
jne 0x10004f9c
mov eax, dword [ebp - 0x28]
mov dword [0x10027b00], eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10027b04], edx
mov ecx, dword [ebp - 0x24]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x34]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10027b08], edx
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x10027b0c], cl
mov edi, dword [0x10027b00]
add edi, 0xfffff1b0
mov dword [0x10027b00], edi
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x10027b0c]
mov edx, dword [0x10027b08]
mov byte [edi + edx], cl
mov edx, dword [0x10027b04]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10027b08]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x10027b00], 0x494
and ebx, 0xff
mov dword [0x10027b10], ebx
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
mov byte [ebx + edx], cl
mov ecx, dword [0x10027afc]
mov edx, ecx
add edx, 0x126e
mov dword [0x10027afc], edx
mov edx, dword [ebp - 0x30]
add edx, 1
mov esi, dword [ebp - 0x10]
cmp edx, esi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
je 0x100050a4
mov eax, dword [0x10027b04]
mov ecx, dword [0x10027b08]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], edx
jmp 0x10004f9c
mov eax, dword [ebp - 0x3c]
add eax, 0xfffff418
mov dword [ebp - 0x28], eax
jmp 0x10004f8c
Function at 0x10005213
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 8]
mov dword [0x10027afc], 0xf07
mov dword [ebp - 0x10], eax
call fcn.100050b4
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10005259
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x10027afc], 0x1d5b
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
sete bl
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x2d], bl
xor eax, eax
mov cl, byte [ebp - 0x2d]
test cl, 1
mov dword [ebp - 0x34], eax
jne 0x100052ce
jmp 0x100052d9
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov edx, dword [ebp - 0x3c]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
jb 0x100052eb
jmp 0x100052ce
mov al, byte [ebp - 0x45]
test al, 1
jne 0x1000535b
jmp 0x1000529b
mov eax, dword [ebp - 0x34]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov ecx, eax
mov edx, dword [ebp - 0x4c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x55], bh
mov byte [ebp - 0x45], cl
je 0x100052c1
mov eax, dword [ebp - 0x54]
add eax, 1
mov cl, byte [ebp - 0x55]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x45]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x50], eax
jne 0x10005305
jmp 0x100052c1
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
shl ecx, 2
add edx, ecx
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x5c]
add eax, dword [ecx]
mov dword [0x10027afc], 0x249e
mov dword [ebp - 0x34], eax
jmp 0x100052ce
Function at 0x10005771
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x10027afc], 0x24bc
mov esi, dword [0x10027b00]
add esi, 0xfffff2ac
mov dword [0x10027b00], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x100057c1
mov dword [0x10027afc], 0x1327
mov eax, dword [ebp - 0x34]
add eax, 0x2676
mov dword [ebp - 0x38], eax
jmp 0x100058b9
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x10006394]
mov dl, byte [eax + 0x10006365]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
jne 0x100057c1
lea eax, [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov dword [0x10027afc], 0x380
mov dword [0x10027b00], 0xffffeaa5
call fcn.100054b3
mov dword [esp], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
call fcn.100055c1
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], ecx
je 0x100058b9
mov eax, dword [ebp - 0x40]
mov dword [0x10027afc], 0x761
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x34], eax
call fcn.10004a97
mov eax, dword [ebp - 0x34]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xd0
mov dword [eax + 0xd0], 0x4550
add eax, 0xffc00000
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x24], eax
mov dword [0x10027afc], 0x1e36
add ecx, 0x40
mov dword [ebp - 0x44], ecx
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x34]
mov dword [ecx], edx
cmp edx, 0
mov dword [ebp - 0x38], eax
jne 0x100057a7
mov eax, dword [ebp - 0x38]
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x100058f1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x10027afc], 0xec4
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x100059c4
lea eax, [0x10006373]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x10027afc], 0x1f64
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], ecx
call fcn.10004da1
mov eax, dword [ebp - 0x13c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x148]
mov dword [esp + 0xc], edx
call fcn.10004f25
xor eax, eax
mov ecx, dword [ebp - 0x144]
add ecx, 0x780b2
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x12b600
mov ecx, dword [ebp - 0x144]
add ecx, 0x67b10
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x2020
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0xe8
mov edi, edx
add edi, esi
add edi, 0x94
mov esi, dword [edi]
imul edi, eax, 0xe8
add edx, edi
add edx, 0x68
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x241
mov ecx, edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x100059c4
mov dword [0x10027b00], 0x1562
xor eax, eax
mov dword [ebp - 0x14c], eax
jmp 0x10005a31
mov eax, dword [ebp - 0x14c]
mov cl, byte [eax + 0x10006394]
mov dl, byte [eax + 0x10006365]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x14c], eax
jne 0x10005a31
lea eax, [ebp - 0x12c]
mov dword [0x10027afc], 0xdb0
mov dword [0x10027b00], 0xffffeaa5
mov dword [ebp - 0x150], eax
call fcn.100054b3
mov dword [esp], eax
mov eax, dword [ebp - 0x150]
mov dword [esp + 4], eax
call fcn.100055c1
mov ecx, eax
mov dword [0x10027b14], eax
mov eax, esp
mov edx, dword [ebp - 0x148]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
mov ecx, dword [0x10027afc]
add ecx, 0x1adc
mov dword [0x10027b00], ecx
mov dword [ebp - 0x144], eax
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x158], eax
jmp 0x10005aec
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x154]
lea edx, section..data
imul esi, eax, 0xe8
mov edi, edx
add edi, esi
add edi, 0x94
mov esi, dword [edi]
imul edi, eax, 0xe8
mov ebx, edx
add ebx, edi
add ebx, 0x30
mov edi, dword [ebx]
imul ebx, eax, 0xe8
add edx, ebx
add edx, 0x68
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x144]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], edx
call fcn.10004cde
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x160]
add eax, ecx
mov edx, dword [ebp - 0x15c]
add edx, 1
cmp edx, 0x241
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], edx
je 0x10005925
jmp 0x10005aec
Function at 0xf00670d
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 8
call fcn.0f006f83
mov esi, eax
test esi, esi
pop ecx
je 0xf006775
mov eax, dword [ebp + 0x10]
push edi
push dword [ebp + 0x1c]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
push 4
push esi
push 0xf0066bc
push dword [ebp + 0xc]
mov dword [esi + 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0xf00676b
mov eax, dword fs:[0x18]
push dword [eax + 0xf18]
push edi
call sym.ntvdm.exe_cpu_createthread
test byte [ebp + 0x18], 4
jne 0xf006772
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0xf006772
push esi
call fcn.0f00579c
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x18

Function at 0xf007556
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0xf061038]
push ebx
push esi
mov esi, dword [ebp + 8]
and dword [esi + 4], 0
and dword [esi], 0
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x440], eax
push edi
lea eax, [ebp - 0x444]
push eax
mov word [ebp - 0x442], 0x20c
call fcn.0f0071be
push edi
call sym.ntvdm.exe_IsCdRomFile
mov ebx, dword [ebp + 0x10]
test bl, 8
mov dword [ebp - 0x43c], eax
je 0xf0075ff
push ebx
push esi
push edi
call fcn.0f045ddb
test eax, eax
je 0xf0075f1
cmp bx, 8
je 0xf007670
push 0
push 0
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.0f00721f
test eax, eax
je 0xf007670
mov ecx, dword [ebp - 0x43c]
mov dword [eax + 0x264], ecx
mov dword [esi], eax
mov eax, dword [eax + 8]
jmp 0xf00766d
cmp bx, 8
jne 0xf0075ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0xf007672
lea eax, [ebp - 0x438]
push eax
push 0
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.0f00721f
cmp byte [ebp - 0x21f], 0
mov edi, eax
jne 0xf00764a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0xf00762f
push 0x12
jmp 0xf00763f
cmp eax, 0xa1
je 0xf00763d
cmp eax, 0x10b
jne 0xf007645
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0xf007672
mov ebx, dword [ebp - 0x43c]
push ebx
push esi
lea eax, [ebp - 0x438]
push eax
call fcn.0f04594c
test edi, edi
je 0xf007670
mov dword [edi + 0x264], ebx
mov dword [esi], edi
mov eax, dword [edi + 8]
mov dword [esi + 4], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b45c
leave
ret 0xc
Function at 0xf007d1f
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x18], 0xffffffff
jne 0xf007d37
mov eax, 0x80000006
jmp 0xf007d95
push ebx
xor ebx, ebx
push edi
mov edi, dword [esi + 0x20]
cmp edi, ebx
jne 0xf007d67
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0xf007d9a
mov edi, dword [esi + 0x1c]
push ebx
push ebx
push ebx
push 3
push dword [esi + 0x24]
lea ecx, [ebp - 8]
push edi
push ecx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
cmp eax, ebx
jl 0xf007d93
mov eax, dword [edi]
cmp eax, ebx
je 0xf007d74
add eax, edi
mov dword [esi + 0x20], eax
jmp 0xf007d77
mov dword [esi + 0x20], ebx
xor eax, eax
mov ax, word [esi + 0x250]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 0x18]
call fcn.0f045613
test eax, eax
je 0xf007d3b
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 8
mov eax, 0xc0000008
jmp 0xf007d93

Function at 0xf007ed1
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov eax, dword fs:[0x18]
push dword [ebp + 8]
lea esi, [eax + 0xbf8]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitAnsiString]
push 0
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
test eax, eax
jge 0xf007f24
cmp eax, 0x80000005
jne 0xf007f11
push 0xce
jmp 0xf007f19
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0xf007f2d
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
leave
ret 4