joyce8/EMBER2024-capa huggingface dataset:
Function at 0x672274
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff788
mov ebx, dword [0x94e82c]
push 0
call fcn.0065a898
pop ecx
push 0
push 1
push 0
push 0
mov eax, dword [0xaa9368]
push eax
push 0x54
push 0x6cc9b8
call fcn.00659cfc
add esp, 0x1c
mov edx, dword [0xaa936c]
push 0
push 1
push 0
push 0
push edx
push 0xac
push 0x6ccab8
call fcn.00659cfc
add esp, 0x1c
mov ecx, dword [0xaa9370]
push ecx
call fcn.00664118
pop ecx
test ebx, ebx
je 0x6722df
xor eax, eax
jmp 0x6722e4
mov eax, 1
push eax
call fcn.0065a898
pop ecx
xor edi, edi
jmp 0x672391
mov eax, dword [0xaa9138]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x672390
mov edx, dword [0xaa9138]
mov ebp, eax
mov ebx, dword [ebp + 0x68]
xor esi, esi
jmp 0x67238b
push 0
push dword [ebx + 0x44]
mov edx, dword [ebx + 0x40]
push edx
mov ecx, dword [ebx + 0x1c]
push ecx
mov eax, dword [ebx + 0x18]
push eax
mov edx, dword [ebx + 0x30]
push edx
mov ecx, dword [ebx + 0x2c]
push ecx
lea eax, [esp + 0x458]
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00671cb8
add esp, 0x24
test eax, eax
jne 0x672387
push 1
push 0
push 1
mov ecx, dword [ebx + 0x48]
push ecx
cmp dword [ebx + 0x18], 0
je 0x67235c
lea eax, [esp + 0x44c]
jmp 0x67235e
xor eax, eax
push eax
lea edx, [esp + 0x14]
push edx
call fcn.0065a1d4
add esp, 0x18
push esp
call fcn.006256d8
cmp dword [ebx + 0x18], 0
pop ecx
je 0x672387
lea ecx, [esp + 0x43c]
push ecx
call fcn.006256d8
pop ecx
inc esi
add ebx, 0x78
cmp esi, dword [ebp + 0x64]
jl 0x672311
inc edi
cmp edi, dword [0xaa9130]
jl 0x6722f2
xor edi, edi
jmp 0x672454
mov eax, dword [0xaa9160]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x672453
mov edx, dword [0xaa9160]
mov ebp, dword [eax + 0x14]
mov ebx, dword [eax + 0x104]
xor esi, esi
jmp 0x67244a
cmp dword [ebx + 0x38], 0
je 0x672446
push 0
push dword [ebx + 0x34]
mov edx, dword [ebx + 0x30]
push edx
mov ecx, dword [ebx + 0x10]
push ecx
mov eax, dword [ebx + 0xc]
push eax
mov edx, dword [ebx + 0x20]
push edx
mov ecx, dword [ebx + 0x1c]
push ecx
lea eax, [esp + 0x458]
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00671cb8
add esp, 0x24
test eax, eax
jne 0x672446
push 1
push 0
push 1
mov ecx, dword [ebx + 0x3c]
push ecx
cmp dword [ebx + 0xc], 0
je 0x67241b
lea eax, [esp + 0x44c]
jmp 0x67241d
xor eax, eax
push eax
lea edx, [esp + 0x14]
push edx
call fcn.0065a1d4
add esp, 0x18
push esp
call fcn.006256d8
cmp dword [ebx + 0xc], 0
pop ecx
je 0x672446
lea ecx, [esp + 0x43c]
push ecx
call fcn.006256d8
pop ecx
inc esi
add ebx, 0x60
cmp esi, dword [ebp + 0x64]
jl 0x6723ca
inc edi
cmp edi, dword [0xaa9154]
jl 0x6723a4
xor eax, eax
add esp, 0x878
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x67d270
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x67d29e
mov eax, ebx
call fcn.0067dd28
cmp dword [ebx + 0x3c], 0
je 0x67d297
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x67d30f
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x67d301
cmp dword [ebx + 8], 0
je 0x67d2c0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x67d2d2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x67d301
cmp dword [ebx + 8], 0
je 0x67d2b3
cmp eax, 3
je 0x67d2e5
dec eax
jne 0x67d2b3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x67d2b3
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x67d2b3
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x67d32d
cmp dword [ebx + 0x10], 0xcc
je 0x67d32d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0067d338
pop ebx
ret
Function at 0x407140
Capabilities:
Parse pe header

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x407154
sub eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x40716f
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x45482a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x45482a
lcall 0x5de5, 0x8b10c483
jmp loc.0344b670

