joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003422
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x100a034]
push 0x101
push dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x160]
push eax
call fcn.010048e0
add esp, 0xc
cmp byte [ebp - 0x60], 0
je 0x1003460
push 0x272b
push 1
call fcn.0100916c
pop ecx
pop ecx
jmp 0x10034a8
push ebx
push esi
push edi
lea edi, [ebp - 0x160]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100346a
mov esi, 0x1001414
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x160]
push 0x1001408
push eax
movsb byte es:[edi], byte [esi]
call fcn.0100488e
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x10034af
lea eax, [ebp - 0x160]
push eax
push 0x272c
push 1
call fcn.0100916c
add esp, 0xc
push 1
call fcn.01004444
lea eax, [ebp - 0x58]
push eax
push 0
call fcn.01002014
mov esi, eax
test esi, esi
mov edi, 0x272d
je 0x10034e6
cmp esi, 0x491
je 0x10034e2
push 1
push esi
call fcn.01001ec0
push eax
push esi
push edi
push 1
call fcn.0100916c
add esp, 0x10
xor esi, esi
jmp 0x10034e9
mov esi, dword [ebp - 0x54]
push ebx
call fcn.0100319e
jmp 0x100350e
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.01002014
mov esi, eax
test esi, esi
jne 0x1003514
lea eax, [ebp - 0x58]
push eax
push ebx
call fcn.01003089
mov esi, dword [ebp - 0x50]
test esi, esi
jne 0x10034f1
jmp 0x1003529
push 1
push esi
call fcn.01001ec0
push eax
push esi
push edi
push 1
call fcn.0100916c
add esp, 0x10
push ebx
call fcn.0100328c
push ebx
call fcn.01004716
lea eax, [ebp - 0x160]
push eax
push 0x272e
push 1
call fcn.0100916c
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
pop ebx
call fcn.01004049
leave
ret 4

Function at 0x100355a
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xac
mov eax, dword [0x100a034]
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
push edi
mov dword [ebp + 0x70], eax
lea eax, [ebp - 0x38]
push eax
push 0
push ebx
call fcn.01001f4b
mov esi, eax
sub eax, 0
je 0x10035ea
sub eax, 0x490
je 0x10035d5
dec eax
je 0x100359f
push 1
push esi
call fcn.01001ec0
push eax
push esi
jmp 0x1003662
xor esi, esi
push 0x2730
inc esi
push esi
call fcn.0100916c
test ebx, ebx
pop ecx
pop ecx
je 0x10035c2
push ebx
push 0x2731
push esi
call fcn.0100916c
add esp, 0xc
push 0x2732
push esi
call fcn.0100916c
pop ecx
pop ecx
push esi
jmp 0x1003673
push ebx
push 0x272f
push 1
call fcn.0100916c
add esp, 0xc
jmp 0x1003671
test ebx, ebx
mov edi, dword [ebp - 0x30]
jne 0x1003601
push 0x2733
push 1
call fcn.0100916c
pop ecx
pop ecx
jmp 0x1003611
push ebx
push 0x2734
push 1
call fcn.0100916c
add esp, 0xc
mov esi, 0x100a060
push esi
call fcn.01002f1c
jmp 0x100363c
lea eax, [ebp - 0x38]
push eax
push edi
push ebx
call fcn.01001f4b
mov edi, eax
test edi, edi
jne 0x1003658
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.01002d48
mov edi, dword [ebp - 0x2c]
test edi, edi
jne 0x100361e
push esi
call fcn.01003045
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
pop ebx
call fcn.01004049
add ebp, 0x74
leave
ret 4
push 1
push edi
call fcn.01001ec0
push eax
push edi
push 0x2729
push 1
call fcn.0100916c
add esp, 0x10
push 1
call fcn.01004444
int3
Function at 0x1003679
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x100a034]
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x58]
push eax
push 0
call fcn.01002014
mov esi, eax
test esi, esi
je 0x10036be
cmp esi, 0x491
je 0x10036ae
push 1
push esi
call fcn.01001ec0
push eax
push esi
jmp 0x1003719
push 0x2735
push 1
call fcn.0100916c
pop ecx
pop ecx
jmp 0x1003728
mov edi, dword [ebp - 0x54]
push 0x2736
push 1
call fcn.0100916c
pop ecx
pop ecx
mov esi, 0x100a060
push esi
call fcn.0100319e
jmp 0x10036f9
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.01002014
mov edi, eax
test edi, edi
jne 0x100370f
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.01003089
mov edi, dword [ebp - 0x50]
test edi, edi
jne 0x10036dc
push esi
call fcn.0100328c
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01004049
leave
ret
push 1
push edi
call fcn.01001ec0
push eax
push edi
push 0x272d
push 1
call fcn.0100916c
add esp, 0x10
push 1
call fcn.01004444
int3
Function at 0x1003dac
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push 0x2710
push 1
call fcn.0100916c
pop ecx
pop ecx
push 1
call fcn.01004444
int3
push 0x2711
push 1
call fcn.0100916c
pop ecx
pop ecx
push 1
call fcn.01004444
int3
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x100a034]
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 4], eax
call sub.KERNEL32.dll_SetThreadUILanguage
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, esi
je 0x1003df0
push eax
push 0x2712
push 1
call fcn.0100916c
add esp, 0xc
jmp 0x1003f8c
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push esi
push 3
push esi
push 3
push 0x40000000
mov ebx, 0x1001434
push ebx
call edi
cmp eax, 0xffffffff
mov dword [0x100bcac], eax
jne 0x1003e39
push esi
push esi
push 3
push esi
push 3
push esi
push ebx
mov dword [0x100a030], esi
call edi
cmp eax, 0xffffffff
mov dword [0x100bcac], eax
jne 0x1003e39
push 0x2713
jmp 0x1003f83
cmp dword [ebp + 8], 2
jl 0x1003fbe
mov ebx, dword [ebp + 0xc]
push dword [ebx + 4]
call fcn.01001f2e
mov eax, dword [ebx + 4]
push 3
mov edi, 0x1001430
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003e7f
cmp dword [ebp + 8], 2
jne 0x1003e6b
xor eax, eax
jmp 0x1003e74
push dword [ebx + 8]
call fcn.01004711
pop ecx
push eax
call fcn.0100355a
jmp 0x1003faf
push 3
mov edi, 0x100142c
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003e99
call fcn.01003679
jmp 0x1003faf
push 2
mov edi, 0x1001428
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003ec8
cmp dword [ebp + 8], 3
jne 0x1003fbe
push dword [ebx + 8]
call fcn.010032b9
push dword [ebx + 8]
call fcn.01003422
jmp 0x1003faf
push 2
mov edi, 0x1001424
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003f03
cmp dword [0x100a030], edx
je 0x1003f1f
cmp dword [ebp + 8], 3
jne 0x1003fbe
push 1
push dword [ebx + 8]
call fcn.01003aba
push 0
push dword [ebx + 8]
call fcn.01003aba
jmp 0x1003faf
mov esi, eax
push 2
mov edi, 0x1001420
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003fbe
cmp dword [0x100a030], eax
jne 0x1003f24
jmp 0x1001f18
cmp dword [ebp + 8], 4
jne 0x1003fbe
push dword [ebx + 0xc]
call fcn.01001f2e
mov eax, dword [ebx + 0xc]
push 4
mov edi, 0x100141c
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003f6d
and dword [ebp - 0x198], edx
push dword [ebx + 8]
call fcn.01001f2e
mov ebx, dword [ebx + 8]
push 3
mov edi, 0x1001430
mov esi, ebx
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003f93
inc eax
jmp 0x1003fa3
push eax
call fcn.01004696
test eax, eax
pop ecx
mov dword [ebp - 0x198], eax
ja 0x1003f4f
push 0x2714
push 1
call fcn.0100916c
pop ecx
pop ecx
push 1
call fcn.01004444
push 3
mov edi, 0x100142c
mov esi, ebx
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003fbe
push dword [ebp - 0x198]
push eax
call fcn.010020d2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.01004049
leave
ret
jmp 0x1001f02
Function at 0x1004049
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100a034]
jne 0x1004052
ret
jmp 0x1004057
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x100a034]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x100bcb0]
test eax, eax
je 0x100407b
call eax
cmp dword [0x100bcb4], 0
je 0x10040c2
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x100bcb4]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.01004049
add ebp, 0x2a8
leave
ret

Function at 0x1004168
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x18
push 0x1001470
call fcn.01005508
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10041a9
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x10041b3
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x1004300
mov eax, dword [esi + 0x10]
mov dword [0x100b78c], eax
mov eax, dword [esi + 4]
mov dword [0x100b798], eax
mov eax, dword [esi + 8]
mov dword [0x100b79c], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x100b790], eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x100b78c], 2
je 0x10041f4
or byte [0x100b791], 0x80
mov eax, dword [0x100b798]
shl eax, 8
add eax, dword [0x100b79c]
mov dword [0x100b794], eax
call fcn.0100410c
mov dword [ebp - 0x1c], eax
push ebx
call fcn.010054b7
pop ecx
test eax, eax
jne 0x100423b
cmp dword [0x100b77c], 2
je 0x1004228
call fcn.01004d1f
push 0x1c
call fcn.01004bbe
push 0xff
call fcn.01004306
pop ecx
pop ecx
mov dword [ebp - 4], ebx
call fcn.010052da
test eax, eax
jge 0x100424f
push 0x1b
call fcn.010040e7
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100d058], eax
call fcn.010051b4
mov dword [0x100b774], eax
call fcn.01005113
test eax, eax
jge 0x1004275
push 8
call fcn.010040e7
pop ecx
call fcn.01004ec9
test eax, eax
jge 0x1004286
push 9
call fcn.010040e7
pop ecx
call fcn.01004336
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x1004299
push eax
call fcn.010040e7
pop ecx
mov eax, dword [0x100b7ac]
mov dword [0x100b7b0], eax
push eax
push dword [0x100b7a4]
push dword [0x100b7a0]
call fcn.01003dac
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10042c8
push esi
call fcn.01004444
call fcn.01004466
jmp 0x10042fa
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01005543
ret
Function at 0x1004bbe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x100a2c0]
je 0x1004bd6
inc eax
cmp eax, 0x12
jb 0x1004bc7
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100a2c0]
mov dword [ebp + 8], esi
jne 0x1004d1c
mov eax, dword [0x100b77c]
cmp eax, 1
push ebx
je 0x1004cec
test eax, eax
jne 0x1004c0b
cmp dword [0x100a03c], 1
je 0x1004cec
cmp ecx, 0xfc
je 0x1004d1b
push edi
push 6
pop ecx
mov esi, 0x10017dc
mov edi, 0x100b7d8
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x100b7f2
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x100b8f6], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004c59
push 5
pop ecx
mov esi, 0x10017c4
mov edi, 0x100b7f2
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004c5e
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1004c91
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004c72
sub eax, edx
push 3
lea eax, [eax + 0x100b7b7]
push 0x10017c0
push eax
call fcn.010048e0
add esp, 0xc
mov edx, 0x100b7d8
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1004c99
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100a2c4]
mov esi, 0x1001358
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004cb4
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1004cc0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001798
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01006c00
add esp, 0xc
pop edi
jmp 0x1004d1b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1004d1b
mov esi, dword [esi + 0x100a2c4]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1004d03
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x1005e86
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x100bf08]
push edi
jae 0x100605b
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x100bf20]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x100605b
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x1005f31
test dl, 2
jne 0x1005f31
test dl, 0x48
je 0x1005efb
cmp byte [eax + 5], 0xa
je 0x1005efb
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005f44
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x1005f2c
mov dword [0x100b784], ecx
jmp 0x1006062
cmp eax, 0x6d
jne 0x1005f38
xor eax, eax
jmp 0x100606f
push eax
call fcn.010080ff
pop ecx
jmp 0x100606c
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x1006056
test eax, eax
je 0x1005f6b
cmp byte [ebx], 0xa
jne 0x1005f6b
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1005f74
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x1006050
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x1006040
cmp al, 0xd
je 0x1005fa6
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x1006032
dec ecx
cmp dword [ebp - 8], ecx
jae 0x1005fc0
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x1005fbb
add dword [ebp - 8], 2
jmp 0x1006014
mov dword [ebp - 8], eax
jmp 0x100602e
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005fe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100602e
cmp dword [ebp - 0x10], 0
je 0x100602e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1006009
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1006014
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1006031
cmp ebx, dword [ebp + 0xc]
jne 0x1006019
cmp byte [ebp - 1], 0xa
jne 0x1006019
mov byte [ebx], 0xa
jmp 0x1006031
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01008560
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1006032
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x1005f8a
jmp 0x1006050
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1006050
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x100606f
and dword [0x100b784], 0
mov dword [0x100b780], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006c00
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100bc30], ebx
push esi
push edi
jne 0x1006c80
push 0x1001e10
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1006cbb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001e04
push edi
call esi
test eax, eax
mov dword [0x100bc30], eax
je 0x1006cbb
push 0x1001df4
push edi
call esi
push 0x1001de0
push edi
mov dword [0x100bc34], eax
call esi
cmp dword [0x100b78c], 2
mov dword [0x100bc38], eax
jne 0x1006c80
push 0x1001dc4
push edi
call esi
test eax, eax
mov dword [0x100bc40], eax
je 0x1006c80
push 0x1001dac
push edi
call esi
mov dword [0x100bc3c], eax
mov eax, dword [0x100bc3c]
test eax, eax
je 0x1006cc5
call eax
test eax, eax
je 0x1006cac
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100bc40]
test eax, eax
je 0x1006cac
test byte [ebp - 8], 1
jne 0x1006cc5
cmp dword [0x100b798], 4
jb 0x1006cbf
or byte [ebp + 0x12], 0x20
jmp 0x1006ce4
xor eax, eax
jmp 0x1006cf4
or byte [ebp + 0x12], 4
jmp 0x1006ce4
mov eax, dword [0x100bc34]
test eax, eax
je 0x1006ce4
call eax
mov ebx, eax
test ebx, ebx
je 0x1006ce4
mov eax, dword [0x100bc38]
test eax, eax
je 0x1006ce4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100bc30]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10079f6
Capabilities:
Parse pe header

Disassembly:
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 0x1007a24
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x1007a2b
cmp ebx, dword [eax + 4]
jae 0x1007a2b
xor eax, eax
jmp 0x1007c1b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1007a3c
xor eax, eax
inc eax
jmp 0x1007c1a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1007a52
cmp ecx, edx
jae 0x1007b97
cmp dword [eax + 4], 0
je 0x1007a5b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1007a43
cmp dword [ebp + 8], 0
je 0x1007a7d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1007b97
cmp eax, esi
jae 0x1007b97
mov eax, dword [0x100bc48]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1007aa2
cmp dword [esi*4 + 0x100bc50], edi
je 0x1007b9b
inc esi
cmp esi, eax
jl 0x1007a90
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1007c17
cmp dword [ebp - 8], 0x1000000
jne 0x1007c17
test byte [ebp - 0xc], 0xcc
je 0x1007b20
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1007c17
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1007c17
cmp word [eax + 0x18], 0x10b
jne 0x1007c17
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1007c17
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1007b20
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1007b20
test byte [ecx + 0x27], 0x80
jne 0x1007b97
push 1
push 0x100bc90
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1007a34
mov ecx, dword [0x100bc48]
test ecx, ecx
mov edx, ecx
jle 0x1007b54
lea eax, [ecx*4 + 0x100bc4c]
cmp dword [eax], edi
je 0x1007b54
dec edx
sub eax, 4
test edx, edx
jg 0x1007b48
test edx, edx
jne 0x1007b85
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1007b61
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1007b79
lea eax, [edx*4 + 0x100bc50]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1007b67
cmp ecx, 0x10
jge 0x1007b85
inc ecx
mov dword [0x100bc48], ecx
push 0
push 0x100bc90
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1007a34
xor eax, eax
jmp 0x1007c1a
test esi, esi
jle 0x1007a34
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x100bc90
call ebx
test eax, eax
jne 0x1007a34
cmp dword [esi*4 + 0x100bc50], edi
je 0x1007bf1
mov eax, dword [0x100bc48]
lea esi, [eax - 1]
test esi, esi
jl 0x1007bdf
cmp dword [esi*4 + 0x100bc50], edi
je 0x1007bdb
dec esi
jns 0x1007bcf
test esi, esi
jge 0x1007bef
cmp eax, 0x10
jge 0x1007bea
inc eax
mov dword [0x100bc48], eax
lea esi, [eax - 1]
jmp 0x1007bf1
je 0x1007c09
xor ecx, ecx
test esi, esi
jl 0x1007c09
lea eax, [ecx*4 + 0x100bc50]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1007bf7
push 0
push 0x100bc90
call ebx
jmp 0x1007a34
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1007e1d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.01007f00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1007eb8
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x100b78c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x1007eb8
cmp eax, 1
je 0x1007ed9
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1007eb8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1007e85
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1007eb4
xor eax, eax
inc eax
jmp 0x1007ef8
cmp edi, eax
jae 0x1007ebc
xor eax, eax
jmp 0x1007ef8
cmp eax, esi
jae 0x1007ec3
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100b78c]
jmp 0x1007edc
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret