joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100767c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100e0dc]
push esi
mov dword [ebp - 4], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1007718
push 0x1003d88
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01007420
test eax, eax
je 0x1007718
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push edi
xor eax, eax
push eax
mov ebx, 0x80
push ebx
push 3
push eax
push eax
mov edi, 0x40000000
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
mov dword [0x100e0d4], eax
jne 0x1007709
xor eax, eax
push eax
push ebx
push 1
push eax
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
mov dword [0x100e0d4], eax
call fcn.01006ee4
jmp 0x1007716
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01007f55
leave
ret
Function at 0x10079dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push dword [ebp + 8]
push 0x1004180
call fcn.010073ab
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
push 0x20019
xor edi, edi
push edi
push dword [ebp + 8]
push dword [0x100e664]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x1007a2a
push dword [ebp + 8]
push 0x1004110
call fcn.010073ab
pop ecx
pop ecx
jmp 0x1007afc
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
lea eax, [esi + 4]
push eax
push edi
push edi
push 0x10020ac
push dword [ebp - 8]
mov dword [ebp + 8], 0x100
call ebx
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x1007ad4
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x118]
push eax
push edi
push edi
push 0x10020a4
push dword [ebp - 8]
mov dword [ebp + 8], 0x100
call ebx
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x1007ad4
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push 0x10020b4
push dword [ebp - 8]
mov dword [ebp + 8], 0x2c
call ebx
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x1007ad4
mov eax, dword [ebp - 0x34]
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x114], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x228], eax
lea edi, [esi + 0x104]
lea esi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
add edi, 0x218
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x1007afa
cmp dword [ebp - 4], edi
jne 0x1007afa
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push edi
push edi
push 0x1002094
push dword [ebp - 8]
call ebx
mov dword [ebp - 4], eax
pop esi
pop ebx
cmp dword [ebp - 8], edi
je 0x1007b0a
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], edi
jne 0x1007b16
push 0x10040b8
jmp 0x1007b1b
push 0x1004068
call fcn.010073ab
xor eax, eax
cmp dword [ebp - 4], edi
pop ecx
sete al
pop edi
leave
ret 0x10
Function at 0x1007b33
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100e0dc]
mov edx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x20c], esi
mov ecx, 0x81
lea edi, [ebp - 0x208]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
push eax
push 0x20019
push esi
push edx
push dword [0x100e664]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007c33
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x1004210
push dword [ebp - 0x214]
mov dword [ebp - 0x210], 0x208
call ebx
test eax, eax
jne 0x1007bee
lea eax, [ebp - 0x20c]
push eax
call fcn.0100826b
pop ecx
lea eax, [eax + eax + 2]
push eax
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
push 0x10041f0
call fcn.010078cd
push 4
pop edi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x1002088
push dword [ebp - 0x214]
mov dword [ebp - 0x210], edi
call ebx
test eax, eax
pop ebx
jne 0x1007c33
push edi
lea eax, [ebp - 0x218]
push eax
push edi
push esi
push 0x10041d0
mov dword [ebp - 0x210], edi
call fcn.010078cd
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01007f55
leave
ret 4

Function at 0x1007c46
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100e0dc]
mov edx, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x20c], ebx
mov ecx, 0x81
lea edi, [ebp - 0x208]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
push eax
push 0x20006
push ebx
push edx
push dword [0x100e664]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007d64
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
mov esi, 0x10041f0
push esi
mov dword [ebp - 0x210], 0x208
call fcn.0100781d
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x1007d0d
lea eax, [ebp - 0x20c]
push eax
call fcn.0100826b
pop ecx
lea eax, [eax + eax + 2]
push esi
mov dword [ebp - 0x210], eax
call fcn.0100795e
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push 0x1004210
push dword [ebp - 0x214]
call edi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
mov esi, 0x10041d0
push esi
mov dword [ebp - 0x210], 4
call fcn.0100781d
test eax, eax
jne 0x1007d63
push esi
mov dword [ebp - 0x210], 4
call fcn.0100795e
push dword [ebp - 0x210]
lea eax, [ebp - 0x218]
push eax
push 4
push ebx
push 0x1002088
push dword [ebp - 0x214]
call edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01007f55
leave
ret 4
Function at 0x100809c
Capabilities:
Parse pe header

Disassembly:
push 0x18
push 0x1004318
call fcn.01009300
mov edi, 0x94
mov eax, edi
call fcn.01008390
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 0x10]
mov dword [0x100e680], eax
mov ecx, dword [esi + 4]
mov dword [0x100e68c], ecx
mov edx, dword [esi + 8]
mov dword [0x100e690], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x100e684], esi
cmp eax, 2
je 0x10080fc
or esi, 0x8000
mov dword [0x100e684], esi
shl ecx, 8
add ecx, edx
mov dword [0x100e688], ecx
cmp word [0x1000000], 0x5a4d
jne 0x100813a
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x100813a
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1008153
cmp ecx, 0x20b
je 0x1008140
and dword [ebp - 0x1c], 0
jmp 0x100816a
cmp dword [eax + 0x1000084], 0xe
jbe 0x100813a
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1008164
cmp dword [eax + 0x1000074], 0xe
jbe 0x100813a
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.010092a1
pop ecx
test eax, eax
jne 0x1008197
cmp dword [0x100e670], 2
je 0x1008184
call fcn.010089ee
push 0x1c
call fcn.01008801
push 0xff
call fcn.01008660
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.010090d1
test eax, eax
jge 0x10081ac
push 0x1b
call fcn.0100806d
pop ecx
call fcn.01009021
mov dword [0x100faf0], eax
call fcn.01008e82
mov dword [0x100e66c], eax
call fcn.01008de5
test eax, eax
jge 0x10081d1
push 8
call fcn.0100806d
pop ecx
call fcn.01008ba4
test eax, eax
jge 0x10081e2
push 9
call fcn.0100806d
pop ecx
call fcn.010086ba
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10081f5
push eax
call fcn.0100806d
pop ecx
mov eax, dword [0x100e6a8]
mov dword [0x100e6ac], eax
push eax
push dword [0x100e69c]
push dword [0x100e694]
call fcn.01007e64
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], 0
jne 0x1008225
push esi
call fcn.0100879a
call fcn.010087d2
jmp 0x1008257
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0100933b
ret
Function at 0x1008801
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100e0dc]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100e0f0]
je 0x100882b
inc eax
cmp eax, 0x12
jb 0x100881c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100e0f0]
mov dword [ebp - 0x110], esi
jne 0x10089d6
mov eax, dword [0x100e670]
cmp eax, 1
je 0x10089a4
test eax, eax
jne 0x1008861
cmp dword [0x100e0e4], 1
je 0x10089a4
cmp ecx, 0xfc
je 0x10089d6
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100889c
push 5
pop ecx
mov esi, 0x100468c
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10088a7
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x10088df
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10088bf
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1004688
push ebx
call fcn.0100aa00
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10088e4
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x100e0f4]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10088fe
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01008390
mov edx, esp
push 6
pop ecx
mov esi, 0x100466c
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 0x100892a
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1008936
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 0x100894f
mov eax, dword [ebp - 0x110]
mov esi, 0x1004668
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100e0f4]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100896d
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1008979
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1004640
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100a8f1
add esp, 0xc
jmp 0x10089d6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10089d6
mov esi, dword [esi + 0x100e0f4]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10089bb
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.01007f55
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008e82
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100e8dc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
cmp eax, ebx
push 2
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
pop edi
jne 0x1008ed5
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1008ebc
mov dword [0x100e8dc], 1
jmp 0x1008eda
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1008ed0
mov eax, edi
mov dword [0x100e8dc], eax
jmp 0x1008ed5
mov eax, dword [0x100e8dc]
cmp eax, 1
jne 0x1008f41
cmp dword [ebp - 4], ebx
jne 0x1008eef
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1008eef
xor eax, eax
jmp 0x1009000
mov ecx, dword [ebp - 4]
cmp word [ecx], bx
mov eax, ecx
je 0x1008f07
add eax, edi
cmp word [eax], bx
jne 0x1008ef9
add eax, edi
cmp word [eax], bx
jne 0x1008ef9
sub eax, ecx
add eax, edi
mov esi, eax
push esi
call fcn.0100abec
cmp eax, ebx
pop ecx
jne 0x1008f28
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x1009000
mov ecx, esi
mov esi, dword [ebp - 4]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, eax
jmp 0x1008f18
cmp eax, edi
je 0x1008f49
cmp eax, ebx
jne 0x1008ee8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1008ee8
cmp byte [esi], bl
je 0x1008f8e
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x1008ee8
add dword [ebp - 8], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1008f7a
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x1008f5c
mov esi, dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.0100abec
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x1008fa7
push esi
jmp 0x1009011
mov edi, esi
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax], bl
je 0x1008ff1
mov ecx, dword [ebp - 8]
mov eax, esi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1009005
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1008fd5
sub eax, edx
push esi
lea edi, [edi + eax + 1]
call fcn.0100826b
cmp byte [edi], bl
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x1008fb2
push dword [ebp - 4]
mov word [esi], bx
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.0100ab03
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x1008ee8
Function at 0x1009021
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x100e8e0]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x1009065
call esi
test eax, eax
je 0x100904a
mov dword [0x100e8e0], 1
jmp 0x100906a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1009061
mov dword [0x100e8e0], 2
jmp 0x1009073
xor eax, eax
jmp 0x10090c9
cmp eax, 1
jne 0x100906e
call esi
jmp 0x10090c9
cmp eax, 2
jne 0x1009061
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 0x10090c6
lea eax, [edi + edi]
push eax
call fcn.0100abec
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x10090c6
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x10090bd
mov eax, dword [ebp - 4]
jmp 0x10090c8
push dword [ebp - 4]
call fcn.0100ab03
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x100a8f1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100e914], ebx
push esi
push edi
jne 0x100a973
push 0x1004b40
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100a9ae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1004b34
push edi
call esi
test eax, eax
mov dword [0x100e914], eax
je 0x100a9ae
push 0x1004b24
push edi
call esi
push 0x1004b10
push edi
mov dword [0x100e918], eax
call esi
cmp dword [0x100e680], 2
mov dword [0x100e91c], eax
jne 0x100a973
push 0x1004af4
push edi
call esi
test eax, eax
mov dword [0x100e924], eax
je 0x100a973
push 0x1004adc
push edi
call esi
mov dword [0x100e920], eax
mov eax, dword [0x100e920]
test eax, eax
je 0x100a9b8
call eax
test eax, eax
je 0x100a99f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100e924]
test eax, eax
je 0x100a99f
test byte [ebp - 8], 1
jne 0x100a9b8
cmp dword [0x100e68c], 4
jb 0x100a9b2
or byte [ebp + 0x12], 0x20
jmp 0x100a9d7
xor eax, eax
jmp 0x100a9e7
or byte [ebp + 0x12], 4
jmp 0x100a9d7
mov eax, dword [0x100e918]
test eax, eax
je 0x100a9d7
call eax
mov ebx, eax
test ebx, ebx
je 0x100a9d7
mov eax, dword [0x100e91c]
test eax, eax
je 0x100a9d7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100e914]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100b596
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x100b5c7
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x100b5ce
cmp ebx, dword [ebp + 8]
jae 0x100b5ce
xor eax, eax
jmp 0x100b7be
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100b5df
xor eax, eax
inc eax
jmp 0x100b7bd
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100b5f5
cmp ecx, edx
jae 0x100b73a
cmp dword [eax + 4], 0
je 0x100b5fe
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100b5e6
cmp dword [ebp + 8], 0
je 0x100b620
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100b73a
cmp eax, esi
jae 0x100b73a
mov eax, dword [0x100e928]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100b645
cmp dword [esi*4 + 0x100e930], edi
je 0x100b73e
inc esi
cmp esi, eax
jl 0x100b633
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100b7ba
cmp dword [ebp - 8], 0x1000000
jne 0x100b7ba
test byte [ebp - 0xc], 0xcc
je 0x100b6c3
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100b7ba
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100b7ba
cmp word [eax + 0x18], 0x10b
jne 0x100b7ba
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100b7ba
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100b6c3
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100b6c3
test byte [ecx + 0x27], 0x80
jne 0x100b73a
push 1
push 0x100e970
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x100b5d7
mov ecx, dword [0x100e928]
test ecx, ecx
mov edx, ecx
jle 0x100b6f7
lea eax, [ecx*4 + 0x100e92c]
cmp dword [eax], edi
je 0x100b6f7
dec edx
sub eax, 4
test edx, edx
jg 0x100b6eb
test edx, edx
jne 0x100b728
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100b704
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x100b71c
lea eax, [edx*4 + 0x100e930]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100b70a
cmp ecx, 0x10
jge 0x100b728
inc ecx
mov dword [0x100e928], ecx
push 0
push 0x100e970
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x100b5d7
xor eax, eax
jmp 0x100b7bd
test esi, esi
jle 0x100b5d7
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x100e970
call ebx
test eax, eax
jne 0x100b5d7
cmp dword [esi*4 + 0x100e930], edi
je 0x100b794
mov eax, dword [0x100e928]
lea esi, [eax - 1]
test esi, esi
jl 0x100b782
cmp dword [esi*4 + 0x100e930], edi
je 0x100b77e
dec esi
jns 0x100b772
test esi, esi
jge 0x100b792
cmp eax, 0x10
jge 0x100b78d
inc eax
mov dword [0x100e928], eax
lea esi, [eax - 1]
jmp 0x100b794
je 0x100b7ac
xor ecx, ecx
test esi, esi
jl 0x100b7ac
lea eax, [ecx*4 + 0x100e930]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100b79a
push 0
push 0x100e970
call ebx
jmp 0x100b5d7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100c0e2
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01008390
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100c148
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x100e680]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x100c14c
xor eax, eax
jmp 0x100c159
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100c3c1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x100f9cc]
mov eax, dword [0x100e0dc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x100c5a7
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x100f9e0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x100c5a7
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x100c432
xor eax, eax
jmp 0x100c5bb
test al, 0x20
je 0x100c445
push 2
push 0
push 0
push ecx
call fcn.0100cffd
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100c505
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x100c581
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x100c4b4
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100c4a2
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x100c47e
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100c533
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x100c53f
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x100c46a
jmp 0x100c53f
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100c533
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x100c53f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x100c59f
cmp dword [ebp - 0x40c], eax
je 0x100c57b
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x100c56d
mov dword [0x100e674], 9
mov dword [0x100e678], eax
jmp 0x100c5b8
push dword [ebp - 0x40c]
call fcn.0100cec7
pop ecx
jmp 0x100c5b8
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100c593
cmp byte [edi], 0x1a
je 0x100c42b
mov dword [0x100e674], 0x1c
jmp 0x100c5b1
sub eax, dword [ebp - 0x420]
jmp 0x100c5bb
mov dword [0x100e674], 9
and dword [0x100e678], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007f55
leave
ret