joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d98a
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x101f100]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], ecx
push 6
pop ecx
mov esi, 0x1001c4c
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, ebx
jne 0x100d9df
mov dword [ebp - 0x20], 0x80070057
jmp 0x100db1b
cmp edx, ebx
je 0x100d9d3
lea eax, [ebp - 0x24]
push eax
mov esi, 0x2000000
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100da12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005a24
mov dword [ebp - 0x20], eax
jmp 0x100db1b
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.0100c280
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x100db1b
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x3c], ebx
je 0x100da42
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x24], ebx
call fcn.0100707c
mov dword [ebp - 0x28], esi
jmp 0x100da8f
mov eax, dword [ebp - 0x24]
push ecx
push 1
push 2
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x100d9fe
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x100d9fe
mov eax, dword [ebp - 0x30]
push 8
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x28]
push 0x19
push eax
mov dword [ebp - 0x44], 0x20
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x100d9fe
mov esi, dword [ebp - 0x34]
cmp esi, ebx
je 0x100dac7
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
lea eax, [ebp - 0x2c]
jne 0x100dab9
push esi
push 0x1001b58
push eax
call fcn.0100d0e7
add esp, 0xc
jmp 0x100dac0
push eax
push esi
call fcn.0100c9c3
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x100db1b
push 0x44
lea eax, [ebp - 0x9c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x9c]
push eax
push ebx
push ebx
push dword [ebp + 0x10]
push 1
push ebx
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x100d9fe
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x58]
lea esi, [ebp - 0x58]
mov edi, eax
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 dword [eax], ecx
mov ecx, dword [ebp - 0x54]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x2c]
call fcn.01007124
lea ecx, [ebp - 0x30]
call fcn.010070b4
lea ecx, [ebp - 0x28]
call fcn.0100707c
lea ecx, [ebp - 0x24]
call fcn.0100707c
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01012505
leave
ret 0x10
Function at 0x100dd87
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
jne 0x100dda5
mov esi, 0x80070057
jmp 0x100de4b
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x100dd9b
push edi
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jne 0x100ddd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005a24
jmp 0x100de48
push edi
call fcn.010057a5
lea ecx, [ebp - 4]
mov esi, eax
call fcn.01007204
cmp esi, ebx
jne 0x100ddf0
mov dword [ebp - 4], ebx
mov esi, 0x8007000e
jmp 0x100de4a
push esi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100ddc4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x100156c
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100ddc4
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x1001c64
push dword [ebp + 0xc]
call fcn.0100d17d
add esp, 0x18
mov esi, eax
pop edi
lea ecx, [ebp - 4]
call fcn.01007204
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x100de60
Capabilities:
Get common file path

Disassembly:
push 0x420
mov eax, 0x101c5c5
call fcn.01012598
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x424], ebx
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], ebx
call fcn.010070d0
mov esi, 0x208
push esi
lea eax, [ebp - 0x420]
push ebx
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov esi, 0x104
push esi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x428], eax
cmp eax, ebx
jne 0x100dee0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005a24
jmp 0x100dfbf
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x422]
lea eax, [ebp - 0x420]
jne 0x100defa
push 0x1001cf8
jmp 0x100deff
push 0x1001cdc
push esi
push eax
call fcn.0100648b
mov edi, eax
cmp edi, ebx
jl 0x100dfc1
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x424]
mov edi, eax
call fcn.010070d0
cmp edi, ebx
jne 0x100df36
mov dword [ebp - 0x424], ebx
jmp 0x100decf
push 0x1001cc4
push edi
mov dword [ebp - 0x424], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x100decf
lea ecx, [ebp - 0x428]
push ecx
push esi
lea ecx, [ebp - 0x218]
push ecx
call eax
mov edi, eax
cmp edi, ebx
jl 0x100dfc1
mov eax, dword [ebp - 0x428]
xor ecx, ecx
cmp cx, word [ebp + eax*2 - 0x21a]
jne 0x100df7c
dec eax
mov dword [ebp - 0x428], eax
cmp eax, 1
jb 0x100dfad
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x21a]
lea eax, [ebp - 0x218]
jne 0x100df9b
push 0x1001cac
jmp 0x100dfa0
push 0x1001c94
push esi
push eax
call fcn.0100648b
mov edi, eax
cmp edi, ebx
jl 0x100dfc1
push dword [ebp - 0x42c]
lea eax, [ebp - 0x218]
push eax
call fcn.0100dd87
mov edi, eax
lea ecx, [ebp - 0x424]
call fcn.010070d0
mov eax, edi
call fcn.0101262a
ret 4
Function at 0x100e21e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0x260
mov eax, 0x101c613
call fcn.01012598
mov ebx, dword [ebp + 8]
or dword [ebp - 0x264], 0xffffffff
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
push 0x1001d30
push ebx
mov esi, 0x10016bc
lea eax, [ebp - 0x26c]
push esi
push eax
mov byte [ebp - 4], 2
call fcn.0100d0e7
mov edi, eax
add esp, 0x10
test edi, edi
jl 0x100e3a5
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
lea ecx, [ebp - 0x264]
call fcn.010061a1
cmp dword [ebp - 0x264], 0xffffffff
je 0x100e390
lea ecx, [ebp - 0x268]
call fcn.01007124
lea eax, [ebp - 0x234]
push eax
push ebx
lea eax, [ebp - 0x268]
push esi
push eax
call fcn.0100d0e7
mov edi, eax
add esp, 0x10
test edi, edi
jl 0x100e3a5
cmp word [ebp - 0x234], 0x2e
jne 0x100e2f3
cmp word [ebp - 0x232], 0
je 0x100e33c
cmp word [ebp - 0x232], 0x2e
jne 0x100e2f3
cmp word [ebp - 0x230], 0
je 0x100e33c
mov eax, dword [ebp - 0x260]
test al, 0x10
je 0x100e314
push dword [ebp - 0x268]
call fcn.0100e21e
mov edi, eax
test edi, edi
jl 0x100e3a5
jmp 0x100e33c
test al, 7
je 0x100e32c
and eax, 0xfffffff8
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x100e382
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100e382
push dword [ebp - 0x264]
call fcn.01005a4c
movzx eax, al
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x264]
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100e29e
lea ecx, [ebp - 0x264]
call fcn.0100617d
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x100e3a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005a24
jmp 0x100e3a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005a24
cmp eax, 0x80070003
je 0x100e3a5
mov edi, eax
lea ecx, [ebp - 0x268]
call fcn.01007124
lea ecx, [ebp - 0x26c]
call fcn.01007124
lea ecx, [ebp - 0x264]
call fcn.0100617d
mov eax, edi
call fcn.0101262a
ret 4
Function at 0x100f7d0
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ecx
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
call fcn.01007204
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
cmp dword [ebp + 8], ebx
jne 0x100f811
mov edi, 0x80070057
jmp 0x100f985
cmp dword [ebp + 0x10], ebx
je 0x100f807
cmp dword [ebp + 0x14], ebx
jle 0x100f807
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.01006766
cmp esi, ebx
jne 0x100f844
mov dword [ebp - 0x10], ebx
mov edi, 0x80070057
jmp 0x100f984
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x10], esi
jle 0x100f83a
xor eax, eax
cmp dword [ebp + 0xc], ebx
setne al
cmp eax, dword [ebp - 8]
mov dword [ebp + 8], eax
jge 0x100f94d
lea ebx, [esi + eax*4]
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x100f898
mov edi, dword [ebx]
push edi
call fcn.01005c03
test eax, eax
je 0x100f886
mov eax, dword [ebp + 0x10]
push dword [eax + esi*8]
push edi
call fcn.01006708
test eax, eax
jne 0x100f88e
inc esi
cmp esi, dword [ebp + 0x14]
jl 0x100f86a
jmp 0x100f898
mov eax, dword [ebp + 0x10]
lea esi, [eax + esi*8]
test esi, esi
jne 0x100f8bf
mov esi, dword [ebx]
push esi
call fcn.01005c03
test eax, eax
push esi
lea eax, [ebp - 0x2c]
je 0x100f8af
push 0x1001e90
jmp 0x100f8b4
push 0x1001e84
push eax
call fcn.0100a7d2
add esp, 0xc
jmp 0x100f939
push dword [esi]
lea eax, [ebp - 0x20]
push eax
call fcn.0100893c
cmp eax, 0xffffffff
jne 0x100f97d
lea ecx, [ebp - 4]
call fcn.0100cfd3
lea eax, [ebp - 4]
push eax
call fcn.0100a3d7
mov edi, eax
test edi, edi
jl 0x100f982
cmp dword [esi + 4], 0
je 0x100f900
push dword [esi]
mov ecx, dword [ebp - 4]
call fcn.0100e69e
jmp 0x100f91a
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add ebx, 4
cmp eax, dword [ebp - 8]
jge 0x100f97d
push dword [ebx]
mov ecx, dword [ebp - 4]
push dword [esi]
call fcn.0100e6f6
mov edi, eax
test edi, edi
jl 0x100f982
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.0100d102
mov edi, eax
test edi, edi
jl 0x100f982
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add ebx, 4
cmp eax, dword [ebp - 8]
jl 0x100f863
xor ebx, ebx
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.0100c9c3
mov edi, eax
cmp edi, ebx
jl 0x100f984
mov esi, dword [ebp - 0x14]
push esi
lea ecx, [ebp - 0x20]
call fcn.0100a80d
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [esi + 0xc]
mov dword [ebp - 0xc], ebx
call fcn.01008ab0
jmp 0x100f984
mov edi, 0x80070057
xor ebx, ebx
pop esi
push ebx
lea ecx, [ebp - 0x20]
call fcn.0100a91e
lea ecx, [ebp - 0x18]
call fcn.01007204
lea ecx, [ebp - 0xc]
call fcn.01007124
lea ecx, [ebp - 0x2c]
call fcn.01007204
lea ecx, [ebp - 4]
call fcn.0100cfd3
lea ecx, [ebp - 0x10]
call fcn.01006766
mov eax, edi
pop edi
pop ebx
leave
ret 0x10
Function at 0x10109d2
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov ebx, 0x8000
lea ecx, [ebp - 4]
call fcn.01007124
lea eax, [ebp - 0xc]
push eax
push 0x100
push esi
call fcn.01005e87
mov edi, eax
test edi, edi
jl 0x1010ad6
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push esi
push 0
call fcn.0100a601
mov edi, eax
test edi, edi
jl 0x1010ad6
push dword [ebp + 8]
push esi
push dword [ebp - 4]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea ecx, [esi - 2]
cmp eax, ecx
jne 0x1010a4c
cmp esi, ebx
jb 0x10109f6
jmp 0x1010a50
cmp esi, ebx
jb 0x1010a57
mov edi, 0x800700df
jmp 0x1010ad6
test eax, eax
ja 0x1010a62
mov edi, 0x80070002
jmp 0x1010ad6
mov esi, dword [ebp - 4]
lea ebx, [esi + eax*2]
cmp ebx, esi
ja 0x1010a73
mov edi, 0x80070216
jmp 0x1010ad6
test esi, esi
je 0x1010acb
cmp word [esi], 0
je 0x1010acb
cmp esi, ebx
jae 0x1010acb
lea eax, [ebp - 8]
push eax
push esi
call fcn.0100c9c3
mov edi, eax
test edi, edi
jl 0x1010ad6
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0100f6fc
mov edi, eax
test edi, edi
jl 0x1010ad6
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1010aab
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2 + 2]
cmp esi, eax
jae 0x1010a6c
cmp eax, ebx
ja 0x1010a6c
mov esi, eax
test eax, eax
jne 0x1010a77
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.0100a80d
lea ecx, [ebp - 4]
call fcn.01007124
lea ecx, [ebp - 8]
call fcn.01007124
push 0
lea ecx, [ebp - 0x18]
call fcn.0100e3d5
lea ecx, [ebp - 0x10]
call fcn.01007204
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1010b06
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
jne 0x1010b30
mov edi, 0x80070057
jmp 0x1010c47
cmp dword [ebp + 0xc], esi
je 0x1010b26
cmp dword [ebp + 0x10], esi
je 0x1010b26
push ebx
mov dword [ebp - 0xc], esi
mov ebx, 0x8000
lea ecx, [ebp - 4]
call fcn.01007124
lea eax, [ebp - 0xc]
push eax
push 0x100
push esi
call fcn.01005e87
mov edi, eax
test edi, edi
jl 0x1010c46
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push esi
push 0
call fcn.0100a601
mov edi, eax
test edi, edi
jl 0x1010c46
push dword [ebp + 8]
push esi
push dword [ebp - 4]
push dword [ebp + 0xc]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [esi - 2]
cmp eax, ecx
jne 0x1010b9c
cmp esi, ebx
jb 0x1010b43
jmp 0x1010ba0
cmp esi, ebx
jb 0x1010baa
mov edi, 0x800700df
jmp 0x1010c46
test eax, eax
ja 0x1010bb8
mov edi, 0x80070002
jmp 0x1010c46
mov esi, dword [ebp - 4]
lea ebx, [esi + eax*2]
cmp ebx, esi
ja 0x1010c37
mov edi, 0x80070216
jmp 0x1010c46
cmp word [esi], 0
je 0x1010c3b
cmp esi, ebx
jae 0x1010c3b
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push 0x7fffffff
push esi
call fcn.010065ee
mov edi, eax
test edi, edi
jl 0x1010c46
push 0x3d
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x1010c30
lea ecx, [ebx - 2]
cmp eax, ecx
jae 0x1010c30
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 8]
push eax
push esi
call fcn.0100c9c3
mov edi, eax
test edi, edi
jl 0x1010c46
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0100f6fc
mov edi, eax
test edi, edi
jl 0x1010c46
and dword [ebp - 8], 0
mov eax, dword [ebp + 8]
lea esi, [esi + eax*2 + 2]
test esi, esi
jne 0x1010bc9
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.0100a80d
pop ebx
lea ecx, [ebp - 8]
call fcn.01007124
lea ecx, [ebp - 4]
call fcn.01007124
push 0
lea ecx, [ebp - 0x18]
call fcn.0100e3d5
lea ecx, [ebp - 0x10]
call fcn.01007204
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0x1010ff5
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push 9
mov ebx, ecx
xor eax, eax
cmp dword [ebp + 8], eax
pop ecx
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
je 0x101101d
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
jmp 0x1011023
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp + 8], 0
movzx esi, word [ebp - 0x14]
mov dword [ebp - 4], esi
je 0x1011053
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0
stosd dword es:[edi], eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x3f
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x1011062
movzx eax, word [ebp - 0xe]
mov dword [ebp - 4], eax
cmp word [ebp - 0x34], 9
jne 0x101107b
push esi
push 0x1001f6c
jmp 0x1011088
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jge 0x1011053
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01005a24
jmp 0x10110a2
cmp word [ebp - 0x34], 6
jne 0x1011093
push esi
push 0x1001f5c
mov ecx, ebx
call fcn.01010fa1
test eax, eax
jl 0x10110a2
push dword [ebp - 4]
mov ecx, ebx
push 0x1001f50
call fcn.01010fa1
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1011d0e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x101f100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01011ca3
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1011d81
cmp dword [ebp - 0x94], 5
jb 0x1011da2
jmp 0x1011d9e
cmp dword [ebp - 0x88], 1
jne 0x1011da2
cmp dword [ebp - 0x94], 4
ja 0x1011d9e
jne 0x1011da2
cmp dword [ebp - 0x90], 0
jbe 0x1011da2
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10020b8
call fcn.01005d13
test eax, eax
jge 0x1011dc3
mov byte [0x101f434], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01012505
leave
ret
Function at 0x1012059
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x101f6c0], 0
push esi
jne 0x1011fc7
call fcn.01011ebe
test eax, eax
je 0x101200a
mov eax, dword [0x101f6c0]
cmp eax, 1
jne 0x1011fe8
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x101200a
pop esi
ret
push eax
call dword [0x101f6c8]
test eax, eax
jne 0x1012052
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x101200e
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x101f6c0]
call dword [0x101f6c8]
mov edi, eax
test edi, edi
je 0x1012033
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x101204f
mov edi, esi
add esi, 0xff0
push edi
push dword [0x101f6c0]
call dword [0x101f6c4]
add edi, 0x10
cmp edi, esi
jb 0x101203b
mov eax, edi
pop edi
pop esi
ret
jmp 0x1011fb4
Function at 0x101236c
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x101cf98
call fcn.010123bc
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1020b74
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1012127
cmp eax, esi
jne 0x101211a
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x101212a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1012101
xor esi, esi
inc esi
mov eax, dword [0x1020b70]
cmp eax, esi
jne 0x101213d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x101216c
mov eax, dword [0x1020b70]
test eax, eax
jne 0x1012166
mov dword [0x1020b70], esi
push 0x1001418
push 0x100140c
call fcn.01012063
pop ecx
pop ecx
test eax, eax
je 0x101216c
jmp 0x1012290
mov dword [0x101f6ec], esi
mov eax, dword [0x1020b70]
cmp eax, esi
jne 0x1012190
push 0x1001408
push 0x10013e8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1020b70], 2
cmp dword [ebp - 0x20], ebx
jne 0x101219d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1020b84], ebx
je 0x10121be
push 0x1020b84
call fcn.01012e89
pop ecx
test eax, eax
je 0x10121be
push ebx
push 2
push ebx
call dword [0x1020b84]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1012290
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1012228
cmp cx, bx
je 0x10121e3
cmp dword [ebp - 0x1c], ebx
jne 0x1012228
movzx ecx, word [eax]
cmp cx, bx
je 0x10121f8
cmp cx, 0x20
ja 0x10121f8
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10121e3
test byte [ebp - 0x40], 1
je 0x1012204
movzx ecx, word [ebp - 0x3c]
jmp 0x1012207
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x101f6e8], eax
cmp dword [0x101f6dc], ebx
jne 0x101226d
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1012239
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10121cd
cmp dword [0x101f6ec], ebx
jne 0x101227b
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101f6e8]
jmp 0x101229c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01012401
ret
call fcn.01012fd6
jmp 0x10120c4
Function at 0x101469c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x10146cb
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.01012837
add esp, 0x14
jmp 0x10147a9
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x10147a9
test al, 0x40
jne 0x10147a9
test al, 2
je 0x10146ed
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x10147a9
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x10146ad
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x1014799
cmp eax, 0xffffffff
je 0x1014799
test byte [esi + 0xc], 0x82
jne 0x101476e
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x1014759
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x1014759
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x101475e
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x101476e
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x101478c
mov eax, dword [esi + 0xc]
test al, 8
je 0x101478c
test eax, 0x400
jne 0x101478c
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x10147ac
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret