joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10046250
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push 0
mov ecx, 0x100ad5e4
call fcn.10079e45
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0x28
push 0x1009b5e0
push 0x10095e74
call edi
push 0
mov ecx, 0x100ad5e4
mov dword [esi + 0x104], eax
call fcn.10079e45
push eax
push 0xa
push 0x1009b5d4
push 0x10095e74
call edi
push 0
mov ecx, 0x100ad5e4
mov dword [esi + 0x10c], eax
call fcn.10079e45
push eax
push 0
push 0x1009b5c8
push 0x10095e74
call edi
push 0
mov ecx, 0x100ad5e4
mov dword [esi + 0xfc], eax
call fcn.10079e45
push eax
push 0
push 0x1009b5bc
push 0x10095e74
call edi
push 0
mov ecx, 0x100ad5e4
mov dword [esi + 0x108], eax
call fcn.10079e45
push eax
push 0
push 0x1009b5b0
push 0x10095e74
call edi
push 0
mov ecx, esi
mov dword [esi + 0xf8], eax
call fcn.10077eee
mov eax, dword [esi + 0xf8]
cmp eax, 5
ja case.default.0x10046314
jmp dword [eax*4 + 0x100463b8]
mov ecx, esi
call fcn.10043e30
jmp case.default.0x10046314
mov ecx, esi
call fcn.10043f60
jmp case.default.0x10046314
mov ecx, esi
call fcn.10044090
jmp case.default.0x10046314
mov ecx, esi
call fcn.10044190
jmp case.default.0x10046314
mov ecx, esi
call fcn.100442f0
jmp case.default.0x10046314
mov ecx, esi
call fcn.100443d0
push 0
mov ecx, 0x100ad5e4
call fcn.10079e45
push eax
push 0xffffffffffffffff
push 0x1009b5a4
push 0x10095e74
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
mov eax, dword [esi + 0xd8]
push 0x14e
push eax
call ebx
mov ecx, esi
call fcn.100444b0
push 0
mov ecx, 0x100ad5e4
call fcn.10079e45
push eax
push 0
push 0x1009b598
push 0x10095e74
call edi
mov ecx, dword [esi + 0x9c]
push 0
push eax
push 0x14e
push ecx
call ebx
pop edi
pop esi
pop ebx
ret
Function at 0x10055eb2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10089ec8
push 0x10047688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x10055f38
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x10055f10
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x10055f3e
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x10055f08
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x10055f08
mov al, 1
jmp 0x10055f0a
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10055f9d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x100afe04]
jmp 0x10055fbd
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x10055fa7
pop esi
pop ecx
ret

Function at 0x10055fc4
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100afe10], eax
je 0x10055fda
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x100afe20]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x10056027
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x10056018
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x10056018
push eax
call fcn.1005608e
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.10075d4d
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x10055fe9
mov dword [0x100afe20], ebx
call fcn.10056067
mov esi, dword [0x100afe1c]
cmp esi, ebx
je 0x10056054
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.10075d4d
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x1005603c
pop edi
mov dword [0x100afe1c], ebx
mov dword [0x100afe10], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1005630d
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x100afe14]
push esi
test eax, eax
push edi
jne 0x10056377
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x10056375
push 8
call fcn.10075d24
mov esi, eax
pop ecx
test esi, esi
jne 0x10056339
push 8
pop edi
jmp 0x10056354
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10056365
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.10075d4d
pop ecx
and dword [0x100afe18], 0
mov dword [0x100afe14], edi
mov eax, edi
jmp 0x10056377
mov dword [esi + 4], edi
mov eax, dword [0x100afe1c]
mov dword [esi], eax
mov dword [0x100afe1c], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x10056634
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x10056658
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x1005665b
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x1005666e
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x10056675
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x100afe08]
mov ecx, dword [0x100afe04]
test eax, eax
jne 0x1005668f
test ecx, ecx
je 0x100566a4
mov eax, ecx
mov dword [0x100afe08], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x100566a4
cmp edx, dword [ebp + 8]
jb 0x100566a4
cmp edx, dword [ebp - 4]
jbe 0x10056790
mov eax, ecx
test ecx, ecx
jmp 0x100566c8
test eax, eax
je 0x100566c3
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100566c3
cmp ecx, dword [ebp + 8]
jb 0x100566c3
cmp ecx, dword [ebp - 4]
jbe 0x10056790
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x100afe08], eax
jne 0x100566aa
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x1005682b
cmp edi, 0x70000000
jb 0x100566f8
cmp edi, 0x80000000
ja 0x100566f8
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005682b
cmp dword [ebp - 0x10], ebx
jne 0x10056717
cmp dword [ebp - 0x14], ebx
jae 0x1005672a
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x100566e3
jmp 0x1005682b
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x100afe08], eax
je 0x1005682b
mov dword [eax], 0x52727464
mov eax, dword [0x100afe08]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x100afe08]
mov edx, dword [0x100afe04]
mov dword [eax + 4], edx
mov eax, dword [0x100afe08]
mov dword [0x100afe04], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x10056778
mov eax, dword [0x100afe08]
mov dword [eax + 8], ecx
mov eax, dword [0x100afe08]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x10056830
cmp esi, dword [ebp - 4]
ja 0x10056830
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.10048790
add esp, 0xc
mov eax, esi
jmp 0x10056832
cmp esi, 0x70000000
jb 0x100567d4
cmp esi, 0x80000000
ja 0x100567d4
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10056830
cmp dword [ebp - 0x10], ebx
jne 0x10056822
cmp dword [ebp - 0x14], ebx
jb 0x10056822
mov ecx, esi
and ecx, 0xffff
je 0x10056806
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x100afe08], eax
jne 0x10056746
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 4]
jb 0x100567bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10056837
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10089ed8
push 0x10047688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100568ac
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0x5a4d
jne 0x100568a8
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x38], eax
cmp dword [eax], 0x4550
jne 0x100568a8
cmp word [eax + 0x14], 0
jne 0x1005689d
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x100568ae
mov eax, ecx
jmp 0x10056897
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100568bd
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100afe10], eax
je 0x100568dc
mov eax, 0x10dd
jmp 0x100569b2
mov eax, dword [0x100afe14]
test eax, eax
jne 0x100569b2
mov edi, dword [ebp + 8]
test edi, edi
jne 0x100568f8
push 6
pop eax
jmp 0x100569b2
cmp dword [edi], 0
jne 0x1005690a
push 6
pop eax
mov dword [0x100afe14], eax
jmp 0x100569ac
push 0x18
call fcn.10075d24
mov esi, eax
pop ecx
test esi, esi
jne 0x1005691d
push 8
pop edi
jmp 0x10056996
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.10055e4c
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x1005698b
cmp ecx, 0x17
ja 0x1005698b
cmp dword [edi + 0x1c], eax
jne 0x1005698b
lea eax, [ebp - 4]
mov dword [ebp - 4], edx
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10056961
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10056996
mov eax, dword [ebp + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x100afe20]
mov dword [esi], eax
mov dword [0x100afe20], esi
xor eax, eax
jmp 0x100569b2
cmp dword [0x100afe0c], edx
push 9
pop edi
jne 0x1005699c
mov dword [0x100afe14], edi
test esi, esi
je 0x100569a7
push esi
call fcn.10075d4d
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x100afe18], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100569b9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor edi, edi
cmp dword [0x100afe4c], edi
jne 0x10056b59
mov eax, dword [0x100afe48]
cmp eax, edi
jne 0x10056b5b
push 0x24
mov ebx, 0x100afe24
push edi
push ebx
call fcn.10048790
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.dbghelp.dll
mov dword [0x100afe24], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [0x100afe28], eax
je 0x10056b1a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImagehlpApiVersionEx
push eax
call esi
push str.SymInitialize
mov dword [0x100afe2c], eax
push dword [0x100afe28]
call esi
push str.SymSetOptions
mov dword [0x100afe30], eax
push dword [0x100afe28]
call esi
push str.SymGetOptions
mov dword [0x100afe34], eax
push dword [0x100afe28]
call esi
push str.SymLoadModule64
mov dword [0x100afe38], eax
push dword [0x100afe28]
call esi
push str.SymGetModuleInfo64
mov dword [0x100afe3c], eax
push dword [0x100afe28]
call esi
push str.SymFromName
mov dword [0x100afe40], eax
push dword [0x100afe28]
call esi
mov dword [0x100afe44], eax
push 8
lea eax, [ebp - 8]
push edi
push eax
call fcn.10048790
mov eax, dword [0x100afe2c]
add esp, 0xc
cmp eax, edi
mov word [ebp - 8], 7
pop esi
je 0x10056b15
cmp dword [0x100afe30], edi
je 0x10056b15
cmp dword [0x100afe3c], edi
je 0x10056b15
cmp dword [0x100afe40], edi
je 0x10056b15
cmp dword [0x100afe44], edi
je 0x10056b15
lea ecx, [ebp - 8]
push ecx
call eax
cmp word [ebp - 8], 7
jb 0x10056b15
push edi
push edi
push dword [0x100afe24]
call dword [0x100afe30]
test eax, eax
je 0x10056b15
mov eax, dword [0x100afe38]
cmp eax, edi
je 0x10056b0b
cmp dword [0x100afe34], edi
je 0x10056b0b
call eax
and al, 0xfc
or al, 4
push eax
call dword [0x100afe34]
mov dword [0x100afe48], ebx
mov eax, ebx
jmp 0x10056b5b
mov eax, dword [0x100afe28]
cmp eax, edi
mov dword [0x100afe4c], 1
je 0x10056b2f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x100afe2c], edi
mov dword [0x100afe30], edi
mov dword [0x100afe34], edi
mov dword [0x100afe38], edi
mov dword [0x100afe3c], edi
mov dword [0x100afe40], edi
mov dword [0x100afe44], edi
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x10056d60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10089ef8
push 0x10047688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x10056d98
lea esi, [eax + 0x10000]
push 0x1c
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.10048790
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jbe 0x10056e17
cmp dword [ebp - 0x24], 0x1000
jne 0x10056dda
test byte [ebp - 0x1f], 1
jne 0x10056dda
and dword [ebp - 4], 0
mov dword [ebp - 0x38], esi
cmp word [esi], 0x5a4d
je 0x10056de5
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
lea esi, [eax + ecx]
jmp 0x10056da8
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x3c], eax
or dword [ebp - 4], 0xffffffff
cmp dword [eax], 0x4550
jne 0x10056dda
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
xor eax, eax
jmp 0x10056dfb

Function at 0x10056e1b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10089f08
push 0x10047688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
xor ebx, ebx
cmp eax, ebx
jne 0x10056e57
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
cmp word [eax], 0x5a4d
je 0x10056e6b
push 0xc1
jmp 0x10056f1a
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [ebp - 0x20], esi
cmp dword [esi], 0x4550
je 0x10056e85
push 0xbf
jmp 0x10056f1a
mov ax, word [esi + 0x14]
cmp ax, bx
jne 0x10056ea6
xor esi, esi
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x10056f26
movzx eax, ax
lea eax, [eax + esi + 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ebx
movzx eax, word [esi + 6]
cmp ebx, eax
jae 0x10056e8e
lea eax, [ebx + ebx*4]
mov ecx, dword [ebp - 0x24]
lea edi, [ecx + eax*8]
push str..detour
push edi
call fcn.1004d1b0
pop ecx
pop ecx
test eax, eax
jne 0x10056f0b
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10056e8e
cmp dword [edi + 0x10], 0
je 0x10056e8e
mov ecx, dword [ebp - 0x1c]
lea esi, [eax + ecx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x40
jb 0x10056e8e
cmp dword [esi + 4], 0x727444
jne 0x10056e8e
cmp dword [esi + 8], 0
jne 0x10056f07
mov dword [esi + 8], eax
push 0
jmp 0x10056e95
inc ebx
jmp 0x10056eb0
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10057064
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
mov eax, 0x150
cmp dword [esi], eax
jne 0x10057143
cmp dword [ebp + 0xc], eax
jb 0x10057143
and dword [ebp - 4], 0
lea eax, [ebp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 0x40
push dword [esi + 4]
call edi
test eax, eax
je 0x1005713d
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, pe_nt_image_headers32
push 0x40
push ebx
push dword [esi + 8]
call edi
test eax, eax
je 0x1005712e
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100570d0
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push 4
push eax
call edi
test eax, eax
je 0x10057121
lea eax, [esi + 0x14]
push 0x40
push eax
push dword [esi + 4]
call fcn.10048450
lea eax, [esi + 0x54]
push ebx
push eax
push dword [esi + 8]
call fcn.10048450
mov eax, dword [esi + 0xc]
add esp, 0x18
test eax, eax
je 0x10057107
lea ecx, [esi + 0x14c]
push 4
push ecx
push eax
call fcn.10048450
add esp, 0xc
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], 1
test eax, eax
je 0x10057121
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push 4
push eax
call edi
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
push ebx
push dword [esi + 8]
call edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push 0x40
push dword [esi + 4]
call edi
pop ebx
mov eax, dword [ebp - 4]
pop edi
jmp 0x10057150
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
leave
ret 8

Function at 0x10058da0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 4]
mov edx, eax
and edx, 0x7fffff00
cmp edx, 0x7ff7a500
je 0x10058dbe
mov eax, 3
jmp 0x10058dc3
and eax, 0xff
and eax, 0x3f
push esi
cmp eax, 6
je 0x10058e00
cmp eax, 0x26
jne 0x10058e47
mov eax, dword [ecx]
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jl 0x10058e47
xor edx, edx
mov dl, byte [eax + 6]
cmp ecx, edx
jg 0x10058e47
mov edx, dword [esp + 0x10]
lea ecx, [eax + ecx*8 + 8]
mov dword [edx], ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10058df9
mov dword [ecx], eax
mov eax, 0x100a1990
pop esi
ret
mov ecx, dword [ecx]
mov eax, dword [esp + 0xc]
cmp eax, 1
mov esi, dword [ecx + 0xc]
jl 0x10058e47
cmp eax, dword [esi + 0x28]
jg 0x10058e47
mov edx, dword [ecx + eax*4 + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov edx, dword [edx + 8]
mov dword [edi], edx
mov edx, dword [esp + 0x18]
test edx, edx
pop edi
je 0x10058e30
mov ecx, dword [ecx + eax*4 + 0xc]
mov dword [edx], ecx
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + eax*8 - 8]
test eax, eax
jne 0x10058e42
mov eax, 0x100a1990
pop esi
ret
add eax, 0x10
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1005d340
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x1c]
push eax
push esi
call fcn.10062d30
push esi
call fcn.1005a8a0
mov ecx, dword [esp + 0x14]
push 0
push 0x70
push esi
push ecx
call fcn.10069c20
add esp, 0x1c
pop esi
ret
mov eax, dword [esp + 8]
xor ecx, ecx
mov cl, byte [eax + 4]
add ecx, 0xfffffffc
cmp ecx, 0x22
ja case.0x1005d363.13
xor edx, edx
mov dl, byte [ecx + 0x1005d42c]
mov ecx, edx
mov edx, dword [esp + 4]
jmp dword [ecx*4 + 0x1005d404]
mov dword [esp + 8], eax
jmp 0x10062e10
xor ecx, ecx
push 0
mov cl, byte [eax + 6]
lea edx, [ecx*4 + 0x10]
push edx
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.10069c20
add esp, 0x10
ret
xor ecx, ecx
push 0
mov cl, byte [eax + 6]
lea edx, [ecx*8 + 0x10]
push edx
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.10069c20
add esp, 0x10
ret
mov dword [esp + 8], eax
jmp fcn.10062ce0
mov dword [esp + 8], eax
jmp 0x10061240
mov dword [esp + 8], eax
jmp 0x1005a870
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 4]
add ecx, 0x18
push 0
push ecx
push eax
push edx
call fcn.10069c20
add esp, 0x10
ret
mov ecx, dword [edx + 0xc]
push esi
mov esi, dword [ecx + 0x1c]
dec esi
mov dword [ecx + 0x1c], esi
pop esi
mov ecx, dword [eax + 0xc]
push 0
add ecx, 0x11
push ecx
push eax
push edx
call fcn.10069c20
add esp, 0x10
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov edx, dword [esi + 0x10]
cmp edx, 0x1008b3e8
je 0x10061272
mov cl, byte [esi + 7]
mov eax, 1
shl eax, cl
push 0
lea eax, [eax + eax*2]
shl eax, 3
push eax
push edx
push edi
call fcn.10069c20
add esp, 0x10
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0xc]
shl ecx, 3
push 0
push ecx
push edx
push edi
call fcn.10069c20
push 0
push 0x20
push esi
push edi
call fcn.10069c20
add esp, 0x20
pop edi
pop esi
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0xc]
shl eax, 2
push 0
push eax
push ecx
push edi
call fcn.10069c20
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x10]
shl edx, 2
push 0
push edx
push eax
push edi
call fcn.10069c20
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 8]
shl ecx, 3
push 0
push ecx
push edx
push edi
call fcn.10069c20
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x14]
shl eax, 2
push 0
push eax
push ecx
push edi
call fcn.10069c20
mov eax, dword [esi + 0x3c]
add esp, 0x40
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x18]
shl edx, 2
push 0
push edx
push eax
push edi
call fcn.10069c20
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x1c]
shl ecx, 3
push 0
push ecx
push edx
push edi
call fcn.10069c20
push 0
push 0x50
push esi
push edi
call fcn.10069c20
add esp, 0x30
pop edi
pop esi
ret
Function at 0x10062020
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
mov esi, dword [edx + 0xc]
call fcn.10061b60
mov ecx, dword [esi + 0xc]
add esp, 4
mov ecx, dword [ecx + eax*4]
mov edx, ecx
and edx, 0x3f
lea edi, [edx - 6]
cmp edi, 0x1c
ja case.0x10062055.22
xor edx, edx
mov dl, byte [edi + 0x10062150]
jmp dword [edx*4 + 0x1006210c]
mov edx, dword [esp + 0x14]
shr ecx, 6
and ecx, 0xff
push edx
push ecx
push eax
push esi
call fcn.10062170
add esp, 0x10
pop edi
pop esi
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax], str.for_iterator
mov eax, str.for_iterator
ret
xor eax, eax
jmp 0x100620e7
mov eax, 1
jmp 0x100620e7
mov eax, 5
jmp 0x100620e7
mov eax, 6
jmp 0x100620e7
mov eax, 7
jmp 0x100620e7
mov eax, 8
jmp 0x100620e7
mov eax, 9
jmp 0x100620e7
mov eax, 0xa
jmp 0x100620e7
mov eax, 0xb
jmp 0x100620e7
mov eax, 0xc
jmp 0x100620e7
mov eax, 4
jmp 0x100620e7
mov eax, 0xd
jmp 0x100620e7
mov eax, 0xe
jmp 0x100620e7
mov eax, 0xf
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov edx, dword [ecx + 0xc]
mov ecx, dword [esp + 0xc]
mov eax, dword [edx + eax*4 + 0xa8]
add eax, 0x10
mov dword [ecx], eax
mov eax, str.metamethod
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x10062860
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
xor eax, ecx
mov ecx, esi
shr ecx, 5
inc ecx
cmp esi, ecx
jb 0x1006289b
push ebx
push edi
mov edi, dword [esp + 0x10]
xor edx, edx
mov ebx, eax
mov dl, byte [edi + esi - 1]
sub esi, ecx
shl ebx, 5
add edx, ebx
mov ebx, eax
shr ebx, 2
add edx, ebx
xor eax, edx
cmp esi, ecx
jae 0x1006287d
pop edi
pop ebx
pop esi
ret

Function at 0x10073cea
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10073d0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10049151
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x10073d2d
test byte [esp + 8], 2
je 0x10073d2d
call fcn.100491c4
mov dword [eax], 0xd
call fcn.100491cd
mov dword [eax], 5
jmp 0x10073d06
xor eax, eax
ret

Function at 0x10076bd9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10076c11
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.10079ebc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10079e94
jmp 0x10076c1d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4