joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008153
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x101803c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x214], ebx
mov byte [ebp - 0x20d], bl
call fcn.01005bd9
push eax
mov edi, 0x20019
push edi
push ebx
push 0x10022c0
push 0x80000002
call fcn.01005c13
add esp, 0x14
mov esi, 0x104
test eax, eax
jne 0x100828d
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x220], ebx
push ebx
jmp 0x1008273
push ebx
call fcn.01007b66
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1008255
push dword [ebp - 0x228]
lea eax, [ebp - 0x108]
push eax
push 0x1002980
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100742b
mov eax, dword [ebp - 0x214]
add esp, 0x14
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x224], eax
call fcn.01005bd9
push eax
push edi
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call fcn.01005c13
add esp, 0x14
lea ecx, [ebp - 0x218]
test eax, eax
je 0x100838c
call fcn.01005bf7
inc dword [ebp - 0x220]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x220]
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x10081d2
lea ecx, [ebp - 0x214]
call fcn.01005bd9
push eax
push edi
push ebx
push 0x1002284
push 0x80000002
call fcn.01005c13
add esp, 0x14
test eax, eax
jne 0x1008398
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x220], ebx
push ebx
jmp 0x1008370
push ebx
call fcn.01007b66
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1008352
push dword [ebp - 0x228]
lea eax, [ebp - 0x108]
push eax
push 0x1002964
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100742b
mov eax, dword [ebp - 0x214]
add esp, 0x14
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x224], eax
call fcn.01005bd9
push eax
push edi
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call fcn.01005c13
add esp, 0x14
lea ecx, [ebp - 0x21c]
test eax, eax
je 0x100838c
call fcn.01005bf7
inc dword [ebp - 0x220]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x220]
push dword [ebp - 0x214]
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x10082d3
jmp 0x1008398
mov byte [ebp - 0x20d], 1
call fcn.01005bf7
lea ecx, [ebp - 0x214]
call fcn.01005bf7
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x20d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d419
leave
ret
Function at 0x10083bd
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x101803c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x34c], edi
mov eax, edi
cmp edi, ebx
jne 0x10083eb
mov eax, 0x10017b0
push eax
push 0x10029f4
call fcn.0100d383
lea eax, [ebp - 0x344]
push eax
mov dword [ebp - 0x340], ebx
call fcn.01007b66
push eax
push 0x10029a8
mov esi, 0x104
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.0100742b
add esp, 0x1c
lea ecx, [ebp - 0x340]
cmp dword [ebp - 0x344], ebx
je 0x100843d
call fcn.01005bf7
xor al, al
jmp 0x10085b9
call fcn.01005bd9
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x234]
push eax
push 0x80000002
call fcn.01005c13
add esp, 0x14
cmp eax, ebx
je 0x100849c
cmp eax, 2
je 0x100848d
push eax
lea eax, [ebp - 0x234]
push eax
push 0x10016ec
call fcn.0100d383
add esp, 0xc
lea ecx, [ebp - 0x340]
call fcn.01005bf7
mov al, bl
jmp 0x10085b9
push edi
push dword [ebp + 8]
call fcn.01006854
pop ecx
pop ecx
mov bl, al
jmp 0x100847b
push 0x27
lea eax, [ebp - 0x2b]
push ebx
push eax
mov dword [ebp - 0x348], esi
mov byte [ebp - 0x2c], bl
call fcn.0100d7e0
add esp, 0xc
cmp edi, ebx
je 0x10084c7
push 0x28
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.01006304
add esp, 0xc
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x130]
push eax
mov byte [ebp - 0x339], bl
mov dword [ebp - 0x344], ebx
push ebx
jmp 0x1008595
cmp byte [ebp - 0x2c], bl
je 0x100850b
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1008571
lea eax, [ebp - 0x130]
push eax
push 0x1002990
lea eax, [ebp - 0x338]
push esi
push eax
call fcn.0100742b
push dword [ebp + 8]
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x340]
call fcn.010065a8
add esp, 0x1c
test eax, eax
je 0x100847b
lea eax, [ebp - 0x130]
push eax
call fcn.01008153
pop ecx
test al, al
jne 0x1008571
push dword [ebp - 0x34c]
push dword [ebp + 8]
call fcn.01006854
neg al
sbb al, al
pop ecx
inc al
or byte [ebp - 0x339], al
pop ecx
inc dword [ebp - 0x344]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x344]
mov dword [ebp - 0x348], esi
push dword [ebp - 0x340]
call edi
test eax, eax
je 0x10084f1
lea ecx, [ebp - 0x340]
call fcn.01005bf7
cmp byte [ebp - 0x339], bl
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d419
leave
ret
Function at 0x100a146
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x101803c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x10c]
push ebx
mov dword [ebp - 0x118], ecx
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x108]
push ecx
push ebx
push eax
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x119], bl
mov dword [ebp - 0x120], 0x104
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x114], 1
mov byte [ebp - 0x10c], bl
call esi
mov edi, 0x103
jmp 0x100a2c9
push 0xa
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0100dd53
add esp, 0xc
mov dword [ebp - 0x130], eax
cmp eax, ebx
jne 0x100a203
push 0x100132c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100a299
cmp dword [ebp - 0x130], ebx
jge 0x100a299
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x124]
lea ecx, [ecx + eax + 1]
mov eax, dword [ebp - 0x114]
mov byte [0x101977a], 1
cmp eax, ecx
jae 0x100a24d
add eax, 0x104
push eax
lea ecx, [ebp - 0x118]
call fcn.01007270
cmp dword [ebp - 0x118], ebx
je 0x100a2d3
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x114]
push dword [ebp - 0x118]
call fcn.010073d2
test eax, eax
jl 0x100a2d3
push 0x10032a8
push dword [ebp - 0x114]
push dword [ebp - 0x118]
call fcn.010073d2
test eax, eax
jl 0x100a2d3
mov ecx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x120]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x124], eax
inc dword [ebp - 0x128]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x128]
mov dword [ebp - 0x120], 0x104
push dword [ebp - 0x12c]
call esi
cmp eax, edi
jne 0x100a1c7
jmp 0x100a2da
mov byte [ebp - 0x119], 1
cmp dword [ebp - 0x114], ebx
je 0x100a320
mov edi, dword [ebp - 0x118]
jmp 0x100a313
push 0x10032a8
push edi
call fcn.0100da30
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x100a320
push edi
push dword [ebp - 0x12c]
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x100a319
lea edi, [esi + 1]
cmp edi, ebx
jne 0x100a2ea
jmp 0x100a320
mov byte [ebp - 0x119], 1
cmp byte [ebp - 0x119], bl
sete bl
cmp dword [ebp - 0x114], 1
jle 0x100a33e
push dword [ebp - 0x118]
call fcn.0100d79a
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0100d419
leave
ret
Function at 0x100b192
Capabilities:
Check os version
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x101803c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1a0]
push eax
mov dword [ebp - 0x1a0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x190], 1
jne 0x100b1ce
mov byte [0x1019778], 1
cmp dword [ebp - 0x190], 2
mov eax, dword [ebp - 0x19c]
mov dword [0x101977c], eax
mov byte [0x1019779], 0
jne 0x100b2b7
cmp eax, 5
ja 0x100b205
jne 0x100b2b7
cmp dword [ebp - 0x198], 1
jb 0x100b2b7
push edi
push 0x1003ad8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x100b246
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1003a68
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.0100742b
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x100b2b6
push esi
push 0x1003a58
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x100b28f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1003a08
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.0100742b
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100b2b5
and dword [ebp - 0x1a4], 0
lea eax, [ebp - 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x1a4], 0
setne al
mov byte [0x1019779], al
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100d419
leave
ret
Function at 0x100c7e9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x101803c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push esi
call fcn.01007b66
push eax
push 0x1004254
call fcn.0100d383
add esp, 0xc
xor bl, bl
test byte [ebp + 8], 0x10
je 0x100c87e
test byte [ebp + 8], 8
jne 0x100c87e
lea eax, [ebp - 0x10c]
push eax
call fcn.01007b66
push eax
push 0x1003418
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0100742b
add esp, 0x14
cmp dword [ebp - 0x10c], esi
jne 0x100c869
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.010085cd
pop ecx
pop ecx
test al, al
jne 0x100c86b
mov bl, 1
push esi
push 0x10034b4
call fcn.010085cd
pop ecx
pop ecx
test al, al
jne 0x100c87e
mov bl, 1
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test al, 2
je 0x100c8d5
shr eax, 3
and al, 1
mov byte [ebp - 0x10c], al
push eax
call fcn.010092a5
pop ecx
test al, al
je 0x100c8ec
push 0
push dword [ebp - 0x10c]
call fcn.010083bd
pop ecx
pop ecx
test al, al
je 0x100c8ec
push 0x1004238
call esi
test byte [ebp + 8], 8
je 0x100c8c8
push 0x1004220
jmp 0x100c8cd
push 0x1004208
call fcn.0100d383
pop ecx
jmp 0x100c8ee
test al, 4
je 0x100c8ee
shr eax, 3
and al, 1
movzx eax, al
push eax
call fcn.01006e48
pop ecx
test al, al
jne 0x100c8ee
mov bl, 1
test dword [ebp + 8], 0x400
je 0x100c912
mov eax, dword [ebp + 8]
shr eax, 3
and al, 1
movzx eax, al
push 0
push eax
call fcn.010083bd
pop ecx
pop ecx
test al, al
jne 0x100c912
mov bl, 1
test dword [ebp + 8], 0x2200
je 0x100c947
push 0
push edi
push dword [ebp + 8]
call fcn.01008ae8
add esp, 0xc
test al, al
jne 0x100c92f
mov bl, 1
mov eax, dword [ebp + 8]
shr eax, 3
and al, 1
movzx eax, al
push eax
call fcn.01006e0c
pop ecx
test al, al
jne 0x100c947
mov bl, 1
mov ecx, dword [ebp + 8]
mov eax, 0x380
and ecx, eax
cmp ecx, eax
jne 0x100c98a
push 0
push edi
push dword [ebp + 8]
call fcn.01008ae8
add esp, 0xc
test al, al
je 0x100c988
push 0x10041f4
call esi
test byte [ebp + 8], 8
je 0x100c97b
push 0x10041dc
jmp 0x100c980
push 0x10041c8
call fcn.0100d383
pop ecx
jmp 0x100c98a
mov bl, 1
test byte [ebp + 8], 0x40
je 0x100c9a4
cmp byte [0x1019778], 0
jne 0x100c9a4
call fcn.01005da1
test al, al
jne 0x100c9a4
mov bl, 1
mov eax, dword [ebp + 8]
test eax, 0x4800
je 0x100c9da
test edi, edi
je 0x100c9da
mov ecx, eax
shr ecx, 0xe
and cl, 1
movzx ecx, cl
push ecx
mov ecx, eax
shr ecx, 3
and cl, 1
movzx ecx, cl
push ecx
push edi
push eax
call fcn.0100a5e8
add esp, 0x10
test al, al
jne 0x100c9da
mov bl, 1
test dword [ebp + 8], 0x20000
je 0x100c9fd
test edi, edi
je 0x100c9fd
push 0
push edi
push dword [ebp + 8]
call fcn.0100a4a3
add esp, 0xc
mov bl, al
neg bl
sbb bl, bl
inc bl
test dword [ebp + 8], 0x10000
je 0x100ca11
call fcn.0100b2c8
test al, al
jne 0x100ca11
mov bl, 1
test dword [ebp + 8], 0x40000
je 0x100ca27
push edi
call fcn.0100a354
pop ecx
test al, al
jne 0x100ca27
mov bl, 1
mov ecx, dword [ebp - 4]
xor eax, eax
test bl, bl
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d419
leave
ret
Function at 0x100d09a
Capabilities:
Accept command line arguments

Disassembly:
push 0xac
push 0x1016880
call fcn.0100f350
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x100cf31
mov eax, 0xff
jmp 0x100d08f
mov ecx, dword [ebp - 0xa4]
and ecx, 0x7fff
mov edi, dword [ebp - 0xa0]
cmp edi, 2
je 0x100cf4e
or ecx, 0x8000
mov edx, dword [ebp - 0xac]
mov eax, edx
shl eax, 8
mov esi, dword [ebp - 0xa8]
add eax, esi
mov dword [0x101989c], edi
mov dword [0x10198a4], eax
mov dword [0x10198a8], edx
mov dword [0x10198ac], esi
mov dword [0x10198a0], ecx
call fcn.0100ceb1
mov dword [ebp - 0xb8], eax
push 1
call fcn.0100f2e8
pop ecx
test eax, eax
jne 0x100cf9d
push 0x1c
call fcn.0100ce83
pop ecx
call fcn.0100f107
test eax, eax
jne 0x100cfae
push 0x10
call fcn.0100ce83
pop ecx
and dword [ebp - 4], 0
call fcn.0100ea8e
test eax, eax
jge 0x100cfc3
push 0x1b
call fcn.0100deb4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x101b45c], eax
call fcn.0100e952
mov dword [0x101988c], eax
call fcn.0100e85e
test eax, eax
jge 0x100cfe9
push 8
call fcn.0100deb4
pop ecx
call fcn.0100e510
test eax, eax
jge 0x100cffa
push 9
call fcn.0100deb4
pop ecx
push 1
call fcn.0100dfd8
pop ecx
test eax, eax
je 0x100d00d
push eax
call fcn.0100deb4
pop ecx
mov eax, dword [0x10198bc]
mov dword [0x10198c0], eax
push eax
push dword [0x10198b4]
push dword [0x10198b0]
call main
add esp, 0xc
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb8], 0
jne 0x100d041
push eax
call fcn.0100e138
call fcn.0100e16e
jmp 0x100d082
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xb4]
call fcn.010ab000
ret
call fcn.0100f541
jmp 0x100cefd
Function at 0x100e1dd
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 + 0x1018058]
je 0x100e203
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x100e1f1
cmp esi, 0x17
jae 0x100e35d
push 3
call fcn.01012e24
pop ecx
cmp eax, 1
je 0x100e327
push 3
call fcn.01012e24
pop ecx
test eax, eax
jne 0x100e236
cmp dword [0x1018038], 1
je 0x100e327
cmp edi, 0xfc
je 0x100e35d
push 0x1004b9c
mov edi, 0x314
push edi
mov esi, 0x10198e0
push esi
call fcn.0101197f
add esp, 0xc
test eax, eax
je 0x100e26c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101041f
add esp, 0x14
mov byte [0x10199fd], bl
push 0x104
mov ebx, 0x10198f9
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100e2af
push 0x1004b84
push 0x2fb
push ebx
call fcn.0101197f
add esp, 0xc
test eax, eax
je 0x100e2af
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0101041f
add esp, 0x14
push ebx
push edi
push esi
call fcn.01012dab
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x100e2cd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101041f
add esp, 0x14
push 0x1004b80
push edi
push esi
call fcn.01012dab
add esp, 0xc
test eax, eax
je 0x100e2ed
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101041f
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x101805c]
push edi
push esi
call fcn.01012dab
add esp, 0xc
test eax, eax
je 0x100e312
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101041f
add esp, 0x14
push 0x12010
push 0x1004b58
push esi
call fcn.01012c04
add esp, 0xc
jmp 0x100e35d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x100e35d
cmp edi, 0xffffffff
je 0x100e35d
mov edx, dword [esi*8 + 0x101805c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100e346
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 0x100f107
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1004bc8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x100f159
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1004c34
push edi
call esi
push 0x1004c28
push edi
mov dword [0x1019d04], eax
call esi
push 0x1004c1c
push edi
mov dword [0x1019d08], eax
call esi
push 0x1004c14
push edi
mov dword [0x1019d0c], eax
call esi
mov dword [0x1019d10], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x1019d04], ebx
je 0x100f17f
cmp dword [0x1019d08], ebx
je 0x100f17f
cmp dword [0x1019d0c], ebx
je 0x100f17f
cmp dword [0x1019d10], ebx
jne 0x100f1a3
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x1019d08], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1019d04], 0x100edcb
mov dword [0x1019d0c], esi
mov dword [0x1019d10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x10181bc], eax
cmp eax, 0xffffffff
je 0x100f216
push dword [0x1019d08]
push eax
call esi
test eax, eax
je 0x100f216
call fcn.0100e196
push dword [0x1019d04]
call fcn.0100eccd
push dword [0x1019d08]
mov dword [0x1019d04], eax
call fcn.0100eccd
push dword [0x1019d0c]
mov dword [0x1019d08], eax
call fcn.0100eccd
push dword [0x1019d10]
mov dword [0x1019d0c], eax
call fcn.0100eccd
add esp, 0x10
mov dword [0x1019d10], eax
call fcn.01011bd0
test eax, eax
jne 0x100f21c
call fcn.0100ee08
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x100efb7
push dword [0x1019d04]
call fcn.0100ed53
pop ecx
call eax
mov dword [0x10181c0], eax
cmp eax, 0xffffffff
je 0x100f211
push 0x214
push 1
call fcn.01013052
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x100f211
push esi
push dword [0x10181c0]
push dword [0x1019d0c]
call fcn.0100ed53
pop ecx
call eax
test eax, eax
jne 0x100f26f
push esi
call fcn.0100dd83
pop ecx
jmp 0x100f211
push ebx
push esi
call fcn.0100ee4a
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x100f218
Function at 0x1012c04
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.0100ed45
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 [0x101a1fc], ebx
jne 0x1012cdd
push ebx
push ebx
push 0x1004e38
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x1012c48
xor eax, eax
jmp 0x1012da1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1004e2c
push edi
call esi
cmp eax, ebx
je 0x1012c41
push eax
call fcn.0100eccd
mov dword [esp], 0x1004e1c
push edi
mov dword [0x101a1fc], eax
call esi
push eax
call fcn.0100eccd
mov dword [esp], 0x1004e08
push edi
mov dword [0x101a200], eax
call esi
push eax
call fcn.0100eccd
mov dword [0x101a204], eax
lea eax, [ebp - 8]
push eax
call fcn.0100df51
pop ecx
pop ecx
test eax, eax
je 0x1012cab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101041f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1012cdd
push 0x1004dec
push edi
call esi
push eax
call fcn.0100eccd
pop ecx
mov dword [0x101a20c], eax
cmp eax, ebx
je 0x1012cdd
push 0x1004dd4
push edi
call esi
push eax
call fcn.0100eccd
pop ecx
mov dword [0x101a208], eax
mov eax, dword [0x101a208]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1012d56
cmp dword [0x101a20c], esi
je 0x1012d56
push eax
call fcn.0100ed53
pop ecx
call eax
cmp eax, ebx
je 0x1012d23
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x101a20c]
call fcn.0100ed53
pop ecx
call eax
test eax, eax
je 0x1012d23
test byte [ebp - 0x18], 1
jne 0x1012d56
lea eax, [ebp - 0xc]
push eax
call fcn.0100df92
pop ecx
test eax, eax
je 0x1012d3e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0101041f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1012d4d
or dword [ebp + 0x10], 0x200000
jmp 0x1012d87
or dword [ebp + 0x10], 0x40000
jmp 0x1012d87
mov eax, dword [0x101a200]
cmp eax, esi
je 0x1012d87
push eax
call fcn.0100ed53
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1012d87
mov eax, dword [0x101a204]
cmp eax, esi
je 0x1012d87
push dword [ebp - 4]
push eax
call fcn.0100ed53
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 [0x101a1fc]
call fcn.0100ed53
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1015b26
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x101803c]
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.0100df51
pop ecx
test eax, eax
je 0x1015b5b
push esi
push esi
push esi
push esi
push esi
call fcn.0101041f
add esp, 0x14
push 4
pop eax
call fcn.010165b0
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 0x1015c77
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 0x1015bf0
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1004db4
call esi
test eax, eax
jne 0x1015bc7
push 0x1004d98
call esi
test eax, eax
je 0x1015bf0
push 0x10059fc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1015bf0
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x1015bf0
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x1015bf0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.0100e64b
add esp, 0xc
test eax, eax
jl 0x1015c77
not esi
and dword [ebp - 8], esi
je 0x1015c22
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.0100e64b
add esp, 0xc
test eax, eax
jl 0x1015c77
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x1015c2d
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 0x1015c41
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x1015c77
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1015c77
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 0x1015c77
xor eax, eax
inc eax
jmp 0x1015c79
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100d419
leave
ret