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

Disassembly:
push 0xffffffffffffffff
push 0x100145b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
push 1
mov dword [esp + 0x14], eax
push 0x100156b0
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 1
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x1c], eax
call fcn.10006150
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x78]
call fcn.10006060
mov eax, dword [esp + 0x84]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0x70]
jae 0x10007065
lea eax, [esp + 0x70]
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x100070c4
cmp dword [esp + 0x84], edi
jb 0x1000709b
mov edx, dword [esp + 0x70]
push edx
call fcn.1000cae8
add esp, 4
cmp dword [esp + 0xa0], edi
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
jb 0x1000712f
mov eax, dword [esp + 0x8c]
push eax
jmp 0x10007127
mov ecx, dword [esp + 8]
push esi
push 0x927c0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
cmp dword [esp + 0x88], edi
pop esi
jb 0x10007100
mov ecx, dword [esp + 0x70]
push ecx
call fcn.1000cae8
add esp, 4
cmp dword [esp + 0xa0], edi
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
jb 0x1000712f
mov edx, dword [esp + 0x8c]
push edx
call fcn.1000cae8
add esp, 4
mov ecx, dword [esp + 0x5c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0x38

Function at 0x10007150
Capabilities:
Query service status

Disassembly:
sub esp, 0x24
push esi
push edi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x100071e0
push ebx
mov ebx, dword [esp + 0x34]
cmp dword [ebx + 0x18], 0x10
push ebp
jb 0x10007183
mov eax, dword [ebx + 4]
jmp 0x10007186
lea eax, [ebx + 4]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x100071cf
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100071cc
cmp dword [esp + 0x1c], 4
jne 0x100071cc
mov ecx, dword [esp + 0x14]
push ebx
call fcn.10006e20
test eax, eax
je 0x100071cc
mov dword [esp + 0x10], 1
push esi
call ebp
push edi
call ebp
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x24
ret 4
pop edi
mov eax, esi
pop esi
add esp, 0x24
ret 4
Function at 0x100071f0
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100145e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x100192e0]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
mov dword [ebp - 0x14], eax
mov esi, ecx
call fcn.100080f0
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0x54]
mov edi, 0xf
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.100025f0
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0xe0]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.100025f0
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 1
jae 0x1000726e
lea eax, [ebp - 0x48]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 0x34]
mov eax, 0x10
cmp ecx, eax
mov ecx, dword [ebp - 0x48]
jae 0x1000728c
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
jae 0x10007297
lea eax, [ebp - 0x2c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x100072df
mov eax, dword [ebp - 0x18]
mov esi, 0x10
cmp eax, esi
jb 0x100072bc
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1000cae8
add esp, 4
cmp dword [ebp - 0x34], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
jb 0x100073c4
mov eax, dword [ebp - 0x48]
push eax
call fcn.1000cae8
add esp, 4
jmp 0x100073c4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x54], esp
push 3
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x100156d8
mov byte [ebp - 4], 2
mov byte [ecx + 4], bl
call fcn.100026e0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x4c]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ebp - 4], 3
mov byte [ecx + 4], bl
call fcn.100025f0
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.10006fe0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push 3
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x100156d4
mov byte [ecx + 4], bl
call fcn.100026e0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x54], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x4c]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ebp - 4], 4
mov byte [ecx + 4], bl
call fcn.100025f0
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.10006fe0
mov eax, dword [ebp - 0x18]
mov esi, 0x10
cmp eax, esi
jb 0x1000738d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1000cae8
add esp, 4
cmp dword [ebp - 0x34], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
jb 0x100073a7
mov edx, dword [ebp - 0x48]
push edx
call fcn.1000cae8
add esp, 4
mov eax, 1
jmp 0x100073c6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.1000ca3e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007700
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x100192e0]
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
jne 0x1000773f
cmp dword [esp + 4], 4
jne 0x1000773f
cmp dword [esp + 8], 0xa
je 0x10007741
xor eax, eax
mov ecx, dword [esp + 0x94]
call fcn.1000ca3e
add esp, 0x98
ret
Function at 0x10007ec0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x1001467b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [0x100192e0]
push esi
xor esi, esi
push esi
push 0x1001538a
lea ecx, [esp + 0x14]
mov dword [esp + 0x94], eax
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], esi
mov byte [esp + 0x18], 0
call fcn.100026e0
push esi
push esi
push esi
push esi
lea eax, [esp + 0x14]
push eax
push 0xc
push esi
push 0x10015a04
mov dword [esp + 0xb8], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 4]
push ecx
lea edx, [esp + 0x2c]
push 0x10015a00
push edx
call fcn.1000d94e
lea eax, [esp + 0x34]
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10007f50
sub eax, edx
mov dword [esp + 8], eax
jne 0x10007ffc
push ebx
movzx ebx, byte [0x10015822]
push ebp
push edi
lea esi, [ebx + 1]
push esi
call fcn.1000c516
mov ebp, eax
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebx
mov eax, ecx
shr ecx, 2
mov esi, 0x10015814
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
push 0x100158b4
mov ecx, eax
and ecx, 3
push ebx
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.1000a5f0
mov eax, ebp
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10007fb7
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x20]
call fcn.100026e0
push ebp
call fcn.1000ceb2
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
add esp, 4
cmp eax, 0x10
pop edi
pop ebp
pop ebx
jae 0x10007fe8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x10007ff0
xor esi, esi
lea ecx, [esp + 0x28]
push ecx
push esi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp eax, esi
je 0x1000801d
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x24], 0x10
jb 0x10008031
mov edx, dword [esp + 0x10]
push edx
call fcn.1000cae8
add esp, 4
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8c]
mov eax, esi
pop esi
call fcn.1000ca3e
add esp, 0x98
ret
Function at 0x1000a5f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x1000a63d
cmp byte [ebx], 0
je 0x1000a63d
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a603
push ebp
mov ebp, dword [esp + 0x10]
sub eax, edx
xor ecx, ecx
test ebp, ebp
push edi
mov edi, eax
jle 0x1000a637
push esi
mov esi, dword [esp + 0x14]
nop
mov eax, ecx
cdq
idiv edi
mov al, byte [ecx + esi]
sub al, cl
xor al, byte [edx + ebx]
inc ecx
cmp ecx, ebp
mov byte [ecx + esi - 1], al
jl 0x1000a620
pop esi
pop edi
pop ebp
mov al, 1
pop ebx
ret
xor al, al
pop ebx
ret

Function at 0x1000b010
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
mov eax, dword [0x100192e0]
push ebp
mov ebp, dword [esp + 0x138]
mov dword [esp + 0x12c], eax
xor eax, eax
test ebp, ebp
je 0x1000b11f
push edi
push eax
mov dword [esp + 0xc], eax
mov ecx, 0x49
lea edi, [esp + 0x10]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000b06a
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x128]
call fcn.1000ca3e
add esp, 0x12c
ret
push ebx
push esi
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000b111
push ebp
call fcn.1000d83a
lea ecx, [esp + 0x38]
push ecx
mov esi, eax
call fcn.1000d83a
add esp, 8
lea esp, [esp]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x1000b0c8
test cl, cl
je 0x1000b0c4
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x1000b0c8
add eax, 2
add esi, 2
test cl, cl
jne 0x1000b0a0
xor eax, eax
jmp 0x1000b0cd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000b0e7
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000b087
mov esi, 1
jmp 0x1000b113
mov ecx, dword [esp + 0x18]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esp + 0x140]
push edx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
jmp 0x1000b113
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x12c]
pop ebp
call fcn.1000ca3e
add esp, 0x12c
ret
Function at 0x1000b140
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xc
mov eax, dword [0x100192e0]
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
mov al, byte [esi + 0x5c]
test al, al
jne 0x1000b298
mov ecx, dword [esi + 0x58]
push ebp
push edi
mov edi, dword [esi + 0x10]
lea eax, [ecx*8]
add edi, eax
mov eax, edi
shl ecx, 3
cmp eax, ecx
mov dword [esi + 0x10], edi
jae 0x1000b17a
inc dword [esi + 0x14]
mov cl, byte [esi + 0x11]
mov dl, byte [esi + 0x10]
mov byte [esp + 0xd], cl
mov cl, byte [esi + 0x13]
mov byte [esp + 0xc], dl
mov dl, byte [esi + 0x12]
mov byte [esp + 0xf], cl
mov cl, byte [esi + 0x15]
mov byte [esp + 0xe], dl
mov dl, byte [esi + 0x14]
shr eax, 3
mov byte [esp + 0x11], cl
mov cl, byte [esi + 0x17]
mov byte [esp + 0x10], dl
mov dl, byte [esi + 0x16]
and eax, 0x3f
cmp eax, 0x38
mov byte [esp + 0x13], cl
mov byte [esp + 0x12], dl
mov ecx, 0x38
jb 0x1000b1c7
mov ecx, 0x78
sub ecx, eax
test ecx, ecx
je 0x1000b1da
push ecx
push 0x10019248
mov ecx, esi
call fcn.1000afd0
lea edi, [esp + 0xc]
mov ebp, 8
mov al, byte [edi]
mov edx, dword [esi + 0x58]
mov byte [esi + edx + 0x18], al
mov eax, dword [esi + 0x58]
inc eax
inc edi
cmp eax, 0x40
mov dword [esi + 0x58], eax
jb 0x1000b200
mov ecx, esi
call fcn.1000a650
dec ebp
jne 0x1000b1e3
mov cl, byte [esi]
mov dl, byte [esi + 1]
mov al, byte [esi + 2]
mov byte [esi + 0x5d], cl
mov cl, byte [esi + 3]
mov byte [esi + 0x5e], dl
mov dl, byte [esi + 4]
mov byte [esi + 0x5f], al
mov al, byte [esi + 5]
mov byte [esi + 0x60], cl
mov cl, byte [esi + 6]
mov byte [esi + 0x61], dl
mov dl, byte [esi + 7]
mov byte [esi + 0x62], al
mov al, byte [esi + 8]
mov byte [esi + 0x63], cl
mov cl, byte [esi + 9]
mov byte [esi + 0x64], dl
mov dl, byte [esi + 0xa]
mov byte [esi + 0x65], al
mov al, byte [esi + 0xb]
mov byte [esi + 0x66], cl
mov cl, byte [esi + 0xc]
mov byte [esi + 0x67], dl
mov dl, byte [esi + 0xd]
mov byte [esi + 0x68], al
mov al, byte [esi + 0xe]
mov byte [esi + 0x69], cl
mov cl, byte [esi + 0xf]
mov byte [esi + 0x6a], dl
mov byte [esi + 0x6b], al
mov byte [esi + 0x6c], cl
pop edi
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x58], 0
mov byte [esi + 0x5c], 1
pop ebp
mov ecx, dword [esp + 0xc]
pop esi
call fcn.1000ca3e
add esp, 0xc
ret

Function at 0x1000b370
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x78
mov eax, dword [0x100192e0]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x74], eax
xor eax, eax
push esi
mov dword [esp + 4], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x60], eax
mov byte [esp + 0x64], al
mov eax, dword [esp + 0x88]
push eax
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
call fcn.1000afd0
mov esi, dword [esp + 0x80]
push esi
lea ecx, [esp + 0xc]
call fcn.1000b340
mov ecx, dword [esp + 0x78]
mov eax, esi
pop esi
call fcn.1000ca3e
add esp, 0x78
ret
Function at 0x1000c1a2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x100192e0]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.1000c124
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.1000e040
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1000c204
cmp dword [ebp - 0x1c], 5
jb 0x1000c21c
jmp 0x1000c218
cmp dword [ebp - 0x10], 1
jne 0x1000c21c
cmp dword [ebp - 0x1c], 4
ja 0x1000c218
jne 0x1000c21c
cmp dword [ebp - 0x18], 0
jbe 0x1000c21c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x10015aa4
call fcn.100012a0
test eax, eax
jge 0x1000c23d
mov byte [0x10019ecc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.1000ca3e
add ebp, 0x78
leave
ret

Function at 0x1000c6e5
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.1000c9d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000c780
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 [0x1001ac10]
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 0x1000c780
cmp eax, 1
je 0x1000c7a1
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 0x1000c780
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1000c74d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1000c77c
xor eax, eax
inc eax
jmp 0x1000c7c0
cmp edi, eax
jae 0x1000c784
xor eax, eax
jmp 0x1000c7c0
cmp eax, esi
jae 0x1000c78b
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 [0x1001ac10]
jmp 0x1000c7a4
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

Function at 0x1000d7f4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000d814
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100110da
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1000d837
test byte [esp + 8], 2
je 0x1000d837
call fcn.100110c8
mov dword [eax], 0xd
call fcn.100110d1
mov dword [eax], 5
jmp 0x1000d810
xor eax, eax
ret
Function at 0x1000dd9a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000de8a
mov eax, 0x94
call fcn.1000c9d0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000deff
mov ecx, dword [esi + 0x10]
mov dword [0x1001ac10], ecx
mov eax, dword [esi + 4]
mov dword [0x1001ac1c], eax
mov edx, dword [esi + 8]
mov dword [0x1001ac20], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1001ac14], esi
je 0x1000de05
or esi, 0x8000
mov dword [0x1001ac14], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1001ac18], eax
call fcn.1000e69d
test eax, eax
pop ecx
je 0x1000deff
call fcn.10010433
test eax, eax
jne 0x1000de32
call fcn.1000e6ee
jmp 0x1000deff
call fcn.100127c9
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1001c318], eax
call fcn.100126a7
mov dword [0x1001aaa4], eax
call fcn.10012188
test eax, eax
jl 0x1000de83
call fcn.10012605
test eax, eax
jl 0x1000de7e
call fcn.100123d2
test eax, eax
jl 0x1000de7e
push 0
call fcn.1000f2ea
test eax, eax
pop ecx
jne 0x1000de7e
inc dword [0x1001aaa0]
jmp 0x1000df10
call fcn.10012386
call fcn.1001021c
jmp 0x1000de28
test eax, eax
jne 0x1000deba
cmp dword [0x1001aaa0], eax
jle 0x1000deff
dec dword [0x1001aaa0]
cmp dword [0x1001ac4c], eax
jne 0x1000dea9
call fcn.1000f428
call fcn.10012386
call fcn.1001021c
call fcn.1000e6ee
jmp 0x1000df10
cmp eax, 2
jne 0x1000df03
push 0x8c
push 1
call fcn.100120cd
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000deff
push esi
push dword [0x10019538]
call dword [fcn.1001acbc]
test eax, eax
push esi
je 0x1000def9
call fcn.10010239
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000df10
call fcn.1000c674
pop ecx
xor eax, eax
jmp 0x1000df13
cmp eax, 3
jne 0x1000df10
push 0
call fcn.10010404
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x1000f354
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10015c78
call fcn.1000e0a0
push 8
call fcn.1000e652
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1001ac50], esi
jne 0x1000f388
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1001ac4c], esi
mov al, byte [ebp + 0x10]
mov byte [0x1001ac48], al
cmp dword [ebp + 0xc], edi
jne 0x1000f3d2
cmp dword [0x1001c2e8], edi
je 0x1000f3c2
mov eax, dword [0x1001c2e4]
sub eax, 4
mov dword [0x1001c2e4], eax
cmp eax, dword [0x1001c2e8]
jb 0x1000f3c2
mov eax, dword [eax]
cmp eax, edi
je 0x1000f3a3
call eax
jmp 0x1000f3a3
push 0x10019040
mov eax, 0x10019038
call fcn.1000f2d2
pop ecx
push 0x1001904c
mov eax, 0x10019044
call fcn.1000f2d2
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1000f403
cmp dword [ebp + 0x10], edi
jne 0x1000f411
mov dword [0x1001ac50], esi
push dword [ebp + 8]
call fcn.1000f290
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1000f410
push 8
call fcn.1000e59d
pop ecx
ret
call fcn.1000e0db
ret
Function at 0x100129d0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100192e0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10019b88]
je 0x10012a05
inc eax
cmp eax, 0x13
jb 0x100129f6
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10019b88]
jne 0x10012b2b
mov eax, dword [0x1001aaac]
cmp eax, 1
je 0x10012b03
cmp eax, edx
jne 0x10012a35
cmp dword [0x1001aab0], 1
je 0x10012b03
cmp ecx, 0xfc
je 0x10012b2b
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10012a6b
lea eax, [ebp - 0x80]
push 0x10015cc0
push eax
call fcn.10010fd0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.1000e110
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10012a9f
mov eax, edi
push eax
call fcn.1000e110
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10015cbc
push edi
call fcn.1000d9e0
add esp, 0x10
push edi
call fcn.1000e110
push dword [esi + 0x10019b8c]
mov ebx, eax
call fcn.1000e110
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1000c9d0
mov ebx, esp
push 0x100165a0
push ebx
call fcn.10010fd0
push edi
push ebx
call fcn.10010fe0
push 0x10015cb8
push ebx
call fcn.10010fe0
push dword [esi + 0x10019b8c]
push ebx
call fcn.10010fe0
push 0x12010
push 0x10015c84
push ebx
call fcn.10012c1b
add esp, 0x2c
jmp 0x10012b2b
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x10019b8c]
push dword [esi]
call fcn.1000e110
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.1000ca3e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x10012c1b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1001adf4], ebx
push esi
push edi
jne 0x10012c9b
push 0x10016658
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10012cd6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001664c
push edi
call esi
test eax, eax
mov dword [0x1001adf4], eax
je 0x10012cd6
push 0x1001663c
push edi
call esi
push 0x10016628
push edi
mov dword [0x1001adf8], eax
call esi
cmp dword [0x1001ac10], 2
mov dword [0x1001adfc], eax
jne 0x10012c9b
push 0x1001660c
push edi
call esi
test eax, eax
mov dword [0x1001ae04], eax
je 0x10012c9b
push 0x100165f4
push edi
call esi
mov dword [0x1001ae00], eax
mov eax, dword [0x1001ae00]
test eax, eax
je 0x10012ce0
call eax
test eax, eax
je 0x10012cc7
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1001ae04]
test eax, eax
je 0x10012cc7
test byte [ebp - 8], 1
jne 0x10012ce0
cmp dword [0x1001ac1c], 4
jb 0x10012cda
or byte [ebp + 0x12], 0x20
jmp 0x10012cff
xor eax, eax
jmp 0x10012d0f
or byte [ebp + 0x12], 4
jmp 0x10012cff
mov eax, dword [0x1001adf8]
test eax, eax
je 0x10012cff
call eax
mov ebx, eax
test ebx, ebx
je 0x10012cff
mov eax, dword [0x1001adfc]
test eax, eax
je 0x10012cff
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1001adf4]
pop edi
pop esi
pop ebx
leave
ret