joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000326d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push reloc.OLEAUT32.dll_SysStringLen
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.100144e0
add esp, 0x10
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
call fcn.100032ec
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100032e1
push 0x60
push 0x401dceb
push 6
call fcn.10013d48
add esp, 0xc
jmp 0x100032e6
mov esp, ebp
pop ebp
ret 0x14

Function at 0x100055d9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
test esi, esi
jne 0x100055fe
xor eax, eax
jmp 0x10005603
mov eax, dword [esi + 4]
add eax, eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x184
call fcn.10014340
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10005639
push ebx
call fcn.10013d54
add esp, 4
pop eax
mov dword [ebp - 4], eax
test esi, esi
je 0x10005646
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1000569b
lea edx, [esi + 8]
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x42413938
mov dword [ebp - 8], 0x46454443
test edx, edx
je 0x1000569b
test eax, eax
je 0x1000569b
lea esi, [edx + ecx]
cmp edx, esi
jae 0x1000569b
nop
movzx ecx, byte [edx]
shr ecx, 4
inc edx
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax], cl
movzx ecx, byte [edx - 1]
and ecx, 0xf
lea eax, [eax + 2]
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax - 1], cl
cmp edx, esi
jb 0x10005677
pop esi
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x10007882
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100078c5
push 0x19
push 0x401e808
push 6
call fcn.10013d48
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100078dc
mov eax, 0x10036225
jmp 0x1000798b
inc dword [ebp - 4]
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x1003624d]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.100010fa
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.10015ea0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000792a
push ebx
call fcn.10013d54
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.1000502d
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1000796c
push 0x136
push 0x401e808
push 6
call fcn.10013d48
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x10007986
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10013d3c
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1000798b
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000799c
push ebx
call fcn.10013d54
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10007dad
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x10007dff
mov dword [ebp - 0xc], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10007df7
push 0x4f
push 0x401dc9a
push 6
call fcn.10013d48
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x10007e38
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10007e35
push 0x7d
push 0x401dc9a
push 6
call fcn.10013d48
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10007e4c
mov eax, 0
jmp 0x10007eb4
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10007e7d
push 0x10b
push 0x401dc9a
push 6
call fcn.10013d48
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10007eac
push 0x12f
push 0x401dc9a
push 6
call fcn.10013d48
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x10007eb4
mov esp, ebp
pop ebp
ret 8
Function at 0x1000cbec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push 0x40
push 0x1000
push dword [ebp + 8]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 4], esp
je 0x1000cc30
push 0x12
push 0x4024297
push 6
call fcn.10013d48
add esp, 0xc
jmp 0x1000cc35
mov esp, ebp
pop ebp
ret 4

Function at 0x10014230
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10038608]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x108], ecx
lea eax, [ecx - 1]
cmp eax, 0xa
ja 0x1001425d
mov edx, dword [ecx*4 + 0x100383d0]
lea eax, [ebp - 0x108]
mov eax, dword [eax - 4]
test eax, eax
je 0x1001429b
push esi
mov esi, 0xc483
cmp si, word [eax]
pop esi
jne 0x1001429b
cmp byte [eax + 2], 0xc
jne 0x1001429b
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push edx
push ecx
push 0x1002e484
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x100142b2
push edx
push ecx
lea eax, [ebp - 0x104]
push str.program_internal_error_number_is__d.__r_n_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [0x10038f28]
test eax, eax
je 0x100142eb
cmp dword [0x10038f3c], 0
jne 0x100142eb
lea ecx, [ebp - 0x104]
mov dword [0x10038f3c], 1
push ecx
push dword [ebp - 0x108]
call eax
mov dword [0x10038f3c], 0
test eax, eax
jne 0x10014301
push 0x10
push str.error
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.10013e80
cmp dword [0x10038f20], 0
jne 0x10014317
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 0
mov ebp, dword [0x10038f24]
mov esp, dword [0x10038f20]
sub esp, 4
ret
Function at 0x10014ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.10018dd0
mov esi, dword [ebp + 0x18]
mov edi, eax
push esi
mov dword [ebp - 8], edi
xor ebx, ebx
call dword [0x10038600]
add esp, 8
test edi, edi
je 0x10014dc9
test eax, eax
je 0x10014dc9
inc eax
push eax
call fcn.10019ce0
mov edx, eax
mov dword [ebp - 0x10], eax
add esp, 4
sub edx, esi
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [edx + esi - 1], cl
test cl, cl
jne 0x10014ce6
push 0x5c
push eax
call fcn.1001b140
mov edi, eax
add esp, 8
test edi, edi
je 0x10014d07
mov byte [edi], bl
inc edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10014dba
push 0x400
mov dword [ebp - 4], 0x400
mov dword [ebp - 8], 1
call fcn.10019ce0
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10014d88
cmp eax, 0xea
jne 0x10014da8
push esi
call fcn.10019ce9
push dword [ebp - 4]
call fcn.10019ce0
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10014d55
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x10014d95
cmp eax, 2
jne 0x10014da8
push esi
call dword [0x10038600]
push eax
push esi
call fcn.10018d90
add esp, 0xc
mov ebx, eax
push esi
call fcn.10019ce9
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call fcn.10019ce9
add esp, 4
test ebx, ebx
jne 0x10014dee
cmp dword [ebp + 0x2c], 0
je 0x10014dee
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x10014dee
push esi
call dword [0x10038600]
push eax
push esi
call fcn.10018d90
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10014e30
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ebp
ret
Function at 0x4bc320
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x495015
lea edi, [esi - 0x94015]
push edi
or ebp, 0xffffffff
jmp 0x4bc342
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4bc349
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bc338
mov eax, 1
add ebx, ebx
jne 0x4bc35b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4bc36c
jne 0x4bc38b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bc38b
dec eax
add ebx, ebx
jne 0x4bc378
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4bc350
add ebx, ebx
jne 0x4bc387
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4bc3dd
xor ecx, ecx
sub eax, 3
jb 0x4bc3a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4bc412
sar eax, 1
mov ebp, eax
jmp 0x4bc3ae
add ebx, ebx
jne 0x4bc3ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bc37c
inc ecx
add ebx, ebx
jne 0x4bc3bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bc37c
add ebx, ebx
jne 0x4bc3c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4bc3be
jne 0x4bc3da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4bc3be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4bc3fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4bc3ee
jmp 0x4bc33e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4bc3fc
add edi, ecx
jmp 0x4bc33e
pop esi
mov edi, esi
mov ecx, 0xd4a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4bc41a
cmp byte [edi], 5
jne 0x4bc41a
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 0x4bc41f
lea edi, [esi + 0xba000]
mov eax, dword [edi]
or eax, eax
je 0x4bc48e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbc4ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbc54c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4bc44c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbc554]
or eax, eax
je 0x4bc488
mov dword [ebx], eax
add ebx, 4
jmp 0x4bc469
call dword [esi + 0xbc550]
mov ebp, dword [esi + 0xbc558]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4bc4c2
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp int.00401219
Function at 0x4025e2
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x30c]
push 0x80000002
push eax
push str.WTDirectory
push str.SoftwareWildTangent
call fcn.00402abc
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x14
test eax, eax
je 0x402641
lea eax, [ebp - 0x30c]
push eax
call edi
cmp eax, 0xffffffff
je 0x402648
lea eax, [ebp - 0x30c]
push eax
call edi
test al, 0x10
je 0x402648
lea eax, [ebp - 0x30c]
jmp 0x402755
and byte [ebp - 0x30c], 0
lea eax, [ebp - 0x104]
push 0xfc
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, 0x417298
test eax, eax
je 0x4026ae
cmp eax, 0xfc
jae 0x4026ae
lea eax, [ebp - 0x104]
push 0x417064
push eax
call esi
lea eax, [ebp - 0x104]
push ebx
push eax
call esi
lea eax, [ebp - 0x104]
push eax
call edi
cmp eax, 0xffffffff
je 0x4026b5
lea eax, [ebp - 0x104]
push eax
call edi
test al, 0x10
je 0x4026b5
lea eax, [ebp - 0x104]
jmp 0x402755
and byte [ebp - 0x104], 0
push 0x104
lea eax, [ebp - 0x208]
push 0x80000002
push eax
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
call fcn.00402abc
add esp, 0x14
test eax, eax
je 0x40270f
lea eax, [ebp - 0x208]
push 0x417064
push eax
call esi
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
lea eax, [ebp - 0x208]
push eax
call edi
cmp eax, 0xffffffff
je 0x40270f
lea eax, [ebp - 0x208]
push eax
call edi
test al, 0x10
jne 0x40274f
cmp byte [ebp + 0xc], 0
je 0x402764
cmp byte [ebp - 0x104], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
je 0x402737
lea eax, [ebp - 0x104]
push 0
push eax
call esi
test eax, eax
jne 0x4026a3
cmp byte [ebp - 0x208], 0
je 0x402764
lea eax, [ebp - 0x208]
push 0
push eax
call esi
test eax, eax
je 0x402764
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
inc eax
jmp 0x402766
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40276b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0x10]
mov edi, dword [esp + 0x10]
push edi
call fcn.004025e2
pop ecx
test eax, eax
pop ecx
je 0x4027c3
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x417064
push edi
call esi
push str.updater
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call esi
cmp eax, 0xffffffff
je 0x4027b1
push edi
call esi
test al, 0x10
je 0x4027b1
xor eax, eax
inc eax
jmp 0x4027c5
cmp byte [esp + 0x10], 0
je 0x4027c3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x4027c5
xor eax, eax
pop edi
pop esi
ret
Function at 0x4027c8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push 0x44
xor ebx, ebx
pop esi
lea eax, [ebp - 0x54]
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], esi
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 1
jne 0x402853
cmp byte [ebp + 0x10], bl
je 0x402826
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x14], ebx
je 0x402826
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 0x18], ebx
je 0x40283e
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [ebp + 0x18]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x40284e
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
jmp 0x402864
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x402862
mov dword [ecx], eax
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x402868
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
push dword [esp + 0x10]
call ebx
mov edi, eax
lea eax, [edi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
je 0x40298c
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esp + 0x14], 0
je 0x4028bc
lea eax, [edi - 1]
jmp 0x4028b2
mov cl, byte [eax + esi]
cmp cl, 0x5c
je 0x4028b8
cmp cl, 0x2f
je 0x4028b8
dec eax
test eax, eax
jg 0x4028a4
jmp 0x4028bc
and byte [eax + esi], 0
push ebp
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], eax
jle 0x402965
mov al, byte [edi + esi]
cmp al, 0x5c
je 0x4028df
cmp al, 0x2f
jne 0x402904
test edi, edi
je 0x402904
cmp edi, 2
jne 0x4028ee
cmp byte [esi + 1], 0x3a
je 0x402904
and byte [edi + esi], 0
push esi
movsx ebx, al
call ebp
cmp eax, 0xffffffff
je 0x40290d
test al, 0x10
je 0x402912
mov byte [edi + esi], bl
inc edi
cmp edi, dword [esp + 0x14]
jl 0x4028d4
jmp 0x40295f
mov byte [edi + esi], bl
jmp 0x40295f
xor edi, edi
jmp 0x402982
test edi, edi
jle 0x402921
mov al, byte [edi + esi]
cmp al, 0x5c
je 0x402928
mov al, byte [edi + esi]
cmp al, 0x2f
jne 0x40295e
test edi, edi
je 0x40295e
cmp edi, 2
jne 0x402937
cmp byte [esi + 1], 0x3a
je 0x40295e
and byte [edi + esi], 0
push esi
movsx ebx, al
call ebp
cmp eax, 0xffffffff
jne 0x40295a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call ebp
mov byte [edi + esi], bl
cmp eax, 0xffffffff
jmp 0x40295c
test al, 0x10
je 0x402912
inc edi
cmp edi, dword [esp + 0x14]
jl 0x402916
push esi
call ebp
cmp eax, 0xffffffff
jne 0x40297f
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call ebp
cmp eax, 0xffffffff
je 0x402982
xor edi, edi
inc edi
push esi
call fcn.00413f94
pop ecx
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402990
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
push dword [ebp + 8]
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea eax, [ebp - 0x108]
push eax
push 0x4172cc
push dword [ebp + 8]
call fcn.00402c1d
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402a92
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp byte [ebp - 0x21c], 0x2e
jne 0x402a0e
cmp byte [ebp - 0x21b], 0
je 0x402a74
cmp byte [ebp - 0x21b], 0x2e
jne 0x402a0e
cmp byte [ebp - 0x21a], 0
je 0x402a74
lea eax, [ebp - 0x108]
and byte [ebp + esi - 0x108], 0
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00402c1d
add esp, 0xc
lea eax, [ebp - 0x108]
test byte [ebp - 0x248], 0x10
push eax
je 0x402a66
call fcn.00402990
pop ecx
lea eax, [ebp - 0x108]
push eax
call edi
cmp eax, 0xffffffff
je 0x402a74
lea eax, [ebp - 0x108]
push eax
call edi
test al, 0x10
je 0x402a74
jmp 0x402a70
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402a74
and dword [ebp - 4], 0
lea eax, [ebp - 0x248]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4029ea
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
and byte [ebp + esi - 0x108], 0
cmp dword [ebp - 4], 0
pop esi
pop ebx
je 0x402ab8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x402ab8
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x402abc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x18]
push esi
dec eax
xor esi, esi
mov dword [ebp - 4], eax
lea eax, [ebp + 0x18]
inc esi
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 8], esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402aea
xor eax, eax
jmp 0x402b14
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push dword [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402b09
xor esi, esi
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret