joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100463a
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1012070]
push esi
push edi
mov dword [ebp - 4], eax
xor esi, esi
xor eax, eax
mov word [ebp - 0x210], si
mov ecx, 0x82
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
push eax
push 0x20019
push esi
push 0x1001790
push 0x80000002
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
inc dword [0x1012ff4]
push 0x1012fe0
push dword [0x1012fcc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
cmp edi, esi
jne 0x10046de
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x1001894
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1004701
push 0x1001864
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x105
push 0x1012b48
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1004723
mov word [0x1012b48], si
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01009963
leave
ret
Function at 0x1004734
Capabilities:
Access the windows event log
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1012070]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push dword [ebx + 0x84]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], edi
mov word [ebp - 0x20c], di
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jbe 0x1004848
cmp word [ebp - 0x206], di
lea esi, [ebp - 0x206]
je 0x1004840
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call ebx
cmp word [ebp - 0x206], di
mov dword [ebp - 0x218], eax
je 0x1004805
cmp word [esi], 0x5c
je 0x10047cb
cmp word [esi], di
je 0x10047c5
inc esi
inc esi
cmp word [esi], 0x5c
jne 0x10047b8
cmp word [esi], 0x5c
jne 0x1004800
push edi
lea eax, [ebp - 0x20c]
push eax
mov word [esi], di
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10047f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 0x210], eax
jne 0x10047f9
mov dword [ebp - 0x210], edi
mov word [esi], 0x5c
inc esi
inc esi
cmp word [esi], di
jne 0x10047b2
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1004830
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 0x210], eax
jne 0x1004830
mov dword [ebp - 0x210], edi
push dword [ebp - 0x218]
call ebx
mov ebx, dword [ebp - 0x214]
jmp 0x1004854
mov dword [ebp - 0x210], edi
jmp 0x1004854
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], edi
je 0x10048b7
mov eax, dword [ebx + 0x84]
push dword [ebp - 0x210]
add ebx, 0xbc
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], ebx
call fcn.010026b9
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x210]
push ecx
neg eax
lea ecx, [ebp - 0x224]
push ecx
push 4
push 3
sbb eax, eax
push edi
and eax, 0xb
add eax, 0x800007f4
push eax
push edi
push 2
push dword [0x1012b30]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
pop ebx
call fcn.01009963
leave
ret 8
Function at 0x1005dd6
Capabilities:
Access the windows event log
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x100926f
push edi
push edi
mov dword [ebp - 4], edi
mov dword [esi + 0x4d0], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x1005e0a
mov dword [esi + 4], eax
jmp 0x1005e3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
lea eax, [esi + 0xbc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push 1
push edi
push 0x800007dd
push edi
push 2
push dword [0x1012b30]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
cmp dword [ebp - 4], edi
je 0x1005e48
push esi
call fcn.0100533b
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x1006780
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0x10019a4
xor esi, esi
push eax
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], fcn.010063fb
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
push esi
mov dword [0x1012b30], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp dword [ebp + 8], 1
mov dword [0x1012b34], eax
jle 0x10067f3
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x10067d4
cmp cl, 0x2f
jne 0x10067f3
mov al, byte [eax + 1]
cmp al, 0x69
je 0x10067df
cmp al, 0x49
jne 0x10067f3
lea eax, [ebp + 8]
push eax
push 1
mov dword [ebp + 8], 0x10019b8
call fcn.010063fb
jmp 0x1006827
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x1006827
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
push 4
push esi
push esi
push 0xc00007d0
push esi
push 1
push dword [0x1012b30]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x1006832
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x90]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10068e8
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [esi + 0x90]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
je 0x1006893
cmp eax, 0xffffffff
je 0x1006893
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10068e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x90]
mov dword [ebp - 0x10], ecx
lea ecx, [esi + 0xbc]
push eax
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], ecx
call fcn.010026b9
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 4
push 3
push ebx
push 0x800007f8
push ebx
push 2
push dword [0x1012b30]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [ebp + 8]
mov dword [esi + 0xa8], eax
push dword [ebp - 4]
call edi
pop edi
pop ebx
xor eax, eax
pop esi
leave
ret 4
Function at 0x10068f4
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push dword [esi]
xor ebx, ebx
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
call sub.pdh.dll_PdhAdd009CounterW
cmp eax, ebx
mov dword [ebp + 0x18], eax
mov dword [ebp + 0xc], eax
je 0x1006938
lea eax, [ebp - 4]
push eax
push dword [esi]
push edi
push dword [ebp + 0x10]
call sub.pdh.dll_PdhAddCounterW
mov dword [ebp + 0x18], eax
mov dword [ebp + 0xc], eax
mov ecx, 0xc0000000
mov edx, eax
and edx, ecx
cmp edx, ecx
je 0x10069bc
cmp edx, 0x80000000
mov ebx, dword [ebp + 8]
jne 0x1006988
lea ecx, [ebx + 0xbc]
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ecx
call fcn.010026b9
mov dword [ebp - 8], eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 4
push 3
push 0
push 0x800007f3
push 0
push 2
push dword [0x1012b30]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
inc dword [esi]
push 8
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10069b3
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
lea ecx, [ebx + 0x4dc]
mov edx, dword [ecx]
mov dword [eax], edx
mov dword [ecx], eax
jmp 0x1006a13
mov dword [ebp + 0xc], 0xe
jmp 0x1006a13
cmp dword [ebp + 0x14], ebx
je 0x1006a13
mov ecx, dword [ebp + 8]
add ecx, 0xbc
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ecx
call fcn.010026b9
cmp dword [ebp + 0x18], 0xc0000bdb
mov dword [ebp - 8], eax
jne 0x10069f2
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 2
push ebx
push 0x800007fe
jmp 0x1006a04
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 4
push 3
push ebx
push 0x800007ec
push ebx
push 2
push dword [0x1012b30]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10097ed
Capabilities:
Set registry value

