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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10017040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10007c70
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cc8a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10007cac
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10007cac
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cc8a
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10007d83
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10007cd4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10007ce0
movsx eax, bl
jmp 0x10007d18
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10007d42
sub eax, 1
je 0x10007d42
sub eax, 2
jne 0x10007d83
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cc8a
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10007d60
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10007d83
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cc8a
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cc8a
mov esp, ebp
pop ebp
ret 4
Function at 0x10007f30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10017040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10007fec
cmp byte [esi + 0x3d], 0
je 0x10007fec
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10007fda
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10007fa1
sub eax, 1
je 0x10007fa5
sub eax, 2
jne 0x10007fda
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cc8a
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10007fc3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10007fda
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cc8a
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cc8a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1000cc8a
mov esp, ebp
pop ebp
ret
Function at 0x1000cd07
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x1000cd3c
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x1000cd39
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x1000cd45
add edx, 0x28
cmp edx, esi
jne 0x1000cd27
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x1000cd42

Function at 0x1000dcd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1000dea0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000ddad
mov edx, dword [ebp - 4]
cmp edx, dword [0x100170a0]
jb 0x1000dd1a
mov eax, dword [ebp - 4]
cmp eax, dword [0x100170a4]
ja 0x1000dd1a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000dcea
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000dd3f
jmp 0x1000ddad
cmp dword [ebp - 0x14], 0x10000
jne 0x1000dd93
cmp dword [ebp - 0x18], 0x10000
jb 0x1000dd93
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000dd76
mov eax, dword [ebp - 8]
jmp 0x1000ddaf
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000dd86
xor eax, eax
jmp 0x1000ddaf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000dda8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000dea0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000dcea
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000ddc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000ded0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000de95
mov edx, dword [ebp - 4]
cmp edx, dword [0x100170a0]
jb 0x1000de05
mov eax, dword [ebp - 4]
cmp eax, dword [0x100170a4]
ja 0x1000de05
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000ddd5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000de2a
jmp 0x1000de95
cmp dword [ebp - 0x14], 0x10000
jne 0x1000de7e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000de7e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000de61
mov eax, dword [ebp - 8]
jmp 0x1000de97
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000de71
xor eax, eax
jmp 0x1000de97
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000de90
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000ded0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000ddd5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000df00
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000e2f0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1001789c], 0
jne 0x1000df3d
cmp dword [0x10017898], 0
je 0x1000df3d
mov eax, dword [0x10017898]
mov dword [0x1001789c], eax
cmp dword [0x1001789c], 0
je 0x1000dfba
mov ecx, dword [0x1001789c]
cmp dword [ecx + 8], 0
je 0x1000dfba
mov edx, dword [0x1001789c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000dfba
mov ecx, dword [0x1001789c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000dfba
mov eax, dword [0x1001789c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1000df89
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1000df90
xor eax, eax
jmp 0x1000e0d9
mov ecx, dword [0x1001789c]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1000e0d9
mov edx, dword [0x10017898]
mov dword [0x1001789c], edx
jmp 0x1000dfd6
mov eax, dword [0x1001789c]
mov ecx, dword [eax + 4]
mov dword [0x1001789c], ecx
cmp dword [0x1001789c], 0
je 0x1000e016
cmp dword [0x1001789c], 0
je 0x1000e014
mov edx, dword [0x1001789c]
cmp dword [edx + 8], 0
je 0x1000e014
mov eax, dword [0x1001789c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1000e014
mov edx, dword [0x1001789c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1000e014
jmp 0x1000df6e
jmp 0x1000dfc8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000e0e0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000e0d7
mov eax, dword [ebp - 0x18]
mov dword [0x1001789c], eax
mov ecx, dword [0x1001789c]
mov dword [ecx], 0x52727464
mov edx, dword [0x1001789c]
mov dword [edx + 8], 0
mov eax, dword [0x1001789c]
mov ecx, dword [0x10017898]
mov dword [eax + 4], ecx
mov edx, dword [0x1001789c]
mov dword [0x10017898], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1001789c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1000e0a7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1000e0c7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1000e09e
mov eax, dword [0x1001789c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000df6e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000ee20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10017898]
mov dword [ebp - 4], eax
jmp 0x1000ee39
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000ee60
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1000ee5e
call sub.KERNEL32.dll_GetLastError
jmp 0x1000ee62
jmp 0x1000ee30
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000f300
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100178a8], eax
je 0x1000f31d
mov eax, 0x10dd
jmp 0x1000f400
mov eax, dword [0x100178b8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000f39c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000f378
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000f378
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1000e380
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1000cccd
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1000f325
mov dword [0x100178b8], 0
call fcn.1000ec60
mov ecx, dword [0x100178b4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1000f3ea
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000cccd
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1000f3b4
mov dword [0x100178b4], 0
mov dword [0x100178a8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000f8e0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100178ac], 0
je 0x1000f8f9
mov eax, dword [0x100178ac]
jmp 0x1000f998
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1000f90a
xor eax, eax
jmp 0x1000f998
push 8
call fcn.1000cc9d
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000f962
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000f94b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000cccd
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100178ac], eax
mov dword [0x100178b0], 0
mov eax, dword [ebp - 8]
jmp 0x1000f998
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000f97a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000f92a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100178b4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100178b4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4015ab
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x4015e0
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x4015dd
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x4015e9
add edx, 0x28
cmp edx, esi
jne 0x4015cb
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x4015e6

Function at 0x401a28
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a67
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a67
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a67
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a67
cmp dword [ecx + 0x74], 0xe
jbe 0x401a67
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40149f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x228]
push ebx
sub esp, 0x22c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 8
mov dword [esp + 8], eax
call fcn.0040815f
sub esp, 0x10
test eax, eax
jne 0x40159b
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x222]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea edx, [ebp - 0x222]
sub esp, 0x10
test eax, eax
jne 0x401551
mov eax, dword [ebp - 0x228]
test byte [ebp + 0x10], 1
je 0x401537
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x40159b
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.0040149f
sub esp, 0xc
test eax, eax
je 0x4014e4
mov eax, dword [ebp - 0x228]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 3
call fcn.00408ecb
push edx
test eax, eax
je 0x40158c
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
jmp 0x40159b
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edx
push edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x403bcc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
cmp dword [ebp + 8], 0
mov eax, dword [0x41d880]
je 0x403bfe
test eax, eax
je 0x403bef
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x41d880], 0
jmp 0x403cb3
test eax, eax
je 0x403c14
mov dword [esp], 0
call fcn.00408f3d
push edx
jmp 0x403cb3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x4305c0]
jbe 0x403cb3
cmp dword [0x4305e8], 0
je 0x403c6a
test byte [0x430554], 1
je 0x403cb3
call fcn.00403af4
lea ebx, [ebp - 0x88]
mov dword [esp + 4], str....__d__
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.0040738f
jmp 0x403cb1
mov eax, dword [0x4305ec]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x403b26
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
sub esp, 0x14
mov dword [0x41d880], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x403f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
test eax, eax
js 0x403f46
add eax, dword [0x4305b8]
mov dword [esp + 0xc], 0
mov dword [0x429938], eax
mov dword [esp + 4], eax
mov eax, dword [0x40b010]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], 4
call fcn.00403d12
mov edi, eax
push ecx
test eax, eax
js 0x40405e
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call fcn.00407f69
sub esp, 0xc
test eax, eax
jne 0x403f8a
mov edi, 0xfffffffd
jmp 0x40405e
mov eax, dword [ebp - 0x1c]
add dword [0x429938], 4
mov dword [esp], eax
call fcn.00403d12
mov edi, eax
push edx
test eax, eax
js 0x40405e
test esi, esi
jne 0x404017
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x40405e
cmp eax, 0x4000
mov edx, 0x4000
mov dword [esp + 4], 0x4258a0
cmovg eax, edx
mov dword [ebp - 0x20], eax
mov dword [esp + 8], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call fcn.00407f69
sub esp, 0xc
test eax, eax
je 0x403f80
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0x4258a0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00407faf
sub esp, 0xc
test eax, eax
je 0x404059
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
add dword [0x429938], eax
add edi, eax
jmp 0x403fab
lea eax, [ebp - 0x20]
cmp dword [ebp - 0x1c], ebx
cmovle ebx, dword [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [0x40b010]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x403f80
mov edi, dword [ebp - 0x20]
add dword [0x429938], edi
jmp 0x40405e
mov edi, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x407b02
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x430080], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x430080
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor edx, edx
sub esp, 0x28
test eax, eax
je 0x407b7e
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push eax
leave
mov eax, edx
ret 4

Function at 0x407b84
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x407dfd
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
inc eax
push edx
je 0x407e2b
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407e36
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp], ebx
call fcn.00407dfd
push ecx
cmp eax, 0xffffffff
jne 0x407e57
xor edi, edi
jmp 0x407e94
mov esi, eax
mov dword [esp], ebx
test edi, 1
je 0x407e8c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edx
test eax, eax
jne 0x407e85
and edi, 4
jne 0x407e53
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x407e94
mov edi, 1
jmp 0x407e94
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x407e6a
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x407ea0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
cmp eax, 0xffffffff
jne 0x407ebb
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc