joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416ed4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x42cb30
call fcn.004171a8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x416f34
cmp eax, 0xffffffff
je 0x416f34
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x416f2d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x416f2d
cmp edx, 0x10000000
jae 0x416f2d
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 0x416f2a
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 0x416fa0
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 0x416fde
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x416fd6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x416fe0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x416fc6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4170c0
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 0x4170f1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4170f1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4170f1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x422e74
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 0x422ee9
sub eax, 1
je 0x422ee0
sub eax, 1
je 0x422eba
sub eax, 1
jne 0x422ef3
push edi
call fcn.004167b0
jmp 0x422ef0
test edi, edi
js 0x422ed7
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.0042345e
mov ecx, edi
call fcn.00423178
jmp 0x422ef0
mov ecx, edi
call fcn.0042318b
jmp 0x422ef0
mov ecx, edi
call fcn.00423165
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 [0x43a7d8], eax
inc eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x422f1b
xor ecx, ecx
cmp word [eax], cx
jne 0x422f1d
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 [0x449048]
test edi, edi
je 0x422f76
mov ecx, edi
call dword [0x44a4c4]
call edi
mov edi, dword [0x42e54c]
mov dword [esi + 0x44], eax
test edi, edi
je 0x422f96
push 0x400
push dword [ebp + 0x30]
mov ecx, edi
push esi
call dword [0x44a4c4]
call edi
mov edi, dword [0x449078]
test edi, edi
je 0x422fab
push esi
mov ecx, edi
call dword [0x44a4c4]
call edi
mov edi, dword [0x449080]
test edi, edi
je 0x422fc0
push esi
mov ecx, edi
call dword [0x44a4c4]
call edi
xor eax, eax
cmp dword [esi + 4], eax
jl 0x422fd8
cmp dword [ebp + 0x18], 3
jne 0x423061
mov dword [esi + 4], 0x8000ffff
call fcn.00422e37
mov edi, dword [0x44906c]
test al, al
jne 0x423004
test edi, edi
je 0x42303d
cmp byte [0x449071], al
jne 0x42303d
xor eax, eax
mov ecx, edi
push eax
push eax
push esi
call dword [0x44a4c4]
call edi
jmp 0x42303d
test edi, edi
je 0x423022
cmp byte [0x449071], 0
jne 0x423022
push 0x800
push ebx
push esi
mov ecx, edi
call dword [0x44a4c4]
call edi
xor eax, eax
cmp word [ebx], ax
jne 0x423036
push esi
mov edx, 0x800
mov ecx, ebx
call fcn.00422859
push ebx
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
cmp byte [0x449070], 0
je 0x42305a
mov esi, dword [0x449040]
test esi, esi
je 0x42305a
mov ecx, esi
call dword [0x44a4c4]
call esi
pop edi
pop esi
pop ebx
leave
ret 0x34
call fcn.00417d12
int3
Function at 0x42378a
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x42e0b4]
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 0x4237d9
add eax, 2
sub edx, 1
jne 0x4237cc
mov eax, esi
mov ecx, edx
sub eax, edx
neg ecx
push ebx
sbb ecx, ecx
and ecx, eax
test edx, edx
je 0x423828
lea eax, [ebp - 0x20c]
lea eax, [eax + ecx*2]
sub esi, ecx
je 0x423820
mov edx, 0x40381c
mov ecx, 0x7ffffffe
sub edx, eax
test ecx, ecx
je 0x42381c
movzx ebx, word [edx + eax]
test bx, bx
je 0x42381c
mov word [eax], bx
add eax, 2
dec ecx
sub esi, 1
jne 0x423803
test esi, esi
jne 0x423823
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 0x423864
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x4238ac
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.004234bf
mov edi, eax
jmp 0x423892
lea edx, [ebp - 0x218]
mov dword [ebp - 0x218], edi
mov ecx, esi
call fcn.00422d1f
mov ebx, eax
test ebx, ebx
jns 0x42389a
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push ebx
push 0x40347c
call fcn.004234d4
mov edi, ebx
mov esi, dword [ebp - 0x214]
jmp 0x4238ac
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 0x4238d2
lea edx, [ebp - 0x210]
mov dword [ebp - 0x210], esi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x422560
call fcn.00417c7a
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00416b30
leave
ret 8
Function at 0x4245f9
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, 0x43a7f0
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 0x424632
mov dword [ebp + 8], eax
mov esi, eax
push 0x448e04
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 0x448e04
mov esi, eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test esi, esi
je 0x424790
mov esi, dword [ebp + 0xc]
mov edi, dword [esi]
test edi, edi
je 0x424790
cmp dword [0x4325a0], 0xfde9
mov ecx, edi
mov dword [ebp - 4], edi
jne 0x4246b7
cmp dword [ebp - 8], 0
jne 0x4246b7
cmp dword [ebp + 8], 3
jbe 0x4246b7
push 3
push 0x4034f8
push ebx
call sub.msvcrt.dll_memcmp
add esp, 0xc
mov ecx, edi
test eax, eax
jne 0x4246b7
add edi, 0xfffffffd
mov dword [ebp - 8], 3
mov ebx, 0x43a7f3
mov dword [esi], edi
mov dword [ebp - 4], edi
mov ecx, edi
mov dword [ebp - 0x10], ebx
test edi, edi
jle 0x424703
cmp ecx, 3
jl 0x4246d9
mov al, byte [ebx]
cmp al, 0xa
jne 0x4246cf
cmp byte [ebx + 1], 0xd
je 0x42472a
cmp al, 0xd
jne 0x4246d9
cmp byte [ebx + 1], 0xa
je 0x42472a
movzx eax, byte [ebx]
cmp byte [eax + 0x448af0], 0
je 0x4246f2
cmp ecx, 1
je 0x42474a
push 2
pop eax
push 0xfffffffffffffffe
pop edx
jmp 0x4246f8
xor eax, eax
inc eax
or edx, 0xffffffff
add ecx, edx
add ebx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jg 0x4246be
push dword [ebp + 8]
mov ecx, dword [0x4325a0]
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 0x424792
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 0x424703
push 0x448e04
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 0x448e04
mov esi, eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test esi, esi
je 0x42478a
cmp dword [ebp - 4], 0
je 0x42478a
mov esi, dword [ebp + 0xc]
inc edi
jmp 0x424703
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4250d8
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 0x4250fc
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 0x425101
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 0x425125
inc eax
jmp 0x425162
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 0x425303
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 0x42531f
call fcn.0040ab7f
movzx eax, word [eax]
jmp 0x425321
mov eax, ebx
test ax, ax
je 0x42532c
cmp ax, 0xa
jne 0x425356
mov ecx, dword [edi + 0x3c]
push 0x3b
pop edx
call fcn.0040a62f
test eax, eax
je 0x425356
mov ecx, 0x402500
test esi, esi
jne 0x425349
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 0x42537c
mov ecx, 0x402500
test esi, esi
jne 0x425378
mov ecx, 0x403674
mov edx, eax
jmp 0x42534e
mov edi, 0x402500
mov eax, 0x403674
mov ecx, edi
test esi, esi
jne 0x425390
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 0x4257a8
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x42e0b4]
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 0x4258af
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 0x42589c
cmp word [ebp - 0x20c], 0x2e
jne 0x425863
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.004262b3
mov ebx, eax
test ebx, ebx
je 0x425885
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x42582e
sub ecx, edx
sar ecx, 1
je 0x425856
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 [0x43259c], edi
jne 0x425894
inc ebx
mov dword [ebp - 0x214], ebx
test esi, esi
jne 0x425937
mov esi, dword [ebp - 0x210]
jmp 0x4257da
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 0x425939
cmp esi, 0x103
jne 0x425937
mov esi, edi
jmp 0x425937
mov ecx, edx
call fcn.0040ab7f
mov ecx, eax
call fcn.0040acb0
mov ebx, eax
test ebx, ebx
je 0x425894
push 0x20
pop edx
mov ecx, ebx
call fcn.004101f5
test eax, eax
je 0x4258d6
xor ecx, ecx
mov word [eax], cx
mov edx, ebx
mov ecx, esi
call fcn.004262b3
mov edx, eax
mov dword [ebp - 0x210], edx
test edx, edx
je 0x425913
mov ecx, edx
xor edi, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4258f2
sub ecx, esi
sar ecx, 1
je 0x425913
push edx
push ebx
push 0x403b6c
call fcn.00409950
mov esi, eax
jmp 0x425922
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.00416b30
leave
ret
Function at 0x4261a2
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x42e0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, edi
test ecx, ecx
jne 0x4261c6
xor eax, eax
jmp 0x4262a4
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4262a1
push 0x40
lea edx, [ebp - 0x48]
mov ecx, esi
call fcn.004263c3
test eax, eax
je 0x42629a
mov eax, 0x5a4d
cmp ax, word [ebp - 0x48]
jne 0x42629a
push edi
push edi
push dword [ebp - 0xc]
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42629a
push 4
lea edx, [ebp - 0x60]
mov ecx, esi
call fcn.004263c3
test eax, eax
je 0x42629a
cmp dword [ebp - 0x60], 0x4550
jne 0x42629a
push 0x14
lea edx, [ebp - 0x5c]
mov ecx, esi
call fcn.004263c3
test eax, eax
je 0x42629a
mov ax, word [ebp - 0x4c]
test ax, ax
je 0x42629a
movzx eax, ax
push eax
push 8
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 edi, eax
test edi, edi
je 0x42629a
movzx eax, word [ebp - 0x4c]
mov edx, edi
push eax
mov ecx, esi
call fcn.004263c3
test eax, eax
je 0x42628a
mov ecx, dword [ebp - 0x5c]
mov edx, edi
call fcn.00426396
test eax, eax
je 0x42628a
movzx ebx, word [eax]
push edi
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_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.00416b30
leave
ret
Function at 0x4262b3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
push 0x42cd20
call fcn.004171a8
mov edi, ecx
mov dword [ebp - 0x2c], edi
xor ebx, ebx
mov esi, ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], ebx
test edx, edx
je 0x4262f3
cmp word [edx], bx
je 0x4262f3
lea eax, [ebp - 0x1c]
push eax
push 1
push ebx
push edx
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x4262f3
push eax
jmp 0x42635d
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp eax, 2
jne 0x42631d
mov ecx, 0x4020b8
call fcn.0040acb0
mov esi, eax
mov dword [ebp - 0x20], esi
jmp 0x426363
test eax, eax
jne 0x4262f0
mov ecx, dword [ebp - 0x24]
call fcn.0040dcd0
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x42635b
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
je 0x426363
mov ecx, esi
call fcn.0040dc60
xor esi, esi
mov dword [ebp - 0x20], esi
push ebx
jmp 0x42635d
push 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
call fcn.00426387
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4264db
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push 0x18
push 0x42cd00
call fcn.004171a8
mov ebx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
xor edi, edi
test eax, eax
je 0x42658c
cmp word [eax], di
je 0x42658c
push edi
lea eax, [ebp - 0x20]
push eax
push edi
push 2
push edi
push edi
push edi
push ebx
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x426573
mov edx, dword [ebp + 8]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x426526
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push edi
push edi
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
jne 0x426573
push dword [ebp + 8]
push ebx
push 0x403b6c
call fcn.00409950
add esp, 0xc
jmp 0x4265f5
push edi
push esi
call fcn.004078e4
push ebx
push 1
push 0x235d
call fcn.004078e4
add esp, 0x14
jmp 0x4265f5
push edi
push edi
push ebx
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4265f9
lea eax, [ebp - 0x24]
push eax
push 0x2000000
push edi
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4265cc
cmp esi, 2
je 0x4265f5
push edi
push esi
call fcn.004078e4
pop ecx
pop ecx
jmp 0x4265f5
push 0x4020b8
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4265ec
push edi
push esi
call fcn.004078e4
pop ecx
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
jne 0x42663c
mov dword [ebp - 4], edi
call fcn.004172ef
test al, al
je 0x426613
push edi
push edi
push edi
push 0x8000000
call dword [sym.imp.ext_ms_win_cmd_util_l1_1_0.dll_DoSHChangeNotify]
mov dword [ebp - 4], 0xfffffffe
jmp 0x42663c
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x428b6c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
push dword [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_FlushFileBuffers]
mov ecx, dword [esi]
call fcn.0040a16c
push ecx
push ecx
xor edx, edx
mov ecx, edi
call fcn.0041654b
mov ecx, eax
mov dword [esi], ecx
cmp ecx, 0xffffffff
je 0x428c36
mov ebx, dword [ebp + 8]
mov eax, ebx
push 2
push 0
neg eax
push eax
push ecx
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_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push dword [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 0x428c2c
cmp dword [ebp - 4], ebx
jne 0x428c2c
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x428c2c
mov ecx, dword [esi]
call fcn.0040a16c
push ecx
xor edx, edx
push ecx
inc edx
mov ecx, edi
call fcn.0041654b
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x428c36
push 2
push 0
push 0
push eax
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_SetFilePointer]
xor eax, eax
jmp 0x428c49
mov ecx, dword [esi]
call fcn.0040a16c
or dword [esi], 0xffffffff
push edi
push 1
push 0x4000271f
call fcn.004078e4
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4294e0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push ecx
push ecx
push 2
mov dword [ebp - 8], edx
pop edx
call fcn.0041654b
mov esi, eax
cmp esi, 0xffffffff
jne 0x429519
push 0x6e
pop ecx
call fcn.00429edb
xor edx, edx
xor ecx, ecx
inc edx
call fcn.00428c50
mov ebx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
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 0x4295cc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edi, eax
mov ecx, dword [edx + 0x1c]
test ecx, 0xc000
jne 0x429573
cmp edi, 2
jbe 0x42956a
mov edx, 0xfeff
cmp word [ebx], dx
mov edx, dword [ebp - 8]
jne 0x42956a
or ecx, 0x4000
jmp 0x429570
or ecx, 0x8000
mov dword [edx + 0x1c], ecx
test edi, edi
je 0x42959e
lea eax, [ebp - 0x10]
mov edx, ebx
push eax
lea eax, [ebp - 4]
push eax
mov eax, 0x8002
and ecx, eax
sub ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
call fcn.004273dd
mov ecx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
jmp 0x4295a1
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x42951c
test ecx, ecx
jne 0x4295c3
push 1
push ecx
sub eax, edi
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_SetFilePointer]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, esi
mov dword [0x4367a8], eax
call fcn.0040a16c
push 0
push dword [0x4367a8]
call fcn.004078e4
pop ecx
pop ecx
jmp 0x42950f