joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401cc8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push edi
xor edi, edi
mov dword [ebp - 0x214], eax
test eax, eax
je 0x401dde
test ebx, ebx
je 0x401dde
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x401cff
sub ecx, edx
sar ecx, 1
je 0x401dde
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.004082d0
add esp, 0xc
cmp dword [ebp + 0xc], edi
jne 0x401d6b
cmp dword [0x417f08], 3
jne 0x401d6b
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [0x411020]
push 0x4159a0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040488b
add esp, 0xc
jmp 0x401d7e
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [0x41101c]
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040488b
push 0x4159a4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], edi
call fcn.00404a82
add esp, 0x18
pop esi
cmp dword [ebp - 0x210], edi
je 0x401dde
push dword [ebp - 0x210]
xor edi, edi
inc edi
push edi
push 0x200
push dword [ebp - 0x214]
call fcn.00404d54
push dword [ebp - 0x210]
call fcn.00404e6c
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.004046ea
leave
ret

Function at 0x401dee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
xor esi, esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov edi, ecx
call fcn.004082d0
add esp, 0xc
mov dword [ebp - 0x210], esi
test edi, edi
je 0x401e9b
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [0x41101c]
push str.golfinfo.ini
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040488b
push 0x4159c4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00404a82
xor esi, esi
add esp, 0x18
inc esi
cmp dword [ebp - 0x210], 0
je 0x401e9b
push dword [ebp - 0x210]
push esi
push 0x200
push edi
call fcn.0040503a
push dword [ebp - 0x210]
call fcn.00404e6c
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004046ea
leave
ret
Function at 0x402f70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x415ab0
push ecx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
call fcn.00404a82
add esp, 0xc
test eax, eax
je 0x402fb5
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 2
push 0
push dword [ebp - 8]
call fcn.00405850
push dword [ebp - 8]
call fcn.00405c28
push 0
push 0
push dword [ebp - 8]
mov esi, eax
call fcn.00405850
lea eax, [edi + esi]
push eax
mov dword [ebp - 0x10], eax
call fcn.004056f7
push dword [ebp - 8]
mov ebx, eax
push 1
push esi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.00404d54
push dword [ebp - 8]
call fcn.00404e6c
push edi
add ebx, esi
push 0
push ebx
call fcn.004082d0
mov eax, edi
cdq
and edx, 3
add esp, 0x40
lea edi, [edx + eax]
sar edi, 2
call dword [0x41102c]
push eax
call fcn.00405cb3
add esp, 4
xor esi, esi
test edi, edi
jle 0x40303d
lea ecx, [ecx]
call fcn.00405c90
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jl 0x403030
push 0x415ab8
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00404a82
add esp, 0xc
test eax, eax
je 0x403068
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov esi, dword [ebp - 0x14]
push 1
push dword [ebp - 0x10]
push esi
call fcn.0040503a
push dword [ebp - 8]
call fcn.00404e6c
add esp, 0x14
test esi, esi
je 0x403091
push esi
call fcn.00405789
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov eax, 1
pop edi
call fcn.004046ea
mov esp, ebp
pop ebp
ret
Function at 0x4030b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.004082d0
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.004082d0
push 0x103
lea eax, [ebp - 0x30f]
push 0
push eax
mov byte [ebp - 0x310], 0
call fcn.004082d0
mov ax, word [0x415ac8]
movq xmm0, qword [str.sanfdr.bat]
mov word [ebp - 0x31c], ax
mov al, byte [0x415aca]
add esp, 0x24
mov byte [ebp - 0x31a], al
lea eax, [ebp - 0x20c]
movq qword [ebp - 0x324], xmm0
push eax
xorps xmm0, xmm0
push 0x104
movq qword [ebp - 0x319], xmm0
mov byte [ebp - 0x311], 0
call dword [0x411040]
lea edx, [ebp - 0x324]
mov esi, edx
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x403170
push edi
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403181
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x104
lea eax, [ebp - 0x108]
mov ecx, edx
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [0x411044]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.00405cc3
lea eax, [ebp - 0x310]
push 0x5c
push eax
call fcn.004055c0
add esp, 0x14
pop edi
test eax, eax
je 0x4031dc
mov byte [eax], 0
lea eax, [ebp - 0x20c]
push 0x415acc
push eax
call fcn.00405ddc
mov esi, eax
add esp, 8
test esi, esi
je 0x40333e
push esi
push 1
push 9
push str.:Repeat_r_n
call fcn.0040503a
push esi
push 1
push 5
push 0x415adc
call fcn.0040503a
lea ecx, [ebp - 0x108]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403224
push esi
sub ecx, edx
push 1
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.0040503a
push esi
push 1
push 2
push 0x415ae4
call fcn.0040503a
push esi
push 1
push 0xa
push str.if_exist__
call fcn.0040503a
lea ecx, [ebp - 0x108]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403267
push esi
sub ecx, edx
push 1
push ecx
lea eax, [ebp - 0x108]
push eax
call fcn.0040503a
push esi
push 1
push 0xf
push str.__goto_Repeat_r_n
call fcn.0040503a
push esi
push 1
push 7
push str.rmdir__
call fcn.0040503a
lea ecx, [ebp - 0x310]
add esp, 0x30
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4032b0
push esi
sub ecx, edx
push 1
push ecx
lea eax, [ebp - 0x310]
push eax
call fcn.0040503a
push esi
push 1
push 3
push 0x415b0c
call fcn.0040503a
push esi
push 1
push 5
push str.del__
call fcn.0040503a
lea ecx, [ebp - 0x20c]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4032f3
push esi
sub ecx, edx
push 1
push ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.0040503a
push esi
push 1
push 1
push 0x415b18
call fcn.0040503a
push esi
call fcn.00404e6c
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0
push 0
push 0
push eax
push str.open
push 0
call dword [0x411164]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004046ea
mov esp, ebp
pop ebp
ret
Function at 0x4045c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040b4d0
mov eax, dword [0x417038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 4
mov esi, ecx
lea eax, [ebp - 0x1008]
push eax
push dword [esi]
mov ebx, edx
mov dword [ebp - 0x100c], esi
call dword [0x4111d4]
cmp eax, 4
je 0x404610
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ea
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], edi
jbe 0x404660
jmp 0x404620
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [esi]
call dword [0x4111d4]
mov esi, eax
test esi, esi
je 0x404660
push dword [ebx]
lea eax, [ebp - 0x1004]
push esi
push 1
push eax
call fcn.0040503a
add edi, esi
mov esi, dword [ebp - 0x100c]
add esp, 0x10
cmp edi, dword [ebp - 0x1008]
jb 0x404620
push dword [ebx]
call fcn.00404e6c
mov ecx, dword [ebp - 4]
add esp, 4
cmp edi, dword [ebp - 0x1008]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.004046ea
mov esp, ebp
pop ebp
ret

Function at 0x40cfd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x412946
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x438], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x444]
mov ecx, dword [esp + 0x440]
push eax
push ecx
lea edx, [esp + 0x14]
push str.__g_
push edx
mov byte [esp + 0x448], 1
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x6e0304]
add esp, 0x10
lea ecx, [esp + 8]
push eax
call fcn.00410b7a
mov ecx, dword [esp + 0xc]
push ecx
push 0x419118
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Replace
mov edi, dword [esp + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
push edx
call fcn.0040bcd0
mov ecx, eax
add esp, 0xc
mov edx, dword [ecx]
pop edi
mov dword [esp + 0xc], edx
pop esi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 8]
test al, al
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x14], ecx
jne 0x40d0eb
lea ecx, [esp]
mov byte [esp + 0x430], al
call fcn.00410b6e
lea ecx, [esp + 4]
mov dword [esp + 0x430], 0xffffffff
call fcn.00410b6e
fld qword [esp + 8]
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
add esp, 0x434
ret
movsx edx, al
lea ecx, [esp]
mov dword [0x6e0300], 1
mov dword [0x6e519c], edx
mov byte [esp + 0x430], 0
call fcn.00410b6e
lea ecx, [esp + 4]
mov dword [esp + 0x430], 0xffffffff
call fcn.00410b6e
mov ecx, dword [esp + 0x428]
fld qword [0x4141e0]
mov dword fs:[0], ecx
add esp, 0x434
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [str.Hfqsqp_:qlq]
mov eax, str.Hfqsqp_:qlq
test cl, cl
je 0x40101c
xor cl, 0x14
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40100f
ret

Function at 0x401060
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401095
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
push 0
push 0
lea ecx, [edi - 0xc]
push ecx
push esi
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x28]
push 4
push eax
push esi
call ebx
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 4
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 4
push ecx
push esi
call ebx
push 4
lea edx, [esp + 0x1c]
push str.BLHR
push edx
call fcn.00402050
add esp, 0xc
test eax, eax
je 0x401113
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x14]
mov eax, edi
sub eax, edx
push 0
sub eax, 0xc
push 0
push eax
push esi
call ebp
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push 0x408ae0
push esi
call ebx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
inc ecx
push ecx
mov byte [eax + 0x408ae0], 0
call fcn.00401fcf
mov ecx, dword [esp + 0x18]
mov dword [0x408be8], eax
mov eax, dword [esp + 0x24]
sub edi, ecx
add esp, 4
sub edi, eax
sub edi, 0xc
push 0
push 0
push edi
push esi
call ebp
mov eax, dword [esp + 0x20]
xor edi, edi
lea edx, [esp + 0x10]
push 0
sub eax, edi
push edx
push eax
mov eax, dword [0x408be8]
add eax, edi
push eax
push esi
call ebx
mov ecx, dword [esp + 0x10]
mov ebp, eax
add edi, ecx
test ebp, ebp
je 0x40119e
mov eax, dword [esp + 0x20]
cmp edi, eax
jb 0x401175
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x4011c2
mov ecx, dword [0x408be8]
push ecx
call fcn.00401fa0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x20]
push edx
call fcn.00401020
mov eax, dword [esp + 0x24]
mov ecx, dword [0x408be8]
add esp, 4
mov byte [ecx + eax], 0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x401260
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
push ebp
mov ebp, dword [esp + 0x124]
lea eax, [esp + 8]
push edi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
xor edi, edi
push eax
push 0xf003f
push edi
push ecx
push edx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401413
push ebx
push esi
push edi
lea eax, [esp + 0x24]
push edi
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push edi
lea edx, [esp + 0x34]
push ecx
push edx
push edi
push eax
mov dword [esp + 0x30], 0x105
mov dword [esp + 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40135d
jmp 0x4012ce
xor edi, edi
push 8
call fcn.004020da
mov ebx, eax
mov dword [ebx + 4], edi
mov ecx, dword [esp + 0x14]
inc ecx
push ecx
call fcn.004020da
mov edx, eax
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
mov dword [ebx], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x40131a
mov dword [eax + 4], ebx
jmp 0x40131d
mov dword [ebp + 0xc], ebx
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0
lea ecx, [esp + 0x34]
inc eax
push edx
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], 0x105
mov dword [esp + 0x3c], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4012cc
xor edi, edi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
push edi
push edx
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x401406
jmp 0x401381
xor edi, edi
push 0x14
call fcn.004020da
mov esi, eax
or ecx, 0xffffffff
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi], 1
mov eax, dword [ebp + 4]
mov dword [esi + 4], eax
mov edi, dword [ebp + 8]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x28]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 2]
push eax
call fcn.004020da
mov dword [esi + 8], eax
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x2c]
push ecx
push edx
push str._s_s
push eax
call fcn.00402088
push esi
call fcn.004011f0
push esi
call fcn.00401260
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
add esp, 0x20
lea ecx, [esp + 0x24]
inc ebx
push eax
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x40137f
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x11c
ret
Function at 0x401750
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, dword [0x408be8]
test esi, esi
push edi
je 0x4017c4
mov bl, byte [esp + 0x17]
cmp byte [esi], 0
je 0x4017c4
push 0xa
push esi
call fcn.00402110
mov edi, eax
add esp, 8
test edi, edi
je 0x401785
mov bl, byte [edi + 1]
inc edi
mov byte [edi], 0
cmp byte [esi], 0x20
jne 0x401792
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x40178a
cmp byte [esi], 0x5b
jne 0x4017ba
push 0x5d
push esi
call fcn.004021d0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4017ba
inc esi
mov byte [ebp], 0
push esi
call fcn.00401420
add esp, 4
mov byte [ebp], 0x5d
test edi, edi
je 0x4017c4
mov byte [edi], bl
mov esi, edi
jmp 0x401768
mov eax, dword [0x408bec]
test eax, eax
jne 0x4017f4
mov eax, dword [esp + 0x124]
push 0x10
push str.RegSetup_Error
push str.No_keys_found_in_registry_which_match_the_release__aborting.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, dword [esp + 0x124]
mov edx, dword [0x408be0]
push 0
push 0x401530
push ecx
push 0x67
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edx, dword [0x408bec]
or ebx, 0xffffffff
xor ebp, ebp
test edx, edx
je 0x40184e
cmp dword [edx], 0
je 0x401847
mov esi, dword [edx + 8]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, ecx
jge 0x401847
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, edx
mov ebx, ecx
mov edx, dword [edx + 0x10]
test edx, edx
jne 0x401821
test ebp, ebp
je 0x40191f
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
lea ebx, [ebp + 8]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ecx
push edx
mov dword [ebp], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401812
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4018d9
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [ebx]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 2]
push eax
call fcn.004020da
mov ecx, dword [esi]
mov edx, dword [ebx]
push ecx
mov edi, eax
push edx
push str._s_s
push edi
call fcn.00402088
mov eax, dword [esp + 0x24]
add esp, 0x14
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
call fcn.004020e8
mov esi, dword [esi + 4]
add esp, 4
test esi, esi
jne 0x401885
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0x105
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
mov eax, dword [esp + 0x10]
push eax
jne 0x401914
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebx]
mov edx, dword [ebp + 4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x401812
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401812
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret
Function at 0x401e40
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0x22
jne 0x401e89
lea edi, [ebx + 1]
push 0x22
push edi
call fcn.00402110
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
mov byte [edx], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
mov byte [edx - 1], 0x22
jmp 0x401ee6
push 0x20
push ebx
call fcn.00402110
mov edx, eax
add esp, 8
test edx, edx
je 0x401ec3
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov byte [edx], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [edx], 0x20
jmp 0x401ee6
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [edx]
pop edi
pop esi
cmp al, 0x20
pop ebx
jne 0x401f0b
mov al, byte [edx + 1]
inc edx
cmp al, 0x20
je 0x401eef
push 0x408210
push edx
call fcn.004062f0
add esp, 8
neg eax
sbb eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x404171
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408318
cmp edx, dword [eax]
je 0x404193
add eax, 8
inc ecx
cmp eax, 0x4083a8
jl 0x404184
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408318]
jne 0x4042c1
mov eax, dword [0x408bf8]
cmp eax, 1
je 0x40429b
test eax, eax
jne 0x4041c4
cmp dword [0x408254], 1
je 0x40429b
cmp edx, 0xfc
je 0x4042c1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4041fb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404b90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404970
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40423e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404970
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4074a8
push edi
call fcn.00405920
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404b90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404ba0
lea eax, [ebp - 0xa0]
push 0x407488
push eax
call fcn.00404ba0
push dword [esi + 0x40831c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404ba0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405895
add esp, 0x2c
pop edi
jmp 0x4042c1
lea eax, [ebp + 8]
lea esi, [esi + 0x40831c]
push 0
push eax
push dword [esi]
call fcn.00404970
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 0x404b45
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404b65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405a1e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x404b86
test byte [esp + 8], 2
je 0x404b86
mov dword [0x408c04], 0xd
mov dword [0x408c08], 5
jmp 0x404b61
xor eax, eax
ret

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