joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100544e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x101203c]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push 0x10012e8
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x21c]
push 0x10012dc
push eax
mov dword [ebp - 0x224], esi
mov byte [ebp - 0x14], 0xc
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], 6
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], bl
mov byte [ebp - 6], bl
mov byte [ebp - 5], bl
call edi
add esp, 0x10
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x1005502
cmp eax, 5
je 0x10055a8
push esi
push 0x3f1
jmp 0x1005549
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x10
lea eax, [ebp - 0x14]
push eax
push 3
push ebx
push dword [ebp - 0x228]
push dword [ebp - 0x220]
call esi
cmp eax, ebx
mov dword [ebp - 0x22c], eax
je 0x100555f
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x22c], 5
je 0x10055a8
push dword [ebp - 0x224]
push 0x3f4
call fcn.01004b65
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007b7f
leave
ret 8
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push 0x10012c4
push eax
mov byte [ebp - 0x14], bl
call edi
add esp, 0xc
push 4
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
call esi
push dword [ebp - 0x220]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x1005550
cmp esi, 5
jne 0x100553e
push 0x3f0
call fcn.01004b65
jmp 0x100554f
Function at 0x10055b9
Capabilities:
Delete registry value
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x101203c]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov edi, 0x10012e8
push edi
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0x10012dc
push eax
mov dword [ebp - 0x218], ecx
call ebx
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call fcn.01004d3c
or eax, 0xf003f
push eax
xor esi, esi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x1005653
cmp eax, 5
jne 0x100563b
push 0x3f0
call fcn.01004b65
jmp 0x100564d
lea eax, [ebp - 0x20c]
push eax
push 0x3f6
call fcn.01004b65
pop ecx
pop ecx
jmp 0x100571c
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push 0x10012c4
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
cmp dword [ebp - 0x21c], esi
mov dword [ebp - 0x210], esi
jne 0x100571c
lea eax, [ebp - 0x210]
push eax
call fcn.01004d3c
or eax, 0xf003f
push eax
push esi
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1005700
push dword [ebp - 0x214]
push dword [ebp - 0x210]
call fcn.01005402
cmp eax, esi
je 0x1005714
push edi
push dword [ebp - 0x214]
push 0x3f7
call fcn.01004b65
add esp, 0xc
push dword [ebp - 0x210]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007b7f
leave
ret 8

Function at 0x1005730
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
je 0x1005781
add esi, 4
lea eax, [esi + esi]
push ebx
push eax
call fcn.010081a2
mov ebx, eax
test ebx, ebx
pop ecx
je 0x1005780
push 0x100136c
push ebx
call fcn.01007ff2
pop ecx
pop ecx
add esi, 0xfffffffc
push esi
lea eax, [ebx + 8]
push eax
push dword [ebp + 8]
call edi
neg eax
sbb eax, eax
and eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x1005883
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
xor edi, edi
call fcn.01005730
mov esi, eax
cmp esi, edi
jne 0x10058a8
push 0x1f5
call fcn.01004b65
xor eax, eax
jmp 0x10058e6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10058c5
test al, 0x10
jne 0x10058d1
push 0x1f5
call fcn.01004b65
pop ecx
jmp 0x10058de
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x10058b6
push esi
call fcn.0100578c
test eax, eax
jne 0x10058b8
xor edi, edi
inc edi
push esi
call fcn.010081ba
mov eax, edi
pop ecx
pop edi
pop esi
pop ebp
ret 4
Function at 0x10058f2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x101203c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x104
push esi
push eax
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], ebx
call fcn.010082c1
push esi
lea eax, [ebp - 0x20c]
push 0x10012ac
push eax
mov word [ebp - 6], bx
call fcn.0100827d
add esp, 0x18
cmp dword [0x101314c], ebx
mov word [ebp - 6], bx
je 0x100596f
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x420]
call fcn.0100544e
cmp dword [ebp + 0x20], ebx
mov eax, 0x1001430
jne 0x100597e
mov eax, 0x10012dc
push dword [ebp - 0x420]
push 0x10013a8
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.01008206
add esp, 0x14
test eax, eax
jge 0x10059ae
push 0x408
call fcn.01004b65
pop ecx
jmp 0x1005abf
push ebx
lea eax, [ebp - 0x418]
push eax
push ebx
call fcn.01004d3c
or eax, 0xf003f
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10059e9
lea eax, [ebp - 0x414]
push eax
push 0x3f1
jmp 0x1005a15
push 8
lea eax, [ebp + 0x18]
push eax
push 0xb
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1005a1d
lea eax, [ebp - 0x414]
push eax
push 0x3f4
call fcn.01004b65
pop ecx
jmp 0x10059a8
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x1005ab5
push 0x6001
push esi
push edi
call fcn.0100e5ad
cmp eax, ebx
je 0x1005ab5
push eax
push edi
call fcn.0100e539
cmp eax, ebx
je 0x1005ab5
push 0x1001390
push eax
call fcn.010081ca
test eax, eax
pop ecx
pop ecx
jne 0x1005ab5
push 0x6023
push esi
push edi
call fcn.0100e5ad
cmp eax, ebx
je 0x1005ab5
push eax
push edi
call fcn.0100e539
cmp eax, ebx
je 0x1005ab5
push 0x1001378
push eax
call fcn.010081ca
test eax, eax
pop ecx
pop ecx
jne 0x1005ab5
push 0x700f
push esi
push edi
call fcn.0100e5ad
cmp eax, ebx
je 0x1005ab5
push 0x601e
push eax
push edi
call fcn.0100e5ad
cmp eax, ebx
je 0x1005ab5
push eax
push edi
call fcn.0100e539
cmp eax, ebx
je 0x1005ab5
push eax
call fcn.01005883
test eax, eax
je 0x1005abf
mov dword [ebp - 0x41c], 1
cmp dword [ebp - 0x418], ebx
pop edi
pop esi
pop ebx
je 0x1005ad6
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
call fcn.01007b7f
leave
ret 0x1c
Function at 0x1005aed
Capabilities:
Delete registry value
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x101203c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x104
push esi
push eax
lea eax, [ebp - 0x20c]
xor edi, edi
push eax
mov dword [ebp - 0x628], ebx
mov dword [ebp - 0x624], edi
mov dword [ebp - 0x620], edi
call fcn.010082c1
push esi
lea eax, [ebp - 0x20c]
push 0x10012ac
push eax
mov word [ebp - 6], di
call fcn.0100827d
add esp, 0x18
cmp dword [0x101314c], edi
mov word [ebp - 6], di
je 0x1005b62
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.010055b9
cmp dword [ebp + 0x18], edi
mov eax, 0x1001430
jne 0x1005b71
mov eax, 0x10012dc
push ebx
push 0x10013a8
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.01008206
add esp, 0x14
test eax, eax
jge 0x1005b9c
push 0x408
call fcn.01004b65
pop ecx
jmp 0x1005d2d
lea eax, [ebp - 0x620]
push eax
call fcn.01004d3c
or eax, 0xf003f
push eax
push edi
lea eax, [ebp - 0x414]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1005bde
cmp eax, 5
jne 0x1005d2d
push 0x3f5
call fcn.01004b65
pop ecx
jmp 0x1005d37
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x620]
call ebx
cmp eax, edi
je 0x1005c56
cmp eax, 5
je 0x1005bce
cmp eax, 2
jne 0x1005c37
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.01007ff2
lea eax, [ebp - 0x61c]
push 0x10012ac
push eax
call fcn.01007fbf
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x620]
call ebx
cmp eax, edi
je 0x1005c56
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x3f8
call fcn.01004b65
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x62c]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x62c], edi
jne 0x1005d2d
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x18], edi
mov dword [ebp - 0x620], edi
mov eax, 0x1001454
jne 0x1005ca0
mov eax, 0x100144c
push 0x10013a8
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.01008206
add esp, 0x10
test eax, eax
jl 0x1005b8c
lea eax, [ebp - 0x620]
push eax
call fcn.01004d3c
or eax, 0x20006
push eax
push edi
lea eax, [ebp - 0x414]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1005cfe
lea eax, [ebp - 0x414]
push eax
push 0x3f6
call fcn.01004b65
pop ecx
jmp 0x1005b96
push dword [ebp - 0x628]
push dword [ebp - 0x620]
call fcn.01005402
test eax, eax
je 0x1005d2d
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x628]
push 0x3f7
call fcn.01004b65
add esp, 0xc
mov dword [ebp - 0x624], 1
cmp dword [ebp - 0x620], edi
pop edi
pop esi
pop ebx
je 0x1005d4e
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x624]
call fcn.01007b7f
leave
ret 0x14
Function at 0x10063d9
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
je 0x1006429
mov eax, dword [edi + 8]
push 8
lea esi, [eax + 0x60]
add eax, 8
push eax
push 0xb
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x1006462
mov edi, dword [edi + 8]
push eax
push dword [edi + 0xc]
add edi, 0x60
push dword [edi - 0x58]
push edi
push 0x10018d0
call fcn.01004cb9
add esp, 0x14
jmp 0x1006496
mov esi, dword [edi + 8]
push 2
push 0x10018cc
push 1
mov ebx, 0xe0
push 0
add esi, ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1006462
push eax
mov eax, dword [edi + 8]
add eax, ebx
push eax
push 0x1001888
call fcn.01004cb9
add esp, 0xc
jmp 0x1006496
add edi, 0xc
push esi
push edi
call fcn.01008113
test eax, eax
pop ecx
pop ecx
je 0x100648f
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100648f
push eax
push edi
push 0x100184c
call fcn.01004cb9
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1007cc6
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x1002130
call fcn.01009278
mov edi, 0x94
mov eax, edi
call fcn.01007f20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1013170], ecx
mov eax, dword [esi + 4]
mov dword [0x101317c], eax
mov edx, dword [esi + 8]
mov dword [0x1013180], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1013174], esi
cmp ecx, 2
je 0x1007d26
or esi, 0x8000
mov dword [0x1013174], esi
shl eax, 8
add eax, edx
mov dword [0x1013178], eax
cmp word [0x1000000], 0x5a4d
jne 0x1007d63
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1007d63
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1007d7c
cmp ecx, 0x20b
je 0x1007d69
and dword [ebp - 0x1c], 0
jmp 0x1007d93
cmp dword [eax + 0x1000084], 0xe
jbe 0x1007d63
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1007d8d
cmp dword [eax + 0x1000074], 0xe
jbe 0x1007d63
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.0100921a
pop ecx
test eax, eax
jne 0x1007dc0
cmp dword [0x1013160], 1
jne 0x1007dad
call fcn.0100890e
push 0x1c
call fcn.01008721
push 0xff
call fcn.01008580
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.0100904a
test eax, eax
jge 0x1007dd5
push 0x1b
call fcn.01007c97
pop ecx
call fcn.01008f9a
mov dword [0x10147f0], eax
call fcn.01008dfb
mov dword [0x101315c], eax
call fcn.01008d5e
test eax, eax
jge 0x1007dfa
push 8
call fcn.01007c97
pop ecx
call fcn.01008b1d
test eax, eax
jge 0x1007e0b
push 9
call fcn.01007c97
pop ecx
call fcn.010085da
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1007e1e
push eax
call fcn.01007c97
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.01008ac4
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1007e40
movzx eax, word [ebp - 0x40]
jmp 0x1007e43
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.010074d5
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1007e64
push esi
call fcn.010086ba
call fcn.010086f2
jmp 0x1007e96
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.010092b3
ret
Function at 0x1008721
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x101203c]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1012050]
je 0x100874b
inc eax
cmp eax, 0x12
jb 0x100873c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1012050]
mov dword [ebp - 0x110], esi
jne 0x10088f6
mov eax, dword [0x1013160]
cmp eax, 1
je 0x10088c4
test eax, eax
jne 0x1008781
cmp dword [0x1012044], 1
je 0x10088c4
cmp ecx, 0xfc
je 0x10088f6
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10087bc
push 5
pop ecx
mov esi, 0x10024a4
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10087c7
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x10087ff
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10087df
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10024a0
push ebx
call fcn.0100b290
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1008804
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1012054]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100881e
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01007f20
mov edx, esp
push 6
pop ecx
mov esi, 0x1002484
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100884a
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1008856
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100886f
mov eax, dword [ebp - 0x110]
mov esi, 0x1002480
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1012054]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100888d
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1008899
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1002458
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100b18e
add esp, 0xc
jmp 0x10088f6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10088f6
mov esi, dword [esi + 0x1012054]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10088db
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.01007b7f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008dfb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10133cc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
cmp eax, ebx
push 2
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
pop edi
jne 0x1008e4e
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1008e35
mov dword [0x10133cc], 1
jmp 0x1008e53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1008e49
mov eax, edi
mov dword [0x10133cc], eax
jmp 0x1008e4e
mov eax, dword [0x10133cc]
cmp eax, 1
jne 0x1008eba
cmp dword [ebp - 4], ebx
jne 0x1008e68
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1008e68
xor eax, eax
jmp 0x1008f79
mov ecx, dword [ebp - 4]
cmp word [ecx], bx
mov eax, ecx
je 0x1008e80
add eax, edi
cmp word [eax], bx
jne 0x1008e72
add eax, edi
cmp word [eax], bx
jne 0x1008e72
sub eax, ecx
add eax, edi
mov esi, eax
push esi
call fcn.0100ab5a
cmp eax, ebx
pop ecx
jne 0x1008ea1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x1008f79
mov ecx, esi
mov esi, dword [ebp - 4]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, eax
jmp 0x1008e91
cmp eax, edi
je 0x1008ec2
cmp eax, ebx
jne 0x1008e61
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1008e61
cmp byte [esi], bl
je 0x1008f07
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x1008e61
add dword [ebp - 8], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1008ef3
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x1008ed5
mov esi, dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.0100ab5a
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x1008f20
push esi
jmp 0x1008f8a
mov edi, esi
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax], bl
je 0x1008f6a
mov ecx, dword [ebp - 8]
mov eax, esi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1008f7e
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1008f4e
sub eax, edx
push esi
lea edi, [edi + eax + 1]
call fcn.010080f4
cmp byte [edi], bl
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x1008f2b
push dword [ebp - 4]
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.0100ab76
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x1008e61
Function at 0x1008f9a
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10133d0]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x1008fde
call esi
test eax, eax
je 0x1008fc3
mov dword [0x10133d0], 1
jmp 0x1008fe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1008fda
mov dword [0x10133d0], 2
jmp 0x1008fec
xor eax, eax
jmp 0x1009042
cmp eax, 1
jne 0x1008fe7
call esi
jmp 0x1009042
cmp eax, 2
jne 0x1008fda
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x100903f
lea eax, [edi + edi]
push eax
call fcn.0100ab5a
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x100903f
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x1009036
mov eax, dword [ebp - 4]
jmp 0x1009041
push dword [ebp - 4]
call fcn.0100ab76
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x100abb8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101203c]
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x100ac3c
push esi
call fcn.0100c8cc
test eax, eax
pop ecx
jne 0x100ac04
mov dword [0x1013168], 0xf
mov dword [0x1013164], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01007b7f
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x100ac4f
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x100abf6
inc eax
cmp eax, esi
ja 0x100abf6
test edi, edi
mov ecx, edi
jne 0x100ac84
cmp eax, dword [ebp + 0x10]
jg 0x100ac66
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.0100ab5a
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x100ac98
mov dword [0x1013164], 0xc
jmp 0x100abf6
cmp eax, dword [ebp + 0x10]
jle 0x100ac98
mov dword [0x1013164], 0x22
jmp 0x100abf6
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.01007ff2
pop ecx
pop ecx
jmp 0x100abf8