Function at 0x778058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007781a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x77807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x77806a
add dl, dl
jne 0x778089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7780dc
xor eax, eax
add dl, dl
jne 0x778096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x77817d
add dl, dl
jne 0x7780a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7780b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7780bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7780c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7780d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x778075
mov eax, 1
add dl, dl
jne 0x7780ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7780f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7780e1
sub eax, ebx
mov ebx, 1
jne 0x778128
mov ecx, 1
add dl, dl
jne 0x77810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x778119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x778105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x778075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x77813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x77814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x778136
cmp eax, 0x7d00
jae 0x77816d
cmp eax, 0x500
jb 0x778168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x778075
cmp eax, 0x7f
ja 0x778170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x778075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x77819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x778075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x403bf6
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x403c0e
push dword [esp + 4]
push 0x403b8f
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x403c4b
push esi
mov esi, dword [0x48ab00]
test esi, esi
je 0x403c4a
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x403c42
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x48ab00
call fcn.00404dda
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x403c1b
pop edi
pop ebx
pop esi
ret 4
Function at 0x4043b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x4043e5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x404670
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x48ab64]
push ebx
push esi
push edi
push eax
or edi, 0xffffffff
push ecx
or ebx, edi
call fcn.00404c1e
mov esi, eax
test esi, esi
je 0x4046ca
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [esp + 0x10]
xor edi, edi
xor edx, edx
or ecx, edx
or edi, eax
cmp dword [esi + 4], edx
je 0x4046c0
cmp dword [esi + 0x14], edx
jne 0x4046c0
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
cdq
add ecx, eax
adc edi, edx
mov edx, edi
pop edi
pop esi
mov eax, ecx
pop ebx
ret 4
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
ret 4

Function at 0x4046e0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x48ab64]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00404c1e
test eax, eax
je 0x40472a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x404717
push 1
push edx
push eax
call fcn.004049a0
movzx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x404740
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x48ab64]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00404c1e
test eax, eax
je 0x40478a
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x404777
push 4
push edx
push eax
call fcn.004049a0
mov eax, dword [esp]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x4047a0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x48ab64]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.00404c1e
test eax, eax
je 0x4047ea
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x4047d7
push 1
push edx
push eax
call fcn.004049a0
movsx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4
Function at 0x404800
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x404859
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x404858
mov eax, dword [esp + 0x10]
mov ecx, dword [0x48ab64]
push eax
push ecx
call fcn.00404c1e
test eax, eax
je 0x404854
cmp dword [eax + 4], 0
je 0x404842
push esi
push edi
push eax
call fcn.00404ad0
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x404860
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push edi
push eax
push 0x1000
mov dword [esp + 0x1c], 0x1000
call fcn.004050b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x48ab64]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.00404c1e
mov ebx, eax
test ebx, ebx
je 0x40497e
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x4048be
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.004049a0
mov dword [esp + 0x14], eax
jmp 0x4048d5
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x13]
test al, al
je 0x4048e7
mov byte [ebp], al
mov al, byte [esp + 0x13]
add ebp, 1
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
cmp esi, ecx
jl 0x404911
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.004050b0
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x40497d
cmp dword [esp + 0x14], 0
je 0x404928
cmp al, 0xd
je 0x404928
cmp al, 0xa
jne 0x4048a0
sub ebp, 1
cmp al, 0xd
jne 0x40497d
cmp dword [ebx + 4], 0
je 0x404944
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.004049a0
jmp 0x40495b
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x40497d
cmp dword [ebx + 4], 0
je 0x40496e
add dword [ebx + 0xc], 1
jmp 0x40497d
mov ecx, dword [ebx]
push 1
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
sub edi, ebp
add edi, dword [esp + 0x14]
mov byte [ebp], 0
push edi
call fcn.00405130
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x47ea00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x47000]
push edi
jmp 0x47ea1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47ea21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47ea10
mov eax, 1
add ebx, ebx
jne 0x47ea33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47ea44
jne 0x47ea63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47ea63
dec eax
add ebx, ebx
jne 0x47ea50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47ea28
add ebx, ebx
jne 0x47ea5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47eab5
xor ecx, ecx
sub eax, 3
jb 0x47ea7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47eaea
sar eax, 1
mov ebp, eax
jmp 0x47ea86
add ebx, ebx
jne 0x47ea86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47ea54
inc ecx
add ebx, ebx
jne 0x47ea94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47ea54
add ebx, ebx
jne 0x47eaa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47ea96
jne 0x47eab2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47ea96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47ead4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47eac6
jmp 0x47ea16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47ead4
add edi, ecx
jmp 0x47ea16
pop esi
mov edi, esi
mov ecx, 0x21fb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47eaf2
cmp byte [edi], 0x11
jne 0x47eaf2
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 0x47eaf7
lea edi, [esi + 0x7a000]
mov eax, dword [edi]
or eax, eax
je 0x47eb6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7e1dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7e248]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47eb24
mov ecx, edi
jns 0x47eb53
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 + 0x7e250]
or eax, eax
je 0x47eb69
mov dword [ebx], eax
add ebx, 4
jmp 0x47eb41
call dword [esi + 0x7e24c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x47eba0
cmp al, 0xef
ja 0x47eb93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x47eb75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x47eb82
mov ebp, dword [esi + 0x7e254]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
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 0x47ebd4
sub esp, 0xffffff80
jmp 0x4414aa
Function at 0x4011f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x40b394], 0
push esi
jne 0x401227
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x401201
mov dword [ecx*4 + 0x40b390], eax
inc ecx
cmp ecx, 0x100
jl 0x4011fc
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x401258
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x40b390]
xor eax, esi
inc ecx
dec edx
jne 0x40123a
pop edi
not eax
pop esi
ret 0xc

