joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013c0c
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x66c
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x1008f54
lea eax, [ebp - 0x46c]
push eax
call fcn.0100f043
cmp eax, ebx
je 0x1013d8f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea eax, [ebp - 0x46c]
push eax
push dword [0x101c1f8]
call fcn.0100e8df
test al, al
je 0x1013d82
push dword [0x101c2c4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [0x101c1b8]
lea eax, [ebp - 0x264]
push 0x1008f20
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov esi, 0x104
cmp byte [0x101c1e0], bl
je 0x1013c9f
push 0x1008f18
mov edx, esi
lea ecx, [ebp - 0x264]
call fcn.01019f00
cmp byte [0x101c1dd], bl
je 0x1013cb9
push 0x1008f10
mov edx, esi
lea ecx, [ebp - 0x264]
call fcn.01019f00
cmp byte [0x101c1de], bl
je 0x1013cd3
push 0x1008f08
mov edx, esi
lea ecx, [ebp - 0x264]
call fcn.01019f00
lea eax, [ebp - 0x264]
push eax
push 0x1008ecc
push 6
call fcn.01017562
add esp, 0xc
push 0x44
pop esi
push esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
mov dword [ebp - 0x5c], esi
xor esi, esi
inc esi
mov eax, esi
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x46c]
push eax
push 0x10060b8
push 6
mov dword [ebp - 0x30], esi
call fcn.01017562
lea eax, [ebp - 0x264]
push eax
push 0x1008e98
push 6
call fcn.01017562
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [0x101c298]
lea eax, [ebp - 0x264]
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne al
cmp al, bl
jne 0x1013d96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x66c]
call fcn.0100e252
push eax
push 0x1008e48
call fcn.01011f22
pop ecx
pop ecx
lea eax, [ebp - 0x46c]
push eax
call fcn.0100eab2
pop esi
mov al, bl
pop ebx
leave
ret 4
push dword [ebp - 0x10]
push 0x1008dd0
push 5
call fcn.01017562
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
push 0xffffffffffffffff
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jne 0x1013dd1
push dword [ebp - 0x10]
push 0x1008d70
jmp 0x1013d7b
cmp eax, ebx
je 0x1013dfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x66c]
call fcn.0100e252
push eax
push dword [ebp - 0x10]
push 0x1008cf0
call fcn.01011f22
add esp, 0xc
jmp 0x1013d82
push dword [ebp - 0x10]
push 0x1008ca8
push 0x15
call fcn.01017562
add esp, 0xc
mov bl, 1
jmp 0x1013d8e
Function at 0x1013fae
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
mov edi, ecx
mov byte [ebp - 1], 0
call fcn.0101a510
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1014029
cmp dword [ebp - 8], 2
lea eax, [ebp - 0x210]
jne 0x1014001
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x101400b
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
push 0x1009070
push 5
call fcn.01017562
add esp, 0x14
mov byte [ebp - 1], 1
jmp 0x101405a
cmp ebx, 2
jne 0x1014034
cmp byte [ebp + 0x10], 0
je 0x101405a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x410]
call fcn.0100e252
push eax
push dword [ebp + 8]
push dword [edi + 4]
push 0x1009020
call fcn.01011f22
add esp, 0x10
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1014069
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
push 0
lea ecx, [ebp - 0xc]
push ecx
mov eax, 0x104
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [esi]
push eax
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
jne 0x10140dd
cmp dword [ebp + 0xc], 1
mov byte [ebp - 1], 1
je 0x10140c5
xor eax, eax
mov word [ebx], ax
push dword [ebp + 0x10]
push ebx
push dword [esi + 4]
push 0x10090e8
push 5
call fcn.01017562
add esp, 0x14
jmp 0x1014108
cmp edi, 0x103
je 0x1014108
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x20c]
call fcn.0100e252
push eax
push dword [esi + 4]
push 0x10090a0
call fcn.01011f22
add esp, 0xc
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1014117
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x200
push esi
push edi
push dword [ebp + 0x14]
mov esi, ecx
push dword [ebp + 0x10]
mov eax, dword [esi]
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x1014174
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x200]
call fcn.0100e252
push eax
push dword [ebp + 8]
push dword [esi + 4]
push 0x1009110
call fcn.01011f22
add esp, 0x10
xor al, al
jmp 0x1014176
mov al, 1
pop edi
pop esi
leave
ret 0x10
Function at 0x10141d2
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x200
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x1014223
cmp edi, 2
je 0x101421f
push edi
lea ecx, [ebp - 0x200]
call fcn.0100e252
push eax
push dword [esi + 4]
push dword [ebp + 8]
push 0x10091e0
call fcn.01011f22
add esp, 0x10
xor al, al
jmp 0x101423a
push dword [esi + 4]
push dword [ebp + 8]
push 0x10091a0
push 7
call fcn.01017562
add esp, 0x10
mov al, 1
pop edi
pop esi
leave
ret 4

Function at 0x1014245
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 5
push 0x10092cc
push esi
xor bl, bl
call fcn.01016f5e
add esp, 0xc
test eax, eax
jne 0x1014273
mov eax, 0x80000002
jmp 0x101428c
push 5
push 0x10092c0
push esi
call fcn.01016f5e
add esp, 0xc
test eax, eax
jne 0x10142d5
mov eax, 0x80000001
lea ecx, [esi + 0xa]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
test edi, edi
je 0x10142bf
cmp edi, 3
je 0x10142e5
push edi
lea ecx, [ebp - 0x200]
call fcn.0100e252
push eax
push esi
push 0x1009288
call fcn.01011f22
add esp, 0xc
jmp 0x10142e5
push esi
push 0x1009264
push 7
call fcn.01017562
add esp, 0xc
mov bl, 1
xor edi, edi
jmp 0x10142e5
push esi
push 0x1009230
call fcn.01011f22
pop ecx
pop ecx
push 3
pop edi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x10142fa
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x10093c8
lea eax, [ebp - 0x20c]
push 0x100
push eax
call fcn.010199d0
mov ebx, dword [ebp - 0xc]
add esp, 0x14
lea ebx, [ebp + ebx*2 - 0x20c]
mov byte [ebp - 1], 0
lea ecx, [ebp - 8]
xor edi, edi
call fcn.0101a5a0
push 2
push ebx
push 0x80000002
lea ecx, [ebp - 8]
call fcn.0101a4e0
mov esi, eax
test esi, esi
jne 0x101438e
push 0x10093b8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x10143be
cmp esi, 2
je 0x10143cf
push esi
lea ecx, [ebp - 0x40c]
call fcn.0100e252
push eax
push dword [ebp + 8]
push 0x1009360
push 9
call fcn.01017562
add esp, 0x10
cmp esi, 5
jne 0x10143f4
cmp byte [ebp - 1], 0
jne 0x10143f8
push 2
push 4
lea edx, [ebp - 0x20c]
pop ecx
call fcn.0101507d
lea ecx, [ebp - 8]
test eax, eax
jl 0x10143f0
mov byte [ebp - 1], 1
call fcn.0101a4c0
jmp 0x1014336
push dword [ebp + 8]
push 0x1009320
push 8
call fcn.01017562
jmp 0x10143e1
push dword [ebp + 8]
push 0x10092d8
push 8
call fcn.01017562
xor edi, edi
inc edi
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.0101a4c0
mov esi, edi
jmp 0x101440c
mov esi, eax
jmp 0x1014407
test esi, esi
jle 0x1014404
and esi, 0xffff
or esi, 0x80070000
lea ecx, [ebp - 8]
call fcn.0101a4c0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1014b1a
Capabilities:
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push edi
push 0x1004230
push dword [0x101c280]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0xc]
inc bl
mov byte [ebp - 1], 0
call fcn.01013e18
xor eax, eax
test bl, bl
setne al
push 1
push 1
mov edi, 0x1009898
push edi
lea ecx, [ebp - 0xc]
add eax, 0x80000001
push eax
call fcn.01013e6f
test al, al
jne 0x1014b7c
lea ecx, [ebp - 0xc]
call fcn.01014478
jmp 0x1014c27
push esi
mov esi, 0x208
push esi
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.01018ae0
add esp, 0xc
test bl, bl
mov ebx, 0x100988c
jne 0x1014ba2
mov ebx, 0x1009880
mov ecx, dword [0x101c284]
lea edx, [ebp - 0x214]
call fcn.01017050
push eax
push edi
push ebx
push 0x1009864
push 7
call fcn.0101220e
add esp, 0x14
test al, al
je 0x1014c1e
push esi
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.01018ae0
push esi
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.01018ae0
mov ecx, dword [0x101c288]
add esp, 0x18
lea edx, [ebp - 0x214]
call fcn.01017050
mov ecx, dword [0x101c284]
push eax
lea edx, [ebp - 0x41c]
call fcn.01017050
push eax
lea ecx, [ebp - 0xc]
call fcn.01014181
test al, al
je 0x1014c1e
mov byte [ebp - 1], 1
lea ecx, [ebp - 0xc]
call fcn.01014478
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret

Function at 0x10152d1
Capabilities:
Create service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
xor ebx, ebx
push 2
mov esi, ecx
mov byte [ebp - 1], bl
call fcn.01015241
test al, al
je 0x101535f
push edi
push ebx
push ebx
mov edi, dword [ebp + 8]
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
push 1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xf01ff
push dword [ebp + 0xc]
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x101533f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x202]
call fcn.0100e252
push eax
push edi
push 0x1009fe8
call fcn.01011f22
add esp, 0xc
jmp 0x101535e
push edi
push 0x1009fb4
push 0x17
call fcn.01017562
add esp, 0xc
push edi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov byte [ebp - 1], 1
pop edi
mov ecx, esi
call fcn.010151ff
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 0x14

Function at 0x1015411
Capabilities:
Delete service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
mov esi, ecx
push dword [esi + 4]
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x101547b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x430
jne 0x1015451
add esi, 8
push esi
push 0x100a108
call fcn.01011efc
pop ecx
pop ecx
jmp 0x1015471
call edi
push eax
lea ecx, [ebp - 0x200]
call fcn.0100e252
push eax
add esi, 8
push esi
push 0x100a0c8
call fcn.01011f22
add esp, 0xc
mov byte [0x101c1e0], 1
pop edi
jmp 0x1015496
add esi, 8
push esi
push 0x100a094
push 0x17
call fcn.01017562
add esp, 0xc
push esi
call fcn.01016851
mov bl, 1
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x10154a1
Capabilities:
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
xor ebx, ebx
push ebx
mov esi, ecx
push ebx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10154e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x200]
call fcn.0100e252
push eax
add esi, 8
push esi
push 0x100a2f4
call fcn.01011f22
jmp 0x10154f6
add esi, 8
push esi
push 0x100a2c8
push 7
call fcn.01017562
mov bl, 1
add esp, 0xc
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x1015504
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
push dword [edi + 4]
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1015554
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x1015554
call esi
push eax
lea ecx, [ebp - 0x200]
call fcn.0100e252
push eax
add edi, 8
push edi
push 0x100a338
call fcn.01011f22
add esp, 0xc
jmp 0x1015556
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x1015564
Capabilities:
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
lea eax, [ebp - 0x1c]
push eax
mov esi, ecx
push 1
push dword [esi + 4]
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10155ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0100e252
push eax
add esi, 8
push esi
push 0x100a3d4
call fcn.01011f22
jmp 0x10155bd
add esi, 8
push esi
push 0x100a390
push 7
call fcn.01017562
mov bl, 1
add esp, 0xc
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x10155cb
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 8]
push ebx
push 0x100a4a8
push 0x17
mov byte [ebp - 1], 0
call fcn.01017562
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call esi
mov dword [ebp - 8], eax
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.01015504
test al, al
je 0x1015655
cmp dword [ebp - 0x20], 1
je 0x1015678
call esi
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 8]
imul ecx, ecx, 0x3e8
cmp eax, ecx
jb 0x10155fd
cmp dword [ebp - 0x20], 1
je 0x1015678
push dword [ebp + 8]
push ebx
push 0x100a460
push 9
call fcn.01017562
add esp, 0x10
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x101567c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x224]
call fcn.0100e252
push eax
push ebx
push 0x100a410
call fcn.01011f22
add esp, 0xc
jmp 0x101567c
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1015861
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xec
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x10000
push dword [ebp + 0xc]
xor eax, eax
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe8], ebx
mov word [ebp - 0xe4], ax
mov dword [esi], ebx
call fcn.01015374
test al, al
jne 0x10158ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x10159f5
push dword [ebp + 0xc]
push 0x100a524
push 8
call fcn.01017562
add esp, 0xc
jmp 0x10159f8
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 7
mov dword [ebp + 8], eax
pop edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 8]
cmp eax, 0x1388
jae 0x1015948
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xec]
call fcn.01015504
test al, al
je 0x1015945
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.010151c4
push eax
push dword [ebp + 0xc]
push 0x100aa48
push edi
call fcn.01017562
add esp, 0x14
cmp dword [ebp - 0x18], 1
je 0x1015948
cmp dword [ebp - 0x18], 3
jne 0x1015930
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10158d7
test byte [ebp - 0x14], 1
je 0x101599f
lea ecx, [ebp - 0xec]
call fcn.01015564
test al, al
jne 0x10158d7
or dword [esi], 1
mov ebx, dword [ebp + 0xc]
push ebx
push 0x100aa18
push edi
call fcn.01017562
add esp, 0xc
lea ecx, [ebp - 0xec]
call fcn.0101529b
push ebx
push 0x100a9c8
push edi
call fcn.01017562
add esp, 0xc
push 0
push 0x10000
push ebx
lea ecx, [ebp - 0xec]
call fcn.01015374
pop edi
test al, al
jne 0x10159e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x10159f5
push ebx
jmp 0x10158b6
push dword [ebp + 0xc]
push 0x100a580
push edi
push edi
push 0x34
push ebx
call fcn.01011f41
add esp, 0x18
cmp eax, 6
sete bl
mov eax, 0x10027ec
test bl, bl
jne 0x10159c8
mov eax, 0x10027e4
push eax
push 0x100a55c
push edi
call fcn.01017562
add esp, 0xc
test bl, bl
je 0x1015945
xor ebx, ebx
jmp 0x10158d7
lea ecx, [ebp - 0xec]
call fcn.01015411
test al, al
jne 0x10159f8
or dword [esi], 1
lea ecx, [ebp - 0xec]
call fcn.0101568b
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x1016628
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebp - 0xa24]
push eax
push ebx
push dword [ebp + 8]
mov byte [ebp - 1], 0
call fcn.01015aaf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
test al, al
jne 0x1016689
call esi
push eax
lea ecx, [ebp - 0x81c]
call fcn.0100e252
push eax
push 0x100b86c
push 9
call fcn.01017562
add esp, 0xc
push 0x1009550
lea eax, [ebp - 0xa24]
push eax
call edi
lea eax, [ebp - 0x61c]
push eax
push ebx
push dword [ebp + 8]
call fcn.01015a3f
test al, al
jne 0x10166c9
call esi
push eax
lea ecx, [ebp - 0x81c]
call fcn.0100e252
push eax
push 0x100b834
push 9
call fcn.01017562
add esp, 0xc
push 0x100b80c
lea eax, [ebp - 0x61c]
push eax
call edi
mov edi, dword [ebp + 8]
xor eax, eax
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
call fcn.01015cb4
lea eax, [ebp - 0x20c]
push eax
push 0x100b7e0
push 7
call fcn.01017562
xor eax, eax
add esp, 0xc
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push ebx
push edi
call fcn.01015aeb
lea eax, [ebp - 0x414]
push eax
push 0x100b7b0
push 7
call fcn.01017562
add esp, 0xc
cmp word [ebp - 0x414], 0
je 0x1016746
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xa24]
push eax
push ebx
push edi
call fcn.0100e0ac
push ebx
push edi
call dword [0x101c350]
test al, al
jne 0x101677f
call fcn.0101a5d0
call esi
push eax
lea ecx, [ebp - 0x81c]
call fcn.0100e252
push eax
lea eax, [ebp - 0x61c]
push eax
push 0x100b770
call fcn.01011f22
add esp, 0xc
jmp 0x1016842
lea eax, [ebp - 0x61c]
push eax
push 0x100b748
push 0x17
call fcn.01017562
add esp, 0xc
push ebx
push edi
mov byte [ebp - 1], 1
call fcn.0101645f
mov edi, dword [ebp + 0x10]
mov byte [edi], al
xor eax, eax
xor bl, bl
cmp word [ebp - 0x20c], ax
je 0x101681b
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [0x101c34c]
test al, al
je 0x10167da
lea eax, [ebp - 0x20c]
push eax
push 0x100b714
push 8
call fcn.01017562
jmp 0x1016818
call fcn.0101a5d0
call esi
cmp eax, 2
jne 0x10167f6
lea eax, [ebp - 0x20c]
push eax
push 0x100b6f8
push 9
jmp 0x10167d3
call esi
push eax
lea ecx, [ebp - 0x81c]
call fcn.0100e252
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100b6c4
call fcn.01011efc
mov bl, 1
add esp, 0xc
cmp word [ebp - 0x414], 0
je 0x1016840
lea eax, [ebp - 0x414]
push eax
call fcn.010157db
test al, al
jne 0x1016840
call esi
cmp eax, 0x424
je 0x1016840
mov bl, 1
mov byte [edi], bl
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1017050
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x87c
push esi
mov esi, ecx
cmp word [esi], 0
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
lea edi, [ebp - 0x47c]
je 0x1017199
push ebx
cmp word [esi], 0x25
jne 0x101717e
lea ebx, [esi + 2]
push 0x25
push ebx
call fcn.01018aad
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x101717e
mov esi, eax
sub esi, ebx
sar esi, 1
je 0x101717b
cmp esi, 0x32
ja 0x101717b
push esi
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.01018f80
xor eax, eax
mov word [ebp + esi*2 - 0x7c], ax
xor esi, esi
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], esi
cmp dword [0x1006800], esi
je 0x1017110
mov eax, 0x1006800
mov eax, dword [eax]
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x10170f9
mov esi, dword [esi + 0x1006804]
test esi, esi
je 0x10170f9
mov eax, dword [esi]
mov dword [ebp - 4], eax
inc ebx
mov esi, ebx
shl esi, 3
lea eax, [esi + 0x1006800]
cmp dword [eax], 0
jne 0x10170d9
cmp dword [ebp - 4], 0
jne 0x1017158
xor ebx, ebx
cmp dword [0x1006850], ebx
je 0x101717b
mov eax, 0x1006850
xor esi, esi
mov eax, dword [eax]
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1017141
mov esi, dword [esi + 0x1006854]
test esi, esi
je 0x1017141
mov eax, dword [esi]
mov dword [ebp - 4], eax
inc ebx
mov esi, ebx
imul esi, esi, 0xc
lea eax, [esi + 0x1006850]
cmp dword [eax], 0
jne 0x1017121
cmp dword [ebp - 4], 0
je 0x101717b
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2]
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 8], eax
mov esi, eax
jmp 0x101718b
mov esi, dword [ebp - 8]
mov ax, word [esi]
mov word [edi], ax
inc edi
inc edi
inc esi
inc esi
mov dword [ebp - 8], esi
cmp word [esi], 0
jne 0x1017079
mov esi, dword [ebp - 0x14]
pop ebx
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x47c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10171c3
lea edx, [ebp - 0x87c]
lea ecx, [ebp - 0x47c]
call fcn.01017050
jmp 0x10171d7
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x87c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x104
push dword [ebp - 0xc]
lea eax, [ebp - 0x87c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x25
push esi
call fcn.01018aad
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x1017562
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.01011270
push esi
mov esi, dword [ebp + 8]
push edi
and esi, 0xf
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp esi, dword [0x101c1d0]
jb 0x1017674
mov edi, dword [sym.imp.USER32.dll_wvsprintfW]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x1018]
push eax
call edi
test byte [ebp + 8], 0x10
je 0x10175ba
lea eax, [ebp - 0x1018]
push eax
call fcn.010188f0
cmp dword [0x101c2b4], 0
je 0x1017674
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, 0x100c264
cmp esi, 9
jb 0x10175e0
mov eax, 0x100c25c
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x1018]
push 0x100c238
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
mov esi, eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + esi*2 - 0x1018]
push eax
call edi
add esi, eax
push 0x1007974
lea eax, [ebp + esi*2 - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
inc esi
inc esi
cmp byte [0x101c1be], 0
je 0x1017643
lea ecx, [ebp - 0x1018]
call fcn.01017202
push 0
lea eax, [ebp + 8]
push eax
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x1018]
push eax
push dword [0x101c2b4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1017678
push dword [0x101c2b4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x1017678
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret