joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49423c
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, ebx
call fcn.00404c60
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4942ee
xor eax, eax
push ebp
push 0x4942e7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, 2
call fcn.004941d0
push eax
xor eax, eax
call fcn.004941d0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4942b4
mov eax, 2
call fcn.004941d0
cmp eax, dword [ebp - 0xc]
je 0x4942b8
xor eax, eax
jmp 0x4942ba
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x4942d0
mov eax, ebx
call fcn.00404c60
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4942ee
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4942f8
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x494430
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00404dec
push 0x104
lea eax, [ebp - 8]
call fcn.00404cb8
push eax
push 0x494444
call sub.kernel32.dll_GetEnvironmentVariableA
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404dec
mov eax, dword [ebp - 8]
call fcn.00404a60
test eax, eax
jle 0x494412
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.004030ac
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x210
push 0
push 0
push 0
push dword [ebp - 8]
push 0x494454
push ebx
push 0x494464
push esi
lea eax, [ebp - 0x60]
mov edx, 5
call fcn.00404b20
mov eax, dword [ebp - 0x60]
call fcn.00404c60
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x494412
xor eax, eax
push ebp
push 0x49440b
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
setne byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494412
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494437
lea eax, [ebp - 0x60]
call fcn.004047a0
lea eax, [ebp - 8]
call fcn.004047a0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c60
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x494485
and eax, 0x10
cmp eax, 0x10
je 0x494489
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x499304
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c50
lea esi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x499467
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.0049864c
mov ebx, eax
mov dword [esi], 0x128
mov edx, esi
mov eax, ebx
call fcn.0049866c
jmp 0x499439
lea eax, [ebp - 0x138]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00404a10
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004094b8
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408910
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408910
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404bac
je 0x49941b
lea eax, [ebp - 0x144]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00404a10
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408910
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408910
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404bac
jne 0x499430
push 0
mov eax, dword [esi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, esi
mov eax, ebx
call fcn.0049868c
test eax, eax
jne 0x49937c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49946e
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.004047c4
lea eax, [ebp - 4]
call fcn.004047a0
ret

Function at 0x4c83a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
push ecx
mov edi, eax
mov esi, dword [esp + 0x10]
mov eax, 0xa46de6
xor esi, eax
sub esi, eax
and esi, 0xffff
call 0x4c83c1
pop eax
sub eax, 0x135
add esi, eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
inc esi
push edi
mov ah, byte [esi]
xor ah, al
mov byte [edi], ah
inc esi
ror al, 1
inc edi
dec ecx
jne 0x4c83d1
pop eax
pop ecx
pop edi
pop esi
ret
Function at 0x4c858a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, esi
add eax, dword [esi + 0x3c]
mov edi, esi
add edi, dword [eax + 0x78]
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004c8550
test eax, eax
jne 0x4c85f9
mov ebx, 0
cmp ebx, dword [edi + 0x18]
jae 0x4c8616
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004c8550
test eax, eax
je 0x4c8610
lea eax, [ebx + ebx]
add eax, dword [edi + 0x24]
movzx eax, word [eax + esi]
shl eax, 2
add eax, dword [edi + 0x1c]
add esi, dword [eax + esi]
mov eax, esi
jmp 0x4c861b
inc ebx
cmp ebx, dword [edi + 0x18]
jb 0x4c85d6
mov eax, 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1007211
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [0x101d638], 1
lea eax, [edi + 4]
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x368]
push eax
call ebx
xor esi, esi
cmp dword [edi], esi
je 0x1007263
push dword [ebp - 4]
lea eax, [ebp - 0x15c]
push eax
call ebx
mov eax, dword [edi]
and byte [ebp + eax - 0x15d], 0
lea eax, [edi + eax + 4]
push eax
jmp 0x10072bd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x15c]
push eax
push 0x104
push esi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x10072a8
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 8]
push dword [ebp - 8]
lea ecx, [ebp - 0x15c]
sub eax, ecx
mov dword [edi], eax
and byte [ebp + eax - 0x15d], 0
jmp 0x10072bd
lea eax, [ebp - 0x15c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [ebp - 4]
lea eax, [ebp - 0x260]
push eax
call ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], 0x4c
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x260]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], 0x101d530
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x38], 0x104
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x101d4f0
mov dword [ebp - 0x24], 0x1804
mov word [ebp - 0x20], si
mov word [ebp - 0x1e], si
mov dword [ebp - 0x1c], 0x101d5b0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x58]
mov dword [ebp + 8], esi
push eax
call sub.comdlg32.dll_GetOpenFileNameA
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x1007375
movzx eax, word [ebp - 0x20]
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x264]
push eax
call fcn.010073e3
test eax, eax
je 0x100736e
push 0x42
lea esi, [ebp - 0x264]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
xor esi, esi
jmp 0x1007375
mov dword [ebp + 8], 1
cmp dword [ebp + 8], esi
je 0x10073b6
cmp word [ebp - 0x20], si
je 0x10073ad
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x15c]
push eax
call ebx
movzx eax, word [ebp - 0x20]
and byte [ebp + eax - 0x15d], 0
lea eax, [ebp + eax - 0x260]
push eax
lea eax, [ebp - 0x260]
push eax
call ebx
cmp dword [ebp + 8], esi
jne 0x100732f
cmp dword [ebp - 0xc], esi
mov dword [0x101d638], esi
je 0x10073da
push dword [ebp - 4]
lea eax, [ebp - 0x368]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10073da
push 1
pop eax
jmp 0x10073dc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10078c0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [0x101d860], esi
push edi
mov edi, dword [ebp + 0xc]
jne 0x1007a16
cmp dword [0x101d864], esi
jne 0x1007a16
cmp edi, 0x10
je 0x10079e7
cmp edi, 0x8000
je 0x10079cf
cmp dword [0x101d868], esi
jne 0x1007a16
cmp edi, 0x1c
ja 0x1007933
je 0x100792e
cmp edi, 0x18
jne 0x1007a16
cmp dword [ebp + 0x10], esi
je 0x1007a16
push esi
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x1007a16
cmp dword [ebp + 0x10], esi
jmp 0x100795c
mov eax, edi
sub eax, 0x20
je 0x10079c3
sub eax, 0xe0
je 0x10079b6
sub eax, 4
je 0x10079b6
sub eax, 0xfc
je 0x1007963
dec eax
je 0x10079b6
sub eax, 3
je 0x10079b6
sub eax, 3
je 0x10079b6
jmp 0x1007a16
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 8]
sub ecx, dword [0x101d850]
je 0x100797e
cmp ecx, esi
jge 0x100797e
neg ecx
mov eax, dword [ebp - 4]
sub eax, dword [0x101d854]
je 0x100798f
cmp eax, esi
jge 0x100798f
neg eax
add ecx, eax
cmp ecx, dword [0x1017b5c]
jbe 0x1007a16
push esi
push esi
push 0x10
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 8]
mov dword [0x101d850], eax
mov eax, dword [ebp - 4]
mov dword [0x101d854], eax
jmp 0x1007a16
push esi
push esi
push 0x10
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x1007a16
push esi
call dword [sym.imp.USER32.dll_SetCursor]
push 1
pop eax
jmp 0x1007a24
cmp dword [0x101d884], esi
je 0x1007a16
mov eax, dword [0x101d870]
cmp eax, esi
je 0x10079ca
push dword [ebp + 8]
call eax
jmp 0x1007a24
cmp dword [0x101d884], esi
je 0x1007a08
push ebx
call fcn.01007ca2
test eax, eax
jne 0x1007a08
push 0x101d850
call dword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
jmp 0x1007a24
push esi
push esi
push 0x403
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1007ca2
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp dword [0x101d868], edi
jne 0x1007da0
cmp dword [0x101d864], edi
jne 0x1007da0
cmp dword [0x101d870], edi
je 0x1007d8f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x101d888], edi
mov esi, eax
je 0x1007cf7
push esi
push dword [0x101d88c]
call fcn.01007dac
cmp eax, dword [0x101d888]
jb 0x1007d8f
mov eax, dword [0x1017b60]
cmp eax, 0xffffffff
je 0x1007d13
push esi
push eax
call fcn.01007dac
cmp eax, 0xc8
jb 0x1007d99
mov ebx, dword [esp + 0x30]
push 1
pop eax
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0x404
push ebx
mov dword [0x101d868], eax
call edi
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
mov esi, 0x113
push 3
push esi
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call ebp
push 3
push esi
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call ebp
xor esi, esi
push esi
push esi
push 0x8000
push ebx
call edi
push esi
push esi
push 0x404
push ebx
mov dword [0x101d864], eax
mov dword [0x101d868], esi
call edi
cmp dword [0x101d864], esi
jne 0x1007d82
push esi
call dword [sym.imp.USER32.dll_SetCursor]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1017b60], eax
jmp 0x1007d99
mov dword [0x101d864], 1
mov eax, dword [0x101d864]
jmp 0x1007da2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4

Function at 0x100a1ee
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x90
push 0x40
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x100a29d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x6c], eax
je 0x100a26d
lea ecx, [ebp - 4]
push 0
push ecx
push 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ax, word [esi]
cmp ax, 0xda01
jne 0x100a264
mov ax, word [esi + 6]
xor ecx, ecx
mov cl, ah
mov ch, al
mov ax, word [esi + 8]
mov word [esi + 6], cx
xor ecx, ecx
mov ch, al
mov cl, ah
mov word [esi + 8], cx
jmp 0x100a26a
cmp ax, 0x1da
jne 0x100a26d
push 1
pop ebx
test ebx, ebx
je 0x100a285
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100a285
movzx ecx, word [esi + 6]
mov dword [eax], ecx
movzx ecx, word [esi + 8]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x6c]
cmp eax, 0xffffffff
je 0x100a294
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
pop esi
pop ebx
leave
ret 8
Function at 0x100a6c8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x100a780
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x100a780
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x100a78b
cmp word [edi], 0x4d42
lea eax, [edi + 0xe]
je 0x100a72b
mov eax, edi
movzx ecx, word [eax + 2]
movzx edx, word [eax]
shl ecx, 0x10
or ecx, edx
cmp ecx, 0xc
je 0x100a769
cmp ecx, 0x28
jne 0x100a780
mov ecx, dword [ebp + 0xc]
cmp ecx, esi
je 0x100a77d
movzx edx, word [eax + 6]
movzx ebx, word [eax + 4]
shl edx, 0x10
or edx, ebx
mov dword [ecx], edx
movzx edx, word [eax + 0xa]
movzx eax, word [eax + 8]
shl edx, 0x10
or edx, eax
mov dword [ecx + 4], edx
jmp 0x100a77d
mov ecx, dword [ebp + 0xc]
cmp ecx, esi
je 0x100a77d
movzx edx, word [eax + 4]
mov dword [ecx], edx
movzx eax, word [eax + 6]
mov dword [ecx + 4], eax
push 1
pop ebx
cmp edi, esi
je 0x100a78b
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100a79b
push dword [ebp - 4]
call esi
cmp dword [ebp + 8], 0xffffffff
je 0x100a7a6
push dword [ebp + 8]
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 8

Function at 0x100b717
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
lea eax, [ebp - 4]
push edi
xor esi, esi
and dword [ebp - 4], esi
push eax
push 1
push esi
push 0x1001810
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100b7b9
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x100b7b6
mov esi, dword [ebp + 8]
mov edi, 0x10180f8
sub edi, esi
mov dword [ebp + 0xc], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x40
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [edi + esi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100b7ae
cmp dword [ebp - 0xc], 1
jne 0x100b7ae
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push 0x1001804
push eax
call fcn.0100c760
movzx ecx, byte [ebp - 0x14]
xor eax, eax
add esp, 0x14
mov ah, byte [ebp + 8]
mov al, byte [ebp - 0x10]
shl eax, 8
or eax, ecx
mov dword [esi], eax
add esi, 4
dec dword [ebp + 0xc]
jne 0x100b753
push 1
pop esi
cmp dword [ebp - 4], 0
je 0x100b7c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret 8
Function at 0x100c000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001828
push 0x100c5c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x101da7c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x101da78], ecx
shl ecx, 8
add ecx, edx
mov dword [0x101da74], ecx
shr eax, 0x10
mov dword [0x101da70], eax
call fcn.0100d670
test eax, eax
jne 0x100c06a
push 0x1c
call fcn.0100c150
add esp, 4
mov dword [ebp - 4], 0
call fcn.0100d470
call fcn.0100d460
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x101f6b0], eax
call fcn.0100ce20
mov dword [0x101da50], eax
test eax, eax
je 0x100c09d
mov eax, dword [0x101f6b0]
test eax, eax
jne 0x100c0a7
push 0xffffffffffffffff
call fcn.0100c7e0
add esp, 4
call fcn.0100cb70
call fcn.0100ca80
call fcn.0100c7b0
mov eax, dword [0x101da8c]
mov dword [0x101da90], eax
push eax
mov eax, dword [0x101da84]
push eax
mov ecx, dword [0x101da80]
push ecx
call fcn.01007e47
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.0100c7e0
jmp 0x100c102
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100c150
Capabilities:
Terminate process

Disassembly:
cmp dword [0x101da58], 2
je 0x100c15e
call fcn.0100d6b0
mov eax, dword [esp + 4]
push eax
call fcn.0100d6f0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100c820
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x101daac]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x100c83f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x101daa8], 1
mov byte [0x101daa4], bl
jne 0x100c899
mov ecx, dword [0x101f6ac]
test ecx, ecx
je 0x100c887
mov esi, dword [0x101f6a8]
sub esi, 4
cmp esi, ecx
jb 0x100c887
mov eax, dword [esi]
test eax, eax
je 0x100c880
call eax
mov ecx, dword [0x101f6ac]
sub esi, 4
cmp esi, ecx
jae 0x100c872
push 0x101701c
push 0x1017014
call fcn.0100c8d0
add esp, 8
push 0x1017024
push 0x1017020
call fcn.0100c8d0
add esp, 8
test ebx, ebx
jne 0x100c8c0
push ebp
mov dword [0x101daac], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x100ce20
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x101dbc0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x100ce62
call edi
mov esi, eax
test esi, esi
je 0x100ce4c
mov eax, 1
jmp 0x100ce5d
call ebp
mov ebx, eax
test ebx, ebx
je 0x100cf6f
mov eax, 2
mov dword [0x101dbc0], eax
cmp eax, 1
jne 0x100cf02
test esi, esi
jne 0x100ce7b
call edi
mov esi, eax
test esi, esi
je 0x100cf6f
cmp word [esi], 0
mov eax, esi
je 0x100ce95
add eax, 2
cmp word [eax], 0
jne 0x100ce83
add eax, 2
cmp word [eax], 0
jne 0x100ce83
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x100cef4
push edi
call fcn.0100c3f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100cef4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x100cee6
push ebx
call fcn.0100c3a0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x100cf6f
test ebx, ebx
jne 0x100cf13
call ebp
mov ebx, eax
test ebx, ebx
je 0x100cf6f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x100cf2b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100cf1b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100cf1b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0100c3f0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100cf4d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x100d6f0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x1018420
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x100d714
add eax, 8
inc ebp
cmp eax, 0x10184b0
jb 0x100d705
cmp ecx, dword [ebp*8 + 0x1018420]
jne 0x100d8bb
mov eax, dword [0x101da58]
cmp eax, 1
je 0x100d87d
test eax, eax
jne 0x100d740
cmp dword [0x1018254], 1
je 0x100d87d
cmp ecx, 0xfc
je 0x100d8bb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100d77b
mov ecx, 5
mov esi, 0x1001b0c
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x100d7c4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x1001b08
add ebx, ecx
push ebx
call fcn.01010ef0
add esp, 0xc
mov ecx, 6
mov esi, 0x1001aec
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1001ae8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1001ac0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x1018424]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.01010e60
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x101f5a0]
test eax, eax
je 0x100d88e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x100d898
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x1018424]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret