joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006736e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x100c5014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x208], edi
lea ecx, [edi + 4]
mov dword [edi], 0x1001a300
call fcn.1006615e
push 0x200
xor esi, esi
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.100935b0
add esp, 0xc
lea eax, [ebp - 0x204]
push 0xff
push eax
push 0x1001721c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jle 0x10067409
mov ecx, 0x1001580c
lea eax, [ebp - 0x204]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100673fa
test dx, dx
je 0x100673ff
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100673fa
add eax, 4
add ecx, 4
test dx, dx
jne 0x100673d6
jmp 0x100673ff
sbb esi, esi
or esi, 1
test esi, esi
jne 0x10067409
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.100906e8
mov esp, ebp
pop ebp
ret

Function at 0x1006b497
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x100b0905
call fcn.100a4edc
mov esi, ecx
mov dword [ebp - 0x220], esi
xor edi, edi
lea eax, [ebp - 0x218]
push 0x208
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21c], edi
call fcn.100935b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.1006f372
mov dword [ebp - 4], edi
mov ecx, esi
mov dword [ebp - 0x21c], 1
call fcn.100739ad
mov eax, esi
call fcn.100a4e86
ret

Function at 0x1006cba1
Capabilities:
Accept command line arguments

Disassembly:
push 0x18
mov eax, 0x100a8589
call fcn.100a4ea8
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x24]
call fcn.1002e64e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.1002ea25
test al, al
je 0x1006cbf9
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1006cbf9
mov esi, dword [edi + 8]
cmp esi, 3
je 0x1006cbe2
cmp esi, 2
jne 0x1006cbfc
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100cf608]
mov ecx, ebx
call esi
mov esi, eax
test esi, esi
jne 0x1006cbfc
mov esi, dword [edi + 8]
lea ecx, [ebp - 0x24]
call fcn.1002e9d0
mov eax, esi
call fcn.100a4e71
ret
Function at 0x1006d64d
Capabilities:
Delete file

Disassembly:
push 0x220
mov eax, 0x100b0cab
call fcn.100a4edc
mov ebx, ecx
mov eax, dword [ebx]
mov edi, dword [ebp + 8]
and dword [ebp - 0x22c], 0
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100cf608]
mov ecx, ebx
call esi
test al, al
je 0x1006d787
mov ecx, ebx
call fcn.1007305a
xor esi, esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], esi
push ecx
push ecx
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], esi
call fcn.10032c64
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.1006f372
mov byte [ebp - 4], 1
cmp dword [ebp - 0x220], esi
je 0x1006d6d6
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebx + 0x3c]
lea eax, [ebp - 0x224]
push eax
call fcn.100376e3
push 0x100188f8
lea ecx, [ebp - 0x228]
mov esi, eax
call fcn.1006f372
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push eax
push esi
mov ecx, ebx
call fcn.10072085
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
cmp byte [ebx + 0x80], 0
je 0x1006d759
push dword [0x100c585c]
push dword [0x100c5858]
call dword [sym.imp.ADVAPI32.dll_EventUnregister]
and dword [0x100c5858], 0
and dword [0x100c585c], 0
and dword [0x100c5840], 0
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.1008e35d
mov ecx, dword [ebp - 0x224]
add eax, 0x10
add ecx, 0xfffffff0
mov dword [edi], eax
call fcn.1008e3f5
lea ecx, [ebp - 0x220]
call fcn.10032c35
jmp 0x1006d793
push 0x1002152c
mov ecx, edi
call fcn.1006f372
mov eax, edi
call fcn.100a4e86
ret 4

Function at 0x1006e582
Capabilities:
Get hostname

Disassembly:
push 0xc
mov eax, 0x100af53c
call fcn.100a4ea8
call fcn.1008e1f3
push eax
lea ecx, [ebp - 0x10]
call fcn.1008df96
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 4], ebx
mov edx, 0x104
mov eax, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 0x14], edx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x1006e5c4
push edx
lea ecx, [ebp - 0x10]
call fcn.1008de52
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push 7
call dword [sym.imp.Secur32.dll_GetComputerObjectNameW]
test al, al
je 0x1006e641
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.1008db88
push ebx
push 0x2f
lea ecx, [ebp - 0x10]
call fcn.1006edb1
cmp eax, 0xffffffff
je 0x1006e619
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.1006eb26
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.1006f1e0
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
lea ecx, [ebp - 0x10]
call fcn.1006ed27
push ebx
push 0x10018be0
lea ecx, [ebp - 0x10]
call fcn.1006ed77
cmp eax, 0xffffffff
je 0x1006e641
call fcn.1007394a
mov bl, al
neg bl
sbb bl, bl
inc bl
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1008e3f5
mov al, bl
call fcn.100a4e71
ret
Function at 0x1006f9c0
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push 0x1c
mov eax, 0x100b0fb8
call fcn.100a4ea8
mov esi, ecx
xor ebx, ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
lea ecx, [esi + 0x10]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.10032bfd
cmp dword [ebp - 0x1c], ebx
ja 0x1006faf1
jb 0x1006f9fa
cmp dword [ebp - 0x20], 2
ja 0x1006faf1
lea ecx, [ebp - 0x18]
call fcn.10073db2
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
push dword [eax]
call fcn.1006f372
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1006fa56
push 0x10018c48
lea ecx, [ebp - 0x1c]
call fcn.1006f372
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x28]
call fcn.100332df
push 0x100c4ae0
lea eax, [ebp - 0x28]
push eax
call fcn.1009378c
mov ecx, esi
call fcn.10062c30
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.100426e0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008e35d
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
lea ecx, [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1006faa7
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x1006faa5
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1006faa7
mov bl, 1
mov ecx, dword [ebp - 0x1c]
call fcn.1008e3f5
test bl, bl
je 0x1006fadb
push 1
mov ecx, esi
call fcn.10063110
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
call fcn.100a4e71
ret
push 0x10018c88
lea ecx, [ebp - 0x1c]
call fcn.1006f372
mov byte [ebp - 4], 5
jmp 0x1006fa3c
mov ecx, esi
call fcn.10073eec
test al, al
jne 0x1006fad5
push 0x10018cc0
lea ecx, [ebp - 0x1c]
call fcn.1006f372
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 6
push eax
lea ecx, [ebp - 0x28]
call fcn.1003335f
push 0x100c4a68
jmp 0x1006fa4d
Function at 0x10072d25
Capabilities:
Accept command line arguments

Disassembly:
push 0x30
mov eax, 0x100b16c1
call fcn.100a4ea8
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1002e64e
mov dword [ebp - 4], 1
call fcn.1008e1f3
mov ecx, dword [ebp + 8]
push eax
call fcn.1008df96
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 0x1002153c
call fcn.1006f372
push ebx
push 0x1001a298
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1002e1ff
mov byte [ebp - 4], 1
mov bl, al
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x1002153c
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
test bl, bl
je 0x10072e42
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, 0x1002153c
lea ecx, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], ebx
call fcn.1006f372
push 0x1001a298
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x24]
call fcn.1002e461
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 8]
push eax
call fcn.1006f1e0
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ebx
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
push dword [ebp + 8]
mov ecx, dword [esi + 0x3c]
push 0x1ee
call fcn.10037739
push 0x1001a2b8
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.1006f372
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
push esi
mov byte [ebp - 4], 5
call fcn.10072085
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1008e3f5
lea ecx, [ebp - 0x3c]
call fcn.1002e9d0
mov eax, dword [ebp + 8]
call fcn.100a4e71
ret 4
Function at 0x10073db2
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x100b1858
call fcn.100a4ea8
mov dword [ebp - 0x20], ecx
and dword [ebp - 0x28], 0
lea ecx, [ebp - 0x1c]
push 0x1001a848
call fcn.1006f372
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov esi, eax
call fcn.1008e1f3
push eax
lea ecx, [ebp - 0x24]
call fcn.1008df96
xor ebx, ebx
lea eax, [ebp - 0x24]
inc ebx
mov byte [ebp - 4], bl
push dword [ebp - 0x1c]
push esi
push 0x1001a86c
push eax
call fcn.1008dbf3
add esp, 0x10
call fcn.1008e1f3
push eax
lea ecx, [ebp - 0x14]
call fcn.1008df96
mov byte [ebp - 4], 2
mov edi, 0x104
mov esi, dword [ebp - 0x14]
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, edi
or eax, ebx
jge 0x10073e39
push edi
lea ecx, [ebp - 0x14]
call fcn.1008de52
mov esi, dword [ebp - 0x14]
push edi
push esi
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.1008db88
push esi
lea ecx, [ebp - 0x10]
call fcn.1006f372
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.1006e6ff
call fcn.1008e1f3
push eax
lea ecx, [ebp - 0x18]
call fcn.1008df96
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
mov edi, dword [ebp - 0x24]
push edi
push dword [ebp - 0x10]
call fcn.1006e7cf
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10073ea5
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.1006e7cf
mov ebx, dword [ebp - 0x18]
lea ecx, [ebx - 0x10]
call fcn.1008e35d
mov ecx, dword [ebp - 0x20]
add eax, 0x10
mov dword [ecx], eax
lea ecx, [ebx - 0x10]
call fcn.1008e3f5
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
lea ecx, [esi - 0x10]
call fcn.1008e3f5
lea ecx, [edi - 0x10]
call fcn.1008e3f5
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov eax, dword [ebp - 0x20]
call fcn.100a4e71
ret
Function at 0x10073eec
Capabilities:
Get file size

Disassembly:
push 0x2c
mov eax, 0x100b18ab
call fcn.100a4ea8
mov edi, ecx
mov dword [ebp - 0x20], edi
call fcn.10062c30
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.10073db2
mov esi, dword [ebp - 0x1c]
push ecx
push ebx
push 0x80
push 3
push 1
push SysReAllocStringLen
push esi
lea ecx, [ebp - 0x28]
call fcn.10032b45
test eax, eax
jns 0x10073f81
lea ecx, [ebp - 0x14]
call fcn.1008e2b0
push esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push 0x1001a87c
push eax
call fcn.1008dbf3
add esp, 0xc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x30]
push eax
call fcn.100330f2
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x38]
call fcn.100416c0
push 0x100c4c08
lea eax, [ebp - 0x38]
push eax
call fcn.1009378c
push ebx
mov ebx, dword [ebp - 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esi - 0x10]
mov dword [ebp - 0x1c], eax
call fcn.1008e3f5
mov byte [ebp - 4], 0
test ebx, ebx
je 0x10073fa6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
call fcn.10073db2
push ecx
mov ecx, esp
mov byte [ebp - 4], 5
mov dword [ebp - 0x24], ecx
push dword [eax]
call fcn.1006f372
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.1007830c
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov ecx, dword [edi]
push ecx
push esp
mov esi, dword [ecx + 0x10]
mov ecx, esi
call dword [0x100cf608]
mov ecx, edi
call esi
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.1007830c
cmp dword [ebp - 0x10], 0
jne 0x10074007
push 0x80004005
call fcn.1008e2c4
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.1009878d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
test eax, eax
sete bl
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
push 1
mov ecx, edi
mov dword [ebp - 4], 8
call fcn.10063110
mov dword [edi + 0x10], eax
mov al, bl
call fcn.100a4e71
ret
Function at 0x100767b5
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x100b1e90
call fcn.100a4ea8
mov esi, ecx
mov dword [ebp - 0x20], esi
lea ecx, [ebp - 0x18]
call fcn.10030691
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e35d
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1003720d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push dword [eax]
call fcn.1006e80f
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
push 0x1001b170
lea ecx, [ebp - 0x10]
call fcn.1006e80f
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10076848
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push 0x1001b198
push ebx
push dword [esi + 4]
push eax
call fcn.1002e198
add esp, 0x14
jmp 0x100768d9
cmp byte [ebp + 0xc], 0
je 0x100768d7
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e35d
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.1003720d
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
push dword [eax]
call fcn.1006e80f
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
push 0x1000c888
lea ecx, [ebp - 0x14]
call fcn.1006e80f
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100768cf
push dword [ebp + 8]
mov eax, dword [ebp - 0x20]
push 0x1001b1f8
push ebx
push dword [eax + 4]
lea eax, [ebp - 0x20]
push eax
call fcn.1002e198
add esp, 0x14
lea ecx, [esi - 0x10]
call fcn.1008e3f5
jmp 0x100768d9
lea ecx, [esi - 0x10]
call fcn.1008e3f5
mov bl, 1
lea ecx, [edi - 0x10]
call fcn.1008e3f5
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.1008e3f5
mov al, bl
call fcn.100a4e71
ret 8

Function at 0x100768f6
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, edi
call fcn.10079155
push edi
mov ecx, esi
call fcn.10078e8c
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, edi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
call fcn.1006becb
cmp eax, 0xffffffff
jne 0x1007693e
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.1006ad37
lea eax, [esp + 0xc]
mov esi, 0x409
push eax
mov ecx, edi
mov dword [esp + 0x10], esi
call fcn.1006becb
cmp eax, 0xffffffff
jne 0x10076968
lea eax, [esp + 0xc]
mov dword [esp + 0xc], esi
push eax
mov ecx, edi
call fcn.1006ad37
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1007830c
Capabilities:
Read file on windows

Disassembly:
push 0x28
mov eax, 0x100b21cb
call fcn.100a4ea8
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x24], esi
and dword [ebp - 0x14], 0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call fcn.100739d2
xor eax, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
push ecx
push eax
push 0x80
push 3
push ebx
push SysReAllocStringLen
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push dword [ebp + 8]
call fcn.10032b45
test eax, eax
jns 0x100783c5
lea ecx, [ebp - 0x10]
call fcn.1008e2b0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.1006e350
push eax
lea ecx, [ebp - 0x18]
call fcn.1008e3d0
mov byte [ebp - 4], 4
push dword [eax]
lea eax, [ebp - 0x10]
push 0x1001b6a0
push eax
call fcn.1008dbf3
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.1002dff0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x34]
call fcn.100330f2
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1c]
call fcn.100416c0
push 0x100c4c08
lea eax, [ebp - 0x1c]
push eax
call fcn.1009378c
push edi
mov ecx, esi
call fcn.1008c50a
push 0
lea ecx, [ebp - 0x20]
push ecx
push edi
mov edi, dword [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100783e8
call fcn.1008da58
push dword [ebp - 0x20]
mov ecx, esi
call fcn.10073a6c
test edi, edi
je 0x100783fd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov eax, esi
call fcn.100a4e71
ret 4
Function at 0x100798db
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x100c5014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x468]
push esi
push edi
push 0x44
pop edi
push edi
push 0
push eax
mov esi, edx
call fcn.100935b0
push dword [ebx + 0xc]
mov dword [ebp - 0x468], edi
xor eax, eax
lea edi, [ebp - 0x424]
stosd dword es:[edi], eax
push esi
push 0x1001bb4c
push 0x208
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x414]
push eax
mov edi, 0x80004005
call fcn.1008d61d
add esp, 0x20
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x468]
push eax
xor eax, eax
push eax
push eax
push 0x4000020
push 1
push eax
push eax
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100799f6
xor esi, esi
inc esi
push 0x4e20
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10079996
push 1
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100799e7
xor esi, esi
xor edi, edi
jmp 0x100799e7
push 0x4e20
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x100799f6
cmp eax, 0x80
je 0x100799ed
push 1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100799cd
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor esi, esi
jmp 0x100799de
push 1
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
and esi, eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
jne 0x10079970
jmp 0x100799f6
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100906e8
mov esp, ebp
pop ebp
ret 4
Function at 0x10079a23
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, edx
test ebx, ebx
jne 0x10079a3a
mov eax, 0x80004003
jmp 0x10079b8e
push edi
xor eax, eax
mov dword [ebp - 0x14], 0xc
mov edi, ebx
mov dword [ebp - 0xc], 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
xor edi, edi
push edi
push 0x9c9c
push edi
push 4
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x10079a84
mov edx, ebx
call fcn.10079b95
mov eax, 0x80004005
jmp 0x10079b8d
push esi
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x10079b80
push edi
push edi
push edi
lea eax, [ebp - 0x14]
mov dword [ebx + 0x10], esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
mov dword [ebx], eax
lea eax, [ebp - 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
mov dword [ebx + 4], eax
lea eax, [ebp - 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x9c9c
push edi
push esi
mov dword [ebx + 8], eax
call fcn.100935b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebp - 4]
push 2
push 1
push 0
add ecx, 0x28
push ecx
push edi
push esi
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x10079b80
mov eax, dword [ebp - 8]
xor edi, edi
cmp dword [eax], edi
je 0x10079b80
cmp dword [ebx], edi
je 0x10079b80
cmp dword [ebx + 4], edi
je 0x10079b80
cmp dword [ebx + 8], edi
je 0x10079b80
mov esi, dword [ebp - 4]
mov dword [esi], 0x9c9c
mov dword [esi + 4], 0x20000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x18], eax
mov eax, dword [ebx]
mov dword [esi + 0x20], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
test eax, eax
je 0x10079b6d
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], edi
xor eax, eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
jmp 0x10079b8c
mov edx, ebx
call fcn.10079b95
mov eax, 0x80004005
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4