Function at 0x402ae5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x425f70]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402b79
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402b36
cmp dword [ebp + 0x10], ebx
jne 0x402b6d
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ae5
test eax, eax
jne 0x402b48
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402b1d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00407b6b
cmp eax, ebx
je 0x402b80
push ebx
push dword [0x425f70]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402b79
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 [0x425f70], ebx
jne 0x402b76
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402b76
jmp 0x402b79
Function at 0x4030f4
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41946c]
sub esi, dword [0x40d3d8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x425eec], eax
jle 0x40325e
push dword [0x42147c]
call fcn.004032a2
push ebx
push ebx
push dword [0x40d3d8]
push dword [0x40b018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x421478], esi
mov dword [0x419468], ebx
mov ebp, 0x40d468
mov eax, dword [0x419470]
mov edi, 0x4000
sub eax, dword [0x42147c]
cmp eax, edi
jg 0x403169
mov edi, eax
mov esi, 0x415468
push edi
push esi
call fcn.00403270
test eax, eax
je 0x403250
add dword [0x42147c], edi
mov dword [0x40d3f8], esi
mov dword [0x40d3fc], edi
cmp dword [0x425ef0], ebx
je 0x4031c0
cmp dword [0x425f60], ebx
jne 0x4031c0
mov eax, dword [0x421478]
push ebx
sub eax, dword [0x41946c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40d3d8]
mov dword [0x419468], eax
call fcn.00402c82
pop ecx
mov ecx, 0x40d3e0
mov dword [0x40d400], ebp
mov dword [0x40d404], 0x8000
call fcn.004032d9
test eax, eax
jl 0x403259
mov esi, dword [0x40d400]
sub esi, ebp
je 0x40321a
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40b018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403255
cmp esi, dword [esp + 0x10]
jne 0x403255
add dword [0x40d3d8], esi
cmp dword [0x40d3fc], ebx
jne 0x40318f
jmp 0x403226
cmp dword [0x40d3fc], ebx
jne 0x403259
cmp edi, ebx
je 0x403259
mov eax, dword [0x41946c]
mov ecx, eax
sub ecx, dword [0x40d3d8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403153
push ebx
push ebx
push eax
push dword [0x40b018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40325e
or eax, 0xffffffff
jmp 0x403268
push 0xfffffffffffffffe
jmp 0x40325b
push 0xfffffffffffffffd
pop eax
jmp 0x403268
push 1
call fcn.00402c82
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x403d9f
Capabilities:
Accept command line arguments
Get common file path
Get file system object information

Disassembly:
aaa
xor al, 64
add bh, dh
cmp al, byte [eax]
inc ebp
cmp eax, dword [eax]
mov byte [eax + eax*2], dh
add byte [edi], ah
aaa
inc eax
add byte [ecx - 0x2bffbfc9], dl
aaa
inc eax
add byte [ebp + 0x38], al
inc eax
add byte [eax + edi + 0x40], ch
add byte [ecx + edi], ch
inc eax
add byte [ecx], ah
xor eax, 0x35da0040
inc eax
add byte [esi - 0x50ffbfca], bl
cmp dword [eax], eax
jg 0x403da8
inc eax
add byte [esi + 0x7b00403a], bh
cmp eax, dword [eax]
insb byte es:[edi], dx
cmp al, 64
add byte [esi - 0x42ffbfc8], ah
cmp byte [eax], al
mov ecx, 0xc800403b
cmp eax, dword [eax]
jmp 0x403dc9
push esi
mov esi, 0x42c400
push esi
call fcn.00407aab
push esi
call fcn.0040743b
cmp eax, 0xe8560000
mov dh, byte [esi]
add byte [eax], al
test eax, eax
jne 0x403d37
pop esi
ret
rol byte [edx], 0xe8
push ds
cmp byte [eax], al
add byte [esi - 0x3d], bl
Function at 0x4054fb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x425ef0]
push edi
push 6
call fcn.00407b6b
xor ebx, ebx
cmp eax, ebx
je 0x405526
push 0x42c000
call eax
movzx eax, ax
cdq
push edx
push eax
call fcn.00404453
jmp 0x405570
mov edi, 0x4228c8
push ebx
push edi
push ebx
push 0x4092fc
push 0x80000001
mov dword [0x42c000], 0x7830
call fcn.004077d0
cmp byte [0x4228c8], bl
jne 0x405565
push ebx
push edi
push 0x40931a
push 0x4092d4
push 0x80000003
call fcn.004077d0
push edi
push 0x42c000
call sub.KERNEL32.dll_lstrcatA
call fcn.00405720
mov eax, dword [0x425ef8]
mov ebp, 0x42b400
and eax, 0x20
push ebp
mov dword [0x425f40], eax
mov dword [0x425f5c], 0x10000
call fcn.004074af
test eax, eax
jne 0x405620
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x405620
mov edx, dword [esi + 0x44]
mov eax, dword [0x425f18]
mov edi, 0x424e60
push ebx
add edx, eax
push edi
add ecx, eax
push edx
push ecx
push dword [esi + 0x3c]
call fcn.004077d0
mov al, byte [0x424e60]
cmp al, bl
je 0x405620
cmp al, 0x22
jne 0x4055df
mov edi, 0x424e61
push 0x22
push edi
call fcn.004073f9
mov byte [eax], bl
push edi
call sub.KERNEL32.dll_lstrlenA
lea eax, [eax + edi - 4]
cmp eax, edi
jbe 0x405613
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405613
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40560d
test al, 0x10
jne 0x405613
push edi
call fcn.00407415
push edi
call fcn.004073ce
push eax
push ebp
call fcn.00407847
push ebp
call fcn.004074af
test eax, eax
jne 0x405636
push dword [esi + 0x104]
push ebp
call fcn.00407869
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x425ee0]
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [0x4256a8], eax
call fcn.0040543b
push ebx
call fcn.004012fc
test eax, eax
je 0x405669
push 2
pop eax
jmp 0x40571b
call fcn.00405720
cmp dword [0x425f60], ebx
jne 0x4056f0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x4092c8
call esi
test eax, eax
jne 0x40568e
push 0x4092bc
call esi
mov edi, dword [sym.imp.USER32.dll_GetClassInfoA]
mov esi, 0x425660
mov ebp, 0x4092b0
push esi
push ebp
push ebx
call edi
test eax, eax
jne 0x4056bd
push esi
push 0x4092a4
push ebx
call edi
push esi
mov dword [0x425684], ebp
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [0x4256a0]
push ebx
add eax, 0x69
push 0x4057e2
movzx eax, ax
push ebx
push eax
push dword [0x425ee0]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 5
mov esi, eax
call fcn.004012fc
push 1
call fcn.00404196
mov eax, esi
jmp 0x40571b
push ebx
call fcn.00406d4b
test eax, eax
je 0x405712
cmp dword [0x42568c], ebx
jne 0x405661
push 2
call fcn.004012fc
jmp 0x405661
push 1
call fcn.004012fc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret