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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 2
mov edi, 0x1001198
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1002879
inc eax
pop edi
pop esi
ret 4
mov esi, dword [esp + 0xc]
mov edi, 0x1001154
push 2
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1002874
push 0x2723
push 1
call fcn.01008a7a
pop ecx
pop ecx
push 1
call fcn.01004061
int3

Function at 0x1002922
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 8
mov edi, 0x10011a0
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1002940
xor eax, eax
inc eax
pop edi
pop esi
ret 4
mov edi, 0x10011a8
mov esi, eax
push 9
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1002954
push 2
jmp 0x1002966
push 9
mov edi, 0x10011b4
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1002969
push 3
pop eax
jmp 0x100293b
push eax
push 0x2724
push 1
call fcn.01008a7a
add esp, 0xc
push 1
call fcn.01004061
int3

Function at 0x10029b8
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 7
mov edi, 0x10011c0
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x10029d6
xor eax, eax
inc eax
pop edi
pop esi
ret 4
mov edi, 0x10011c8
mov esi, eax
push 8
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x10029ea
push 2
jmp 0x1002a10
push 6
mov edi, 0x10011d0
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x10029fe
push 4
jmp 0x1002a10
push 0xa
mov edi, 0x10011d8
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1002a13
push 8
pop eax
jmp 0x10029d1
push eax
push 0x2725
push 1
call fcn.01008a7a
add esp, 0xc
push 1
call fcn.01004061
int3

Function at 0x1002a6b
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 5
mov edi, 0x10011e4
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1002a88
xor eax, eax
pop edi
pop esi
ret 4
mov edi, 0x10011ec
mov esi, eax
push 9
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1002a9d
xor eax, eax
inc eax
jmp 0x1002a83
push 0xc
mov edi, 0x10011f8
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1002ab1
push 2
jmp 0x1002ad7
push 0xa
mov edi, 0x1001204
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1002ac5
push 3
jmp 0x1002ad7
push 0xd
mov edi, 0x1001210
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1002ada
push 4
pop eax
jmp 0x1002a83
push eax
push 0x2726
push 1
call fcn.01008a7a
add esp, 0xc
push 1
call fcn.01004061
int3
Function at 0x10030cf
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x1b0
push 0x101
push dword [ebp + 0x7c]
lea eax, [ebp - 0x13c]
push eax
call fcn.01004500
add esp, 0xc
cmp byte [ebp - 0x3c], 0
je 0x1003107
push 0x2727
push 1
call fcn.01008a7a
pop ecx
pop ecx
jmp 0x100314f
push esi
push edi
lea edi, [ebp - 0x13c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1003110
mov esi, 0x100140c
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x13c]
push 0x1001408
push eax
movsb byte es:[edi], byte [esi]
call fcn.010044ac
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 0x7c], eax
jne 0x1003156
lea eax, [ebp - 0x13c]
push eax
push 0x2728
push 1
call fcn.01008a7a
add esp, 0xc
push 1
call fcn.01004061
lea eax, [ebp - 0x34]
push eax
push 0
push 0
call fcn.01001dbb
mov esi, eax
test esi, esi
mov edi, 0x2729
je 0x100318f
cmp esi, 0x491
je 0x100318b
push 1
push esi
call fcn.01001d30
push eax
push esi
push edi
push 1
call fcn.01008a7a
add esp, 0x10
xor esi, esi
jmp 0x1003192
mov esi, dword [ebp - 0x2c]
push 0x10013f0
push dword [ebp + 0x7c]
call fcn.010044bf
pop ecx
pop ecx
push dword [ebp + 0x7c]
call fcn.01002d32
jmp 0x10031cc
lea eax, [ebp - 0x34]
push eax
push esi
push 0
call fcn.01001dbb
mov esi, eax
test esi, esi
jne 0x10031d2
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x7c]
call fcn.01002b5e
mov esi, dword [ebp - 0x28]
test esi, esi
jne 0x10031ab
jmp 0x10031e7
push 1
push esi
call fcn.01001d30
push eax
push esi
push edi
push 1
call fcn.01008a7a
add esp, 0x10
push dword [ebp + 0x7c]
call fcn.01002e5b
push dword [ebp + 0x7c]
call fcn.01004334
lea eax, [ebp - 0x13c]
push eax
push 0x272a
push 1
call fcn.01008a7a
add esp, 0x10
pop edi
pop esi
add ebp, 0x74
leave
ret 4
Function at 0x1003216
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push 0x101
push dword [ebp + 8]
lea eax, [ebp - 0x15c]
push eax
call fcn.01004500
add esp, 0xc
cmp byte [ebp - 0x5c], 0
je 0x100324c
push 0x272b
push 1
call fcn.01008a7a
pop ecx
pop ecx
jmp 0x1003294
push ebx
push esi
push edi
lea edi, [ebp - 0x15c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1003256
mov esi, 0x1001414
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x15c]
push 0x1001408
push eax
movsb byte es:[edi], byte [esi]
call fcn.010044ac
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x100329b
lea eax, [ebp - 0x15c]
push eax
push 0x272c
push 1
call fcn.01008a7a
add esp, 0xc
push 1
call fcn.01004061
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.01001e84
mov esi, eax
test esi, esi
mov edi, 0x272d
je 0x10032d2
cmp esi, 0x491
je 0x10032ce
push 1
push esi
call fcn.01001d30
push eax
push esi
push edi
push 1
call fcn.01008a7a
add esp, 0x10
xor esi, esi
jmp 0x10032d5
mov esi, dword [ebp - 0x50]
push ebx
call fcn.01002fb4
jmp 0x10032fa
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.01001e84
mov esi, eax
test esi, esi
jne 0x1003300
lea eax, [ebp - 0x54]
push eax
push ebx
call fcn.01002e9f
mov esi, dword [ebp - 0x4c]
test esi, esi
jne 0x10032dd
jmp 0x1003315
push 1
push esi
call fcn.01001d30
push eax
push esi
push edi
push 1
call fcn.01008a7a
add esp, 0x10
push ebx
call fcn.010030a2
push ebx
call fcn.01004334
lea eax, [ebp - 0x15c]
push eax
push 0x272e
push 1
call fcn.01008a7a
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100333e
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xa8
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
push edi
lea eax, [ebp - 0x34]
push eax
push 0
push ebx
call fcn.01001dbb
mov esi, eax
sub eax, 0
je 0x10033c3
sub eax, 0x490
je 0x10033b1
dec eax
je 0x100337b
push 1
push esi
call fcn.01001d30
push eax
push esi
jmp 0x1003433
xor esi, esi
push 0x2730
inc esi
push esi
call fcn.01008a7a
test ebx, ebx
pop ecx
pop ecx
je 0x100339e
push ebx
push 0x2731
push esi
call fcn.01008a7a
add esp, 0xc
push 0x2732
push esi
call fcn.01008a7a
pop ecx
pop ecx
push esi
jmp 0x1003444
push ebx
push 0x272f
push 1
call fcn.01008a7a
add esp, 0xc
jmp 0x1003442
test ebx, ebx
mov edi, dword [ebp - 0x2c]
jne 0x10033da
push 0x2733
push 1
call fcn.01008a7a
pop ecx
pop ecx
jmp 0x10033ea
push ebx
push 0x2734
push 1
call fcn.01008a7a
add esp, 0xc
mov esi, 0x100a030
push esi
call fcn.01002d32
jmp 0x1003415
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
call fcn.01001dbb
mov edi, eax
test edi, edi
jne 0x1003429
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.01002b5e
mov edi, dword [ebp - 0x28]
test edi, edi
jne 0x10033f7
push esi
call fcn.01002e5b
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
push 1
push edi
call fcn.01001d30
push eax
push edi
push 0x2729
push 1
call fcn.01008a7a
add esp, 0x10
push 1
call fcn.01004061
int3
Function at 0x100344a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.01001e84
mov esi, eax
test esi, esi
je 0x1003487
cmp esi, 0x491
je 0x1003477
push 1
push esi
call fcn.01001d30
push eax
push esi
jmp 0x10034da
push 0x2735
push 1
call fcn.01008a7a
pop ecx
pop ecx
jmp 0x10034e9
mov edi, dword [ebp - 0x50]
push 0x2736
push 1
call fcn.01008a7a
pop ecx
pop ecx
mov esi, 0x100a030
push esi
call fcn.01002fb4
jmp 0x10034c2
lea eax, [ebp - 0x54]
push eax
push edi
call fcn.01001e84
mov edi, eax
test edi, edi
jne 0x10034d0
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.01002e9f
mov edi, dword [ebp - 0x4c]
test edi, edi
jne 0x10034a5
push esi
call fcn.010030a2
pop edi
pop esi
leave
ret
push 1
push edi
call fcn.01001d30
push eax
push edi
push 0x272d
push 1
call fcn.01008a7a
add esp, 0x10
push 1
call fcn.01004061
int3
Function at 0x1003b29
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
push esi
push edi
lea eax, [ebp - 0x198]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
cmp eax, edi
je 0x1003b5f
push eax
push 0x2712
push 1
call fcn.01008a7a
add esp, 0xc
jmp 0x1003d04
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push edi
push 3
push edi
push 3
push 0x40000000
mov ebx, 0x1001434
push ebx
call esi
cmp eax, 0xffffffff
mov dword [0x100b928], eax
jne 0x1003ba8
push edi
push edi
push 3
push edi
push 3
push edi
push ebx
mov dword [section..data], edi
call esi
cmp eax, 0xffffffff
mov dword [0x100b928], eax
jne 0x1003ba8
push 0x2713
jmp 0x1003cfb
cmp dword [ebp + 8], 2
jge 0x1003bb3
call fcn.01001d72
mov ebx, dword [ebp + 0xc]
push dword [ebx + 4]
call fcn.01001d9e
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 0x1003bef
cmp dword [ebp + 8], 2
jne 0x1003bdb
xor eax, eax
jmp 0x1003be4
push dword [ebx + 8]
call fcn.0100432f
pop ecx
push eax
call fcn.0100333e
jmp 0x1003d37
push 3
mov edi, 0x100142c
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003c09
call fcn.0100344a
jmp 0x1003d37
push 2
mov edi, 0x1001428
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003c39
cmp dword [ebp + 8], 3
je 0x1003c24
call fcn.01001d72
push dword [ebx + 8]
call fcn.010030cf
push dword [ebx + 8]
call fcn.01003216
jmp 0x1003d37
push 2
mov edi, 0x1001424
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003c7a
cmp dword [section..data], edx
jne 0x1003c56
call fcn.01001d88
cmp dword [ebp + 8], 3
je 0x1003c61
call fcn.01001d72
push 1
push dword [ebx + 8]
call fcn.0100387b
push 0
push dword [ebx + 8]
call fcn.0100387b
jmp 0x1003d37
mov esi, eax
push 2
mov edi, 0x1001420
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003d32
cmp dword [section..data], eax
jne 0x1003c9b
call fcn.01001d88
cmp dword [ebp + 8], 4
je 0x1003ca6
call fcn.01001d72
push dword [ebx + 0xc]
call fcn.01001d9e
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 0x1003ce8
and dword [ebp - 8], edx
push dword [ebx + 8]
call fcn.01001d9e
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 0x1003d0b
mov dword [ebp - 4], 1
jmp 0x1003d25
push eax
call fcn.010042b4
test eax, eax
pop ecx
mov dword [ebp - 8], eax
ja 0x1003cc4
push 0x2714
push 1
call fcn.01008a7a
pop ecx
pop ecx
push 1
call fcn.01004061
push 3
mov edi, 0x100142c
mov esi, ebx
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1003d20
and dword [ebp - 4], eax
jmp 0x1003d25
call fcn.01001d72
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.01001f42
jmp 0x1003d37
call fcn.01001d72
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x1003d63
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x1001448
call fcn.0100514c
mov edi, 0x94
mov eax, edi
call fcn.010051a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x100b76c], ecx
mov eax, dword [esi + 4]
mov dword [0x100b778], eax
mov edx, dword [esi + 8]
mov dword [0x100b77c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x100b770], esi
cmp ecx, 2
je 0x1003dc3
or esi, 0x8000
mov dword [0x100b770], esi
shl eax, 8
add eax, edx
mov dword [0x100b774], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1003dfc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003dfc
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1003e14
cmp eax, 0x20b
je 0x1003e01
mov dword [ebp - 0x1c], edi
jmp 0x1003e28
cmp dword [ecx + 0x84], 0xe
jbe 0x1003dfc
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1003e22
cmp dword [ecx + 0x74], 0xe
jbe 0x1003dfc
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.010050f8
pop ecx
test eax, eax
jne 0x1003e54
cmp dword [0x100b75c], 2
je 0x1003e41
call fcn.01004975
push 0x1c
call fcn.010047ac
push 0xff
call fcn.01003f22
pop ecx
pop ecx
mov dword [ebp - 4], edi
call fcn.01004f33
test eax, eax
jge 0x1003e68
push 0x1b
call fcn.01003d3e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100ccd8], eax
call fcn.01004e0d
mov dword [0x100b754], eax
call fcn.01004d6b
test eax, eax
jge 0x1003e8e
push 8
call fcn.01003d3e
pop ecx
call fcn.01004b1f
test eax, eax
jge 0x1003e9f
push 9
call fcn.01003d3e
pop ecx
call fcn.01003f52
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x1003eb2
push eax
call fcn.01003d3e
pop ecx
mov eax, dword [0x100b78c]
mov dword [0x100b790], eax
push eax
push dword [0x100b784]
push dword [0x100b780]
call fcn.01003b29
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x1c], edi
jne 0x1003ee1
push esi
call fcn.01004061
call fcn.01004083
jmp 0x1003f13
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.01005185
ret
Function at 0x10047ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x100a290]
je 0x10047cc
inc eax
cmp eax, 0x12
jb 0x10047bd
shl eax, 3
cmp edx, dword [eax + 0x100a290]
mov dword [ebp + 8], eax
jne 0x100496a
mov ecx, dword [0x100b75c]
cmp ecx, 1
je 0x100493f
test ecx, ecx
jne 0x10047fe
cmp dword [0x100a008], 1
je 0x100493f
cmp edx, 0xfc
je 0x100496a
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004839
push 5
pop ecx
mov esi, 0x10017b8
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004848
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1004880
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004860
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10017b4
push ebx
call fcn.01004500
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004885
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100a294]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100489c
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.010051a0
mov edx, esp
push 6
pop ecx
mov esi, 0x1001798
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 0x10048c8
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10048d4
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 0x10048ed
mov eax, dword [ebp + 8]
mov esi, 0x1001358
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100a294]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004908
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1004914
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001770
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100673c
add esp, 0xc
jmp 0x100496a
mov ecx, dword [eax + 0x100a294]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100494a
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005a06
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 [0x100bb88]
push edi
jae 0x1005bcd
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x100bba0]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x1005bcd
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x1005aac
test dl, 2
jne 0x1005aac
test dl, 0x48
je 0x1005a76
mov al, byte [eax + 5]
cmp al, 0xa
je 0x1005a76
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 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 [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005abf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x1005aa7
mov dword [0x100b764], ecx
jmp 0x1005bd4
cmp eax, 0x6d
jne 0x1005ab3
xor eax, eax
jmp 0x1005be1
push eax
call fcn.01007a39
pop ecx
jmp 0x1005bde
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x1005bc8
test edx, edx
je 0x1005ae2
cmp byte [edi], 0xa
jne 0x1005ae2
or al, 4
jmp 0x1005ae4
and al, 0xfb
mov byte [ecx], al
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 0x1005bc2
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x1005bb2
cmp al, 0xd
je 0x1005b18
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x1005ba4
dec ecx
cmp dword [ebp - 8], ecx
jae 0x1005b32
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x1005b2d
add dword [ebp - 8], 2
jmp 0x1005b86
mov dword [ebp - 8], eax
jmp 0x1005ba0
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005b5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1005ba0
cmp dword [ebp - 0x10], 0
je 0x1005ba0
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x1005b7b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1005b86
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x1005ba3
cmp edi, dword [ebp + 0xc]
jne 0x1005b8b
cmp byte [ebp - 1], 0xa
jne 0x1005b8b
mov byte [edi], 0xa
jmp 0x1005ba3
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01007e9b
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1005ba4
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x1005afc
jmp 0x1005bc2
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x1005bc2
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x1005be1
and dword [0x100b764], 0
mov dword [0x100b760], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100673c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100b8f8], ebx
push esi
push edi
jne 0x10067bc
push 0x1001ce8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10067f7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001cdc
push edi
call esi
test eax, eax
mov dword [0x100b8f8], eax
je 0x10067f7
push 0x1001ccc
push edi
call esi
push 0x1001cb8
push edi
mov dword [0x100b8fc], eax
call esi
cmp dword [0x100b76c], 2
mov dword [0x100b900], eax
jne 0x10067bc
push 0x1001c9c
push edi
call esi
test eax, eax
mov dword [0x100b908], eax
je 0x10067bc
push 0x1001c84
push edi
call esi
mov dword [0x100b904], eax
mov eax, dword [0x100b904]
test eax, eax
je 0x1006801
call eax
test eax, eax
je 0x10067e8
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100b908]
test eax, eax
je 0x10067e8
test byte [ebp - 8], 1
jne 0x1006801
cmp dword [0x100b778], 4
jb 0x10067fb
or byte [ebp + 0x12], 0x20
jmp 0x1006820
xor eax, eax
jmp 0x1006830
or byte [ebp + 0x12], 4
jmp 0x1006820
mov eax, dword [0x100b8fc]
test eax, eax
je 0x1006820
call eax
mov ebx, eax
test ebx, ebx
je 0x1006820
mov eax, dword [0x100b900]
test eax, eax
je 0x1006820
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100b8f8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10077a6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.010051a0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100783b
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x100b76c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x100783b
cmp eax, 1
je 0x1007853
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100783b
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x1007810
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1007837
xor eax, eax
inc eax
jmp 0x100786f
cmp esi, ebx
jae 0x100783f
xor eax, eax
jmp 0x100786f
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100b76c]
jmp 0x1007855
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret