joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100803aa
Capabilities:
Copy file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
mov eax, ecx
xor edi, edi
test dword [ebp + 0x14], 0xffffffe0
mov ebx, edx
mov dword [ebp - 0xc], eax
je 0x100803d5
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10080535
push esi
mov esi, dword [ebp + 0x14]
and esi, 1
test dword [ebp + 0x14], 8
je 0x100803eb
or esi, 0x1000
xor edx, edx
call fcn.1008119d
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10080532
xor edx, edx
mov ecx, ebx
call fcn.1008119d
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10080509
and dword [ebp - 4], edi
and dword [ebp - 8], 0
push esi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
mov edi, eax
test edi, edi
jne 0x1008048c
test dword [ebp + 0x14], 2
je 0x10080488
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
inc ecx
mov dword [ebp - 0x10], eax
push edx
mov edx, eax
mov dword [ebp - 4], ecx
call fcn.10080950
test eax, eax
je 0x10080488
mov edi, dword [ebp - 8]
push edi
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0xc]
push 0x10011848
push 0x4000000
push 0x10086e10
call fcn.1008026a
add esp, 0x1c
test edi, edi
je 0x10080414
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10080414
test edi, edi
je 0x10080509
test dword [ebp + 0x14], 4
je 0x10080509
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
test edi, edi
jne 0x10080509
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x100804b6
push 0x1f
pop esi
push esi
push ebx
push 0x100118e0
push 0x2000000
push 0x10086e10
call fcn.1008026a
add esp, 0x14
xor edx, edx
mov ecx, ebx
call fcn.10080a0c
test eax, eax
jne 0x10080502
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100804e9
push 0x1f
pop eax
push eax
push ebx
push 0x10011980
push 0x2000000
push 0x10086e10
call fcn.1008026a
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10080532
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10080e5a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push edi
xor edi, edi
test ecx, ecx
je 0x10080ec6
xor eax, eax
cmp ax, word [ecx]
je 0x10080ec6
push ebx
xor edx, edx
call fcn.1008119d
mov ebx, eax
test ebx, ebx
je 0x10080ec1
push esi
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10080e8e
test al, 0x10
je 0x10080e8e
inc edi
jmp 0x10080ea9
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x10080ea1
mov esi, 0x10b
cmp esi, 2
jne 0x10080ea9
push 3
pop esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebx
mov eax, edi
pop edi
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
test ecx, ecx
je 0x10081006
xor eax, eax
cmp ax, word [ecx]
je 0x10081006
push edi
xor edx, edx
call fcn.1008119d
mov edi, eax
test edi, edi
je 0x10081001
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp ebx, 0xffffffff
je 0x10080fe7
test ebx, 0x400
je 0x10080fe7
mov ecx, edi
call fcn.10080ed2
mov esi, eax
neg esi
sbb esi, esi
inc esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
mov eax, esi
pop edi
jmp 0x10081010
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebx
xor ebx, ebx
test ecx, ecx
je 0x10081191
xor eax, eax
cmp ax, word [ecx]
je 0x10081191
push esi
push edi
xor edx, edx
call fcn.1008119d
mov edi, eax
test edi, edi
je 0x1008117c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10081162
and esi, 0x10
sete bl
neg esi
sbb esi, esi
and esi, 2
jmp 0x1008116a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10081184
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
ret
Function at 0x10081382
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
push edi
test esi, esi
je 0x10081506
cmp ax, word [esi]
je 0x10081506
push ebx
lea edx, [ebp - 4]
call fcn.1008119d
mov ebx, eax
test ebx, ebx
je 0x100814f1
xor eax, eax
lea edx, [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.100816d4
test eax, eax
js 0x100814b3
cmp dword [ebp - 8], 1
push 0x5c
pop ecx
jne 0x10081453
mov edx, dword [ebp - 0xc]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x14]
jne 0x100813f0
mov eax, dword [ebp - 4]
sub ecx, esi
sar ecx, 1
lea esi, [eax + ecx*2]
test edx, edx
je 0x1008141b
push edx
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x5c
pop ecx
xor edi, edi
push ecx
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
mov esi, eax
pop ecx
mov ecx, ebx
test esi, esi
je 0x10081481
xor eax, eax
mov word [esi], ax
call fcn.10080e5a
test eax, eax
jne 0x10081448
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
pop ecx
mov word [esi], cx
add esi, 2
jmp 0x10081420
mov esi, dword [ebp - 4]
movzx eax, word [esi]
cmp eax, 0x61
jb 0x10081463
cmp eax, 0x7a
jbe 0x1008146d
cmp eax, 0x41
jb 0x1008141e
cmp eax, 0x5a
ja 0x1008141e
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x1008141e
cmp cx, word [esi + 4]
jne 0x1008141e
add esi, 8
jmp 0x1008141e
call fcn.10080e5a
xor esi, esi
inc esi
cmp eax, esi
je 0x100814ae
xor eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
je 0x100814ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push dword [ebp - 0x1c]
push 0x10011e60
jmp 0x100814cc
mov dword [ebp - 0x10], esi
jmp 0x100814de
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push esi
push 0x10011ec0
push 0x3000000
push 0x10086e10
call fcn.1008026a
add esp, 0x14
push ebx
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100814f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10]
pop ebx
jmp 0x10081510
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10082613
Capabilities:
Get file attributes
Set file attributes

Disassembly:
test ecx, ecx
jne 0x10082622
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
ret
test dl, 1
je 0x1008262f
xor edx, edx
inc edx
jmp fcn.10080a0c
jmp fcn.10080d6b

Function at 0x100827c6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x220]
xor eax, eax
mov dword [ebp - 0x228], edx
stosd dword es:[edi], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
push 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x224]
push eax
xor edi, edi
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], ecx
mov edx, 0x10082640
push 0x10082720
mov ecx, ebx
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x214], esi
call fcn.100821bf
mov edx, dword [ebp - 0x228]
mov esi, eax
test dl, 8
jne 0x10082864
mov ecx, ebx
call fcn.10082613
test eax, eax
jne 0x10082864
inc dword [ebp - 0x220]
cmp dword [ebp - 0x224], edi
jne 0x10082864
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x220], edi
jbe 0x10082909
push 0x208
lea eax, [ebp - 0x210]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x100828a4
mov word [ebp - 0x210], ax
jmp 0x100828b5
xor eax, eax
cmp ax, word [ebp - 0x210]
lea eax, [ebp - 0x210]
jne 0x100828ba
mov eax, 0x100122c0
cmp dword [ebp - 0x220], 1
mov ecx, 0x100122dc
jne 0x100828cd
mov ecx, 0x100051e8
push eax
push dword [ebp - 0x224]
push ebx
push ecx
push dword [ebp - 0x220]
push 0x100122e0
push 0x4000000
push 0x10086e10
call fcn.1008026a
add esp, 0x20
cmp dword [ebp - 0x224], edi
je 0x10082907
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret 8
Function at 0x10082ebf
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x10086084]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
xor esi, esi
mov dword [esp + 0xc], edx
push edi
inc esi
lea edx, [ecx + 2]
mov edi, ecx
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10082eec
sub ecx, edx
sar ecx, 1
jne 0x10082f0c
mov esi, ebx
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10082fee
mov edx, 0x100043c0
mov ecx, edi
call fcn.10080125
mov ebx, eax
test ebx, ebx
jne 0x10082f24
xor esi, esi
push 8
jmp 0x10082f01
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10082fde
mov eax, dword [esp + 0x10]
mov dword [eax], esi
test byte [esp + 0x18], 0x10
je 0x10082fd0
mov ecx, 0x100051e4
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10082f7b
test dx, dx
je 0x10082f77
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10082f7b
add eax, 4
add ecx, 4
test dx, dx
jne 0x10082f55
xor eax, eax
jmp 0x10082f7f
sbb eax, eax
or eax, esi
test eax, eax
je 0x10082fba
mov ecx, 0x10008568
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10082fb2
test dx, dx
je 0x10082fae
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10082fb2
add eax, 4
add ecx, 4
test dx, dx
jne 0x10082f8c
xor eax, eax
jmp 0x10082fb6
sbb eax, eax
or eax, esi
test eax, eax
jne 0x10082fd0
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10082f41
jmp 0x10082fd7
mov eax, dword [esp + 0x10]
and dword [eax], 0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x26c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10083b20
mov esp, ebp
pop ebp
ret

Function at 0x10083005
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
mov edi, 0x80
add edi, edi
test esi, esi
je 0x1008302c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [edi + edi]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10083057
push ebx
push edi
push esi
push 0x1000898c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov ecx, eax
jmp 0x10083059
xor ecx, ecx
lea eax, [edi - 2]
cmp ecx, eax
jae 0x10083016
test esi, esi
je 0x1008308c
test ecx, ecx
jne 0x1008307f
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
neg eax
sbb eax, eax
not eax
and esi, eax
test esi, esi
je 0x1008308c
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1008308c
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x10083118
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
push esi
mov esi, ebx
test ecx, ecx
jne 0x10083142
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100831db
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x100831d1
cmp dword [ebp - 4], 1
je 0x10083171
cmp dword [ebp - 4], 2
je 0x10083171
push 0xd
pop edi
jmp 0x100831d1
push dword [ebp - 8]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x100831c9
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 8]
push eax
push esi
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x100831b6
cmp dword [ebp - 4], 1
je 0x100831d1
cmp dword [ebp - 4], 2
je 0x100831d1
push 0xd
pop edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, ebx
jmp 0x100831d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10083294
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x218], 0x105
xor ebx, ebx
mov dword [ebp - 0x21c], ecx
inc edi
test ecx, ecx
je 0x10083385
push esi
and dword [ebp - 0x214], 0
lea eax, [ebp - 0x218]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x10083377
neg eax
sbb eax, eax
not eax
and eax, edi
je 0x1008335b
xor esi, esi
lea eax, [ebp - 0x214]
push esi
push eax
push esi
push 0x20119
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x1008335b
push dword [ebp + 0x14]
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.10046eac
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x214]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1008335d
xor edi, edi
inc ebx
mov dword [ebp - 0x218], 0x105
test edi, edi
je 0x10083379
mov ecx, dword [ebp - 0x21c]
jmp 0x100832c9
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop esi
jmp 0x1008338f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10083be0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10083c1e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10083c16
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10083c20
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10083c06
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10083cf0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10083d06
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10083d21
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x401114
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x401133
xor al, al
jmp 0x40114d
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x401151
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret
Function at 0x405cab
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a4b0
cmp edx, dword [eax]
je 0x405ccd
add eax, 8
inc ecx
cmp eax, 0x40a540
jl 0x405cbe
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a4b0]
jne 0x405dfb
mov eax, dword [0x40a600]
cmp eax, 1
je 0x405dd5
test eax, eax
jne 0x405cfe
cmp dword [0x40a274], 1
je 0x405dd5
cmp edx, 0xfc
je 0x405dfb
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405d35
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004069d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004041f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405d78
lea eax, [ebp - 0x1a4]
push eax
call fcn.004041f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4086d8
push edi
call fcn.00406c60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004069d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004069e0
lea eax, [ebp - 0xa0]
push 0x4086b8
push eax
call fcn.004069e0
push dword [esi + 0x40a4b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004069e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406bcb
add esp, 0x2c
pop edi
jmp 0x405dfb
lea eax, [ebp + 8]
lea esi, [esi + 0x40a4b4]
push 0
push eax
push dword [esi]
call fcn.004041f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1012475
Capabilities:
Parse pe header

Disassembly:
push 0x70
push 0x10015e0
call fcn.010127c8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10124b2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10124b2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10124ca
cmp eax, 0x20b
je 0x10124b7
mov dword [ebp - 0x1c], ebx
jmp 0x10124de
cmp dword [ecx + 0x84], 0xe
jbe 0x10124b2
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10124d8
cmp dword [ecx + 0x74], 0xe
jbe 0x10124b2
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1015010], 0xffffffff
or dword [0x1015014], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x101500c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1015008]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1015018], eax
call fcn.010127c2
cmp dword [0x10149d0], ebx
jne 0x1012539
push fcn.010127c2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010127b0
push 0x1001234
push 0x1001230
call sub.msvcrt.dll__initterm
mov eax, dword [0x1015004]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1015000]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x100122c
push 0x1001228
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x10125cf
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10125a3
cmp al, 0x22
jne 0x1012595
cmp byte [esi], 0x22
jne 0x10125ac
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10125b6
cmp al, 0x20
jbe 0x10125a8
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
jmp 0x10136ca
cmp byte [esi], 0x20
jbe 0x10125ac
inc esi
mov dword [ebp - 0x34], esi
jmp 0x10125cf
adc word [eax + 0x101ec00], 0x66ae
dec ecx
xchg edx, ecx
xchg cl, ch
jmp 0x101374a
dec ecx
xor edx, ecx
or ecx, 0xffffffb1
inc ecx
push 0x6ac0
clc
pop eax
jmp 0x10136b0
or ch, al
inc edx
sub eax, 2
nop
nop
not ecx
mov edx, 0xb71b6d3e
jmp 0x1013768
lea ecx, [ecx - 0x41]
jmp 0x1013707
nop
not ecx
nop
not edx
lea ecx, [esi + 0x7f]
jge 0x10136b0
or edx, 0x4acc9cd8
xchg ecx, ecx
dec edx
jmp 0x10254a6
Function at 0x401d00
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401330
mov dword [esp], eax
call 0x401d70
jmp dword [sym.imp.ucrtbase.dll_exit]
Function at 0x40148e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x472eb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401523
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e0
cmp dword [ebp + 0x10], ebx
jne 0x401517
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.0040148e
test eax, eax
jne 0x4014f2
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040645a
cmp eax, ebx
je 0x40152a
push ebx
push dword [0x472eb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401523
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x472eb0], ebx
jne 0x401520
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401520
jmp 0x401523