joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40db99
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push 0x5c
pop eax
cmp word [esp + 0x26a], ax
je 0x41563e
cmp word [esp + 0x26e], bx
jne 0x40dc49
jmp 0x4175ec
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x674
mov eax, dword [0x4261d4]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x417589
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x26c]
push eax
push 0x208
call fcn.0040220d
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFullPathNameW]
mov ebx, eax
test ebx, ebx
je 0x40dc49
push 4
lea eax, [esp + 0x26c]
push 0x40dc60
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x417590
mov eax, dword [esp + 0x10]
test eax, eax
je 0x417616
cmp word [eax], 0
je 0x417616
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x37
pop edx
lea ecx, [esp + 0x270]
call fcn.00408792
mov ecx, dword [esp + 0x14]
movzx ebx, al
call fcn.00402fd4
test ebx, ebx
je 0x408c43
mov eax, ebx
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401200
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40dc49
jmp 0x41760e
xor eax, eax
jmp 0x40dc4b
lea eax, [esp + 0x270]
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.msvcrt.dll_wcsstr]
mov dword [esp + 0x18], eax
pop ecx
pop ecx
test eax, eax
je 0x4175d7
cmp eax, edi
jbe 0x4175d7
movzx esi, word [eax]
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x10]
mov edx, eax
lea eax, [edx + 1]
mov word [ecx], si
neg eax
sbb eax, eax
and eax, edx
jmp 0x40dc4b
push edi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and eax, ecx
jmp 0x40dc4b
cmp word [esp + 0x26a], 0x3a
jne 0x40dc49
cmp word [esp + 0x26c], ax
je 0x41563e
jmp 0x40dc49
xor ebx, ebx
inc ebx
jmp 0x40dc49
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
jmp 0x40dc49
Function at 0x40e7f0
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4261d4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x21c]
push esi
xor eax, eax
mov dword [ebp - 0x224], ebx
push edi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], eax
call fcn.0040e980
test eax, eax
js 0x41cd2f
mov eax, dword [ebp - 0x21c]
cmp eax, 3
jae 0x40e936
test eax, eax
jne 0x41cd3d
inc eax
mov edi, eax
mov dword [ebp - 0x220], eax
push 0x40002748
mov dword [ebp - 0x228], edi
call fcn.0040e949
mov dword [ebp - 0x218], eax
pop ecx
test eax, eax
je 0x41cd7c
mov ebx, eax
xor edx, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x40e878
sub ebx, ecx
sar ebx, 1
cmp ebx, 0x104
jae 0x40e908
mov ecx, 0x208
call fcn.00401e20
mov esi, eax
mov dword [ebp - 0x22c], esi
test esi, esi
je 0x40e908
push dword [ebp - 0x218]
mov edx, 0x104
mov ecx, esi
call fcn.00401da3
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x41cd8d
cmp dword [eax + 0x3c], 0
je 0x40e93e
push dword [eax + 0x3c]
mov edx, 0x104
mov ecx, esi
call fcn.00402c8a
test eax, eax
jne 0x40e8fd
xor ebx, ebx
test esi, esi
je 0x40e8f1
push esi
call dword [sym.imp.api_ms_win_core_console_l2_1_0.dll_SetConsoleTitleW]
mov byte [0x426005], bl
xor eax, eax
mov edi, eax
cmp dword [ebp - 0x220], eax
je 0x40e908
test esi, esi
je 0x40e908
mov ecx, esi
call fcn.0040128b
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x40e919
push eax
call dword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalFree]
test edi, edi
jne 0x41cd7c
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401200
mov esp, ebp
pop ebp
ret 4
add eax, 0xfffffff0
jmp 0x40e841
xor ecx, ecx
mov edi, ecx
jmp 0x40e8fd
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
test ebx, ebx
je 0x41ce15
mov ecx, dword [ebx + 0x3c]
call fcn.004024cb
mov esi, eax
test esi, esi
je 0x40e8f1
mov ecx, esi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41cd5e
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jb 0x40e8e0
xor edi, edi
inc edi
xor eax, eax
push eax
push 8
call fcn.0040bd02
pop ecx
pop ecx
jmp 0x40e921
lea eax, [ebp - 0x214]
push 0x104
push eax
mov dword [ebp - 0x21c], eax
call dword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleTitleW]
test eax, eax
je 0x40e8fd
push dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x41cdf6
mov edi, dword [ebp - 0x218]
lea esi, [ebp - 0x214]
add ebx, ebx
add esi, ebx
push edi
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x41cdd4
mov edi, dword [ebp - 0x228]
mov dword [ebp - 0x21c], esi
mov esi, dword [ebp - 0x22c]
push dword [ebp - 0x21c]
mov edx, 0x104
mov ecx, esi
call fcn.00402c8a
test eax, eax
je 0x40e8de
jmp 0x40e8fd
xor ebx, ebx
mov esi, ebx
jmp 0x40e8e0
Function at 0x4119cc
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [eax], 0
mov ebx, edx
push 2
mov dword [ebp - 4], ecx
pop esi
jne 0x4119e8
push 3
pop esi
mov edi, dword [ebp + 0xc]
push esi
push ebx
push ecx
and dword [edi], 0
call dword [sym.imp.api_ms_win_core_file_l2_1_1.dll_MoveFileExW]
test eax, eax
je 0x41b083
xor eax, eax
inc eax
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0xb7
jne 0x41b0cb
push 0x400023d4
mov edx, 0x400023d3
mov ecx, ebx
call fcn.004236c9
sub eax, 0
je 0x41b0c3
dec eax
dec eax
jne 0x41b0b0
mov eax, dword [ebp + 8]
and dword [eax], 0
or esi, 1
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_file_l2_1_1.dll_MoveFileExW]
jmp 0x411a02
xor eax, eax
inc eax
jmp 0x411a04
xor eax, eax
jmp 0x411a04
Function at 0x412259
Capabilities:
Delete directory
Get common file path
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov eax, dword [0x4261d4]
xor eax, esp
mov dword [esp + 0x290], eax
xor edx, edx
xor eax, eax
push ebx
push esi
push edi
mov dword [esp + 0x18], edx
lea edi, [esp + 0x7c]
mov dword [esp + 0x24], edx
mov ebx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov byte [esp + 0x6c], dl
mov dword [esp + 0x70], edx
mov dword [esp + 0x78], edx
stosd dword es:[edi], eax
mov dword [esp + 0x10], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x42607c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x74], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 6
call fcn.00412544
cmp eax, 1
je 0x4123d2
lea eax, [esp + 0x88]
push eax
push 0x106
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCurrentDirectoryW]
mov edi, dword [esp + 0x60]
test edi, edi
je 0x41bdc7
lea edx, [esp + 0x64]
mov esi, edi
mov ecx, dword [edx]
lea eax, [ecx + 2]
mov dword [esp + 0xc], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x10]
jne 0x41233a
sub ecx, dword [esp + 0xc]
sar ecx, 1
je 0x41bdc7
mov edx, dword [edx + 0xc]
dec esi
jne 0x412331
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x64]
and eax, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x41bd9f
test dword [esp + 0x18], 0x2000
je 0x41bd63
mov ecx, dword [esi]
lea edx, [esp + 0xc]
call fcn.00412049
test eax, eax
jne 0x41bd85
mov esi, dword [esi + 0xc]
mov eax, dword [esp + 0x10]
dec edi
jne 0x412368
lea eax, [esp + 0x88]
mov edx, 0x104
push eax
mov ecx, 0x4269e0
call fcn.00401da3
mov ecx, dword [esp + 0x14]
call fcn.004059a0
mov eax, ebx
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401200
mov esp, ebp
pop ebp
ret
xor eax, eax
inc eax
jmp 0x4123bd
mov ecx, dword [esi]
mov edx, 0x234e
push 0x2328
call fcn.004236c9
cmp eax, 1
je 0x41237e
xor ebx, ebx
inc ebx
jmp 0x412391
cmp eax, 0x91
jne 0x41bd97
cmp dword [esp + 0xc], 0
je 0x412391
xor ecx, ecx
mov ebx, eax
push ecx
push eax
jmp 0x41bdbb
push dword [esi]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_RemoveDirectoryW]
test eax, eax
jne 0x412391
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
xor eax, eax
push eax
push ebx
call fcn.0040bd02
pop ecx
pop ecx
jmp 0x412391
xor eax, eax
push eax
push 0x232a
call fcn.0040bd02
pop ecx
pop ecx
jmp 0x4123d2
Function at 0x4123dc
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4261d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x10]
mov edi, ecx
push eax
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push 4
push edi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFullPathNameW]
cmp eax, 3
je 0x41bddb
push edi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_RemoveDirectoryW]
test eax, eax
je 0x41bdf8
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401200
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0xa], 0x3a
jne 0x41240e
cmp word [ebp - 8], 0x5c
jne 0x41240e
xor eax, eax
jmp 0x41241f
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov esi, eax
cmp esi, 5
jne 0x41241d
push edi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41241d
test al, 1
je 0x41241d
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFileAttributesW]
test eax, eax
je 0x41241d
push edi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_RemoveDirectoryW]
test eax, eax
je 0x41be46
xor esi, esi
jmp 0x41241d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov esi, eax
jmp 0x41241d
Function at 0x412e13
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x4261d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, 0x104
push edx
mov edx, ebx
lea ecx, [ebp - 0x420]
call fcn.00401da3
lea edx, [ebp - 0x420]
xor edi, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x412e4b
sub edx, ecx
lea eax, [ebp - 0x218]
push ecx
sar edx, 1
lea ecx, [ebp - 0x420]
push eax
inc edx
call fcn.0040b669
test al, al
je 0x41c23b
push 0x402df0
mov edx, 0x106
lea ecx, [ebp - 0x218]
call fcn.00402c8a
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x838]
push eax
push ebx
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeInformationW]
test eax, eax
je 0x41c242
cmp word [ebp - 0x218], 0x5c
je 0x41c266
xor eax, eax
mov word [ebp - 0x216], ax
cmp word [ebp - 0x630], di
je 0x41c27b
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x218]
push eax
push 2
push 0x235f
push esi
call fcn.00412f5f
add esp, 0x14
test eax, eax
jne 0x412f3f
mov ecx, dword [ebp - 0x838]
test ecx, ecx
je 0x412f50
movzx eax, cx
push eax
movzx eax, word [ebp - 0x836]
push eax
push 0x412898
lea eax, [ebp - 0x830]
push 0x100
push eax
call fcn.004026f3
add esp, 0x14
lea eax, [ebp - 0x830]
push eax
push 1
push 0x235b
push esi
call fcn.00412f5f
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401200
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x834], edi
jne 0x412f03
jmp 0x412f3f
xor eax, eax
jmp 0x412f3f
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0x90
je 0x41c23b
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
push eax
call fcn.0040bd02
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x412f3f
lea ecx, [ebp - 0x218]
call fcn.00402c6f
xor ecx, ecx
mov word [eax], cx
jmp 0x412eca
lea eax, [ebp - 0x218]
push eax
push 1
push 0x235e
push esi
call fcn.00412f5f
add esp, 0x10
jmp 0x412ef5
Function at 0x4133d0
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4261d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.00410ac0
push esi
mov esi, 0x106
lea ecx, [ebp - 0x218]
mov edx, esi
call fcn.00401da3
cmp word [ebp - 0x218], 0
je 0x413429
cmp word [ebp - 0x216], 0x3a
jne 0x413429
cmp word [ebp - 0x214], 0
je 0x41c176
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x228]
and dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetDiskFreeSpaceExW]
push 6
pop edx
mov ecx, edi
call fcn.004130b5
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push esi
push eax
push 0xe
lea edx, [ebp - 0x220]
call fcn.004129e1
lea eax, [ebp - 0x218]
mov edx, ebx
push eax
mov ecx, 0x4134b4
call fcn.0040be5b
push eax
push 2
push 0x2379
push edi
call fcn.00412f5f
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401200
mov esp, ebp
pop ebp
ret 8
push 0x402df0
mov edx, esi
lea ecx, [ebp - 0x218]
call fcn.00402c8a
jmp 0x413429

Function at 0x413769
Capabilities:
Delete file
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push eax
push edi
push dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], eax
mov esi, ecx
mov dword [0x42609c], eax
push ebx
push esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
je 0x41cfa3
mov ecx, dword [edi]
test ecx, ecx
je 0x41cf57
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x1c]
test eax, 0xc000
jne 0x4137d3
cmp ecx, 2
jb 0x4137cb
mov ecx, 0xfeff
cmp word [ebx], cx
je 0x4156ab
or eax, 0x8000
mov dword [edx + 0x1c], eax
mov eax, dword [edx + 0x1c]
mov ecx, 0x8002
and eax, ecx
cmp eax, ecx
je 0x41cf7b
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
or eax, 0x4000
jmp 0x4137d0
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0x3e3
je 0x41cfa3
mov ecx, dword [edi]
test ecx, ecx
jne 0x4137ab
and dword [0x4260a4], ecx
xor eax, eax
jmp 0x4137e8
mov esi, dword [edi]
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov edx, ebx
push edi
inc ecx
call fcn.00421bdf
cmp esi, dword [edi]
je 0x4137e5
mov dword [0x42609c], 1
jmp 0x4137e5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, esi
mov dword [0x4260a4], eax
call fcn.004049f8
mov ecx, dword [ebp + 0x14]
call fcn.004048d4
mov ecx, dword [ebp + 0x14]
test eax, eax
jne 0x41cfd4
call fcn.004049f8
push dword [ebp + 0x18]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_DeleteFileW]
jmp 0x41cfd9
call fcn.004049f8
mov ecx, dword [0x4260a4]
xor edx, edx
inc edx
call fcn.00422c0d
int3
Function at 0x4140d7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x1a
pop eax
mov word [ebp - 4], ax
mov edi, ecx
mov eax, dword [edx + 0x20]
test eax, eax
je 0x41417c
test dword [eax + 0x1c], 0x4000
mov esi, dword [ebp + 8]
jne 0x414127
test byte [eax + 0x1c], 2
jne 0x4180be
test byte [eax + 0x1c], 4
je 0x414127
mov eax, dword [0x4260d4]
cmp eax, 3
je 0x4180be
cmp eax, 4
je 0x4180be
test edi, edi
je 0x414167
test byte [edi + 0x1c], 0x80
jne 0x414167
mov ecx, esi
call fcn.004048d4
test eax, eax
jne 0x414167
mov eax, dword [0x4260d4]
cmp eax, 3
je 0x414167
cmp dword [ebp + 0xc], 0
je 0x414167
cmp eax, 2
je 0x414167
push dword [ebp + 0xc]
push 0
push 0
push esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFileTime]
mov ecx, esi
call fcn.004049f8
inc dword [0x4260c8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, edx
jmp 0x4140f4
mov ecx, esi
call fcn.004048d4
test eax, eax
jne 0x414127
push eax
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
jmp 0x414127
Function at 0x41c76e
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 0x41c7ac
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x41c7a4
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x41c7ae
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x41c794
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41c899
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 0x41c8af
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x41c8ca
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x4202bb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebx
mov ebx, 0x402678
push esi
mov ecx, ebx
call fcn.004036cb
mov esi, eax
test esi, esi
jne 0x4202df
pop esi
mov ecx, ebx
mov edx, 0x40be50
pop ebx
jmp fcn.004025a3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4202e4
sub ecx, edx
sar ecx, 1
push edi
lea ebx, [ecx + 4]
lea ecx, [ebx + ebx]
call fcn.00401e20
mov edi, eax
test edi, edi
jne 0x420308
inc eax
jmp 0x420345
push esi
mov edx, ebx
mov ecx, edi
call fcn.00401da3
push 0x40223c
mov edx, ebx
mov ecx, edi
call fcn.00402c8a
push 0x40be50
mov edx, ebx
mov ecx, edi
call fcn.00402c8a
mov edx, edi
mov ecx, 0x402678
call fcn.004025a3
mov ecx, edi
mov esi, eax
call fcn.0040128b
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4204f7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov esi, edx
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x420513
call fcn.004024cb
movzx eax, word [eax]
jmp 0x420515
mov eax, ebx
test ax, ax
je 0x420520
cmp ax, 0xa
jne 0x42054a
mov ecx, dword [edi + 0x3c]
push 0x3b
pop edx
call fcn.004024b1
test eax, eax
je 0x42054a
mov ecx, 0x4047f0
test esi, esi
jne 0x42053d
mov ecx, 0x401618
mov edx, 0x4024c4
pop edi
pop esi
pop ebx
jmp fcn.004025a3
mov ecx, dword [edi + 0x3c]
mov edx, 0x4035ac
push 5
call fcn.00402014
cmp word [eax], bx
je 0x420570
mov ecx, 0x4047f0
test esi, esi
jne 0x42056c
mov ecx, 0x401618
mov edx, eax
jmp 0x420542
mov edi, 0x4047f0
mov eax, 0x401618
mov ecx, edi
test esi, esi
jne 0x420584
mov ecx, eax
mov edi, eax
call fcn.00401e96
push eax
push edi
push 0x41c3dc
call fcn.00406992
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4207c9
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4261d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x210], esi
push edi
test edx, edx
jne 0x4208d0
xor edi, edi
mov ebx, edi
mov dword [ebp - 0x214], edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jne 0x4208bd
cmp word [ebp - 0x20c], 0x2e
jne 0x420884
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.0042125b
mov ebx, eax
test ebx, ebx
je 0x4208a6
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x42084f
sub ecx, edx
sar ecx, 1
je 0x420877
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x41c3dc
call fcn.00406992
add esp, 0xc
mov esi, eax
mov ecx, ebx
call fcn.0040128b
mov ebx, dword [ebp - 0x214]
cmp dword [0x426124], edi
jne 0x4208b5
inc ebx
mov dword [ebp - 0x214], ebx
test esi, esi
jne 0x420958
mov esi, dword [ebp - 0x210]
jmp 0x4207fb
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
push eax
call fcn.0040bd02
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x42095a
cmp esi, 0x103
jne 0x420958
mov esi, edi
jmp 0x420958
mov ecx, edx
call fcn.004024cb
mov ecx, eax
call fcn.00402508
mov ebx, eax
test ebx, ebx
je 0x4208b5
push 0x20
pop edx
mov ecx, ebx
call fcn.00402580
test eax, eax
je 0x4208f7
xor ecx, ecx
mov word [eax], cx
mov edx, ebx
mov ecx, esi
call fcn.0042125b
mov edx, eax
mov dword [ebp - 0x210], edx
test edx, edx
je 0x420934
mov ecx, edx
xor edi, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x420913
sub ecx, esi
sar ecx, 1
je 0x420934
push edx
push ebx
push 0x41c3dc
call fcn.00406992
mov esi, eax
jmp 0x420943
xor esi, esi
push ebx
inc esi
push esi
push 0x400023a3
call fcn.0040bd02
mov ecx, dword [ebp - 0x210]
add esp, 0xc
call fcn.0040128b
mov ecx, ebx
call fcn.0040128b
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401200
mov esp, ebp
pop ebp
ret
Function at 0x421143
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4261d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, edi
test ecx, ecx
jne 0x421167
xor eax, eax
jmp 0x421245
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x421242
push 0x40
lea edx, [ebp - 0x48]
mov ecx, esi
call fcn.0042138c
test eax, eax
je 0x42123b
mov eax, 0x5a4d
cmp ax, word [ebp - 0x48]
jne 0x42123b
push edi
push edi
push dword [ebp - 0xc]
push esi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42123b
push 4
lea edx, [ebp - 0x60]
mov ecx, esi
call fcn.0042138c
test eax, eax
je 0x42123b
cmp dword [ebp - 0x60], 0x4550
jne 0x42123b
push 0x14
lea edx, [ebp - 0x5c]
mov ecx, esi
call fcn.0042138c
test eax, eax
je 0x42123b
mov ax, word [ebp - 0x4c]
test ax, ax
je 0x42123b
movzx eax, ax
push eax
push 8
call dword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x42123b
movzx eax, word [ebp - 0x4c]
mov edx, edi
push eax
mov ecx, esi
call fcn.0042138c
test eax, eax
je 0x42122b
mov ecx, dword [ebp - 0x5c]
mov edx, edi
call fcn.00421361
test eax, eax
je 0x42122b
movzx ebx, word [eax]
push edi
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapFree]
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401200
mov esp, ebp
pop ebp
ret