joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fd3e0
Capabilities:
Set environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [esp], str.NUITKA_ONEFILE_BINARY
mov ebx, dword [esp + 0xa0]
call fcn.004e6650
test eax, eax
je 0x4fd528
mov dword [esp], eax
mov edi, 0x4e
lea esi, [esp + 0x30]
mov ebp, 0x28
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov ebx, eax
xor eax, eax
mov word [esp + 0x30], ax
mov dword [esp + 0x1c], ebx
mov ebx, edi
mov edi, esi
lea esi, [esi]
cmp word [edi], 0
mov eax, ebp
mov esi, edi
je 0x4fd454
lea esi, [esi]
add esi, 2
sub eax, 1
cmp word [esi], 0
jne 0x4fd448
test eax, eax
je 0x55447f
mov dword [esp], esi
add edi, 2
call sub.msvcrt.dll_wcslen
lea edx, [esp + 0x2e]
mov byte [esp + 0x2e], bl
lea eax, [esi + eax*2]
mov dword [esp + 8], 2
mov dword [esp + 4], edx
mov dword [esp], eax
mov byte [esp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
mov eax, 1
lea ecx, [ebp - 1]
sub eax, ebp
movzx ebx, byte [eax + 0x55f11e]
test bl, bl
je 0x4fd4a8
mov ebp, ecx
jmp 0x4fd438
lea eax, [esp + 0x30]
mov dword [esp + 4], 0
mov ebx, dword [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [sym.imp.python38.dll__PyRuntime]
mov esi, dword [0x58413c]
sub esp, 8
mov edi, dword [eax + 0x2cc]
mov eax, dword [0x587b6c]
test eax, eax
je 0x4fd580
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004e9f50
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov esi, eax
mov dword [esp], edi
call fcn.004f8fc0
sub dword [esi], 1
jne 0x4fd51a
mov edx, dword [esi + 4]
mov dword [esp + 0x1c], eax
mov dword [esp], esi
call dword [edx + 0x18]
mov eax, dword [esp + 0x1c]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
test bl, bl
je 0x4fd574
mov eax, dword [0x5874ac]
mov esi, 0x5874ac
test eax, eax
jne 0x4fd51a
cmp byte [0x5876c2], 0
jne 0x4fd54b
movzx eax, bl
call fcn.004c9db0
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x5874c0
call dword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov dword [esi], eax
test eax, eax
je 0x4fd5a9
add dword [eax], 1
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x5874a8]
mov esi, 0x5874a8
jmp 0x4fd536
mov eax, dword [0x587b28]
mov ebp, dword [0x584134]
test eax, eax
je 0x4fd5b4
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004e9f50
mov dword [0x587b6c], eax
jmp 0x4fd4e2
call dword [sym.imp.python38.dll_PyErr_Print]
call sub.msvcrt.dll_abort
mov dword [esp], 0x55d362
call dword [sym.imp.python38.dll_PyImport_ImportModule]
mov dword [0x587b28], eax
test eax, eax
je 0x55447f
jmp 0x4fd58f
Function at 0x53b8b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x58749d], 0
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
je 0x53b938
mov dword [esp + 4], 0x5607ae
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x53b9b8
mov ebx, dword [0x5873fc]
jmp 0x53b8f4
lea ebx, [eax + ecx + 4]
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
mov dword [esp], ebx
mov edi, eax
call sub.msvcrt.dll_strlen
lea eax, [ebx + eax + 1]
mov ecx, dword [eax]
test edi, edi
jne 0x53b8f0
lea ecx, [eax + 6]
movzx eax, word [eax + 4]
mov edx, ebp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0052b250
mov dword [esp + 8], 0xa
mov dword [esp + 4], 3
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax + 4]
sub esp, 4
mov dword [0x5873fc], eax
add eax, 8
mov ebx, dword [eax - 8]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 0
mov dword [0x5873fc], eax
call fcn.0053ae00
cmp eax, ebx
jne 0x53ba33
mov byte [0x58749d], 1
jmp 0x53b8d0
cmp byte [0x58749c], 0
jne 0x53b8e8
mov ebx, dword [sym.imp.python38.dll_PyDict_New]
mov edi, 0xfffffffb
call ebx
mov dword [0x587c74], eax
call ebx
mov dword [0x587c70], eax
call ebx
mov dword [0x587c6c], eax
call ebx
mov dword [0x587c68], eax
call ebx
mov dword [0x587c64], eax
call ebx
mov dword [0x587c60], eax
call ebx
mov dword [0x587c5c], eax
call ebx
mov ebx, dword [sym.imp.python38.dll_PyLong_FromLong]
mov dword [0x587c58], eax
nop
mov dword [esp], edi
call ebx
mov dword [edi*4 + 0x586ff4], eax
add edi, 1
cmp edi, 0x101
jne 0x53ba10
mov byte [0x58749c], 1
jmp 0x53b8e8
mov dword [esp], str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
lea esi, [esi]
lea esi, [esi]
nop
Function at 0x543eec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.0055382c
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.0055382c
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x544ac0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x544adf
mov eax, 0
jmp 0x544b23
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x544b02
mov eax, 0
jmp 0x544b23
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x544b1e
mov eax, 0
jmp 0x544b23
mov eax, 1
leave
ret

Function at 0x544b25
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x544b84
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x544b7c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x544b7c
mov eax, dword [ebp - 4]
jmp 0x544b98
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x544b59
mov eax, 0
leave
ret
Function at 0x10026e8
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1002723
cmp word [eax], di
je 0x1002723
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x1002723
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1002773
push esi
xor esi, esi
cmp dword [ebp - 8], esi
jle 0x100275f
mov eax, dword [edi + esi*4]
movzx ecx, word [eax]
cmp cx, 0x2d
je 0x100273d
cmp cx, 0x2f
jne 0x1002787
add eax, 2
push 0x10011a8
push eax
call fcn.01002bb6
pop ecx
pop ecx
test eax, eax
jne 0x1002787
cmp ebx, 1
je 0x1002787
xor ebx, ebx
inc ebx
inc esi
cmp esi, dword [ebp - 8]
jl 0x100272b
push ebx
call fcn.01002682
test eax, eax
jne 0x1002772
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
pop esi
test edi, edi
je 0x100277e
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0x10
mov dword [ebp - 4], 0x57
jmp 0x1002772
Function at 0x1002ffa
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x100a008]
je 0x1003020
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x100300e
cmp esi, 0x17
jae 0x100317a
push 3
call fcn.01005b92
pop ecx
cmp eax, 1
je 0x1003144
push 3
call fcn.01005b92
pop ecx
test eax, eax
jne 0x1003053
cmp dword [section..data], 1
je 0x1003144
cmp edi, 0xfc
je 0x100317a
push 0x100177c
mov edi, 0x314
push edi
mov esi, 0x100add8
push esi
call fcn.01005b25
add esp, 0xc
test eax, eax
je 0x1003089
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010050a8
add esp, 0x14
mov byte [0x100aef5], bl
push 0x104
mov ebx, 0x100adf1
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10030cc
push 0x1001764
push 0x2fb
push ebx
call fcn.01005b25
add esp, 0xc
test eax, eax
je 0x10030cc
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.010050a8
add esp, 0x14
push ebx
push edi
push esi
call fcn.01005aac
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x10030ea
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010050a8
add esp, 0x14
push 0x1001760
push edi
push esi
call fcn.01005aac
add esp, 0xc
test eax, eax
je 0x100310a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010050a8
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x100a00c]
push edi
push esi
call fcn.01005aac
add esp, 0xc
test eax, eax
je 0x100312f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010050a8
add esp, 0x14
push 0x12010
push 0x1001738
push esi
call fcn.01005905
add esp, 0xc
jmp 0x100317a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x100317a
cmp edi, 0xffffffff
je 0x100317a
mov edx, dword [esi*8 + 0x100a00c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003163
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100378f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b2fc]
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x10037de
call edi
mov esi, eax
cmp esi, ebx
je 0x10037c4
mov dword [0x100b2fc], 1
jmp 0x10037e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10037d9
push 2
pop eax
mov dword [0x100b2fc], eax
jmp 0x10037de
mov eax, dword [0x100b2fc]
cmp eax, 1
jne 0x100383e
cmp esi, ebx
jne 0x10037f6
call edi
mov esi, eax
cmp esi, ebx
jne 0x10037f6
xor eax, eax
jmp 0x100390f
mov eax, esi
cmp word [esi], bx
je 0x100380b
inc eax
inc eax
cmp word [eax], bx
jne 0x10037fd
inc eax
inc eax
cmp word [eax], bx
jne 0x10037fd
sub eax, esi
inc eax
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.01005ea6
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x100382f
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x100390f
push dword [ebp - 4]
push esi
push edi
call fcn.01005f90
add esp, 0xc
jmp 0x1003821
cmp eax, 2
je 0x1003847
cmp eax, ebx
jne 0x10037ef
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
je 0x10037ef
cmp byte [esi], bl
je 0x1003888
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x10037ef
add dword [ebp - 4], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003874
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x100385a
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
push 2
push dword [ebp - 4]
call fcn.01005e0c
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
cmp edi, ebx
jne 0x10038ac
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x10037ef
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x10038fe
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push edi
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1003914
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10038d6
sub eax, ecx
lea esi, [esi + eax + 1]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x10038e8
sub eax, ecx
sar eax, 1
lea edi, [edi + eax*2 + 2]
cmp byte [esi], bl
jne 0x10038b3
push dword [ebp - 8]
xor eax, eax
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.01005be2
pop ecx
push dword [ebp - 8]
jmp 0x10038a1
Function at 0x100392a
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x100b300]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x100396e
call esi
test eax, eax
je 0x1003953
mov dword [0x100b300], 1
jmp 0x1003973
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100396a
mov dword [0x100b300], 2
jmp 0x100397c
xor eax, eax
jmp 0x10039d2
cmp eax, 1
jne 0x1003977
call esi
jmp 0x10039d2
cmp eax, 2
jne 0x100396a
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x10039cf
push 2
push edi
call fcn.01005e0c
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x10039cf
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x10039c6
mov eax, dword [ebp - 4]
jmp 0x10039d1
push dword [ebp - 4]
call fcn.01005be2
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1004053
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x10017ac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x10040a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001818
push edi
call esi
push 0x100180c
push edi
mov dword [0x100b304], eax
call esi
push 0x1001800
push edi
mov dword [0x100b308], eax
call esi
push 0x10017f8
push edi
mov dword [0x100b30c], eax
call esi
mov dword [0x100b310], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x100b304], ebx
je 0x10040cb
cmp dword [0x100b308], ebx
je 0x10040cb
cmp dword [0x100b30c], ebx
je 0x10040cb
cmp dword [0x100b310], ebx
jne 0x10040ef
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x100b308], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x100b304], 0x1003d17
mov dword [0x100b30c], esi
mov dword [0x100b310], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100a16c], eax
cmp eax, 0xffffffff
je 0x1004162
push dword [0x100b308]
push eax
call esi
test eax, eax
je 0x1004162
call fcn.01002fb3
push dword [0x100b304]
call fcn.01003c19
push dword [0x100b308]
mov dword [0x100b304], eax
call fcn.01003c19
push dword [0x100b30c]
mov dword [0x100b308], eax
call fcn.01003c19
push dword [0x100b310]
mov dword [0x100b30c], eax
call fcn.01003c19
add esp, 0x10
mov dword [0x100b310], eax
call fcn.01005216
test eax, eax
jne 0x1004168
call fcn.01003d54
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x1003f03
push dword [0x100b304]
call fcn.01003c9f
pop ecx
call eax
mov dword [0x100a170], eax
cmp eax, 0xffffffff
je 0x100415d
push 0x214
push 1
call fcn.010062fa
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x100415d
push esi
push dword [0x100a170]
push dword [0x100b30c]
call fcn.01003c9f
pop ecx
call eax
test eax, eax
jne 0x10041bb
push esi
call fcn.01005be2
pop ecx
jmp 0x100415d
push ebx
push esi
call fcn.01003d96
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1004164
Function at 0x1005905
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.01003c91
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x100b4d0], ebx
jne 0x10059de
push ebx
push ebx
push 0x10019a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x1005949
xor eax, eax
jmp 0x1005aa2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001998
push edi
call esi
cmp eax, ebx
je 0x1005942
push eax
call fcn.01003c19
mov dword [esp], 0x1001988
push edi
mov dword [0x100b4d0], eax
call esi
push eax
call fcn.01003c19
mov dword [esp], 0x1001974
push edi
mov dword [0x100b4d4], eax
call esi
push eax
call fcn.01003c19
mov dword [0x100b4d8], eax
lea eax, [ebp - 8]
push eax
call fcn.01002d6e
pop ecx
pop ecx
test eax, eax
je 0x10059ac
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010050a8
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10059de
push 0x1001958
push edi
call esi
push eax
call fcn.01003c19
pop ecx
mov dword [0x100b4e0], eax
cmp eax, ebx
je 0x10059de
push 0x1001940
push edi
call esi
push eax
call fcn.01003c19
pop ecx
mov dword [0x100b4dc], eax
mov eax, dword [0x100b4dc]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1005a57
cmp dword [0x100b4e0], esi
je 0x1005a57
push eax
call fcn.01003c9f
pop ecx
call eax
cmp eax, ebx
je 0x1005a24
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x100b4e0]
call fcn.01003c9f
pop ecx
call eax
test eax, eax
je 0x1005a24
test byte [ebp - 0x18], 1
jne 0x1005a57
lea eax, [ebp - 0xc]
push eax
call fcn.01002daf
pop ecx
test eax, eax
je 0x1005a3f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010050a8
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1005a4e
or dword [ebp + 0x10], 0x200000
jmp 0x1005a88
or dword [ebp + 0x10], 0x40000
jmp 0x1005a88
mov eax, dword [0x100b4d4]
cmp eax, esi
je 0x1005a88
push eax
call fcn.01003c9f
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1005a88
mov eax, dword [0x100b4d8]
cmp eax, esi
je 0x1005a88
push dword [ebp - 4]
push eax
call fcn.01003c9f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x100b4d0]
call fcn.01003c9f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008a5d
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x100aa50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.01002d6e
pop ecx
test eax, eax
je 0x1008a92
push esi
push esi
push esi
push esi
push esi
call fcn.010050a8
add esp, 0x14
push 4
pop eax
call fcn.01008f60
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1008bae
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x1008b27
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1001920
call esi
test eax, eax
jne 0x1008afe
push 0x1001904
call esi
test eax, eax
je 0x1008b27
push 0x1002518
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1008b27
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x1008b27
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x1008b27
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.010034b9
add esp, 0xc
test eax, eax
jl 0x1008bae
not esi
and dword [ebp - 8], esi
je 0x1008b59
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.010034b9
add esp, 0xc
test eax, eax
jl 0x1008bae
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x1008b64
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x1008b78
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x1008bae
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1008bae
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1008bae
xor eax, eax
inc eax
jmp 0x1008bb0
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01006b9a
leave
ret
Function at 0x10068c5
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [0x101e70c], ebx
jne 0x10068e2
mov eax, 0x80004005
jmp 0x100699c
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], ebx
call fcn.0100544e
cmp eax, ebx
mov dword [ebp + 0xc], eax
jge 0x100691e
push 0x100158c
push 4
call fcn.01005bd8
pop ecx
jmp 0x1006997
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 4]
push eax
push 4
pop edi
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x1006975
cmp dword [ebp + 0xc], 1
je 0x1006989
cmp dword [ebp + 0x10], ebx
jl 0x1006989
push ebx
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x1006975
mov eax, dword [ebp - 8]
cmp eax, ebx
jbe 0x1006989
imul eax, eax, 0x2c
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1006989
push 0x100158c
push edi
call fcn.01005bd8
pop ecx
pop ecx
mov dword [ebp + 0xc], 0x80004005
pop esi
cmp dword [ebp - 0xc], ebx
je 0x1006998
push dword [ebp - 0xc]
call fcn.0100ae38
pop ecx
mov eax, dword [ebp + 0xc]
pop edi
pop ebx
leave
ret 0xc