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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.1000bd40
mov ecx, dword [0x100708f0]
mov esi, eax
test cl, 1
jne 0x1000c0df
or ecx, 1
mov dword [0x100708f4], 0x100655c0
mov dword [0x100708f0], ecx
mov dword [0x100708fc], 0
mov dword [0x100708f8], 0
call fcn.1000be50
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 4
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000c11b
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 8], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10031fed
mov esp, ebp
pop ebp
ret

Function at 0x1000c130
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov bl, byte [esi]
test eax, eax
je 0x1000c181
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 8], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.10031fed
mov esp, ebp
pop ebp
ret

Function at 0x1000c6c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp + 8]
mov ecx, 0x10097a70
call fcn.1000a040
add esp, 0xc
push 0x10097a70
push 0x100668f4
push 1
push 0x1006eb98
call fcn.10016040
add esp, 0x10
mov ebx, 0xc8cf88
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0xc00000
jne 0x1000c75e
push 0
push 0xf020
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 6
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41010
push str.CLEO_error
push 0x10097a70
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xf120
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 9
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop ebp
ret
push 0x41010
push str.CLEO_error
push 0x10097a70
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop ebp
ret
Function at 0x1000d840
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Injecting_CustomOpcodeSystem...
push 3
call fcn.1000c620
mov eax, dword [0x10096bfc]
add esp, 8
mov edx, dword [eax*4 + 0x1006f114]
xor eax, eax
nop
mov ecx, dword [edx + eax]
mov dword [eax + 0x10090e60], ecx
mov dword [edx + eax], 0x1000d420
add eax, 4
cmp eax, 0x6c
jb 0x1000d870
mov eax, 0x1000d420
mov ecx, 0x148
mov edi, 0x10090930
rep stosd dword es:[edi], eax
mov eax, dword [0x10096bfc]
mov eax, dword [eax*4 + 0x1006f128]
mov dword [eax], 0x10090930
mov dword [0x469ef0], 0x10090930
mov ecx, dword [0x10096bfc]
mov eax, dword [ecx*4 + 0x1006f178]
mov dword [0x10090928], eax
mov eax, dword [ecx*4 + 0x1006f1b4]
mov dword [0x1009091c], eax
mov eax, dword [ecx*4 + 0x1006f1f0]
mov dword [0x10090924], eax
mov eax, dword [ecx*4 + 0x1006f204]
mov dword [0x10090ecc], eax
test ecx, ecx
jne 0x1000d976
mov eax, dword [0x100708f0]
test al, 1
jne 0x1000d91f
or eax, 1
mov dword [0x100708f4], 0x100655c0
mov dword [0x100708f0], eax
mov dword [0x100708fc], ecx
mov dword [0x100708f8], ecx
call fcn.1000be50
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push eax
push 0x40
mov esi, 0x583a07
mov dword [ebp - 0x14], 4
push 4
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000d95e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov dword [0x10090e50], esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031fed
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx*4 + 0x1006f1c8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [0x10090e50], eax
pop esi
call fcn.10031fed
mov esp, ebp
pop ebp
ret 4
Function at 0x10017bf0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10054480
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1006e0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.10031ffb
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100311f3
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10017a50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100187b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp + 8]
mov ecx, 0x10098390
call fcn.1000a040
push 0x10098390
push 0x100668f4
push 1
push 0x1006eb98
call fcn.10016040
add esp, 0x1c
mov ebx, 0xc8cf88
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0xc00000
jne 0x1001884b
push 0
push 0xf020
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 6
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41010
push str.CLEO_error
push 0x10098390
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xf120
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 9
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop ebp
ret
push 0x41010
push str.CLEO_error
push 0x10098390
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop ebp
ret

Function at 0x100190d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1006e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.Injecting_MenuStatusNotifier...
push 3
call fcn.10018a40
mov esi, dword [0x10096bfc]
add esp, 8
mov eax, dword [esi*4 + 0x1006eca0]
mov esi, dword [esi*4 + 0x1006ed68]
mov dword [0x10090ed0], eax
inc esi
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
add esi, 4
add eax, esi
mov dword [0x10090ed4], eax
mov eax, dword [0x10096bfc]
mov esi, dword [eax*4 + 0x1006ed68]
push esi
push str.Replacing_call:_0x_08X
push 3
call fcn.10018a40
mov ecx, dword [ebp - 4]
mov eax, esi
inc esi
add esp, 0xc
xor ecx, ebp
mov byte [eax], 0xe8
mov eax, 0x10018a80
sub eax, esi
sub eax, 4
mov dword [esi], eax
pop esi
call fcn.10031fed
mov esp, ebp
pop ebp
ret 4
Function at 0x100210e0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Create thread
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055023
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1006e0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
push 0xa0
mov dword [esi + 4], 0
call fcn.10031ffb
add esp, 4
mov dword [esi + 4], eax
lea esi, [eax + 0x10]
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov dword [ebp - 0x18], esi
push dword [eax]
call fcn.1000d200
lea edi, [esi + 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x24], edi
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov byte [ebp - 4], 4
lea esi, [edi + 0x24]
mov dword [ebp - 0x14], esi
push 0x44
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10031ffb
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 5
xorps xmm0, xmm0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov word [edi + 0x38], 1
movups xmmword [edi + 0x48], xmm0
push 8
movq qword [edi + 0x58], xmm0
mov dword [edi + 0x60], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x64], 0xffffffff
mov dword [edi + 0x3c], 2
mov dword [edi + 0x68], 0
call fcn.10031ffb
mov dword [ebp - 0x14], eax
mov dword [eax], edi
mov dword [eax + 4], 0x1001f280
lea esi, [edi + 0x70]
mov byte [ebp - 4], 6
push esi
push 0
push eax
push 0x10021470
push 0
push 0
call fcn.1003b585
add esp, 0x20
mov dword [edi + 0x6c], eax
test eax, eax
je 0x10021293
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ecx], edx
mov ecx, dword [eax + 4]
mov dword [ecx + 4], edx
mov ecx, dword [eax + 4]
mov dword [ecx + 8], edx
mov ecx, dword [eax + 4]
mov byte [ecx + 0xc], 0
mov ecx, dword [eax + 4]
mov byte [ecx + 0xd], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10031fed
mov esp, ebp
pop ebp
ret 0x14
push 6
mov dword [esi], 0
call fcn.10031052
int3
Function at 0x1002b680
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp + 8]
mov ecx, 0x10099bb8
call fcn.1000a040
push 0x10099bb8
push 0x100668f4
push 1
push 0x1006eb98
call fcn.10016040
add esp, 0x1c
mov ebx, 0xc8cf88
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0xc00000
jne 0x1002b71b
push 0
push 0xf020
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 6
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41010
push str.CLEO_error
push 0x10099bb8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xf120
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 9
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop ebp
ret
push 0x41010
push str.CLEO_error
push 0x10099bb8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop ebp
ret

Function at 0x10030200
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp + 8]
mov ecx, 0x1009a3b8
call fcn.1000a040
push 0x1009a3b8
push 0x100668f4
push 1
push 0x1006eb98
call fcn.10016040
add esp, 0x1c
mov ebx, 0xc8cf88
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0xc00000
jne 0x1003029b
push 0
push 0xf020
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 6
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41010
push str.CLEO_error
push 0x1009a3b8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xf120
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 9
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop ebp
ret
push 0x41010
push str.CLEO_error
push 0x1009a3b8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop ebp
ret
Function at 0x100302e0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005648f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1006e0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], edi
push 0x20
movzx eax, word [esi + 0xdd]
mov word [edi], ax
mov byte [edi + 4], 0
mov dword [edi + 0xb4], 0
mov dword [edi + 0xb8], 0
call fcn.10031ffb
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0xb4], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [edi + 0xc4], 0
movups xmmword [edi + 0xc8], xmm0
mov dword [edi + 0xd8], 0
mov dword [edi + 0xdc], 0xf
mov byte [edi + 0xc8], 0
movups xmmword [edi + 0xe0], xmm0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xf4], 0xf
mov byte [edi + 0xe0], 0
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x10]
mov dword [edi + 8], eax
lea eax, [esi + 0x18]
push 0x20
push eax
lea eax, [edi + 0x10]
push eax
call fcn.100337a0
movzx eax, word [esi + 0x38]
add esp, 0x10
mov word [edi + 0x30], ax
cmp byte [esi + 0xdc], 0
mov eax, dword [sym.CLEO.asi_missionLocals]
jne 0x100303d3
lea eax, [esi + 0x3c]
push 0x80
push eax
lea eax, [edi + 0x34]
push eax
call fcn.100337a0
movzx eax, byte [esi + 0xc5]
add esp, 0xc
mov byte [edi + 0xbc], al
mov ax, word [esi + 0xd0]
mov word [edi + 0xbe], ax
movzx eax, byte [esi + 0xd2]
mov byte [edi + 0xc0], al
cmp byte [esi + 0xdf], 0
jne 0x1003042b
cmp dword [0x10096c40], 0xf
mov ecx, 0x10096c2c
cmova ecx, dword [0x10096c2c]
jmp 0x1003043c
cmp dword [esi + 0x148], 0xf
lea ecx, [esi + 0x134]
jbe 0x1003043c
mov ecx, dword [ecx]
mov edx, ecx
lea eax, [edx + 1]
mov dword [ebp - 0x10], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x10030444
sub edx, dword [ebp - 0x10]
push edx
push ecx
lea ecx, [edi + 0xc8]
call fcn.10014e40
cmp byte [esi + 0xdf], 0
jne 0x10030479
cmp dword [0x10096c58], 0xf
mov ecx, 0x10096c44
cmova ecx, dword [0x10096c44]
jmp 0x1003048a
cmp dword [esi + 0x160], 0xf
lea ecx, [esi + 0x14c]
jbe 0x1003048a
mov ecx, dword [ecx]
mov edx, ecx
lea eax, [edx + 1]
mov dword [ebp - 0x10], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x10030492
sub edx, dword [ebp - 0x10]
push edx
push ecx
lea ecx, [edi + 0xe0]
call fcn.10014e40
movzx ecx, word [0x10095914]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [esi + 0x18], xmm0
movups xmmword [esi + 0x28], xmm0
mov word [esi + 0x38], ax
mov byte [esi + 0xc5], al
mov word [esi + 0xd0], ax
mov byte [esi + 0xd2], al
mov eax, edi
mov word [edi + 2], cx
mov word [esi + 0xdd], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100306a2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100306c9
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100306cc
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1003067e
pop esi
leave
ret 8

Function at 0x1003b2f0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1003b32f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003b32f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003b32f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1003b32f
cmp dword [ecx + 0x74], 0xe
jbe 0x1003b32f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10045e17
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005db84
push 0x1005db7c
push str.FlsAlloc
push 0x1f
call fcn.10045c9f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10045e4b
push dword [ebp + 8]
mov ecx, esi
call dword [0x100591d0]
call esi
jmp 0x10045e51
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10045e95
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005db94
push 0x1005db8c
push str.FlsGetValue
push 0x21
call fcn.10045c9f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10045ecc
push dword [ebp + 8]
mov ecx, esi
call dword [0x100591d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10045ed4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005db9c
push 0x1005db94
push str.FlsSetValue
push 0x22
call fcn.10045c9f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10045f0e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100591d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1004667c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10033100
mov eax, dword [0x1006e0c0]
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.1004243c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100466be
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1004681a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10053400
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 + 0x100704b8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1004747d
mov ecx, dword [esi*4 + 0x100704b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10046813
cmp eax, dword [ecx + edi + 0x24]
jne 0x10046813
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10046813
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004747d
add esp, 0x14
test edx, edx
jl 0x10046813
jg 0x10046789
test eax, eax
jb 0x10046813
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10046813
jl 0x100467a3
cmp dword [ebp - 0x1008], eax
ja 0x10046813
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100467c1
test ebx, ebx
je 0x100467fa
cmp ecx, edi
jae 0x100467fa
mov al, byte [ecx]
cmp al, 0xd
jne 0x100467db
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100467e7
cmp byte [ecx + 1], 0xa
jne 0x100467e7
inc ecx
jmp 0x100467e7
movzx eax, al
movsx eax, byte [eax + 0x1006e380]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100467c1
cmp edx, ebx
jne 0x100467c1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10046818
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10031fed
leave
ret
Function at 0x10046915
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x100704b8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10046955
cmp byte [ebx], 0xa
jne 0x10046955
or byte [edi + eax + 0x28], 4
jmp 0x1004695a
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10046a59
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10046a3c
inc eax
cmp dl, 0xd
je 0x10046986
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100469ac
cmp eax, ecx
jae 0x100469ba
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1004696e
jmp 0x10046a59
push 0
lea eax, [ebp - 0x10]
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 0x10046a37
cmp dword [ebp - 0x10], 0
je 0x10046a37
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100704b8]
test byte [eax + edi + 0x28], 0x48
je 0x10046a11
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100469fc
mov byte [esi], dl
jmp 0x10046a0d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100704b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10046a59
cmp byte [ebp - 1], 0xa
jne 0x10046a20
cmp esi, ebx
jne 0x10046a20
mov byte [esi], 0xa
jmp 0x10046a58
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1004749b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10046a59
mov byte [esi], 0xd
jmp 0x10046a58
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100704b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10046a56
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10046a59
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret