joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e260
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40e26f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x426914]
test eax, eax
je 0x40e27d
call fcn.0040e110
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x40e371
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x4288e8]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4288e8]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4288e8]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4288e8]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4288e8]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4288e8]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4288e8]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4288e8]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x40e297
pop edi
pop ebx
test edx, edx
je 0x40e391
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4288e8]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x40e375
not eax
pop esi
ret 0xc
Function at 0x410c50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x400
mov ecx, 0x100
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x414]
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test edi, edi
je 0x410c78
mov eax, edi
push eax
mov eax, dword [0x428564]
push eax
lea ecx, [esp + 0x14]
push str._s_016s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x1c]
push 0x4265ac
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, dword [esp + 0x43c]
add esp, 0x18
mov esi, eax
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test ebx, ebx
je 0x410cb6
mov eax, ebx
mov ecx, dword [esp + 0x428]
push esi
push ecx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
test edi, edi
je 0x410cf2
mov al, byte [edi - 1]
test al, al
je 0x410ce8
cmp al, 0xff
je 0x410ce8
dec al
mov byte [edi - 1], al
jmp 0x410cf2
dec edi
push edi
call fcn.0041f590
add esp, 4
test ebx, ebx
je 0x410d1c
mov al, byte [ebx - 1]
test al, al
je 0x410d12
cmp al, 0xff
je 0x410d12
dec al
pop edi
mov byte [ebx - 1], al
pop esi
pop ebx
add esp, 0x400
ret 0x20
dec ebx
push ebx
call fcn.0041f590
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0x20
Function at 0x41f2d0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
mov eax, 0xaaaaaaab
lea ecx, [ebp + 2]
mul ecx
mov eax, dword [esp + 0x14]
shr edx, 1
mov ecx, dword [eax]
lea edx, [edx*4 + 1]
cmp ecx, edx
jae 0x41f2f8
xor al, al
pop ebp
ret 0x10
mov eax, 0xaaaaaaab
mov ecx, dword [esp + 0x10]
mul ebp
shr edx, 1
push ebx
push esi
lea eax, [edx + edx*2]
xor edx, edx
test eax, eax
push edi
jbe 0x41f3b3
lea edx, [eax + 2]
mov eax, 0xaaaaaaab
mul edx
mov esi, dword [esp + 0x14]
mov edi, edx
shr edi, 1
lea eax, [edi + edi*2]
mov dword [esp + 0x18], eax
mov eax, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
xor edx, edx
mov dl, byte [esi]
add esi, 3
shr edx, 2
inc ecx
mov dl, byte [edx + eax]
mov byte [ecx - 1], dl
mov al, byte [esi - 3]
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 3
xor edx, edx
mov dl, byte [esi - 2]
shl eax, 4
shr edx, 4
add ebx, eax
inc ecx
mov al, byte [edx + ebx]
mov byte [ecx - 1], al
mov dl, byte [esi - 2]
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
xor eax, eax
mov al, byte [esi - 1]
and edx, 0xf
shr eax, 6
add ebx, eax
inc ecx
mov dl, byte [ebx + edx*4]
mov byte [ecx - 1], dl
mov al, byte [esi - 1]
mov edx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 0x3f
inc ecx
dec edi
mov al, byte [eax + edx]
mov byte [ecx - 1], al
jne 0x41f32e
mov edx, dword [esp + 0x18]
cmp edx, ebp
jae 0x41f402
lea edi, [edx + 1]
xor eax, eax
mov al, byte [esi]
cmp edi, ebp
jae 0x41f3b9
xor edx, edx
mov dl, byte [esi + 1]
mov esi, edx
jmp 0x41f3bb
mov esi, dword [esp + 0x14]
jmp 0x41f39b
xor esi, esi
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, eax
shr edx, 2
and eax, 3
inc ecx
mov dl, byte [edx + ebx]
mov byte [ecx - 1], dl
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shl eax, 4
mov edx, esi
add ebx, eax
shr edx, 4
inc ecx
cmp edi, ebp
mov al, byte [edx + ebx]
mov byte [ecx - 1], al
jae 0x41f3f9
mov edx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and esi, 0xf
mov al, byte [edx + esi*4]
jmp 0x41f3fb
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, dword [esp + 0x1c]
mov byte [ecx], 0
sub ecx, eax
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov al, 1
pop ebp
ret 0x10
Function at 0x1001e50
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 4
push 1
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001ea9
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x1001ea0
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x1002096
Capabilities:
Check mutex on windows
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
call fcn.01001e50
test eax, eax
je 0x100212e
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100212e
cmp dword [ebp - 0x104], 2
push esi
jne 0x10020e1
cmp dword [ebp - 0x110], 5
jb 0x10020e1
push 0x10011b0
jmp 0x10020e6
push 0x100119c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x100212d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1002126
push dword [ebp + 8]
call fcn.01001ff0
test eax, eax
je 0x1002126
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.01001ed0
test eax, eax
je 0x1002126
push dword [ebp + 0x10]
call fcn.01002afa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
leave
ret 0x10

Function at 0x1002486
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 8], eax
lea eax, [ebp + 0x18]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0xff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10024d9
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x14
Function at 0x10024e0
Capabilities:
Create process on windows
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor esi, esi
push esi
xor edi, edi
push 0x1001220
inc edi
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002550
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x100120c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002550
push edi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1001200
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x1002556
Capabilities:
Create process on windows
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x1001220
push 0x80000002
mov dword [ebp - 4], 1
mov dword [ebp - 0xc], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10025bd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x100127c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10025bd
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
xor eax, eax
inc eax
leave
ret
Function at 0x100265d
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x71c
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x10014d8
mov esi, 0x80000002
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10028c4
push edi
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x71c]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], 0xff
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
je 0x10026c5
cmp eax, 0xea
jne 0x10028ba
inc dword [ebp - 4]
lea eax, [ebp - 0x71c]
push 0x10014c8
push eax
call fcn.01002e31
test eax, eax
pop ecx
pop ecx
je 0x1002691
lea eax, [ebp - 0x21c]
push 0x10014d8
push eax
call fcn.01002dcd
lea eax, [ebp - 0x21c]
push 0x10014c4
push eax
call fcn.01002da3
lea eax, [ebp - 0x71c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.01002da3
add esp, 0x18
push 1
lea eax, [ebp - 0x41c]
push eax
push 0x10014b4
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01002486
push 1
lea eax, [ebp - 0x51c]
push eax
push 0x100149c
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01002486
lea eax, [ebp - 0x41c]
push 0x1001498
push eax
call fcn.01002dff
test eax, eax
pop ecx
pop ecx
jne 0x1002691
lea eax, [ebp - 0x51c]
push 0x1001468
push eax
call fcn.01002dff
test eax, eax
pop ecx
pop ecx
jne 0x1002691
lea eax, [ebp - 0x21c]
push 0x10013c8
push eax
call fcn.01002dcd
pop ecx
pop ecx
push 4
lea eax, [ebp - 0x41c]
push eax
mov edi, 0x10013b4
push edi
lea eax, [ebp - 0x21c]
push eax
push esi
mov dword [ebp - 0x41c], ebx
call fcn.01002486
test eax, eax
je 0x10027e6
lea eax, [ebp - 0x21c]
push 0x1001348
push eax
call fcn.01002dcd
pop ecx
pop ecx
push 4
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01002486
cmp byte [ebp - 0x41c], bl
jne 0x1002691
lea eax, [ebp - 8]
push eax
push 0x2001f
push ebx
lea eax, [ebp - 0x21c]
push eax
push esi
mov byte [ebp - 0x41c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002838
push 4
lea eax, [ebp - 0x41c]
push eax
push 4
push ebx
push 0x10013b4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x71c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.01002dcd
lea eax, [ebp - 0x21c]
push 0x10012c8
push eax
call fcn.01002dcd
lea eax, [ebp - 0x41c]
push eax
call fcn.01002de9
add esp, 0x14
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push 0x2001f
push ebx
lea eax, [ebp - 0x21c]
push eax
push 0x80000001
shl edi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002691
push edi
lea eax, [ebp - 0x41c]
push eax
push 1
push ebx
push 0x10012a0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002691
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10028c8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x10072fc], eax
lea eax, [ebp + 8]
push eax
push 0
push 0x10072fc
push 0x10025c2
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, 0xffffffff
mov dword [0x1007024], eax
je 0x1002905
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
jmp 0x100290c
or dword [0x1007024], 0xffffffff
pop ebp
ret 4

Function at 0x1002910
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp dword [0x1007028], 0xffffffff
jne 0x1002990
push 0x1001574
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, 0xffffffff
mov dword [0x1007028], eax
je 0x1002976
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001564
push eax
call esi
cmp eax, edi
mov dword [0x1007318], eax
je 0x1002963
push 0x1001554
push dword [0x1007028]
call esi
cmp eax, edi
mov dword [0x100731c], eax
jne 0x100297e
push dword [0x1007028]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or dword [0x1007028], 0xffffffff
xor eax, eax
inc eax
jmp 0x1002a01
push 0x1001544
push dword [0x1007028]
call esi
mov dword [0x1007314], eax
push 0x10011d0
push dword [ebp + 8]
call dword [0x1007318]
push edi
push edi
push 1
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [0x1007310], eax
je 0x10029bd
push dword [ebp + 8]
call fcn.010028c8
cmp dword [0x1007320], edi
jne 0x10029ff
cmp dword [0x1007314], edi
je 0x10029ff
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x1002340
push 0x1000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, 0xffffffff
mov dword [0x1007020], eax
jne 0x10029f6
mov dword [0x1007314], edi
jmp 0x10029ff
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x1002bcf
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x10015a0
call fcn.01003a14
mov edi, 0x94
mov eax, edi
call fcn.01003a60
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1007354], ecx
mov eax, dword [esi + 4]
mov dword [0x1007360], eax
mov edx, dword [esi + 8]
mov dword [0x1007364], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1007358], esi
cmp ecx, 2
je 0x1002c2f
or esi, 0x8000
mov dword [0x1007358], esi
shl eax, 8
add eax, edx
mov dword [0x100735c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1002c6a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002c6a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1002c82
cmp eax, 0x20b
je 0x1002c6f
mov dword [ebp - 0x1c], esi
jmp 0x1002c96
cmp dword [ecx + 0x84], 0xe
jbe 0x1002c6a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x1002c90
cmp dword [ecx + 0x74], 0xe
jbe 0x1002c6a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.010039c3
pop ecx
test eax, eax
jne 0x1002cc2
cmp dword [0x1007344], 1
jne 0x1002caf
call fcn.010031d7
push 0x1c
call fcn.0100300e
push 0xff
call fcn.01002e8f
pop ecx
pop ecx
mov dword [ebp - 4], esi
call fcn.010037fe
test eax, eax
jge 0x1002cd6
push 0x1b
call fcn.01002baa
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1007894], eax
call fcn.010036d8
mov dword [0x100733c], eax
call fcn.01003636
test eax, eax
jge 0x1002cfc
push 8
call fcn.01002baa
pop ecx
call fcn.010033ea
test eax, eax
jge 0x1002d0d
push 9
call fcn.01002baa
pop ecx
call fcn.01002ebf
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x1002d20
push eax
call fcn.01002baa
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.01003381
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x1002d41
movzx eax, word [ebp - 0x34]
jmp 0x1002d44
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.01002096
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x1002d62
push edi
call fcn.01002fce
call fcn.01002ff0
jmp 0x1002d94
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.01003a4d
ret
Function at 0x100300e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x1007038]
je 0x100302e
inc eax
cmp eax, 0x12
jb 0x100301f
shl eax, 3
cmp edx, dword [eax + 0x1007038]
mov dword [ebp + 8], eax
jne 0x10031cc
mov ecx, dword [0x1007344]
cmp ecx, 1
je 0x10031a1
test ecx, ecx
jne 0x1003060
cmp dword [0x1007034], 1
je 0x10031a1
cmp edx, 0xfc
je 0x10031cc
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100309b
push 5
pop ecx
mov esi, 0x1001914
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10030aa
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x10030e2
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10030c2
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001910
push ebx
call fcn.01003ba0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10030e7
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100703c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10030fe
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01003a60
mov edx, esp
push 6
pop ecx
mov esi, 0x10018f4
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100312a
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1003136
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100314f
mov eax, dword [ebp + 8]
mov esi, 0x10018f0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100703c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100316a
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1003176
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10018c8
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01003a9d
add esp, 0xc
jmp 0x10031cc
mov ecx, dword [eax + 0x100703c]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10031ac
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003a9d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10074ac], ebx
push esi
push edi
jne 0x1003b1d
push 0x1001990
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1003b58
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001984
push edi
call esi
test eax, eax
mov dword [0x10074ac], eax
je 0x1003b58
push 0x1001974
push edi
call esi
push 0x1001960
push edi
mov dword [0x10074b0], eax
call esi
cmp dword [0x1007354], 2
mov dword [0x10074b4], eax
jne 0x1003b1d
push 0x1001944
push edi
call esi
test eax, eax
mov dword [0x10074bc], eax
je 0x1003b1d
push 0x100192c
push edi
call esi
mov dword [0x10074b8], eax
mov eax, dword [0x10074b8]
test eax, eax
je 0x1003b62
call eax
test eax, eax
je 0x1003b49
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10074bc]
test eax, eax
je 0x1003b49
test byte [ebp - 8], 1
jne 0x1003b62
cmp dword [0x1007360], 4
jb 0x1003b5c
or byte [ebp + 0x12], 0x20
jmp 0x1003b81
xor eax, eax
jmp 0x1003b91
or byte [ebp + 0x12], 4
jmp 0x1003b81
mov eax, dword [0x10074b0]
test eax, eax
je 0x1003b81
call eax
mov ebx, eax
test ebx, ebx
je 0x1003b81
mov eax, dword [0x10074b4]
test eax, eax
je 0x1003b81
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10074ac]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1005664
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.01003a60
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10056f9
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x1007354]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x10056f9
cmp eax, 1
je 0x1005711
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10056f9
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x10056ce
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x10056f5
xor eax, eax
inc eax
jmp 0x100572d
cmp esi, ebx
jae 0x10056fd
xor eax, eax
jmp 0x100572d
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1007354]
jmp 0x1005713
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret