joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10069f5b
Capabilities:
Accept command line arguments

Disassembly:
push 0x164
mov eax, 0x1009b77f
call fcn.100871aa
mov edi, ecx
push dword [ebp + 0x10]
and dword [ebp - 0x1c], 0
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push dword [ebp + 0xc]
push eax
call fcn.100580f9
lea eax, [ebp - 0x10]
push eax
call fcn.1002a8ec
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10023ed7
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.1002450c
push dword [ebp + 0x10]
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
push edi
lea eax, [ebp - 0x10]
push eax
jne 0x10069fef
push dword [ebp + 8]
call fcn.100444c2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.1007924a
lea ecx, [ebp - 0x38]
call fcn.10024209
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1006a097
lea eax, [ebp - 0x170]
push eax
call fcn.100444c2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 4
call fcn.10042a6f
mov dword [ebp - 0x14], eax
lea esi, [ebp - 0x20]
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 5
call fcn.10036883
mov byte [ebp - 4], 6
push dword [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100346c7
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.1007924a
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.1007924a
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push edi
push eax
push dword [ebp + 8]
call fcn.100444c2
push dword [ebp - 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x1c], ebx
call esi
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 3
call fcn.10044173
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.1007924a
lea ecx, [ebp - 0x38]
call fcn.10024209
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp + 8]
call fcn.10087296
ret 0xc
Function at 0x1006d1f5
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10098b05
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100ae210]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
mov edi, dword [ebp + 8]
push 0x10016080
push 0x10016098
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006d24c
xor eax, eax
jmp 0x1006d331
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov eax, dword [esi]
push 0x100160a8
xor ebx, ebx
push ebx
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push dword [ebp + 0x10]
mov dword [esp + 0x1c], ebx
call dword [eax + 0x1c]
mov dword [esp + 0x10], eax
cmp eax, ebx
jge 0x1006d2b0
push esi
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
push 0x10016100
push eax
call fcn.100580f9
lea ecx, [esp + 0x18]
mov edx, edi
call fcn.1007000e
push dword [esp + 0x10]
push 0x10016138
push ebx
call fcn.10023a0d
add esp, 0xc
jmp 0x1006d32d
mov ecx, dword [esp + 0x14]
mov ebx, ecx
mov dword [esp + 0x18], ebx
and dword [esp + 0x40], 0
mov eax, dword [ecx]
call dword [eax + 8]
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push 0x100161bc
push eax
call fcn.100580f9
mov eax, dword [edi + 0x40]
push 7
push eax
call fcn.1005ab8e
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.10023ed7
mov byte [esp + 0x40], 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0x13ec
call fcn.1002426c
push esi
push 0
add edi, 4
push edi
lea eax, [esp + 0x1c]
call fcn.1005784d
lea ecx, [esp + 0x1c]
call fcn.10024209
or dword [esp + 0x40], 0xffffffff
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1006d34b
Capabilities:
Check if file exists

Disassembly:
push 0x54
mov eax, 0x10092a84
call fcn.100871aa
lea eax, [ebp - 0x10]
push eax
call fcn.10025d87
and dword [ebp - 4], 0
push 0x100161c8
lea eax, [ebp - 0x10]
call fcn.10058c05
mov dword [ebp - 0x60], 0x100161dc
mov dword [ebp - 0x5c], 0x100161f0
mov dword [ebp - 0x58], 0x10016204
mov dword [ebp - 0x54], 0x10016218
mov dword [ebp - 0x50], 0x1001622c
mov dword [ebp - 0x4c], 0x10016240
mov dword [ebp - 0x48], 0x1001625c
mov dword [ebp - 0x44], 0x10016280
mov dword [ebp - 0x40], 0x10016298
mov dword [ebp - 0x3c], 0x100162b0
mov dword [ebp - 0x38], 0x100162c8
mov dword [ebp - 0x34], 0x100162e0
mov dword [ebp - 0x30], 0x100162f8
mov dword [ebp - 0x2c], 0x10016310
mov dword [ebp - 0x28], 0x10016328
xor esi, esi
push dword [ebp + esi*4 - 0x60]
lea eax, [ebp - 0x10]
call fcn.10058c05
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1006d414
lea eax, [ebp - 0x10]
call fcn.10058d2e
inc esi
cmp esi, 0xf
jb 0x1006d3dc
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.1007924a
call fcn.10087296
ret
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.100791e7
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
push esi
lea eax, [ebp - 0x14]
push 0x10016340
push eax
mov byte [ebp - 4], 2
call fcn.10078ea6
add esp, 0xc
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
call fcn.1007924a
push dword [ebp - 0x14]
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10028371
mov esi, 0x100187e8
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.1002a3dc
push 0x1009c2fc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], esi
call fcn.10081847
int3
Function at 0x1006da40
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
mov esi, ecx
xor eax, eax
cmp byte [esi + 0x18], al
je 0x1006da5f
push eax
push eax
push esi
push 0x1007274b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
pop esi
ret

Function at 0x1006f8ec
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x10
mov eax, 0x1008f27d
call fcn.100871aa
mov ebx, ecx
mov eax, dword [ebx + 8]
sub eax, 0x10
call fcn.100791e7
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
call fcn.10058d2e
mov eax, dword [ebx + 8]
push ecx
sub eax, 0x10
mov dword [ebp - 0x1c], esp
mov esi, esp
call fcn.100791e7
add eax, 0x10
mov dword [esi], eax
call fcn.10025704
mov dword [ebp - 0x14], eax
test eax, eax
jns 0x1006f989
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.100791e7
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
push 0x10016a94
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.10058a90
mov byte [ebp - 4], 2
mov ebx, dword [ebx + 0x18]
push dword [eax]
mov edx, dword [ebx]
push 0
mov ecx, ebx
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.1007924a
lea eax, [esi - 0x10]
call fcn.1007924a
jmp 0x1006fa3f
xor edx, edx
lea esi, [ebx + 0xc]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
inc edx
sub edx, dword [eax - 4]
mov eax, 0x105
sub ecx, eax
or ecx, edx
jge 0x1006f9a9
mov ecx, esi
call fcn.10079066
push dword [esi]
push 0
push 0x10016ad0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1006fa1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1006f9d3
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push 0x10016ad8
push eax
mov byte [ebp - 4], 3
call fcn.10078ea6
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx]
add esp, 0xc
push edi
push 0
call dword [eax + 4]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.1007924a
or eax, 0xffffffff
call fcn.10078e28
cmp byte [ebx + 0x14], 0
je 0x1006fa3f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
push 0x10016b68
mov eax, esi
call fcn.1005ff5c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [ebp - 0x14]
call fcn.10087296
ret
Function at 0x1006fcc7
Capabilities:
Check if file exists
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0xc]
mov dword [esi], 0x1001a950
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1006fce8
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0xc]
sub eax, 0x10
call fcn.1007924a
mov eax, dword [esi + 8]
sub eax, 0x10
pop esi
jmp fcn.1007924a

Function at 0x1007000e
Capabilities:
Accept command line arguments

Disassembly:
push 0x1c
mov eax, 0x10098a36
call fcn.100871aa
mov esi, ecx
mov edi, edx
and dword [ebp - 4], 0
mov eax, dword [esi]
cmp eax, 0x80004004
jne 0x10070030
mov eax, 0x80070642
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10023ed7
mov byte [ebp - 4], 1
push dword [esi]
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov esi, esp
call fcn.100791e7
add eax, 0x10
mov dword [esi], eax
mov esi, dword [edi + 0x40]
call fcn.1007254f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], 0x13ed
call fcn.1002426c
push dword [ebp + 0xc]
add edi, 4
push 0
push edi
lea eax, [ebp - 0x10]
call fcn.1005784d
lea ecx, [ebp - 0x28]
call fcn.10024209
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.1007924a
call fcn.10087296
ret 8
Function at 0x10071c69
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x10094e32
call fcn.100871aa
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10023ed7
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.100244e6
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [edi + 0xc]
sub eax, 0x10
call fcn.100791e7
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
mov eax, dword [edi + 8]
sub eax, 0x10
call fcn.100791e7
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.100583c3
mov ebx, eax
mov eax, dword [ebp - 0x14]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.1007924a
lea eax, [esi - 0x10]
call fcn.1007924a
cmp byte [ebp - 0xd], 0
jne 0x10071d11
test bl, bl
jne 0x10071d11
cmp byte [edi + 0x15], bl
je 0x10071d11
cmp byte [edi + 0x14], bl
je 0x10071d11
inc bl
jmp 0x10071d13
xor bl, bl
lea ecx, [ebp - 0x30]
call fcn.10024209
mov al, bl
call fcn.10087296
ret
Function at 0x100738a4
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10096cd6
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x100ae210]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x20], ebx
push 0x1000c9dc
lea eax, [esp + 0x14]
push eax
call fcn.100580f9
and dword [esp + 0x58], 0
lea eax, [esp + 0x10]
push eax
push 0x100173bc
mov eax, 0x246c
call fcn.100824d0
mov edi, esp
lea esi, [ebx + 0x10]
mov dword [esp + 0x2490], esp
call fcn.1007796c
lea edi, [esp + 0x2490]
call fcn.1002c25c
push 0x10016a78
lea ecx, [esp + 0x24]
push ecx
mov edi, eax
mov byte [esp + 0x68], 1
call fcn.10058a90
lea ecx, [esp + 0x1c]
push ecx
mov edi, eax
mov byte [esp + 0x64], 2
call fcn.10058a35
mov byte [esp + 0x5c], 3
push dword [eax]
mov edi, dword [ebx + 8]
push 0x1000ca38
lea eax, [esp + 0x30]
push eax
call fcn.1002397d
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.1007924a
mov byte [esp + 0x58], 7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [ebx + 0x2480]
mov ebx, dword [ebx + 0xc]
push 0xe
push 4
push 2
push eax
call fcn.1006b172
mov esi, dword [esp + 0x20]
mov eax, dword [ebp + 8]
lea ecx, [esi - 8]
mov dword [esi + 0x2488], eax
call fcn.10075387
mov ebx, eax
xor eax, eax
cmp ebx, eax
jl 0x10073a13
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x100739dd
cmp eax, 0xffffffff
je 0x100739db
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x3c]
push eax
call ebx
test eax, eax
jne 0x100739c0
lea eax, [esi + 0x24c0]
call fcn.10051c60
cmp byte [esi + 4], 0
je 0x10073a2a
mov eax, dword [esi + 0x24b0]
mov edx, dword [esi - 8]
push eax
lea ecx, [esi - 8]
call dword [edx + 0x38]
mov edi, 0x80004004
jmp 0x10073a25
mov eax, dword [esi + 0x24b0]
mov edx, dword [esi - 8]
push eax
lea ecx, [esi - 8]
call dword [edx + 0x38]
mov edi, ebx
call fcn.100754f4
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x5c], 0
call fcn.100239be
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.1007924a
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1007529f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100ae210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jns 0x100752c6
xor al, al
jmp 0x10075376
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
test eax, eax
js 0x100752bf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
test eax, eax
js 0x100752bf
push edi
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1007eb10
xor eax, eax
push edi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.1007eb10
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x414]
push eax
push 0
push 0x10017bac
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [esi + 0x24b8]
mov edx, dword [esi]
lea ecx, [ebp - 0x414]
push ecx
push 0x10017bb4
push eax
mov ecx, esi
call dword [edx + 0x44]
pop edi
test eax, eax
js 0x100752bf
mov eax, dword [esi + 0x24b8]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x38]
test eax, eax
setns al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007b431
leave
ret
Function at 0x10075d34
Capabilities:
Accept command line arguments

Disassembly:
push 0x20
mov eax, 0x10094da0
call fcn.100871aa
xor ebx, ebx
push ebx
push 0x100b6130
mov esi, 0x100b6050
push esi
push ebx
push edi
call fcn.10086c45
mov edx, dword [eax]
add esp, 0x14
push dword [ebp + 0xc]
mov ecx, eax
call dword [edx + 4]
test al, al
jne 0x10075d7d
push 0x38
push 0x10017fe0
mov eax, dword [ebp + 0x14]
call fcn.1005ff5c
xor eax, eax
inc eax
jmp 0x10075e8c
push ebx
push 0x100b6070
push esi
push ebx
push edi
mov byte [ebp + 0xf], bl
call fcn.10086c45
add esp, 0x14
cmp eax, ebx
je 0x10075da0
cmp dword [eax + 0xf4], 4
sete byte [ebp + 0xf]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10023ed7
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.100244e6
mov esi, dword [ebp + 0x10]
mov byte [ebp - 4], 1
push dword [ebp + 0x18]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
push esi
push dword [ebp + 8]
push eax
push edi
call fcn.10072e64
mov byte [ebp + 0x13], al
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.1007924a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10024209
cmp byte [ebp + 0x13], bl
je 0x10075e32
cmp byte [ebp + 0x18], bl
je 0x10075e08
push 0x22
push 0x10018058
jmp 0x10075d6d
cmp dword [ebp + 8], 4
je 0x10075e26
cmp byte [ebp + 0xf], bl
jne 0x10075e26
mov eax, dword [ebp + 0x14]
push 0x21
push 0x100180d0
call fcn.1005ff5c
push 2
jmp 0x10075e8b
push 0x14
push 0x100180a0
jmp 0x10075d6d
push edi
call fcn.10075f24
test al, al
je 0x10075e4f
mov eax, dword [ebp + 0x14]
push 0x13
push 0x10018114
call fcn.1005ff5c
push 3
jmp 0x10075e8b
push 0x10018140
lea eax, [ebp + 0x18]
push eax
call fcn.100580f9
mov dword [ebp - 4], 2
mov eax, dword [ebp + 0x18]
push dword [eax - 0xc]
push eax
mov eax, dword [ebp + 0x14]
call fcn.1005ff5c
push dword [ebp + 0x18]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
call fcn.1007924a
push 5
pop eax
call fcn.10087296
ret 0x14
Function at 0x100767a9
Capabilities:
Get file size

Disassembly:
push 0x484
mov eax, 0x1009073e
call fcn.1008721d
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x480], eax
push 0x5c
pop eax
mov word [ebp - 0x1c], ax
xor eax, eax
mov dword [ebp - 0x478], 0x10018d18
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
push 0x10015e28
lea eax, [ebp - 0x47c]
push eax
call fcn.10058a35
push dword [eax]
lea edi, [ebp - 0x478]
call fcn.10034120
lea ebx, [eax - 1]
mov eax, dword [ebp - 0x47c]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
call fcn.1007924a
inc bl
je 0x10076935
xor eax, eax
cmp dword [ebp - 0x14], eax
je 0x1007682e
mov eax, dword [ebp - 0x474]
shr eax, 4
and eax, 1
cmp eax, 1
je 0x100768de
lea esi, [ebp - 0x48c]
lea edi, [ebp - 0x478]
call fcn.10034002
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x47c], ebx
mov dword [ebp - 0x488], ebx
mov dword [ebp - 0x484], ebx
push ebx
push 0x80
push 3
push 1
mov byte [ebp - 4], 2
mov eax, dword [esi]
push SysReAllocStringLen
push eax
lea edi, [ebp - 0x488]
call fcn.100280e5
cmp eax, ebx
jge 0x100768a1
push dword [esi]
mov edi, dword [ebp - 0x480]
mov esi, dword [edi + 4]
push 0x10018510
push 1
call fcn.10023a0d
add esp, 0xc
mov esi, ebx
jmp 0x100768b6
push ebx
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [ebp - 0x480]
mov esi, eax
cmp dword [ebp - 0x488], ebx
je 0x100768d0
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x488], ebx
add dword [edi], esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x48c]
jmp 0x10076919
lea esi, [ebp - 0x478]
call fcn.100340c6
cmp eax, 1
je 0x10076921
lea esi, [ebp - 0x490]
lea edi, [ebp - 0x478]
call fcn.10034002
push dword [ebp - 0x480]
mov byte [ebp - 4], 3
push eax
call fcn.100767a9
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x490]
add eax, 0xfffffff0
call fcn.1007924a
lea esi, [ebp - 0x478]
call fcn.100341f6
cmp eax, 1
je 0x1007681b
lea eax, [ebp - 0x478]
mov dword [ebp - 0x478], 0x10018d18
call fcn.10034223
call fcn.100872af
ret 8

Function at 0x10077c0b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10077c64
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10077c56
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10077c52
cmp edi, eax
jae 0x10077c56
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10077c44
cmp edi, eax
jb 0x10077c5a
xor eax, eax
jmp 0x10077c63
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x100784ff
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push 0
push 0x10010b1c
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10078567
cmp dword [ebp + 8], 1
je 0x1007853f
cmp dword [ebp + 8], 2
je 0x1007853f
push 0xd
pop eax
jmp 0x10078567
mov eax, dword [ebp - 4]
test edi, edi
je 0x10078561
test eax, eax
je 0x1007855c
test al, 1
jne 0x1007853a
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x10078561
jmp 0x1007853a
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 4

Function at 0x1007b431
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100ae210]
jne 0x1007b43b
repz ret
jmp fcn.1007e9c8
Function at 0x10083f89
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100ae210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1007d5a3
and dword [ebp - 0x14], 0
cmp dword [0x100b841c], 0
mov dword [ebp - 0x18], eax
jne 0x1008403c
push 0x10003634
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100840e4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10003628
push ebx
call edi
test eax, eax
je 0x100840e4
mov esi, dword [fcn.10001634]
push eax
call esi
push 0x10003618
push ebx
mov dword [0x100b841c], eax
call edi
push eax
call esi
push 0x10003604
push ebx
mov dword [0x100b8420], eax
call edi
push eax
call esi
push 0x100035e8
push ebx
mov dword [0x100b8424], eax
call edi
push eax
call esi
mov dword [0x100b842c], eax
test eax, eax
je 0x1008403c
push 0x100035d0
push ebx
call edi
push eax
call esi
mov dword [0x100b8428], eax
mov eax, dword [0x100b8428]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.10001630]
cmp eax, ecx
je 0x10084095
cmp dword [0x100b842c], ecx
je 0x10084095
push eax
call esi
push dword [0x100b842c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10084095
test ebx, ebx
je 0x10084095
call edi
test eax, eax
je 0x1008408c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1008408c
test byte [ebp - 8], 1
jne 0x10084095
or dword [ebp + 0x10], 0x200000
jmp 0x100840c8
mov eax, dword [0x100b8420]
cmp eax, dword [ebp - 0x18]
je 0x100840c8
push eax
call esi
test eax, eax
je 0x100840c8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100840c8
mov eax, dword [0x100b8424]
cmp eax, dword [ebp - 0x18]
je 0x100840c8
push eax
call esi
test eax, eax
je 0x100840c8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100b841c]
call esi
test eax, eax
je 0x100840e4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100840e6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007b431
leave
ret

Function at 0x10085be0
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
pop ebp
ret 4