joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
test ebx, ebx
jne 0x42334f
pop esi
lea eax, [ebx + 1]
pop ebx
pop ebp
ret 0xc
mov eax, dword [ecx]
push edi
xor edi, edi
call dword [eax]
push dword [ebp + 0x10]
mov ecx, eax
movzx eax, bx
push eax
push ecx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x423425
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x423425
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x42341c
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], edi
jl 0x423400
cmp edi, 1
jne 0x4233c5
mov eax, dword [esi + 0xc]
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 0x14]
jmp 0x423417
cmp edi, 2
jne 0x4233d8
mov eax, dword [esi + 0xc]
movzx ecx, word [ebx]
mov word [eax], cx
add dword [esi + 0x14], edi
jmp 0x423417
cmp edi, 4
jne 0x4233e9
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
add dword [esi + 0x14], edi
jmp 0x423417
cmp edi, 8
jne 0x423400
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 0x14], edi
jmp 0x423417
test edi, edi
jle 0x423417
push edi
mov ecx, esi
call fcn.00426ff0
push edi
push ebx
push eax
call fcn.0042de90
add esp, 0xc
mov edi, 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x423750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x5b96e8]
jg 0x42378b
push 0x5b96ec
call fcn.00427800
mov ecx, dword [0x5b96e4]
add esp, 4
test ecx, ecx
je 0x42377d
mov eax, dword [ecx]
mov dword [0x5b96e4], eax
mov dword [0x5b96ec], 1
test ecx, ecx
jne 0x4237a1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x4237a8
mov eax, ecx
pop esi
pop ebp
ret 4
push 0xffffffffffffffff
call fcn.00430f13
int3

Function at 0x423810
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x5b96dc]
jb 0x423884
cmp esi, dword [0x5b96e0]
jae 0x423884
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x5b96e8]
jle 0x423899
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x42389d
push dword [0x5b96e8]
push esi
push edi
call fcn.0042de90
push 0x5b96ec
call fcn.00427800
mov eax, dword [0x5b96e4]
add esp, 0x10
mov dword [esi], eax
mov dword [0x5b96e4], esi
mov esi, edi
mov dword [0x5b96ec], 1
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
push dword [ebp + 0xc]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
jne 0x42387d
push 0xffffffffffffffff
call fcn.00430f13
int3

Function at 0x423bb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447675
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5b7018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x5b96e8], 0x20
jl 0x423c08
push 0x5b96ec
call fcn.00427800
mov ecx, dword [0x5b96e4]
add esp, 4
test ecx, ecx
je 0x423bfa
mov eax, dword [ecx]
mov dword [0x5b96e4], eax
mov dword [0x5b96ec], 1
test ecx, ecx
jne 0x423c1f
push 0x20
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x423c66
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ecx], vtable.CVolObject.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov dword [ecx], vtable.CVolComVariant.0
movups xmmword [ecx + 0x10], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.00430f13
int3
Function at 0x423da0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4476ed
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5b7018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x5b96e8], 0x20
jl 0x423dfb
push 0x5b96ec
call fcn.00427800
mov ecx, dword [0x5b96e4]
add esp, 4
test ecx, ecx
je 0x423ded
mov eax, dword [ecx]
mov dword [0x5b96e4], eax
mov dword [0x5b96ec], 1
test ecx, ecx
jne 0x423e12
push 0x20
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x423e39
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
push esi
call fcn.00423c80
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.00430f13
int3

Function at 0x4261d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cb75
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
mov eax, dword [0x5b7018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x426364
cmp word [esi], 0
je 0x426364
lea ecx, [ebp - 0x38]
call fcn.00408010
mov dword [ebp - 4], 0
cmp word [esi], 0
je 0x42633e
cmp word [esi + 2], 0
je 0x42627b
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426230
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x42627b
cmp word [esi + ecx*2 - 4], 0x3a
je 0x42627b
lea eax, [ecx - 1]
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.004282e0
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x42626f
cmp dword [ebp - 0x14], esi
je 0x42633e
mov esi, dword [ebp - 0x1c]
mov eax, esi
cmp word [eax], 0
je 0x42633e
cmp word [esi + 2], 0x3a
jne 0x42628d
cmp word [esi + 4], 0
je 0x42633e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42633e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42633e
cmp eax, 3
jne 0x42633a
push 0x5c
push esi
call fcn.0042dcd8
mov edx, eax
add esp, 8
test edx, edx
je 0x42633a
cmp word [edx + 2], 0
jne 0x4262e8
sub edx, 2
cmp edx, esi
jb 0x42633a
cmp word [edx], 0x5c
je 0x4262e8
sub edx, 2
cmp edx, esi
jae 0x4262d7
xor esi, esi
jmp 0x426343
lea ecx, [ebp - 0x64]
call fcn.00408010
mov byte [ebp - 4], 1
sub edx, esi
sar edx, 1
lea ecx, [ebp - 0x64]
push edx
push esi
call fcn.004282e0
lea ecx, [ebp - 0x64]
call fcn.00427ef0
mov ecx, eax
call fcn.004261d0
test eax, eax
je 0x42632e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00408ae0
jmp 0x426343
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00408ae0
xor esi, esi
jmp 0x426343
mov esi, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00408ae0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x427280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ecx + 0xc]
push esi
mov esi, dword [ecx + 0x14]
test eax, eax
je 0x4272db
cmp word [eax], 0
je 0x4272db
test esi, esi
js 0x4272db
push edi
push 0x5a822c
push eax
call fcn.0043407e
mov edi, eax
add esp, 8
test edi, edi
jne 0x4272b8
pop edi
pop esi
pop ebx
pop ebp
ret 8
push edi
push esi
push 1
push ebx
call fcn.00433e0d
xor ebx, ebx
cmp eax, esi
push edi
sete bl
call fcn.0043366e
add esp, 0x14
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x40ee70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40ee92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40ee99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ee88
mov eax, 1
add ebx, ebx
jne 0x40eeab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40eea0
jne 0x40eebc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40eea0
xor ecx, ecx
sub eax, 3
jb 0x40eed0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40ef42
mov ebp, eax
add ebx, ebx
jne 0x40eedb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40eee8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40ef0c
inc ecx
add ebx, ebx
jne 0x40eef8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40eeed
jne 0x40ef09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40eeed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40ef2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40ef1d
jmp 0x40ee8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40ef2c
add edi, ecx
jmp 0x40ee8e
pop esi
mov edi, esi
mov ecx, 0x4b1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40ef4a
cmp byte [edi], 1
jne 0x40ef4a
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 0x40ef4f
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40efc7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40ef7c
mov ecx, edi
jns 0x40efab
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 + 0xf068]
or eax, eax
je 0x40efc1
mov dword [ebx], eax
add ebx, 4
jmp 0x40ef99
call dword [esi + 0xf070]
mov ebp, dword [esi + 0xf06c]
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 0x40effb
sub esp, 0xffffff80
jmp 0x406d40

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 0x10021ff
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
jne 0x100221d
xor al, al
jmp 0x10022a6
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
cmp edi, ebx
je 0x100228f
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x100228f
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x100228f
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
cmp edi, ebx
je 0x100228f
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100228f
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x1002293
xor al, al
jmp 0x10022a5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1004603
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push edi
push 0x10013cc
mov ebx, 0x1001264
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call edi
test eax, eax
mov dword [ebp - 8], eax
je 0x100467e
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [ebp - 8]
cmp dword [ebp - 4], 0
je 0x100467e
push 0x10013ac
push ebx
call esi
push eax
call edi
test eax, eax
jne 0x1004678
push 0x1001374
push 0x100c600
call fcn.01004319
push eax
call fcn.010045e2
add esp, 0xc
push 0
call dword [sym.imp.msvcrt.dll_exit]
lea ecx, [ebp - 0xc]
push ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10046fd
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x128
mov eax, 0x1009d11
call fcn.01007e90
lea eax, [ebp - 0x120]
push eax
push 0x10014b0
xor ebx, ebx
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
cmp esi, ebx
je 0x1004762
cmp byte [ebp + 8], bl
jne 0x100474b
push 0x100147c
push 0x100c600
call fcn.01004319
pop ecx
pop ecx
push eax
call fcn.010045e2
pop ecx
mov dword [ebp - 0x134], esi
push 0x100a73c
lea eax, [ebp - 0x134]
push eax
call sub.msvcrt.dll__CxxThrowException
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x130]
push eax
push ebx
mov esi, 0x100146c
push esi
push dword [ebp - 0x120]
mov dword [ebp - 0x11c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10047dc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp byte [ebp + 8], bl
mov esi, eax
jne 0x10047bd
push 0x100143c
push 0x100c600
call fcn.01004319
pop ecx
pop ecx
push eax
call fcn.010045e2
pop ecx
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x124], esi
push 0x100a73c
lea eax, [ebp - 0x124]
jmp 0x100475c
push 0x1001430
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push eax
call fcn.010022e0
cmp eax, ebx
je 0x10048b7
mov ecx, dword [ebp - 0x11c]
sub ecx, eax
lea ecx, [ebp + ecx - 0x121]
push ecx
lea ecx, [eax + 9]
push ecx
push eax
call sub.msvcrt.dll_memcpy
sub dword [ebp - 0x11c], 9
add esp, 0xc
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x130]
push ebx
push esi
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp esi, ebx
je 0x10048b7
cmp byte [ebp + 8], bl
jne 0x1004863
push 0x1001400
push 0x100c600
call fcn.01004319
pop ecx
pop ecx
push eax
call fcn.010045e2
pop ecx
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x128], esi
push 0x100a73c
lea eax, [ebp - 0x128]
jmp 0x100475c
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
call fcn.01007efb
ret 4
Function at 0x10048d2
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x128
mov eax, 0x1009d3e
call fcn.01007e90
lea eax, [ebp - 0x120]
push eax
push 0x1001590
xor ebx, ebx
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
cmp esi, ebx
je 0x1004937
cmp byte [ebp + 8], bl
jne 0x1004920
push 0x1001560
push 0x100c600
call fcn.01004319
pop ecx
pop ecx
push eax
call fcn.010045e2
pop ecx
mov dword [ebp - 0x134], esi
push 0x100a73c
lea eax, [ebp - 0x134]
push eax
call sub.msvcrt.dll__CxxThrowException
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x130]
push eax
push ebx
mov esi, 0x100146c
push esi
push dword [ebp - 0x120]
mov dword [ebp - 0x11c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10049b1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp byte [ebp + 8], bl
mov esi, eax
jne 0x1004992
push 0x1001534
push 0x100c600
call fcn.01004319
pop ecx
pop ecx
push eax
call fcn.010045e2
pop ecx
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x124], esi
push 0x100a73c
lea eax, [ebp - 0x124]
jmp 0x1004931
push 0x100152c
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push eax
call fcn.010022e0
cmp eax, ebx
je 0x1004a8c
mov ecx, dword [ebp - 0x11c]
sub ecx, eax
lea ecx, [ebp + ecx - 0x11e]
push ecx
lea ecx, [eax + 6]
push ecx
push eax
call sub.msvcrt.dll_memcpy
sub dword [ebp - 0x11c], 6
add esp, 0xc
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x130]
push ebx
push esi
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp esi, ebx
je 0x1004a8c
cmp byte [ebp + 8], bl
jne 0x1004a38
push 0x1001500
push 0x100c600
call fcn.01004319
pop ecx
pop ecx
push eax
call fcn.010045e2
pop ecx
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x128], esi
push 0x100a73c
lea eax, [ebp - 0x128]
jmp 0x1004931
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
call fcn.01007efb
ret 4

Function at 0x1004aa7
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c1ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1004ad7
push 5
pop ecx
mov esi, 0x1001610
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x108]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x1004b35
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp edi, 2
je 0x1004b35
cmp byte [ebp + 8], 0
jne 0x1004b35
push 0x10015e0
mov esi, 0x100c600
push esi
call fcn.01004319
push eax
call fcn.010045e2
add esp, 0xc
push edi
call fcn.01004688
push esi
call fcn.010045e2
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01007dce
leave
ret 4
Function at 0x1004b4a
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
push 0x10016a8
mov edi, 0x80000002
push edi
call esi
push 0x1001678
push edi
call esi
push 0x100164c
push edi
call esi
mov edi, eax
test edi, edi
je 0x1004ba6
cmp byte [ebp + 8], 0
jne 0x1004ba6
push 0x1001628
mov esi, 0x100c600
push esi
call fcn.01004319
push eax
call fcn.010045e2
add esp, 0xc
push edi
call fcn.01004688
push esi
call fcn.010045e2
pop ecx
pop edi
pop esi
pop ebp
ret 4

Function at 0x1004bb1
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c1ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1004be1
mov esi, 0x1001708
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x108]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x1004c3f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp edi, 2
je 0x1004c3f
cmp byte [ebp + 8], 0
jne 0x1004c3f
push 0x10016dc
mov esi, 0x100c600
push esi
call fcn.01004319
push eax
call fcn.010045e2
add esp, 0xc
push edi
call fcn.01004688
push esi
call fcn.010045e2
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01007dce
leave
ret 4

Function at 0x1004c54
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
push 0x1001798
mov edi, 0x80000002
push edi
call esi
push 0x1001768
push edi
call esi
push 0x1001740
push edi
call esi
mov edi, eax
test edi, edi
je 0x1004cb0
cmp byte [ebp + 8], 0
jne 0x1004cb0
push 0x100171c
mov esi, 0x100c600
push esi
call fcn.01004319
push eax
call fcn.010045e2
add esp, 0xc
push edi
call fcn.01004688
push esi
call fcn.010045e2
pop ecx
pop edi
pop esi
pop ebp
ret 4
Function at 0x10057ef
Capabilities:
Check os version
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100c1ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
mov dword [ebp - 0x98], 0x94
call sub.msvcrt.dll_memset
mov esi, 0x100c698
push esi
call fcn.010045e2
push 0x1001bd4
push eax
call fcn.01004319
push eax
call fcn.010045e2
push 0x1001ba0
push esi
call fcn.01004319
push eax
call fcn.010045e2
push eax
call fcn.010045e2
add esp, 0x2c
cmp dword [ebp + 8], 2
jne 0x10058fc
mov ebx, dword [sym.imp.msvcrt.dll__stricmp]
push 0x1001b94
push dword [edi + 4]
call ebx
test eax, eax
pop ecx
pop ecx
je 0x100588d
push 0x1001b88
push dword [edi + 4]
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10058fc
call fcn.01004603
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
jne 0x10058cc
push 0x1001b5c
push 0x100c600
call fcn.01004319
push eax
call fcn.010045e2
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.01007dce
leave
ret
cmp dword [ebp - 0x94], 5
jae 0x10058dc
push 0x1001b2c
jmp 0x10058a8
push 0x1001b94
push dword [edi + 4]
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10058f3
call fcn.01004d0a
jmp 0x10058bb
push 0
call fcn.01004cbb
jmp 0x10058bb
push 0x1001b10
push dword [edi]
push 0x1001b08
push esi
call fcn.01004319
pop ecx
pop ecx
push eax
call fcn.01004319
pop ecx
pop ecx
push eax
call fcn.01004319
push eax
call fcn.010045e2
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x1006f2d
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x1009ef8
call fcn.01007e55
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x100701c
cmp byte [esi + 0x41], bl
je 0x100701c
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x1006f62
xor al, al
jmp 0x100701e
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.01006efe
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c]
call fcn.010065e4
mov edi, dword [eax]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.010065e4
mov eax, dword [eax]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x18]
add ebx, edi
push ebx
push eax
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x1006fc1
dec eax
je 0x1006fc5
dec eax
dec eax
je 0x1007018
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.01002574
mov al, bl
jmp 0x100701e
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.010065e4
mov edi, dword [ebp - 0x30]
sub edi, dword [eax]
je 0x1006ffa
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.010065e4
push dword [esi + 0x4c]
mov eax, dword [eax]
push edi
push 1
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1006faf
cmp byte [esi + 0x41], 0
je 0x1007018
test edi, edi
jne 0x1006f70
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.01002e0e
jmp 0x1006f70
mov bl, 1
jmp 0x1006fb1
mov al, 1
call fcn.01007ee7
ret