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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x1a
mov edi, ecx
mov ecx, dword [edx + 0x20]
pop eax
mov word [ebp - 4], ax
test ecx, ecx
je 0x414c71
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x420b1b
inc dword [0x435714]
pop edi
pop esi
leave
ret 8
mov ecx, edx
jmp 0x414c59
call fcn.00428b01
test eax, eax
je 0x420b49
mov ecx, esi
call fcn.0040dd98
test eax, eax
jne 0x420b49
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_1_0.dll_WriteFile]
test edi, edi
je 0x420b89
test byte [edi + 0x1c], 0x80
jne 0x420b89
mov ecx, esi
call fcn.0040dd98
test eax, eax
jne 0x420b89
mov eax, dword [0x435704]
cmp eax, 3
je 0x420b89
cmp dword [ebp + 0xc], 0
je 0x420b89
cmp eax, 2
je 0x420b89
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_1_0.dll_SetFileTime]
mov ecx, esi
call fcn.0040a16c
jmp 0x414c65

Function at 0x414ca0
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 [0x4357a0], 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_1_0.dll_ReadFile]
test eax, eax
je 0x420c06
mov ecx, dword [edi]
test ecx, ecx
je 0x420bba
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x1c]
test eax, 0xc000
je 0x414d08
mov ecx, 0x8002
and eax, ecx
cmp eax, ecx
je 0x420bde
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x14
cmp ecx, 2
jb 0x414d17
mov ecx, 0xfeff
cmp word [ebx], cx
je 0x414d21
or eax, 0x8000
mov dword [edx + 0x1c], eax
jmp 0x414cef
or eax, 0x4000
jmp 0x414d1c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e3
je 0x420c06
mov ecx, dword [edi]
test ecx, ecx
jne 0x414ce2
and dword [0x4357a8], ecx
xor eax, eax
jmp 0x414d01
mov esi, dword [edi]
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov edx, ebx
push edi
inc ecx
call fcn.0042739d
cmp esi, dword [edi]
je 0x414cfe
mov dword [0x4357a0], 1
jmp 0x414cfe
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, esi
mov dword [0x4357a8], eax
call fcn.0040a16c
mov ecx, dword [ebp + 0x14]
call fcn.0040dd98
mov ecx, dword [ebp + 0x14]
test eax, eax
jne 0x420c37
call fcn.0040a16c
push dword [ebp + 0x18]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
jmp 0x420c3c
call fcn.0040a16c
mov ecx, dword [0x4357a8]
xor edx, edx
inc edx
call fcn.00428c10
int3
Function at 0x415271
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 [0x42d0b4]
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_1_0.dll_GetFullPathNameW]
cmp eax, 3
je 0x420fd7
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
je 0x420ff4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00416b50
leave
ret
cmp word [ebp - 0xa], 0x3a
jne 0x4152a3
cmp word [ebp - 8], 0x5c
jne 0x4152a3
xor eax, eax
jmp 0x4152b4
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
cmp esi, 5
jne 0x4152b2
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4152b2
test al, 1
je 0x4152b2
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
je 0x4152b2
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
je 0x421042
xor esi, esi
jmp 0x4152b2
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
jmp 0x4152b2
Function at 0x41589a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
push 0
xor eax, eax
mov dword [ebp - 4], ecx
push 0
push dword [ebp + 0x10]
xor bl, bl
cmp dword [ebp + 0xc], eax
sete al
push eax
push edx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileExW]
mov esi, dword [ebp + 0x14]
mov edi, eax
mov dword [esi], edi
cmp edi, 0xffffffff
jne 0x4158e1
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x4357a8], eax
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
cmp eax, fcn.004159d0
jne 0x4159a0
call fcn.004159d0
test eax, eax
je 0x41598b
and dword [0x4357a8], 0
mov bl, 1
cmp edi, 0xffffffff
je 0x41593a
mov ecx, dword [0x4357b8]
test ecx, ecx
je 0x415940
mov edx, dword [0x4357bc]
cmp edx, dword [0x4357c0]
jge 0x415961
test ecx, ecx
je 0x415938
mov eax, dword [esi]
mov dword [ecx + edx*4], eax
inc edx
mov dword [0x4357bc], edx
mov bl, 1
test bl, bl
jne 0x4158d8
jmp 0x4158cd
push 0x14
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov ecx, eax
mov edx, dword [0x4357bc]
mov dword [0x4357b8], ecx
jmp 0x415928
lea eax, [edx*4 + 4]
push eax
push ecx
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapReAlloc]
mov ecx, eax
test ecx, ecx
je 0x4215c9
inc dword [0x4357c0]
jmp 0x415953
push dword [ebp + 0x10]
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
je 0x4159b4
mov edi, dword [esi]
jmp 0x4158c8
mov ecx, eax
call dword [0x4494c4]
mov ecx, dword [ebp - 4]
call ecx
mov edi, dword [esi]
jmp 0x4158fa
push dword [esi]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
or dword [esi], 0xffffffff
or edi, 0xffffffff
jmp 0x41590b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push dword [esi]
mov dword [0x4357a8], eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
or dword [esi], 0xffffffff
xor al, al
jmp 0x4158da
Function at 0x4162c0
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x42d0b4]
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.0041643a
test eax, eax
js 0x421eb1
mov eax, dword [ebp - 0x21c]
cmp eax, 3
jae 0x421f0f
test eax, eax
jne 0x421ebf
inc eax
mov edi, eax
mov dword [ebp - 0x220], eax
push 0x40002748
mov dword [ebp - 0x22c], edi
call fcn.0041640a
mov dword [ebp - 0x218], eax
pop ecx
test eax, eax
je 0x421efe
mov ebx, eax
xor edx, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x416348
sub ebx, ecx
sar ebx, 1
cmp ebx, 0x104
jae 0x4163d8
mov ecx, 0x208
call fcn.0040dcd0
mov esi, eax
mov dword [ebp - 0x228], esi
test esi, esi
je 0x4163d8
push dword [ebp - 0x218]
mov edx, 0x104
mov ecx, esi
call fcn.0040f3a0
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x421f17
cmp dword [eax + 0x3c], 0
je 0x416404
push dword [eax + 0x3c]
mov edx, 0x104
mov ecx, esi
call fcn.0040fc40
test eax, eax
jne 0x4163cd
xor ebx, ebx
test esi, esi
je 0x4163c1
push esi
call dword [sym.imp.api_ms_win_core_console_l2_2_0.dll_SetConsoleTitleW]
mov byte [0x43575c], bl
xor eax, eax
mov edi, eax
cmp dword [ebp - 0x220], eax
je 0x4163d8
test esi, esi
je 0x4163d8
mov ecx, esi
call fcn.0040dc60
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x4163e9
push eax
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
test edi, edi
jne 0x421efe
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b50
leave
ret 4
xor ecx, ecx
mov edi, ecx
jmp 0x4163cd
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test ebx, ebx
je 0x421f9f
mov ecx, dword [ebx + 0x3c]
call fcn.0040ab7f
mov esi, eax
test esi, esi
je 0x4163c1
mov ecx, esi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x421ee0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jb 0x4163b0
xor edi, edi
inc edi
xor eax, eax
push eax
push 8
call fcn.004078e4
pop ecx
pop ecx
jmp 0x4163f1
add eax, 0xfffffff0
jmp 0x416311
lea eax, [ebp - 0x214]
push 0x104
push eax
mov dword [ebp - 0x21c], eax
call dword [sym.imp.api_ms_win_core_console_l2_2_0.dll_GetConsoleTitleW]
test eax, eax
je 0x4163cd
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 0x421f80
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 0x421f5e
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 0x21c], esi
mov esi, dword [ebp - 0x228]
push dword [ebp - 0x21c]
mov edx, 0x104
mov ecx, esi
call fcn.0040fc40
test eax, eax
jne 0x4163cd
jmp 0x4163ae
xor ebx, ebx
mov esi, ebx
jmp 0x4163b0
Function at 0x416ef4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x42cac0
call fcn.004171b8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x416f54
cmp eax, 0xffffffff
je 0x416f54
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x416f4d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x416f4d
cmp edx, 0x10000000
jae 0x416f4d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x416f4a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x416fc0
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 0x416ffe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x416ff6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x417000
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x416fe6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4170d0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x417101
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x417101
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x417101
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x422e35
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x28]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov word [ebx], ax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov byte [eax], 0
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
sub eax, 0
je 0x422eaa
sub eax, 1
je 0x422ea1
sub eax, 1
je 0x422e7b
sub eax, 1
jne 0x422eb4
push edi
call fcn.004167b0
jmp 0x422eb1
test edi, edi
js 0x422e98
mov edi, 0x8007029c
push edi
push 2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042341e
mov ecx, edi
call fcn.00423139
jmp 0x422eb1
mov ecx, edi
call fcn.0042314c
jmp 0x422eb1
mov ecx, edi
call fcn.00423126
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x38]
mov eax, dword [ebp + 0x18]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
inc eax
lock xadd dword [0x4397d8], eax
inc eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x422edc
xor ecx, ecx
cmp word [eax], cx
jne 0x422ede
xor eax, eax
mov dword [esi + 0xc], eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
mov dword [esi + 0x10], eax
lea edi, [esi + 0x2c]
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x4c], eax
xor eax, eax
push 6
pop ecx
mov dword [esi + 0x28], edx
rep stosd dword es:[edi], eax
mov edi, dword [0x448048]
test edi, edi
je 0x422f37
mov ecx, edi
call dword [0x4494c4]
call edi
mov edi, dword [0x42d54c]
mov dword [esi + 0x44], eax
test edi, edi
je 0x422f57
push 0x400
push dword [ebp + 0x30]
mov ecx, edi
push esi
call dword [0x4494c4]
call edi
mov edi, dword [0x448078]
test edi, edi
je 0x422f6c
push esi
mov ecx, edi
call dword [0x4494c4]
call edi
mov edi, dword [0x448080]
test edi, edi
je 0x422f81
push esi
mov ecx, edi
call dword [0x4494c4]
call edi
xor eax, eax
cmp dword [esi + 4], eax
jl 0x422f99
cmp dword [ebp + 0x18], 3
jne 0x423022
mov dword [esi + 4], 0x8000ffff
call fcn.00422df7
mov edi, dword [0x44806c]
test al, al
jne 0x422fc5
test edi, edi
je 0x422ffe
cmp byte [0x448071], al
jne 0x422ffe
xor eax, eax
mov ecx, edi
push eax
push eax
push esi
call dword [0x4494c4]
call edi
jmp 0x422ffe
test edi, edi
je 0x422fe3
cmp byte [0x448071], 0
jne 0x422fe3
push 0x800
push ebx
push esi
mov ecx, edi
call dword [0x4494c4]
call edi
xor eax, eax
cmp word [ebx], ax
jne 0x422ff7
push esi
mov edx, 0x800
mov ecx, ebx
call fcn.00422819
push ebx
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
cmp byte [0x448070], 0
je 0x42301b
mov esi, dword [0x448040]
test esi, esi
je 0x42301b
mov ecx, esi
call dword [0x4494c4]
call esi
pop edi
pop esi
pop ebx
leave
ret 0x34
call fcn.00417d22
int3
Function at 0x42374a
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x210], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [ebp - 0x20c]
call fcn.0040f3a0
mov edx, esi
lea eax, [ebp - 0x20c]
cmp word [eax], di
je 0x423799
add eax, 2
sub edx, 1
jne 0x42378c
mov eax, esi
mov ecx, edx
sub eax, edx
neg ecx
push ebx
sbb ecx, ecx
and ecx, eax
test edx, edx
je 0x4237e8
lea eax, [ebp - 0x20c]
lea eax, [eax + ecx*2]
sub esi, ecx
je 0x4237e0
mov edx, 0x40381c
mov ecx, 0x7ffffffe
sub edx, eax
test ecx, ecx
je 0x4237dc
movzx ebx, word [edx + eax]
test bx, bx
je 0x4237dc
mov word [eax], bx
add eax, 2
dec ecx
sub esi, 1
jne 0x4237c3
test esi, esi
jne 0x4237e3
sub eax, 2
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov esi, eax
mov dword [ebp - 0x214], esi
test esi, esi
jne 0x423824
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x42386c
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.0042347f
mov edi, eax
jmp 0x423852
lea edx, [ebp - 0x218]
mov dword [ebp - 0x218], edi
mov ecx, esi
call fcn.00422cdf
mov ebx, eax
test ebx, ebx
jns 0x42385a
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push ebx
push 0x40347c
call fcn.00423494
mov edi, ebx
mov esi, dword [ebp - 0x214]
jmp 0x42386c
mov ecx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x218]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
pop ebx
test esi, esi
je 0x423892
lea edx, [ebp - 0x210]
mov dword [ebp - 0x210], esi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x422520
call fcn.00417c8a
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00416b50
leave
ret 8
Function at 0x4245b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 1
push 0
mov edi, ecx
mov dword [ebp - 0x14], edx
push 0
push edi
mov dword [ebp - 0xc], edi
mov ebx, 0x4397f0
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, 0x1fff
cmp esi, eax
jb 0x4245f2
mov dword [ebp + 8], eax
mov esi, eax
push 0x447e04
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
mov eax, dword [ebp + 0xc]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
push 0x447e04
mov esi, eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test esi, esi
je 0x424750
mov esi, dword [ebp + 0xc]
mov edi, dword [esi]
test edi, edi
je 0x424750
cmp dword [0x4315a0], 0xfde9
mov ecx, edi
mov dword [ebp - 4], edi
jne 0x424677
cmp dword [ebp - 8], 0
jne 0x424677
cmp dword [ebp + 8], 3
jbe 0x424677
push 3
push 0x4034f8
push ebx
call sub.msvcrt.dll_memcmp
add esp, 0xc
mov ecx, edi
test eax, eax
jne 0x424677
add edi, 0xfffffffd
mov dword [ebp - 8], 3
mov ebx, 0x4397f3
mov dword [esi], edi
mov dword [ebp - 4], edi
mov ecx, edi
mov dword [ebp - 0x10], ebx
test edi, edi
jle 0x4246c3
cmp ecx, 3
jl 0x424699
mov al, byte [ebx]
cmp al, 0xa
jne 0x42468f
cmp byte [ebx + 1], 0xd
je 0x4246ea
cmp al, 0xd
jne 0x424699
cmp byte [ebx + 1], 0xa
je 0x4246ea
movzx eax, byte [ebx]
cmp byte [eax + 0x447af0], 0
je 0x4246b2
cmp ecx, 1
je 0x42470a
push 2
pop eax
push 0xfffffffffffffffe
pop edx
jmp 0x4246b8
xor eax, eax
inc eax
or edx, 0xffffffff
add ecx, edx
add ebx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jg 0x42467e
push dword [ebp + 8]
mov ecx, dword [0x4315a0]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
call fcn.0040e248
neg eax
sbb eax, eax
neg eax
push eax
push ecx
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov dword [esi], eax
jmp 0x424752
xor eax, eax
mov edi, ebx
sub edi, dword [ebp - 0x10]
push eax
push eax
mov byte [ebx + 2], al
add edi, 2
mov eax, dword [ebp - 8]
add eax, edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
jmp 0x4246c3
push 0x447e04
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
push 0
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebx + 1]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
push 0x447e04
mov esi, eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test esi, esi
je 0x42474a
cmp dword [ebp - 4], 0
je 0x42474a
mov esi, dword [ebp + 0xc]
inc edi
jmp 0x4246c3
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x425098
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebx
mov ebx, 0x40221c
push esi
mov ecx, ebx
call fcn.00411d90
mov esi, eax
test esi, esi
jne 0x4250bc
pop esi
mov ecx, ebx
mov edx, 0x402644
pop ebx
jmp fcn.0040a976
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4250c1
sub ecx, edx
sar ecx, 1
push edi
lea ebx, [ecx + 4]
lea ecx, [ebx + ebx]
call fcn.0040dcd0
mov edi, eax
test edi, edi
jne 0x4250e5
inc eax
jmp 0x425122
push esi
mov edx, ebx
mov ecx, edi
call fcn.0040f3a0
push 0x40234c
mov edx, ebx
mov ecx, edi
call fcn.0040fc40
push 0x402644
mov edx, ebx
mov ecx, edi
call fcn.0040fc40
mov edx, edi
mov ecx, 0x40221c
call fcn.0040a976
mov ecx, edi
mov esi, eax
call fcn.0040dc60
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4252c3
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 0x4252df
call fcn.0040ab7f
movzx eax, word [eax]
jmp 0x4252e1
mov eax, ebx
test ax, ax
je 0x4252ec
cmp ax, 0xa
jne 0x425316
mov ecx, dword [edi + 0x3c]
push 0x3b
pop edx
call fcn.0040a62f
test eax, eax
je 0x425316
mov ecx, 0x402500
test esi, esi
jne 0x425309
mov ecx, 0x403674
mov edx, 0x4020b8
pop edi
pop esi
pop ebx
jmp fcn.0040a976
mov ecx, dword [edi + 0x3c]
mov edx, 0x40242c
push 5
call fcn.0040bc30
cmp word [eax], bx
je 0x42533c
mov ecx, 0x402500
test esi, esi
jne 0x425338
mov ecx, 0x403674
mov edx, eax
jmp 0x42530e
mov edi, 0x402500
mov eax, 0x403674
mov ecx, edi
test esi, esi
jne 0x425350
mov ecx, eax
mov edi, eax
call fcn.0040ec2e
push eax
push edi
push 0x403b6c
call fcn.00409950
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x425768
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x42d0b4]
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 0x42586f
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 0x42585c
cmp word [ebp - 0x20c], 0x2e
jne 0x425823
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.00426273
mov ebx, eax
test ebx, ebx
je 0x425845
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4257ee
sub ecx, edx
sar ecx, 1
je 0x425816
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x403b6c
call fcn.00409950
add esp, 0xc
mov esi, eax
mov ecx, ebx
call fcn.0040dc60
mov ebx, dword [ebp - 0x214]
cmp dword [0x43159c], edi
jne 0x425854
inc ebx
mov dword [ebp - 0x214], ebx
test esi, esi
jne 0x4258f7
mov esi, dword [ebp - 0x210]
jmp 0x42579a
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.004078e4
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x4258f9
cmp esi, 0x103
jne 0x4258f7
mov esi, edi
jmp 0x4258f7
mov ecx, edx
call fcn.0040ab7f
mov ecx, eax
call fcn.0040acb0
mov ebx, eax
test ebx, ebx
je 0x425854
push 0x20
pop edx
mov ecx, ebx
call fcn.004101f5
test eax, eax
je 0x425896
xor ecx, ecx
mov word [eax], cx
mov edx, ebx
mov ecx, esi
call fcn.00426273
mov edx, eax
mov dword [ebp - 0x210], edx
test edx, edx
je 0x4258d3
mov ecx, edx
xor edi, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4258b2
sub ecx, esi
sar ecx, 1
je 0x4258d3
push edx
push ebx
push 0x403b6c
call fcn.00409950
mov esi, eax
jmp 0x4258e2
xor esi, esi
push ebx
inc esi
push esi
push 0x400023a3
call fcn.004078e4
mov ecx, dword [ebp - 0x210]
add esp, 0xc
call fcn.0040dc60
mov ecx, ebx
call fcn.0040dc60
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b50
leave
ret