joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x70000]
push edi
or ebp, 0xffffffff
jmp 0x47f5a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47f5a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47f598
mov eax, 1
add ebx, ebx
jne 0x47f5bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47f5cc
jne 0x47f5eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47f5eb
dec eax
add ebx, ebx
jne 0x47f5d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47f5b0
add ebx, ebx
jne 0x47f5e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47f63d
xor ecx, ecx
sub eax, 3
jb 0x47f603
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47f672
sar eax, 1
mov ebp, eax
jmp 0x47f60e
add ebx, ebx
jne 0x47f60e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47f5dc
inc ecx
add ebx, ebx
jne 0x47f61c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47f5dc
add ebx, ebx
jne 0x47f629
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47f61e
jne 0x47f63a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47f61e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47f65c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47f64e
jmp 0x47f59e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47f65c
add edi, ecx
jmp 0x47f59e
pop esi
mov edi, esi
mov ecx, 0x20f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47f67a
cmp byte [edi], 5
jne 0x47f67a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x47f67f
lea edi, [esi + 0x7d000]
mov eax, dword [edi]
or eax, eax
je 0x47f6f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd8ed4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd8f74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47f6ac
mov ecx, edi
jns 0x47f6db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd8f78]
or eax, eax
je 0x47f6f1
mov dword [ebx], eax
add ebx, 4
jmp 0x47f6c9
call dword [esi + 0xd8f80]
mov ebp, dword [esi + 0xd8f7c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47f72b
sub esp, 0xffffff80
jmp 0x40cad0
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x401032
xor eax, eax
jmp 0x4010ed
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0xe
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40106d
cmp dword [ebp - 0x24], 0xe
jne 0x40106d
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
xor edx, edx
mov dx, word [0x40f038]
cmp ecx, edx
je 0x40107b
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4010ed
mov ecx, dword [ebp - 0x12]
sub ecx, 0xe
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040482e
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4010a7
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4010ed
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
je 0x4010da
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 4]
je 0x4010ea
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004047ff
add esp, 4
xor eax, eax
jmp 0x4010ed
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x403ae5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push 0x40f8e8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403b5f
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0x40f918
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403b5f
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
fild qword [ebp - 0x20]
fstp qword [ebp - 0xc]
cmp dword [ebp - 0x18], 0
je 0x403b6f
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
fld qword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x403fb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0040482e
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403fdd
push 0x40f920
call fcn.0040534f
add esp, 4
push 1
call fcn.00405149
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x404169
Capabilities:
Check mutex on windows
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x104], 0
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ecx, dword [ebp - 0x104]
add ecx, 1
push ecx
call fcn.00405298
add esp, 4
mov dword [ebp - 0x110], eax
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x10c], edx
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x4041e9
mov edx, dword [ebp - 0x10c]
push edx
push 0x40f9d4
push 0x40f9e0
lea eax, [ebp - 0x100]
push eax
call fcn.00405246
add esp, 0x10
jmp 0x404202
push 0x40f9e8
push 0x40f9f4
lea ecx, [ebp - 0x100]
push ecx
call fcn.00405246
add esp, 0xc
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x114]
push eax
call fcn.0040523b
add esp, 4
lea ecx, [ebp - 0x100]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x108], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404255
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0x404264
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40431a
Capabilities:
Check mutex on windows
Create process on windows
Get file size
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push 0x40fa10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x20c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40435c
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x404553
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea edx, [ebp - 0x208]
push edx
call fcn.00404268
add esp, 8
test eax, eax
jne 0x40438b
mov eax, 1
jmp 0x404553
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x310]
push ecx
call fcn.004048b0
add esp, 8
push 0x40fa20
lea edx, [ebp - 0x208]
push edx
call fcn.004048c0
add esp, 8
push 0x40fa38
lea eax, [ebp - 0x208]
push eax
call fcn.004050d4
add esp, 8
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
je 0x404551
mov ecx, dword [ebp - 0x314]
push ecx
call fcn.00404e66
add esp, 4
lea edx, [ebp - 0x208]
push edx
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0x410864
push 0x40fa3c
push 0x40fa48
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x40fa50
lea ecx, [ebp - 0x310]
push ecx
call fcn.004048c0
add esp, 8
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x310]
push eax
call fcn.004048c0
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 1
push 3
push 0
push 0
push 0x80000000
lea ecx, [ebp - 0x310]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0xffffffff
jne 0x40448c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x404485
mov eax, 1
jmp 0x404553
xor eax, eax
jmp 0x404553
push 0
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x208]
push ecx
push 0x104
lea edx, [ebp - 0x41c]
push edx
push 0x410868
push 0x40fa60
push 0x40fa6c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x41c]
push eax
call fcn.00405417
add esp, 4
cmp eax, dword [ebp - 0x318]
jne 0x404551
push 0x44
push 0
lea ecx, [ebp - 0x474]
push ecx
call fcn.00404ec0
add esp, 0xc
mov dword [ebp - 0x474], 0x44
push 0x10
push 0
lea edx, [ebp - 0x430]
push edx
call fcn.00404ec0
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x474]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x310]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404551
mov eax, 1
jmp 0x404553
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4087e1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40ffd0
cmp edx, dword [eax]
je 0x408803
add eax, 8
inc ecx
cmp eax, 0x410060
jl 0x4087f4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40ffd0]
jne 0x408931
mov eax, dword [0x4108c8]
cmp eax, 1
je 0x40890b
test eax, eax
jne 0x408834
cmp dword [0x40fc34], 1
je 0x40890b
cmp edx, 0xfc
je 0x408931
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40886b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004048b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004049a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4088ae
lea eax, [ebp - 0x1a4]
push eax
call fcn.004049a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d89c
push edi
call fcn.0040ab10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004048b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004048c0
lea eax, [ebp - 0xa0]
push 0x40d87c
push eax
call fcn.004048c0
push dword [esi + 0x40ffd4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004048c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040aa7a
add esp, 0x2c
pop edi
jmp 0x408931
lea eax, [ebp + 8]
lea esi, [esi + 0x40ffd4]
push 0
push eax
push dword [esi]
call fcn.004049a0
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 0x105e2600
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x105e27ed
pushal
mov esi, section.UPX1
lea edi, [esi - 0x362000]
push edi
or ebp, 0xffffffff
jmp 0x105e262a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x105e2631
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105e2620
mov eax, 1
add ebx, ebx
jne 0x105e2643
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x105e2654
jne 0x105e2673
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105e2673
dec eax
add ebx, ebx
jne 0x105e2660
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x105e2638
add ebx, ebx
jne 0x105e266f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x105e26c5
xor ecx, ecx
sub eax, 3
jb 0x105e268b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x105e26fa
sar eax, 1
mov ebp, eax
jmp 0x105e2696
add ebx, ebx
jne 0x105e2696
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105e2664
inc ecx
add ebx, ebx
jne 0x105e26a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105e2664
add ebx, ebx
jne 0x105e26b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x105e26a6
jne 0x105e26c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x105e26a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x105e26e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x105e26d6
jmp 0x105e2626
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x105e26e4
add edi, ecx
jmp 0x105e2626
pop esi
mov edi, esi
mov ecx, 0x6e8c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x105e2702
cmp byte [edi], 0x3e
jne 0x105e2702
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x105e2707
lea edi, [esi + 0x5d7000]
mov eax, dword [edi]
or eax, eax
je 0x105e277f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5ef074]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5ef1a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x105e2734
mov ecx, edi
jns 0x105e2763
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5ef1a8]
or eax, eax
je 0x105e2779
mov dword [ebx], eax
add ebx, 4
jmp 0x105e2751
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x105e27b0
cmp al, 0xef
ja 0x105e27a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x105e2785
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x105e2792
mov ebp, dword [esi + 0x5ef1ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x105e27e4
sub esp, 0xffffff80
jmp 0x10106342
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x3873700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0387378f
jae 0x387370e
xor ecx, ecx
call fcn.0387378f
jae 0x387373d
xor eax, eax
call fcn.0387378f
jae 0x387374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0387378f
adc al, al
jae 0x387372f
jne 0x3873779
stosb byte es:[edi], al
jmp 0x3873711
call fcn.0387379b
sub ecx, ebx
jne 0x3873756
call fcn.03873799
jmp 0x3873775
lodsb al, byte [esi]
shr eax, 1
je 0x3873783
adc ecx, ecx
jmp 0x3873772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03873799
cmp eax, 0x7d00
jae 0x3873772
cmp ah, 5
jae 0x3873773
cmp eax, 0x7f
ja 0x3873774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3873711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x470690]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405c90
cmp eax, ebx
je 0x401533
push ebx
push dword [0x470690]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x470690], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x402f3a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42e1c4]
sub esi, dword [0x4321d0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x470600], eax
jle 0x403098
push dword [0x4321cc]
call fcn.00402f23
push ebx
push ebx
push dword [0x4321d0]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x42e1c0], esi
mov dword [0x41e134], ebx
mov ebp, 0x4261c0
mov eax, dword [0x4321c8]
sub eax, dword [0x4321cc]
mov edi, 0x4000
cmp eax, edi
jg 0x402faf
mov edi, eax
push edi
mov esi, 0x42e1c8
push esi
call fcn.00402ef1
test eax, eax
je 0x4030aa
add dword [0x4321cc], edi
mov dword [0x426150], esi
mov dword [0x426154], edi
cmp dword [0x4705bc], ebx
je 0x403006
cmp dword [0x470680], ebx
jne 0x403006
mov eax, dword [0x42e1c0]
sub eax, dword [0x42e1c4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4321d0]
mov dword [0x41e134], eax
call fcn.00402e4f
pop ecx
mov ecx, 0x426138
mov dword [0x426158], ebp
mov dword [0x42615c], 0x8000
call fcn.0040689b
test eax, eax
jl 0x4030af
mov esi, dword [0x426158]
sub esi, ebp
je 0x403064
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030b4
cmp esi, dword [esp + 0x10]
jne 0x4030b4
add dword [0x4321d0], esi
cmp dword [0x426154], ebx
jne 0x402fd5
jmp 0x403070
cmp dword [0x426154], ebx
jne 0x4030af
cmp edi, ebx
je 0x4030af
mov eax, dword [0x42e1c4]
mov ecx, eax
sub ecx, dword [0x4321d0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402f99
push ebx
push ebx
push eax
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402e4f
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x4030a2
push 0xfffffffffffffffd
pop eax
jmp 0x4030a2
push 0xfffffffffffffffe
jmp 0x4030b1
Function at 0x4057bd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x456268
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x456268], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4057f8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4059af
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4059cc
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x4059cf
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x4059fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40874c]
mov dword [ebp - 8], eax
mov eax, dword [0x408750]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405a4e
test edi, edi
jne 0x405a0b
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405a48

Function at 0x405a52
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405acb
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405ab4
cmp dword [ebp + 0x14], 1
je 0x405ab9
cmp dword [ebp + 0x14], 2
je 0x405ab9
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x406113
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4562b0
push esi
call fcn.00405b89
push esi
call fcn.004058d8
mov edi, eax
test edi, edi
jne 0x406134
xor eax, eax
jmp 0x406192
push edi
call fcn.00405bb8
test byte [0x470608], 0x80
je 0x406151
movzx eax, word [edi]
test ax, ax
je 0x406130
cmp ax, 0x5c
je 0x406130
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x406173
push esi
call fcn.00405c69
test eax, eax
je 0x40616d
test byte [eax], 0x10
je 0x406197
push esi
call fcn.004060e6
push esi
call ebx
cmp eax, edi
jg 0x40615e
push esi
call fcn.004060b7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406191