joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100088d0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x10026341
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x10030050]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
push edi
mov eax, dword [0x10030050]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov eax, dword [0x100317f0]
mov edx, dword [eax + 0xc]
mov ecx, 0x100317f0
mov dword [esp + 0x10], esi
call edx
add eax, 0x10
mov dword [esi], eax
xor ebx, ebx
mov dword [esp + 0x128], ebx
mov eax, dword [0x100317f0]
mov edx, dword [eax + 0xc]
mov ecx, 0x100317f0
lea ebp, [esi + 4]
call edx
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x128], 1
mov eax, dword [0x100317f0]
mov edx, dword [eax + 0xc]
mov ecx, 0x100317f0
call edx
add eax, 0x10
mov dword [esi + 8], eax
mov byte [esp + 0x128], 2
mov eax, dword [0x100317f0]
mov edx, dword [eax + 0xc]
mov ecx, 0x100317f0
call edx
add eax, 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
push 0x100
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x130], 5
push ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x14]
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x100089c3
sub eax, edi
lea ecx, [esp + 0x14]
mov edi, eax
push ecx
mov eax, ebp
call fcn.10003aa0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebp, eax
cmp ebp, ebx
jne 0x100089ec
xor ecx, ecx
jmp 0x100089fc
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
add ecx, 1
cmp al, bl
jne 0x100089f1
sub ecx, edx
push ebp
mov edi, ecx
mov eax, esi
call fcn.10003aa0
mov eax, esi
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.10012810
add esp, 0x11c
ret 8
Function at 0x1000b630
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100261e8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10030050]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0x100325cc]
mov ebx, eax
mov eax, dword [ecx + 4]
cmp byte [eax + 0x19], 0
mov dword [esp + 0x18], ebx
mov esi, ecx
jne 0x1000b694
lea ebx, [ebx]
cmp dword [eax + 0xc], ebx
jae 0x1000b68a
mov eax, dword [eax + 8]
jmp 0x1000b68e
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0x19], 0
je 0x1000b680
cmp esi, ecx
mov edi, 0x100325c8
je 0x1000b6a6
cmp dword [esi + 0xc], ebx
je 0x1000b74a
mov ebx, vtable.CSymbolEngine.0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebp, eax
call dword [sym.imp.dbghelp.dll_SymGetOptions]
or eax, 0x10
push eax
call dword [sym.imp.dbghelp.dll_SymSetOptions]
mov ecx, dword [esp + 0x18]
sub esp, 8
mov eax, esp
mov dword [esp + 0x24], esp
mov dword [eax], ebx
lea eax, [esp + 0x40]
call fcn.1000c800
add esp, 8
mov ecx, dword [eax]
mov edx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edx
push esi
push edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x60], 2
call fcn.1000bca0
mov edi, dword [eax]
test edi, edi
mov esi, dword [eax + 4]
mov dword [esp + 0x3c], ebx
jne 0x1000b723
call fcn.10012f39
cmp esi, dword [edi + 4]
jne 0x1000b72d
call fcn.10012f39
push 1
push 0
push ebp
mov dword [esi + 0x14], ebp
call dword [sym.imp.dbghelp.dll_SymInitialize]
test eax, eax
jne 0x1000b74a
push str.DiagAssert_:_Unable_to_initialize_the_symbol_engine____n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, dword [edi + 4]
jne 0x1000b754
call fcn.10012f39
lea eax, [esi + 0x10]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000caf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x204
mov eax, dword [0x10030050]
xor eax, esp
mov dword [esp + 0x200], eax
push 0xf5
lea eax, [esp + 9]
push 0
mov dword [esp + 8], 0
push eax
mov byte [esp + 0x10], 0
call fcn.10014830
push 0x103
lea ecx, [esp + 0x10d]
push 0
push ecx
mov byte [esp + 0x114], 0
call fcn.10014830
add esp, 0x18
lea edx, [esp + 4]
push edx
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1000cba4
add dword [0x100325d4], 1
lea eax, [esp]
push eax
call fcn.1000c980
mov edx, dword [0x100325d4]
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0xfc]
push ecx
push edx
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [esp]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000cba4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [esp + 0x100]
call fcn.10002ee0
mov ecx, dword [esp + 0x200]
xor ecx, esp
mov eax, esi
call fcn.10012810
add esp, 0x204
ret
Function at 0x1000d150
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push 0x1002bb40
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000d1af
mov eax, dword [esp + 8]
cmp eax, 1
je 0x1000d18d
cmp eax, 2
jne 0x1000d19f
test esi, esi
mov eax, dword [esp]
je 0x1000d1ab
test eax, eax
je 0x1000d1a8
cmp byte [eax + esi - 1], 0
je 0x1000d1ab
mov eax, 0xd
pop ecx
ret 4
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop ecx
ret 4

Function at 0x1000d3d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025a60
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10030050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x18], edi
je 0x1000d4dc
mov eax, dword [ebp + 8]
cmp eax, 0x80000000
mov ebx, str.UNKNOWN
jne 0x1000d43d
mov ebx, str.HKEY_CLASSES_ROOT
jmp 0x1000d48f
cmp eax, 0x80000001
jne 0x1000d44b
mov ebx, str.HKEY_CURRENT_USER
jmp 0x1000d48f
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x1000d459
mov ebx, str.HKEY_LOCAL_MACHINE
jmp 0x1000d48f
cmp eax, 0x80000005
jne 0x1000d467
mov ebx, str.HKEY_CURRENT_CONFIG
jmp 0x1000d48f
cmp eax, 0x80000003
jne 0x1000d475
mov ebx, str.HKEY_USERS
jmp 0x1000d48f
cmp eax, reloc.OLEAUT32.dll_SysReAllocStringLen
jne 0x1000d483
mov ebx, str.HKEY_PERFORMANCE_DATA
jmp 0x1000d48f
cmp eax, reloc.OLEAUT32.dll_SysStringLen
jne 0x1000d48f
mov ebx, str.HKEY_DYN_DATA
push edi
mov esi, str.REGEDIT4_r_n
call fcn.1000da80
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
push ecx
push edx
push ebx
mov dword [ebp - 4], 0
call fcn.1000d4f0
add esp, 0x14
mov bl, al
jmp 0x1000d4c7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x1000d4dc
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, bl
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 0x1000da80
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov eax, esi
sub esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000da88
push 0
lea ecx, [esp + 8]
push ecx
sub eax, edx
mov edx, dword [esp + 0x14]
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000dac1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000dab0
sub eax, edx
cmp dword [esp + 4], eax
je 0x1000dae0
push str.WriteFile_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1002dcf0
lea eax, [esp + 7]
push eax
mov byte [esp + 0xb], 0
call fcn.10014759
add esp, 8
ret
Function at 0x1000db8a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100260fc
mov eax, dword fs:[0]
push eax
mov eax, 0x2080
call fcn.1001b060
mov eax, dword [0x10030050]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
push esi
lea ecx, [ebp - 0x204c]
mov dword [ebp - 0x205c], eax
mov dword [ebp - 0x2050], ebx
call fcn.10008410
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebx
mov dword [ebp - 0x2058], eax
je 0x1000dd4e
mov ecx, esi
call fcn.1000dae4
push 8
mov dword [ebp - 0x2064], eax
pop ecx
xor eax, eax
mov dword [ebp - 0x2088], ebx
lea edi, [ebp - 0x2084]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2070]
push eax
lea eax, [ebp - 0x206e]
push eax
lea eax, [ebp - 0x2064]
push eax
mov dword [ebp - 0x2060], edx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
lea edi, [ebp - 0x204c]
call fcn.1000dd7e
inc eax
push eax
mov eax, edi
push eax
lea esi, [ebp - 0x2030]
call fcn.1000ddec
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2018], 0x10
mov ecx, dword [ebp - 0x202c]
jae 0x1000dc77
lea ecx, [ebp - 0x202c]
mov eax, dword [ebp - 0x205c]
mov eax, dword [eax + 4]
lea edx, [ebp - 0x2088]
push edx
push ecx
call fcn.1000e071
cmp eax, ebx
pop ecx
pop ecx
jne 0x1000dd31
push 0x1ffe
lea eax, [ebp - 0x2012]
push ebx
push eax
mov word [ebp - 0x2014], bx
call fcn.10014830
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov dword [ebp - 0x2054], ebx
mov esi, 0x1000
jmp 0x1000dcfa
mov ecx, dword [ebp - 0x2054]
cmp ecx, ebx
je 0x1000dd16
mov eax, dword [ebp - 0x205c]
mov eax, dword [eax + 4]
lea edx, [ebp - 0x2014]
call fcn.1000e3ef
test eax, eax
jne 0x1000dcfa
cmp dword [ebp - 0x2054], esi
jae 0x1000dcfa
mov dword [ebp - 0x2050], 1
push ebx
lea eax, [ebp - 0x2054]
push eax
push esi
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x2058]
call edi
test eax, eax
jne 0x1000dcc6
mov eax, dword [ebp - 0x205c]
mov ebx, dword [eax + 4]
call fcn.1000e4d5
neg eax
sbb eax, eax
inc eax
and dword [ebp - 0x2050], eax
xor ebx, ebx
push dword [ebp - 0x2058]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x2050], eax
lea ecx, [ebp - 0x2030]
call fcn.10008520
lea ecx, [ebp - 0x204c]
call fcn.10008520
cmp dword [ebp - 0x2050], ebx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10012810
leave
ret 4
Function at 0x1000e4d5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
mov dword [esp + 4], edi
mov dword [esp + 8], edi
jne 0x1000e4ef
push 0xffffffffffffff9a
pop eax
jmp 0x1000e69b
cmp dword [ebx + 0x2c], edi
je 0x1000e4e7
cmp dword [ebx + 0x80], 8
push ebp
push esi
mov dword [ebx + 0x34], edi
jne 0x1000e54c
cmp dword [ebx + 0x84], edi
jne 0x1000e54c
lea ebp, [ebx + 0x30]
cmp dword [ebx + 0x40], 0
jne 0x1000e52a
mov esi, ebx
call fcn.1000e3c6
lea eax, [ebx + 0x88]
mov dword [ebx + 0x40], 0x4000
mov dword [ebx + 0x3c], eax
mov esi, dword [ebx + 0x44]
push 4
mov edi, ebp
call fcn.1000edce
mov edi, eax
mov eax, dword [ebx + 0x44]
sub eax, esi
add dword [ebx + 0x6c], eax
test edi, edi
pop ecx
je 0x1000e50d
cmp edi, 1
jne 0x1000e54c
xor edi, edi
cmp dword [ebx + 0x6c], 0
jbe 0x1000e564
test edi, edi
jne 0x1000e564
mov esi, ebx
call fcn.1000e3c6
cmp eax, 0xffffffff
jne 0x1000e564
or edi, eax
cmp dword [ebx + 0x80], 8
jne 0x1000e584
cmp dword [ebx + 0x84], 0
jne 0x1000e59e
lea esi, [ebx + 0x30]
call fcn.1000f4fe
and dword [ebx + 0x68], 0
mov edi, eax
cmp dword [ebx + 0x84], 0
jne 0x1000e59e
mov eax, dword [ebx + 0x408c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x10], eax
mov esi, dword [ebx + 0x74]
mov ecx, dword [esp + 0xc]
mov ebp, dword [ebx + 0x44]
push 4
add esi, 0x10
pop edx
call fcn.1000df0e
mov esi, dword [ebx + 0x74]
push 4
add esi, 0x14
pop edx
mov ecx, ebp
call fcn.1000df0e
xor ecx, ecx
inc ecx
cmp dword [ebx + 0x5c], ecx
jne 0x1000e5d9
mov esi, dword [ebx + 0x74]
push 2
add esi, 0x24
pop edx
call fcn.1000df0e
mov esi, dword [ebx + 0x74]
mov ecx, dword [esp + 0x10]
push 4
add esi, 0x18
pop edx
call fcn.1000df0e
test edi, edi
jne 0x1000e601
push dword [ebx + 0x78]
lea edi, [ebx + 0x24]
push dword [ebx + 0x74]
call fcn.1000de37
pop ecx
pop ecx
mov edi, eax
push dword [ebx + 0x74]
call fcn.10012bd0
test edi, edi
pop ecx
jne 0x1000e68d
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x70]
push edi
add eax, 0xe
push eax
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0x10]
add esp, 0x18
test eax, eax
je 0x1000e638
or edi, 0xffffffff
jmp 0x1000e674
push dword [ebx + 0x20]
mov ecx, dword [esp + 0x10]
push 4
pop esi
mov edi, ebx
call fcn.1000dec5
mov edi, eax
test edi, edi
pop ecx
jne 0x1000e674
push dword [ebx + 0x20]
mov ecx, ebp
mov edi, ebx
call fcn.1000dec5
mov edi, eax
test edi, edi
pop ecx
jne 0x1000e674
push dword [ebx + 0x20]
mov ecx, dword [esp + 0x14]
mov edi, ebx
call fcn.1000dec5
pop ecx
mov edi, eax
push 0
push dword [esp + 0x18]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0x10]
add esp, 0x10
test eax, eax
je 0x1000e68d
or edi, 0xffffffff
inc dword [ebx + 0x409c]
and dword [ebx + 0x2c], 0
pop esi
mov eax, edi
pop ebp
pop edi
add esp, 0xc
ret
Function at 0x1000f7f2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x1000f87f
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.10016960
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x1000f83f
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x1000f861
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x1000f947
mov ecx, dword [esi + 0x74]
add ecx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add ecx, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp eax, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
jbe 0x1000f8a7
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x1000f8b1
xor eax, eax
jmp 0x1000f908
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x1000f8d1
push dword [ebp - 4]
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
call fcn.100115b4
jmp 0x1000f8eb
cmp eax, 2
jne 0x1000f8f2
mov edx, dword [edi]
test edx, edx
mov eax, dword [edi + 0x30]
jne 0x1000f8e3
xor eax, eax
jmp 0x1000f8ef
push dword [ebp - 4]
call fcn.1000e85f
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ecx
call fcn.10016960
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x1000f933
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x1000f947
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x1000f7fd
pop edi
pop ebx
leave
ret

Function at 0x10012810
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10030050]
jne 0x1001281a
repz ret
jmp fcn.10016f17
Function at 0x1001ae85
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10030940]
je 0x1001aea0
inc edi
cmp edi, 0x17
jb 0x1001ae91
cmp edi, 0x17
jae 0x1001b020
push ebp
push 3
call fcn.100208fd
cmp eax, 1
pop ecx
je 0x1001afec
push 3
call fcn.100208fd
test eax, eax
pop ecx
jne 0x1001aed4
cmp dword [0x10031858], 1
je 0x1001afec
cmp ebx, 0xfc
je 0x1001b01f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10031d90
push ebp
call fcn.1001aab0
add esp, 0xc
test eax, eax
je 0x1001af0a
push esi
push esi
push esi
push esi
push esi
call fcn.10012e19
add esp, 0x14
push 0x104
mov esi, 0x10031da9
push esi
push 0
mov byte [0x10031ead], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001af4e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1001aab0
add esp, 0xc
test eax, eax
je 0x1001af4e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10012e19
add esp, 0x14
push esi
call fcn.100148b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1001af93
push esi
call fcn.100148b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100320a4
push 0x10027bd4
sub ecx, eax
push ecx
push eax
call fcn.1001f681
add esp, 0x14
test eax, eax
je 0x1001af93
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10012e19
add esp, 0x14
jmp 0x1001af95
xor esi, esi
push 0x10027bd0
push ebx
push ebp
call fcn.1002068a
add esp, 0xc
test eax, eax
je 0x1001afb5
push esi
push esi
push esi
push esi
push esi
call fcn.10012e19
add esp, 0x14
push dword [edi*8 + 0x10030944]
push ebx
push ebp
call fcn.1002068a
add esp, 0xc
test eax, eax
je 0x1001afd7
push esi
push esi
push esi
push esi
push esi
call fcn.10012e19
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10020740
add esp, 0xc
jmp 0x1001b01f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1001b01f
cmp ebp, 0xffffffff
je 0x1001b01f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10030944]
push dword [esi]
call fcn.100148b0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10020740
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10017121
xor ebx, ebx
cmp dword [0x1003222c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10020816
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100208f6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100208f6
push eax
call fcn.100170b3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1003222c], eax
call esi
push eax
call fcn.100170b3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10032230], eax
call esi
push eax
call fcn.100170b3
mov dword [0x10032234], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100178db
test eax, eax
pop ecx
pop ecx
je 0x100207e4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10012e19
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10020816
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100170b3
cmp eax, ebx
pop ecx
mov dword [0x1003223c], eax
je 0x10020816
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100170b3
pop ecx
mov dword [0x10032238], eax
mov eax, dword [0x10032238]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1002089b
cmp dword [0x1003223c], ecx
je 0x1002089b
push eax
call fcn.1001712a
push dword [0x1003223c]
mov esi, eax
call fcn.1001712a
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1002089b
cmp edi, ebx
je 0x1002089b
call esi
cmp eax, ebx
je 0x10020868
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10020868
test byte [ebp - 0x18], 1
jne 0x1002089b
lea eax, [ebp - 0x10]
push eax
call fcn.10017912
test eax, eax
pop ecx
je 0x10020883
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10012e19
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10020892
or dword [ebp + 0x10], 0x200000
jmp 0x100208d6
or dword [ebp + 0x10], 0x40000
jmp 0x100208d6
mov eax, dword [0x10032230]
cmp eax, dword [ebp - 8]
je 0x100208d6
push eax
call fcn.1001712a
cmp eax, ebx
pop ecx
je 0x100208d6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100208d6
mov eax, dword [0x10032234]
cmp eax, dword [ebp - 8]
je 0x100208d6
push eax
call fcn.1001712a
cmp eax, ebx
pop ecx
je 0x100208d6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1003222c]
call fcn.1001712a
cmp eax, ebx
pop ecx
je 0x100208f6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100208f8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006e70
Capabilities:
Initialize winsock library

Disassembly:
push esi
push edi
push 0x1000e0c8
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, dword [esp + 0xc]
push 0x10006e50
push 0x1000b990
push 0x1000b9b8
push 0x1000bb14
push edi
call dword [sym.imp.lua54.dll_lua_registermodule]
mov esi, dword [sym.imp.lua54.dll_lua_registerobject]
push 0x1000bbd0
push 0x1000bb30
push 0x100088e0
push str.Socket
push 0x1000e600
push edi
call esi
push 0x1000b420
push 0x1000b3b0
push 0x10003490
push str.Http
push 0x1000e0b0
push edi
call esi
add esp, 0x44
push 0x1000bdb0
push 0x1000bd30
push 0x10009830
push 0x1000bb28
push 0x1000e29c
push edi
call esi
add esp, 0x18
mov eax, 1
pop edi
pop esi
ret