joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10090ea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010277e
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x128], 0
cmp dword [ebp + 8], 0
jne 0x10090ee6
mov eax, dword [ebp - 0x128]
jmp 0x10091015
lea eax, [ebp - 0x124]
push eax
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x10090f12
mov eax, dword [ebp - 0x128]
jmp 0x10091015
push 0x5c
lea ecx, [ebp - 0x124]
push ecx
call fcn.10006840
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1009100f
mov edx, dword [ebp - 0x10]
mov byte [edx], 0
push 0x5c
lea eax, [ebp - 0x124]
push eax
call fcn.10006840
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1009100f
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10090f72
mov eax, dword [ebp - 0x128]
jmp 0x10091015
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x10090fe5
lea ecx, [ebp - 0x334]
call fcn.100132e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x334]
call fcn.10013b60
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.100cb090
add esp, 4
mov dword [ebp - 0x128], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10003fa0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
call fcn.10013330
jmp 0x1009100f
mov eax, dword [ebp - 0x10]
push eax
call fcn.100cb090
add esp, 4
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10003fa0
add esp, 0x10
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret
Function at 0x10093820
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x103
mov dword [ebp - 0x124], 0
mov dword [ebp - 8], 0x103
mov dword [ebp - 0x184], 0
cmp dword [ebp + 8], 0
jne 0x10093880
xor eax, eax
jne 0x10093876
push 0x805
push 0x1013abe8
push 0x1013ac20
call fcn.100cb557
add esp, 0xc
mov eax, 1
jmp 0x10093993
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.100cac20
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
push 0
push 0
push 0x8024
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x184], eax
push 5
push 0
lea edx, [ebp - 0x12c]
push edx
call fcn.100cac20
add esp, 0xc
mov dword [ebp - 0x39c], 0
jmp 0x100938de
mov eax, dword [ebp - 0x39c]
add eax, 1
mov dword [ebp - 0x39c], eax
cmp dword [ebp - 0x39c], 3
jge 0x10093903
mov ecx, dword [ebp - 0x39c]
mov edx, dword [ebp - 0x39c]
mov al, byte [ebp + edx - 0x120]
mov byte [ebp + ecx - 0x12c], al
jmp 0x100938cf
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x290]
push edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x398]
push ecx
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10093948
mov dword [ebp - 0x124], 0x82f8d8cc
push 0x50
push 0
lea eax, [ebp - 0x180]
push eax
call fcn.100cac20
add esp, 0xc
mov ecx, dword [ebp - 0x124]
push ecx
push 0x1013ac2c
lea edx, [ebp - 0x180]
push edx
call fcn.100cd213
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x180]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10003fa0
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret

Function at 0x10096f40
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.100cac20
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x10096f86
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10003fa0
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x1009dc30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10103130
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x10172eb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x1009dcaa
mov eax, dword [ebp + 8]
push eax
call fcn.100cb090
add esp, 4
test eax, eax
je 0x1009dcaa
cmp dword [ebp + 0x10], 0
je 0x1009dcaa
cmp dword [ebp + 0x14], 0
je 0x1009dcaa
cmp dword [ebp + 0x18], 0
jne 0x1009dcbf
mov dword [ebp - 0x24], 0x57
push 0x10156c8c
lea ecx, [ebp - 0x24]
push ecx
call fcn.100cb4c0
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x1009dcf6
mov dword [ebp - 0x28], 0
push 0x1015198c
lea eax, [ebp - 0x28]
push eax
call fcn.100cb4c0
push 0
mov ecx, dword [ebp + 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.1009d450
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jne 0x1009dd3c
mov dword [ebp - 0x2c], 0
push 0x1015198c
lea edx, [ebp - 0x2c]
push edx
call fcn.100cb4c0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x1009dd65
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x18]
je 0x1009dd7a
mov dword [ebp - 0x30], 0
push 0x1015198c
lea edx, [ebp - 0x30]
push edx
call fcn.100cb4c0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, dword [ebp - 0x34]
call fcn.1009cd20
jmp 0x1009ddb8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1009f2f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x234], ecx
mov byte [ebp - 0x230], 0
push 0x103
push 0
lea eax, [ebp - 0x22f]
push eax
call fcn.100cac20
add esp, 0xc
mov dword [ebp - 0x14], 0x103
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x128], 0
push 0x103
push 0
lea ecx, [ebp - 0x127]
push ecx
call fcn.100cac20
add esp, 0xc
mov dword [ebp - 8], 0x103
mov dword [ebp - 4], 1
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x230]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1009f3a7
mov dword [ebp - 0x18], 0x3d5b2a34
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret
Function at 0x100a9f50
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x101037e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x10172eb8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
xor edi, edi
push edi
push 2
mov dword [esp + 0x20], edi
call sub.Secur32.dll_GetUserNameExA
mov eax, dword [esp + 0x14]
cmp eax, edi
jbe 0x100aa14d
add eax, 1
push eax
call fcn.100aaab5
mov esi, eax
add esp, 4
cmp esi, edi
mov dword [esp + 0x18], esi
je 0x100aa14d
lea ecx, [esp + 0x14]
push ecx
push esi
push 2
call sub.Secur32.dll_GetUserNameExA
test al, al
je 0x100aa144
call fcn.100aca1a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x100a9fde
push 0x80004005
call fcn.100016d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], edi
call fcn.100aca1a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x100aa00c
push 0x80004005
call fcn.100016d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call fcn.10012160
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
cmp eax, edi
mov byte [esp + 0x30], 2
jle 0x100aa0c7
push 0x5c
push ecx
call fcn.100d07f3
add esp, 8
cmp eax, edi
je 0x100aa0c7
mov ecx, dword [esp + 0x10]
sub eax, ecx
mov edi, eax
cmp edi, 0xffffffff
je 0x100aa0c7
mov esi, dword [ecx - 0xc]
push edi
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call fcn.10012760
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 3
call fcn.10012ab0
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 2
call fcn.10008b60
sub esi, edi
sub esi, 1
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.100126e0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 4
call fcn.10012ab0
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 2
call fcn.10008b60
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
push esi
push ebp
push ecx
call fcn.100a9890
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x30], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100aa0fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100aa11c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100aa140
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push esi
call fcn.100aaaba
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
Function at 0x100aed3a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x100aed7a
push 0x10143be0
push 4
push eax
call fcn.100cad54
push eax
call fcn.10001d00
add esp, 0x10
jmp 0x100aed8c
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x100aedfa
push edi
call fcn.100d3aad
mov edi, dword [eax]
call fcn.100d3aad
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.100cd2e1
add esp, 0x18
mov ebx, eax
call fcn.100d3aad
cmp dword [eax], 0
je 0x100aedda
call fcn.100d3aad
push dword [eax]
call fcn.1000b410
pop ecx
jmp 0x100aede1
call fcn.100d3aad
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x100aedfa
cmp ebx, esi
jae 0x100aedfa
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x100aedfc
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100ca7f5
leave
ret
Function at 0x100bfec3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x100bfefc
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100ac919
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100695f0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x100c1e03
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x100c1e46
call fcn.100b230b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x100c1e46
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100c1e61
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.100c19ba
test ebx, ebx
mov esi, eax
je 0x100c1e5f
test edi, edi
je 0x100c1e5f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x100ca7f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10172eb8]
jne 0x100ca7ff
repz ret
jmp fcn.100d671c

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x100d26df
call fcn.100d3ac0
mov dword [eax], esi
call fcn.100d3aad
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.100cc2d3
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x100d26bb
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100d270e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100d3ad3
pop ecx
call fcn.100d3aad
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x100d2735
test al, 1
je 0x100d2735
test byte [esp + 0xc], 2
je 0x100d2735
call fcn.100d3ac0
mov dword [eax], 5
call fcn.100d3aad
mov dword [eax], 0xd
jmp 0x100d2705
xor eax, eax
pop esi
ret
Function at 0x100d9d88
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100d60ae
xor ebx, ebx
cmp dword [0x10176cfc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x100d9e5e
push 0x101461a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x100d9f3e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
cmp eax, ebx
je 0x100d9f3e
push eax
call fcn.100d6040
mov dword [esp], 0x10146188
push edi
mov dword [0x10176cfc], eax
call esi
push eax
call fcn.100d6040
mov dword [esp], 0x10146174
push edi
mov dword [0x10176d00], eax
call esi
push eax
call fcn.100d6040
mov dword [0x10176d04], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100d3c7e
test eax, eax
pop ecx
pop ecx
je 0x100d9e2c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100cc19f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x100d9e5e
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.100d6040
cmp eax, ebx
pop ecx
mov dword [0x10176d0c], eax
je 0x100d9e5e
push 0x10146140
push edi
call esi
push eax
call fcn.100d6040
pop ecx
mov dword [0x10176d08], eax
mov eax, dword [0x10176d08]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100d9ee3
cmp dword [0x10176d0c], ecx
je 0x100d9ee3
push eax
call fcn.100d60b7
push dword [0x10176d0c]
mov esi, eax
call fcn.100d60b7
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100d9ee3
cmp edi, ebx
je 0x100d9ee3
call esi
cmp eax, ebx
je 0x100d9eb0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100d9eb0
test byte [ebp - 0x18], 1
jne 0x100d9ee3
lea eax, [ebp - 0x10]
push eax
call fcn.100d3d2d
test eax, eax
pop ecx
je 0x100d9ecb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100cc19f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100d9eda
or dword [ebp + 0x10], 0x200000
jmp 0x100d9f1e
or dword [ebp + 0x10], 0x40000
jmp 0x100d9f1e
mov eax, dword [0x10176d00]
cmp eax, dword [ebp - 8]
je 0x100d9f1e
push eax
call fcn.100d60b7
cmp eax, ebx
pop ecx
je 0x100d9f1e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100d9f1e
mov eax, dword [0x10176d04]
cmp eax, dword [ebp - 8]
je 0x100d9f1e
push eax
call fcn.100d60b7
cmp eax, ebx
pop ecx
je 0x100d9f1e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10176cfc]
call fcn.100d60b7
cmp eax, ebx
pop ecx
je 0x100d9f3e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100d9f40
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100dc129
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10173b60]
je 0x100dc144
inc edi
cmp edi, 0x17
jb 0x100dc135
cmp edi, 0x17
jae 0x100dc2c4
push ebp
push 3
call fcn.100da344
cmp eax, 1
pop ecx
je 0x100dc290
push 3
call fcn.100da344
test eax, eax
pop ecx
jne 0x100dc178
cmp dword [0x10176908], 1
je 0x100dc290
cmp ebx, 0xfc
je 0x100dc2c3
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10176e68
push ebp
call fcn.100cad54
add esp, 0xc
test eax, eax
je 0x100dc1ae
push esi
push esi
push esi
push esi
push esi
call fcn.100cc19f
add esp, 0x14
push 0x104
mov esi, 0x10176e81
push esi
push 0
mov byte [0x10176f85], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100dc1f2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.100cad54
add esp, 0xc
test eax, eax
je 0x100dc1f2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100cc19f
add esp, 0x14
push esi
call fcn.100cb090
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100dc237
push esi
call fcn.100cb090
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1017717c
push 0x10145ecc
sub ecx, eax
push ecx
push eax
call fcn.100d48d3
add esp, 0x14
test eax, eax
je 0x100dc237
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100cc19f
add esp, 0x14
jmp 0x100dc239
xor esi, esi
push 0x101461bc
push ebx
push ebp
call fcn.100cb017
add esp, 0xc
test eax, eax
je 0x100dc259
push esi
push esi
push esi
push esi
push esi
call fcn.100cc19f
add esp, 0x14
push dword [edi*8 + 0x10173b64]
push ebx
push ebp
call fcn.100cb017
add esp, 0xc
test eax, eax
je 0x100dc27b
push esi
push esi
push esi
push esi
push esi
call fcn.100cc19f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.100eff27
add esp, 0xc
jmp 0x100dc2c3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x100dc2c3
cmp ebp, 0xffffffff
je 0x100dc2c3
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10173b64]
push dword [esi]
call fcn.100cb090
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x100eff27
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100d60ae
xor ebx, ebx
cmp dword [0x101773b8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x100efffd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100f00dd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101486f4
push edi
call esi
cmp eax, ebx
je 0x100f00dd
push eax
call fcn.100d6040
mov dword [esp], 0x10146188
push edi
mov dword [0x101773b8], eax
call esi
push eax
call fcn.100d6040
mov dword [esp], 0x10146174
push edi
mov dword [0x101773bc], eax
call esi
push eax
call fcn.100d6040
mov dword [0x101773c0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100d3c7e
test eax, eax
pop ecx
pop ecx
je 0x100effcb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100cc19f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x100efffd
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100d6040
cmp eax, ebx
pop ecx
mov dword [0x101773c8], eax
je 0x100efffd
push 0x10146140
push edi
call esi
push eax
call fcn.100d6040
pop ecx
mov dword [0x101773c4], eax
mov eax, dword [0x101773c4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100f0082
cmp dword [0x101773c8], ecx
je 0x100f0082
push eax
call fcn.100d60b7
push dword [0x101773c8]
mov esi, eax
call fcn.100d60b7
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100f0082
cmp edi, ebx
je 0x100f0082
call esi
cmp eax, ebx
je 0x100f004f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100f004f
test byte [ebp - 0x18], 1
jne 0x100f0082
lea eax, [ebp - 0x10]
push eax
call fcn.100d3d2d
test eax, eax
pop ecx
je 0x100f006a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100cc19f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100f0079
or dword [ebp + 0x10], 0x200000
jmp 0x100f00bd
or dword [ebp + 0x10], 0x40000
jmp 0x100f00bd
mov eax, dword [0x101773bc]
cmp eax, dword [ebp - 8]
je 0x100f00bd
push eax
call fcn.100d60b7
cmp eax, ebx
pop ecx
je 0x100f00bd
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100f00bd
mov eax, dword [0x101773c0]
cmp eax, dword [ebp - 8]
je 0x100f00bd
push eax
call fcn.100d60b7
cmp eax, ebx
pop ecx
je 0x100f00bd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101773b8]
call fcn.100d60b7
cmp eax, ebx
pop ecx
je 0x100f00dd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100f00df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100faaa3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.100fa902
mov eax, sym.PfMgrApi.dll_Ordinal_477
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.100cac20
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 0x100faaf2
cmp dword [ebp - 0x1c], 5
jb 0x100fab0a
jmp 0x100fab06
cmp dword [ebp - 0x10], 1
jne 0x100fab0a
cmp dword [ebp - 0x1c], 4
ja 0x100fab06
jne 0x100fab0a
cmp dword [ebp - 0x18], 0
jbe 0x100fab0a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1014ac60
call fcn.100fa6bf
test eax, eax
jge 0x100fab2b
mov byte [0x101746a4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100ca7f5
add ebp, 0x78
leave
ret