Disassembly:
push 0x18
push 0x1001a68
call fcn.01009f68
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jne 0x100980c
xor eax, eax
jmp 0x10098b1
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], 0xffffffff
jne 0x100985b
push edi
call fcn.0100a3c8
pop ecx
shl eax, 1
mov dword [ebp - 0x1c], eax
add eax, 0x40
mov dword [ebp - 0x1c], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
jne 0x1009848
or dword [ebp - 4], 0xffffffff
push 0xe
jmp 0x10098b0
xor eax, eax
inc eax
mov dword [ebp - 0x20], eax
push eax
push edi
push esi
call fcn.0100a0c2
add esp, 0xc
jmp 0x1009860
mov esi, edi
mov dword [ebp - 0x24], esi
push esi
call fcn.0100a3c8
pop ecx
shl eax, 1
mov dword [ebp - 0x1c], eax
push eax
push esi
push 1
push ebx
push 0x1001a3c
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x20], ebx
je 0x100989a
cmp esi, ebx
je 0x100989a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
jmp 0x10098b1
pop eax
call fcn.01009fa3
ret 0xc
Function at 0x1009aaa
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x18
push 0x1001a78
call fcn.01009f68
mov edi, 0x94
mov eax, edi
call fcn.0100af90
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 [0x1012d7c], eax
mov ecx, dword [esi + 4]
mov dword [0x1012d88], ecx
mov edx, dword [esi + 8]
mov dword [0x1012d8c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1012d80], esi
cmp eax, 2
je 0x1009b0a
or esi, 0x8000
mov dword [0x1012d80], esi
shl ecx, 8
add ecx, edx
mov dword [0x1012d84], ecx
cmp word [0x1000000], 0x5a4d
jne 0x1009b48
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1009b48
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1009b61
cmp ecx, 0x20b
je 0x1009b4e
and dword [ebp - 0x1c], 0
jmp 0x1009b78
cmp dword [eax + 0x1000084], 0xe
jbe 0x1009b48
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1009b72
cmp dword [eax + 0x1000074], 0xe
jbe 0x1009b48
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.0100af2b
pop ecx
test eax, eax
jne 0x1009ba5
cmp dword [0x1012d64], 2
je 0x1009b92
call fcn.0100a775
push 0x1c
call fcn.0100a588
push 0xff
call fcn.0100a3e7
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.0100ad5b
test eax, eax
jge 0x1009bba
push 0x1b
call fcn.01009a7b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1014390], eax
call fcn.0100ac2e
mov dword [0x1012d5c], eax
call fcn.0100ab85
test eax, eax
jge 0x1009be0
push 8
call fcn.01009a7b
pop ecx
call fcn.0100a92b
test eax, eax
jge 0x1009bf1
push 9
call fcn.01009a7b
pop ecx
call fcn.0100a441
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1009c04
push eax
call fcn.01009a7b
pop ecx
mov eax, dword [0x1012d9c]
mov dword [0x1012da0], eax
push eax
push dword [0x1012d94]
push dword [0x1012d90]
call fcn.01006780
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], 0
jne 0x1009c34
push esi
call fcn.0100a521
call fcn.0100a559
jmp 0x1009c66
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.01009fa3
ret
Function at 0x100a588
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1012070]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1012098]
je 0x100a5b2
inc eax
cmp eax, 0x12
jb 0x100a5a3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1012098]
mov dword [ebp - 0x110], esi
jne 0x100a75d
mov eax, dword [0x1012d64]
cmp eax, 1
je 0x100a72b
test eax, eax
jne 0x100a5e8
cmp dword [0x1012078], 1
je 0x100a72b
cmp ecx, 0xfc
je 0x100a75d
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 0x100a623
push 5
pop ecx
mov esi, 0x1001dfc
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 0x100a62e
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100a666
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a646
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001df8
push ebx
call fcn.0100cb50
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a66b
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x101209c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100a685
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0100af90
mov edx, esp
push 6
pop ecx
mov esi, 0x1001ddc
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 0x100a6b1
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100a6bd
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 0x100a6d6
mov eax, dword [ebp - 0x110]
mov esi, 0x1001dd8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x101209c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a6f4
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100a700
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001db0
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100ca44
add esp, 0xc
jmp 0x100a75d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100a75d
mov esi, dword [esi + 0x101209c]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x100a742
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.01009963
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100ac2e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1012ed0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x100ac7a
call esi
mov edi, eax
cmp edi, ebx
je 0x100ac60
mov dword [0x1012ed0], 1
jmp 0x100ac7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100ac75
push 2
pop eax
mov dword [0x1012ed0], eax
jmp 0x100ac7a
mov eax, dword [0x1012ed0]
cmp eax, 1
jne 0x100acf7
cmp edi, ebx
jne 0x100ac8b
call esi
mov edi, eax
cmp edi, ebx
je 0x100ad00
cmp word [edi], bx
mov eax, edi
je 0x100aca0
inc eax
inc eax
cmp word [eax], bx
jne 0x100ac92
inc eax
inc eax
cmp word [eax], bx
jne 0x100ac92
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100acee
push eax
call fcn.0100b29e
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x100acee
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x100aceb
push dword [ebp - 4]
call fcn.0100b1b5
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x100ad4f
cmp eax, 2
je 0x100ad04
cmp eax, ebx
je 0x100ad04
xor eax, eax
jmp 0x100ad51
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100ad00
cmp byte [esi], bl
je 0x100ad21
inc eax
cmp byte [eax], bl
jne 0x100ad17
inc eax
cmp byte [eax], bl
jne 0x100ad17
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0100b29e
cmp eax, ebx
pop ecx
je 0x100ad48
mov ecx, edi
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 esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100b2ba
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.0100af90
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100b320
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1012d7c]
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 0x100b324
xor eax, eax
jmp 0x100b331
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 0x100b6b6
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 0x100b6e7
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 0x100b6ee
cmp ebx, dword [ebp + 8]
jae 0x100b6ee
xor eax, eax
jmp 0x100b8de
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100b6ff
xor eax, eax
inc eax
jmp 0x100b8dd
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100b715
cmp ecx, edx
jae 0x100b85a
cmp dword [eax + 4], 0
je 0x100b71e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100b706
cmp dword [ebp + 8], 0
je 0x100b740
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100b85a
cmp eax, esi
jae 0x100b85a
mov eax, dword [0x1012ef8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100b765
cmp dword [esi*4 + 0x1012f00], edi
je 0x100b85e
inc esi
cmp esi, eax
jl 0x100b753
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100b8da
cmp dword [ebp - 8], 0x1000000
jne 0x100b8da
test byte [ebp - 0xc], 0xcc
je 0x100b7e3
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100b8da
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100b8da
cmp word [eax + 0x18], 0x10b
jne 0x100b8da
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100b8da
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100b7e3
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100b7e3
test byte [ecx + 0x27], 0x80
jne 0x100b85a
push 1
push 0x1012f40
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x100b6f7
mov ecx, dword [0x1012ef8]
test ecx, ecx
mov edx, ecx
jle 0x100b817
lea eax, [ecx*4 + 0x1012efc]
cmp dword [eax], edi
je 0x100b817
dec edx
sub eax, 4
test edx, edx
jg 0x100b80b
test edx, edx
jne 0x100b848
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100b824
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x100b83c
lea eax, [edx*4 + 0x1012f00]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100b82a
cmp ecx, 0x10
jge 0x100b848
inc ecx
mov dword [0x1012ef8], ecx
push 0
push 0x1012f40
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x100b6f7
xor eax, eax
jmp 0x100b8dd
test esi, esi
jle 0x100b6f7
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1012f40
call ebx
test eax, eax
jne 0x100b6f7
cmp dword [esi*4 + 0x1012f00], edi
je 0x100b8b4
mov eax, dword [0x1012ef8]
lea esi, [eax - 1]
test esi, esi
jl 0x100b8a2
cmp dword [esi*4 + 0x1012f00], edi
je 0x100b89e
dec esi
jns 0x100b892
test esi, esi
jge 0x100b8b2
cmp eax, 0x10
jge 0x100b8ad
inc eax
mov dword [0x1012ef8], eax
lea esi, [eax - 1]
jmp 0x100b8b4
je 0x100b8cc
xor ecx, ecx
test esi, esi
jl 0x100b8cc
lea eax, [ecx*4 + 0x1012f00]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100b8ba
push 0
push 0x1012f40
call ebx
jmp 0x100b6f7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100ca44
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 [0x1012f70], ebx
push esi
push edi
jne 0x100cac6
push 0x10022b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100cb01
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10022a4
push edi
call esi
test eax, eax
mov dword [0x1012f70], eax
je 0x100cb01
push 0x1002294
push edi
call esi
push 0x1002280
push edi
mov dword [0x1012f74], eax
call esi
cmp dword [0x1012d7c], 2
mov dword [0x1012f78], eax
jne 0x100cac6
push 0x1002264
push edi
call esi
test eax, eax
mov dword [0x1012f80], eax
je 0x100cac6
push 0x100224c
push edi
call esi
mov dword [0x1012f7c], eax
mov eax, dword [0x1012f7c]
test eax, eax
je 0x100cb0b
call eax
test eax, eax
je 0x100caf2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1012f80]
test eax, eax
je 0x100caf2
test byte [ebp - 8], 1
jne 0x100cb0b
cmp dword [0x1012d88], 4
jb 0x100cb05
or byte [ebp + 0x12], 0x20
jmp 0x100cb2a
xor eax, eax
jmp 0x100cb3a
or byte [ebp + 0x12], 4
jmp 0x100cb2a
mov eax, dword [0x1012f74]
test eax, eax
je 0x100cb2a
call eax
mov ebx, eax
test ebx, ebx
je 0x100cb2a
mov eax, dword [0x1012f78]
test eax, eax
je 0x100cb2a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1012f70]
pop edi
pop esi
pop ebx
leave
ret