joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100509ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov eax, dword [0x10084ca0]
push ebx
push ebp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb4]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
jne 0x10019b4f
xor eax, eax
jmp 0x10019cf2
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.10002860
lea eax, [esp + 0x14]
push eax
call fcn.1000c450
mov dword [esp + 0xbc], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0xc8], 1
call fcn.10005d80
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp ecx, eax
je 0x10019c96
mov ebp, dword [esp + 0xc0]
add ebp, 0x38
lea esi, [ecx + 4]
mov edi, 0xf
jmp 0x10019bc0
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
cmp dword [esi + 0x14], 0x10
mov byte [esp + 0xb4], 3
mov dword [esp + 0x24], 1
jb 0x10019c25
mov eax, dword [esi]
jmp 0x10019c27
mov eax, esi
push 5
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
call fcn.10005f40
add esp, 0x10
push 1
push str.123
lea ecx, [esp + 0x78]
call fcn.10002d30
push 1
push str.123
lea ecx, [esp + 0x94]
call fcn.10002d30
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.10019a20
mov ecx, eax
call fcn.10019030
lea ecx, [esp + 0x24]
call fcn.1000efb0
mov eax, dword [esp + 0x1c]
add esi, 0x1c
lea edx, [esi - 4]
cmp edx, eax
jne 0x10019bc0
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x10019cb8
mov edx, dword [esp + 0x10]
push edx
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call fcn.10005550
mov eax, dword [esp + 0x28]
push eax
call fcn.1003ac0a
add esp, 0x14
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0xb4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10019ced
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xa8]
call fcn.10027973
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret 8
Function at 0x1001b400
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
mov eax, dword [0x10084ca0]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [esp + 0x41c], eax
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerToolbar
push SysReAllocString
mov dword [esp + 0x20], 0
call esi
test eax, eax
jne 0x1001b479
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push eax
push str.Locked
push edx
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerToolbarWebBrowser
push SysReAllocString
call esi
test eax, eax
jne 0x1001b532
mov byte [esp + 0x18], al
mov ecx, 0xff
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.ITBarLayout
push edx
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001b510
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
push 0
push str.ITBarLayout
push eax
mov byte [esp + 0x40], 0x1f
mov byte [esp + 0x44], 0x6a
mov byte [esp + 0x7c], 0xa1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x41c]
call fcn.10027973
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x41c]
xor eax, eax
call fcn.10027973
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001b700
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerLinksBar
push SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001b75e
mov edx, dword [esp]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push eax
push str.Enabled
push edx
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x1001b930
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10050c16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [0x10084ca0]
push esi
mov dword [esp + 0x54], eax
lea eax, [esp + 4]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SoftwareMicrosoftInternet_Explorer_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001ba2d
push edi
mov byte [esp + 0x18], al
mov ecx, 0xf
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
stosb byte es:[edi], al
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
push esi
push str.Version
mov edi, 1
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001ba21
mov al, byte [esp + 0x18]
cmp al, 0x36
jne 0x1001b9fa
push 8
call fcn.1003abdf
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
mov dword [esp + 0x64], 0
je 0x1001b9f6
mov ecx, esi
call fcn.1001b3a0
mov dword [esi], 0x10065dfc
jmp 0x1001ba21
xor esi, esi
jmp 0x1001ba21
cmp al, 0x38
jne 0x1001ba21
push 8
call fcn.1003abdf
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x64], edi
je 0x1001ba1d
mov ecx, eax
call fcn.1001b910
jmp 0x1001ba1f
xor eax, eax
mov esi, eax
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x54]
mov eax, esi
pop esi
call fcn.10027973
add esp, 0x60
ret
Function at 0x1001e5a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x1001e5fa
call fcn.1004aad5
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x1001e5fa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1001e5f0
xor eax, eax
jmp 0x1001e713
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x1001e62a
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x1001e62a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x1001e710
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x1001e657
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.1001c774
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x1001e710
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1001e6a0
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x1001e6a0
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x1001e69a
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.1001c774
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x1001e700
and dword [ebp + 0xc], 0
jmp 0x1001e700
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x1001e700
push 0xc
call fcn.1003abdf
mov esi, eax
test esi, esi
pop ecx
je 0x1001e6e2
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x1001e6e4
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x1001e6fb
push dword [ebp - 8]
call fcn.1003a0a3
jmp 0x1001e700
call fcn.1003a07a
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x1001e665
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10027df9
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.10027aa0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10027e94
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 [0x10089770]
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 0x10027e94
cmp eax, 1
je 0x10027eb5
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 0x10027e94
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10027e61
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10027e90
xor eax, eax
inc eax
jmp 0x10027ed4
cmp edi, eax
jae 0x10027e98
xor eax, eax
jmp 0x10027ed4
cmp eax, esi
jae 0x10027e9f
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 [0x10089770]
jmp 0x10027eb8
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 0x1002873b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x10028758
call fcn.1002a111
mov dword [eax], 0x16
xor eax, eax
jmp 0x100287c2
push esi
push 0x8c
push 1
call fcn.1002bf6f
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100287ad
push esi
call fcn.1002c083
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x1002878b
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x100286a6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x100287c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.10027d88
test ebx, ebx
pop ecx
je 0x100287bf
push ebx
call fcn.1002a123
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10029a71
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10029b61
mov eax, 0x94
call fcn.10027aa0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10029bd6
mov ecx, dword [esi + 0x10]
mov dword [0x10089770], ecx
mov eax, dword [esi + 4]
mov dword [0x1008977c], eax
mov edx, dword [esi + 8]
mov dword [0x10089780], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10089774], esi
je 0x10029adc
or esi, 0x8000
mov dword [0x10089774], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10089778], eax
call fcn.1002f211
test eax, eax
pop ecx
je 0x10029bd6
call fcn.1002c27d
test eax, eax
jne 0x10029b09
call fcn.1002f262
jmp 0x10029bd6
call fcn.10031456
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1008a170], eax
call fcn.10031334
mov dword [0x1008975c], eax
call fcn.10030c7a
test eax, eax
jl 0x10029b5a
call fcn.10031292
test eax, eax
jl 0x10029b55
call fcn.1003105f
test eax, eax
jl 0x10029b55
push 0
call fcn.1002a711
test eax, eax
pop ecx
jne 0x10029b55
inc dword [0x10089758]
jmp 0x10029be7
call fcn.10030e78
call fcn.1002c066
jmp 0x10029aff
test eax, eax
jne 0x10029b91
cmp dword [0x10089758], eax
jle 0x10029bd6
dec dword [0x10089758]
cmp dword [0x100897ac], eax
jne 0x10029b80
call fcn.1002a84f
call fcn.10030e78
call fcn.1002c066
call fcn.1002f262
jmp 0x10029be7
cmp eax, 2
jne 0x10029bda
push 0x8c
push 1
call fcn.1002bf6f
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10029bd6
push esi
push dword [0x10085220]
call dword [0x100897c0]
test eax, eax
push esi
je 0x10029bd0
call fcn.1002c083
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10029be7
call fcn.10027d88
pop ecx
xor eax, eax
jmp 0x10029bea
cmp eax, 3
jne 0x10029be7
push 0
call fcn.1002c24e
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x1002a77b
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1006a5f8
call fcn.1002a5e0
push 8
call fcn.1002f1c6
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x100897b0], esi
jne 0x1002a7af
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x100897ac], esi
mov al, byte [ebp + 0x10]
mov byte [0x100897a8], al
cmp dword [ebp + 0xc], edi
jne 0x1002a7f9
cmp dword [0x1008a168], edi
je 0x1002a7e9
mov eax, dword [0x1008a164]
sub eax, 4
mov dword [0x1008a164], eax
cmp eax, dword [0x1008a168]
jb 0x1002a7e9
mov eax, dword [eax]
cmp eax, edi
je 0x1002a7ca
call eax
jmp 0x1002a7ca
push 0x100780fc
mov eax, 0x100780f4
call fcn.1002a6f9
pop ecx
push 0x10078108
mov eax, 0x10078100
call fcn.1002a6f9
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1002a82a
cmp dword [ebp + 0x10], edi
jne 0x1002a838
mov dword [0x100897b0], esi
push dword [ebp + 8]
call fcn.1002a6b7
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1002a837
push 8
call fcn.1002f111
pop ecx
ret
call fcn.1002a61b
ret
Function at 0x10030221
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x10084ca0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x10030252
xor eax, eax
jmp 0x100303db
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10089e00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1003028e
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.10034f1e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10030369
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x100303a7
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x100302f2
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100302e3
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x100302c3
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10030332
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1003033b
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x100302b4
jmp 0x1003033d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x100303d6
cmp dword [ebp - 0x6c], edi
je 0x100303a7
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1003039c
call fcn.1002a111
mov dword [eax], 9
call fcn.1002a11a
mov dword [eax], esi
jmp 0x100303d1
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10030391
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1003033d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1003033d
push dword [ebp - 0x6c]
call fcn.1002a123
pop ecx
jmp 0x100303d1
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100303bf
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x100303bf
xor eax, eax
jmp 0x100303d9
call fcn.1002a111
mov dword [eax], 0x1c
call fcn.1002a11a
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x100303d9
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.10027973
add ebp, 0x3a0
leave
ret
Function at 0x100314de
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x10084ca0]
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 + 0x10085720]
je 0x10031513
inc eax
cmp eax, 0x13
jb 0x10031504
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10085720]
jne 0x10031639
mov eax, dword [0x10089764]
cmp eax, 1
je 0x10031611
cmp eax, edx
jne 0x10031543
cmp dword [0x10089768], 1
je 0x10031611
cmp ecx, 0xfc
je 0x10031639
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 0x10031579
lea eax, [ebp - 0x80]
push 0x1006a900
push eax
call fcn.10030ad0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.1002a050
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100315ad
mov eax, edi
push eax
call fcn.1002a050
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1006a8fc
push edi
call fcn.10028420
add esp, 0x10
push edi
call fcn.1002a050
push dword [esi + 0x10085724]
mov ebx, eax
call fcn.1002a050
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10027aa0
mov ebx, esp
push 0x1006b100
push ebx
call fcn.10030ad0
push edi
push ebx
call fcn.10030ae0
push 0x1006a8f8
push ebx
call fcn.10030ae0
push dword [esi + 0x10085724]
push ebx
call fcn.10030ae0
push 0x12010
push 0x1006a8c4
push ebx
call fcn.1003361c
add esp, 0x2c
jmp 0x10031639
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x10085724]
push dword [esi]
call fcn.1002a050
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.10027973
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret

Function at 0x100324c7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x100324f5
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x100324fa
cmp eax, 1
je 0x100324fa
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100324fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10084ca0]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x10032576
push ebx
call fcn.100324c7
test eax, eax
pop ecx
jne 0x10032545
call fcn.1002a11a
mov dword [eax], 0xf
call fcn.1002a111
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.10027973
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x10032588
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x10032538
inc eax
cmp eax, 0x104
ja 0x10032538
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x100325c0
cmp eax, dword [ebp + 0x10]
jg 0x100325a3
mov eax, dword [ebp + 0x10]
push eax
call fcn.10027d76
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x100325d5
call fcn.1002a111
mov dword [eax], 0xc
jmp 0x10032538
cmp eax, dword [ebp + 0x10]
jle 0x100325d5
call fcn.1002a111
mov dword [eax], 0x22
jmp 0x10032538
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.10030ad0
pop ecx
pop ecx
jmp 0x1003253a