joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10037510
Capabilities:
Get graphical window text
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x10083a30]
xor eax, ebp
mov dword [ebp - 4], eax
call sym.ScCore.dll_public:_int___thiscall_ScCore::String::encode_char_const____int___class_ScCore::Encoder_const__const
mov dword [ebp - 0x188], eax
test eax, eax
je 0x1003768b
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x10037565
mov edi, dword [sym.imp.USER32.dll_GetWindow]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 4
push esi
call edi
test eax, eax
jne 0x10037561
push esi
call ebx
test eax, eax
je 0x10037565
mov esi, eax
jmp 0x10037551
push 0x100
lea eax, [ebp - 0x184]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x1003767b
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x1003767b
lea edx, [ebp - 0x184]
push edx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, esi
jne 0x1003767b
test esi, esi
je 0x1003767b
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push esi
mov ebx, eax
call edi
mov ecx, dword [ebp - 0x188]
push 0
push ecx
mov esi, eax
call edi
mov edi, eax
test ebx, ebx
je 0x1003767b
cmp edi, esi
je 0x1003767b
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10037628
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push esi
push edi
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c72
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2000
call esi
push 2
lea ecx, [ebp - 0x190]
push ecx
push 0
push 0x2001
mov dword [ebp - 0x190], 0
call esi
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 2
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2001
call esi
mov ecx, dword [ebp - 0x188]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c72
mov esp, ebp
pop ebp
ret

Function at 0x10037780
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0xc], 0
jne 0x10037790
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.kernel32.dll_ResumeThread]
ret
Function at 0x100377b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b5b3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10083a30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.ScCore::Thread.0
mov dword [esi + 0xc], edi
mov byte [esi + 0x10], 1
call sym.ScCore.dll_public:_int___thiscall_ScCore::String::encode_char_const____int___class_ScCore::Encoder_const__const
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push sym.ScCore.dll_private:_static_unsigned_int___stdcall_ScCore::Thread::go_void__
push edi
push edi
mov dword [ebp - 0x18], edx
call dword [sym.imp.msvcr100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10037839
mov dword [esi + 0xc], 0x20
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [esi + 8], ecx
mov eax, dword [0x10083aa8]
cmp eax, edi
jne 0x1003784d
call sym.ScCore.dll_public:_static_class_ScCore::Context____cdecl_ScCore::Context::get_void_
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x52], ebx
mov dword [eax + 0x56], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10037b30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10083674]
cmp eax, 0xffffffff
je 0x10037b80
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10037b71
cmp esi, dword [0x10083be8]
jne 0x10037b5a
mov dword [0x10083be8], 0
mov ecx, esi
call fcn.10020480
mov ecx, esi
call sym.ScCore.dll_public:_int___thiscall_ScCore::String::encode_char_const____int___class_ScCore::Encoder_const__const
push esi
call sub.msvcr100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [0x10083674]
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret

Function at 0x10037b90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10083be8]
test eax, eax
jne 0x10037bfa
mov eax, dword [0x10083674]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x10037bfa
push esi
push 0x16c
call sub.msvcr100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10037bc6
mov ecx, eax
call sym.ScCore.dll_public:_int___thiscall_ScCore::String::encode_char_const____int___class_ScCore::Encoder_const__const
mov esi, eax
jmp 0x10037bc8
xor esi, esi
cmp byte [0x10083be4], 0
jne 0x10037be2
mov ecx, esi
mov dword [0x10083be8], esi
call fcn.10020740
mov eax, esi
pop esi
ret
mov ecx, dword [0x10083674]
push esi
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esi
call fcn.10020740
mov eax, esi
pop esi
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x42604c], 1
mov dword [0x426048], 1
mov dword [0x426044], 1
mov dword [0x42603c], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x426014], eax
mov eax, dword [0x426058]
test eax, eax
je 0x4010b0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x42606c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x426054]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x41d018], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060
Function at 0x402f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x78]
mov ebp, dword [eax + 0x20]
mov edi, dword [eax + 0x2c]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x68]
imul edi, edx
mov dword [esp + 0x2c], edx
movsx eax, word [ebp + eax*2]
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x6c]
imul eax, edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x34], eax
cmp ecx, 1
je 0x402fb8
mov ebp, eax
mov eax, edi
cdq
idiv ecx
cmp ebp, eax
cmovle eax, ebp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
test ebx, ebx
jne 0x4030ba
movsx edi, word [eax + esi*2]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
imul eax, edi
lea ebx, [eax*4]
add ecx, ebx
mov dword [esp + 0x1c], ecx
test eax, eax
jle 0x40311f
mov ebp, dword [esp + 0x38]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], ebp
lea ebp, [ebp + ebx]
call sym._memset
cmp esi, dword [esp + 0x28]
jge 0x403128
nop
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
movsx ebx, word [edx + esi*2 + 2]
imul edi, eax
imul ebx, eax
mov eax, dword [esp + 0x30]
fld dword [eax + esi*4]
fadd dword [esi*4 + 0x424220]
fld dword [0x41e220]
fxch st(1)
fcomi st(1)
fstp st(1)
ja 0x4030b0
fld qword [0x41e228]
fmulp st(1)
fstp qword [esp]
call dbg.exp
mov ecx, dword [esp + 0x1c]
lea eax, [edi*4]
mov edx, ebp
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
sub edx, eax
sub ecx, eax
mov eax, edi
lea esi, [esi]
fld dword [ecx + eax*4]
fmul st(1)
fstp dword [edx + eax*4]
add eax, 1
cmp ebx, eax
jg 0x403070
fstp st(0)
mov eax, ebx
sub eax, edi
shl eax, 2
cmp edi, ebx
mov edi, 4
cmovge eax, edi
add esi, 1
add dword [esp + 0x1c], eax
add ebp, eax
cmp dword [esp + 0x28], esi
je 0x4030ef
mov eax, dword [esp + 0x20]
movsx edi, word [eax + esi*2]
jmp 0x403010
fstp st(0)
fld qword [0x41e218]
jmp 0x403047
movsx edi, word [eax]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], 0
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x28], 0
imul eax, edi
lea ebx, [eax*4]
add esi, ebx
mov dword [esp + 0x1c], esi
xor esi, esi
test eax, eax
jg 0x402fe8
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x64], 0
mov ecx, dword [esp + 0x38]
sub eax, esi
lea edx, [ecx + esi*4]
shl eax, 2
mov dword [esp + 0x68], eax
mov dword [esp + 0x60], edx
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._memset
mov ebp, dword [esp + 0x38]
jmp 0x403004
jle 0x4030ef
mov dword [esp + 8], 0x107
mov dword [esp + 4], str.celt_bands.c
mov dword [esp], str.assertion_failed:_start___end
call dbg.celt_fatal
lea esi, [esi]
lea esi, [esi]
Function at 0x413090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
fldz
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x7c]
fst dword [esp + 0x38]
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x74]
fst dword [esp + 0x3c]
imul ecx, ebx, 0x2a
imul eax, esi, 0x54
lea eax, [ecx + eax + 0x4240a0]
mov dword [esp + 0x2c], eax
test ebx, ebx
jne 0x413280
fstp st(0)
fld dword [esi*4 + 0x4241f0]
fstp dword [esp + 0x18]
fld dword [esi*4 + 0x424200]
fstp dword [esp + 0x14]
mov eax, dword [ebp + 4]
shl eax, 3
mov dword [esp + 0x10], eax
cmp edi, dword [esp + 0x68]
jge 0x413270
mov esi, edi
mov edi, dword [esp + 0x6c]
fldz
nop
mov eax, 0x14
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x6c], edi
mov edi, esi
cmp esi, eax
cmovle eax, esi
mov esi, dword [esp + 0x6c]
add eax, eax
lea ebx, [edx + eax + 1]
add eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
xor ebx, ebx
bsr eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x10]
xor eax, 0x1f
add eax, dword [ebp + 0x14]
sub eax, 0x20
sub ecx, eax
cmp ecx, 0xe
jg 0x4131c0
cmp ecx, 1
jg 0x413200
fld1
fchs
je 0x413240
fxch st(1)
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 8]
imul eax, ebx
add eax, edi
lea eax, [esi + eax*4]
fld dword [eax]
fld dword [0x424288]
fucomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fmul dword [esp + 0x14]
fadd st(1)
fadd st(2)
fstp dword [eax]
fadd st(1)
fxch st(1)
fmul dword [esp + 0x18]
fsubp st(1)
fstp dword [esp + ebx*4 + 0x38]
add ebx, 1
cmp ebx, dword [esp + 0x78]
jge 0x4131a0
fld dword [esp + ebx*4 + 0x38]
jmp 0x41312a
mov dword [esp + 0x6c], esi
mov esi, edi
mov edi, dword [esp + 0x6c]
add esi, 1
cmp dword [esp + 0x68], esi
je 0x413270
fld dword [esp + 0x38]
jmp 0x413100
mov eax, dword [esp + 0x1c]
fstp dword [esp + 0x28]
movzx eax, byte [eax]
shl eax, 6
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
movzx eax, byte [eax]
mov dword [esp], ebp
shl eax, 7
mov dword [esp + 4], eax
call dbg.ec_laplace_decode
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fld dword [esp + 0x28]
jmp 0x413157
mov dword [esp + 8], 2
mov dword [esp + 4], 0x424080
mov dword [esp], ebp
fstp dword [esp + 0x28]
call dbg.ec_dec_icdf
mov ecx, eax
and eax, 1
sar ecx, 1
neg eax
xor ecx, eax
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fld dword [esp + 0x28]
jmp 0x413157
fstp st(0)
mov dword [esp + 4], 1
mov dword [esp], ebp
fstp dword [esp + 0x28]
call dbg.ec_dec_bit_logp
neg eax
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fld dword [esp + 0x28]
jmp 0x413157
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
fld dword [0x424284]
fstp dword [esp + 0x18]
fstp dword [esp + 0x14]
jmp 0x4130e2
Function at 0x415a20
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x415a80
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x426060]
test esi, esi
jle 0x415ba0
mov eax, dword [0x426064]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x415ab4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x415b37
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x415aa0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x415bc7
mov eax, dword [0x426064]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x426064]
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 0x415ba7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x415b30
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x415b40
add dword [0x426060], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x426064]
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 0x415b30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x415abe
mov eax, dword [0x426064]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x416080
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x42607c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x426074]
sub esp, 4
test ebx, ebx
je 0x4160d5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4160ce
test esi, esi
je 0x4160ce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4160b0
mov dword [esp], 0x42607c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x416400
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x416425
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x416430
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x416425
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 esi, esi
je 0x416478
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x41646e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x41647a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x416460
xor eax, eax
pop ebx
pop esi
ret
Function at 0x10001968
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
call 0x10001971
pop eax
mov esi, dword fs:[0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
push esi
mov ebx, dword [esi + 8]
cmp eax, ebx
jb 0x10001994
mov ecx, dword [esi + 0x10]
add ecx, ebx
cmp eax, ecx
ja 0x10001994
mov eax, ebx
jmp 0x100019a9
mov esi, dword [esi]
mov ebx, dword [esi]
cmp ebx, dword [esp]
jne 0x10001980
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
pop esi
pop esi
leave
ret
Function at 0x1002c2f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100a6160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1009b66e
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1002d2c0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1002c344
jmp dword [ecx*4 + 0x1002c4ac]
mov al, byte [esi]
test al, al
je 0x1002c372
cmp al, 0x20
je 0x1002c35e
cmp al, 0xa1
jne 0x1002c372
cmp byte [esi + 1], al
jne 0x1002c372
test al, 0x80
je 0x1002c36a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1002c372
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002c351
test ecx, ecx
je case.default.0x1002c344
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1002c344
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1002c3b8
cmp dl, 0xa1
jne 0x1002c3ac
cmp byte [eax + 1], 0xa1
jne 0x1002c3ac
test ecx, ecx
jne 0x1002c3a4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1002c3cc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1002c3e6
jmp 0x1002c3cc
cmp dl, 0x20
jne 0x1002c3ca
test ecx, ecx
jne 0x1002c3c3
mov edi, eax
mov ecx, 1
jmp 0x1002c3cc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1002c38c
cmp ecx, 1
jne case.default.0x1002c344
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1002c344
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1002c344
mov al, byte [esi]
test al, al
je 0x1002c43e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1002c424
mov cl, byte [esi + 1]
test cl, cl
je 0x1002c43e
cmp al, 0xa1
jne 0x1002c414
cmp cl, al
je 0x1002c421
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1002d550
inc esi
jmp 0x1002c436
cmp al, 0x20
je 0x1002c436
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1002d590
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002c3fd
push 0
lea ecx, [esp + 0x14]
call fcn.1002d590
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100385f0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1002c471
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100b0490
call fcn.1002d4c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1009b600
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10032770
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100a663b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.1009b375
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x100327f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10099287
mov eax, dword [eax]
push 0x100c6c8c
push eax
call fcn.1008bff4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1009b600
test bl, bl
je 0x100327f2
push 0x100c6c8c
lea ecx, [esp + 0xc]
call fcn.1009b990
push 0x100c6c98
lea ecx, [esp + 0xc]
call fcn.1009b990
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1003282e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1009b600
jmp 0x100328f9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x100328b2
lea edx, [esp + 0x7c]
push 0x100c6c94
push edx
call fcn.1008bff4
add esp, 8
test eax, eax
je 0x100328b2
lea eax, [esp + 0x7c]
push 0x100c6c90
push eax
call fcn.1008bff4
add esp, 8
test eax, eax
je 0x100328b2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10032842
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.1009b600
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x10033100
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10033162
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc