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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4283b3
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00428094
mov esi, eax
mov eax, dword [0x4dbeb0]
cmp byte [eax], 0
je 0x428359
mov eax, dword [0x4dbce0]
call fcn.0040799c
call fcn.00406f44
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42825c]
call fcn.0040ce6c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4283cc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x428395
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4dbc9c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4df634]
call fcn.0040d53c
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4283ba
lea eax, [ebp - 4]
mov edx, dword [0x42825c]
call fcn.0040cf90
pop eax
jmp eax

Function at 0x42a6d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040a4c4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004101b8
mov edi, eax
cmp edi, 0x104
jbe 0x42a67f
mov eax, edi
add eax, eax
call fcn.00406dd0
mov esi, eax
jmp 0x42a681
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004101b8
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42a6ba
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42a6a4
mov eax, esp
cmp esi, eax
je 0x42a6c7
mov eax, esi
call fcn.00406dec
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42a700
cmp bl, 0
je 0x42a6fc
cmp bl, 0x41
jl 0x42a6f7
cmp bl, 0x5a
jg 0x42a6f7
or bl, 0x20
xor al, bl
inc esi
jmp 0x42a6db
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42a640

Function at 0x42b01c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040aae0
add esp, 0x800
pop ebx
ret
Function at 0x42d7c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42d7e6
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42d7fe
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42d7f9
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x42d803
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42d871
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42d8ba
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42d82f
inc dword [ebp - 0xc]
jmp 0x42d847
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42d847
cmp dword [ebp - 0xc], 0
jle 0x42d847
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42d869
xor eax, eax
jmp 0x42d865
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42d864
mov eax, esi
jmp 0x42d8bd
inc eax
cmp eax, ecx
jle 0x42d851
inc esi
cmp esi, dword [ebp - 8]
jl 0x42d81b
jmp 0x42d8ba
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42d8ba
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42d892
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42d8b4
xor eax, eax
jmp 0x42d8b0
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42d8af
mov eax, esi
jmp 0x42d8bd
inc eax
cmp eax, ecx
jle 0x42d89c
inc esi
cmp esi, dword [ebp - 8]
jl 0x42d87a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42daac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x42dac9
mov eax, dword [eax - 4]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42dad7
mov eax, dword [eax - 4]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42dbf9
test ebx, ebx
jl 0x42dbf9
test esi, esi
jle 0x42dbf9
mov eax, dword [ebp - 8]
call fcn.0040aa44
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040aa44
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x42db96
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42dbf9
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42db7b
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42db4a
inc dword [ebp - 0x14]
jmp 0x42db5a
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42db5a
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42db65
or eax, 0xffffffff
jmp 0x42db7b
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42db78
inc eax
jmp 0x42db7b
or eax, 0xffffffff
test eax, eax
jl 0x42db83
cmp esi, eax
jg 0x42db38
cmp esi, eax
jg 0x42db8e
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42dbfc
inc edx
dec dword [ebp - 0x1c]
jne 0x42db34
jmp 0x42dbf9
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42dbf9
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42dbe0
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42dbbf
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42dbca
or eax, 0xffffffff
jmp 0x42dbe0
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42dbdd
inc eax
jmp 0x42dbe0
or eax, 0xffffffff
test eax, eax
jl 0x42dbe8
cmp esi, eax
jg 0x42dba8
cmp esi, eax
jg 0x42dbf3
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42dbfc
inc edx
dec dword [ebp - 0x1c]
jne 0x42dba4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43de10
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x43de18
mov eax, edx
pop esi
pop ebx
ret

Function at 0x440a8c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x440aa3
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x440a93
mov eax, ecx
pop ebx
ret
Function at 0x454f78
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x454f8c
add esp, 0xfffffff0
call fcn.0040877c
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x44eefc]
call fcn.004739d8
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x453f48]
call fcn.0047678c
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x453f48]
call fcn.0047678c
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x454fe1
call fcn.004087d4
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b88f0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4b8933
cmp byte [ebx + 0x11], 0
jne 0x4b8933
cmp byte [ebx + 0x24], 0
jne 0x4b8933
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4b894a
mov ecx, dword [0x4dbe64]
mov dl, 1
mov eax, dword [0x48b72c]
call fcn.00428518
call fcn.0040964c
pop ebx
ret
mov ecx, dword [0x4dbe64]
mov dl, 1
mov eax, dword [0x48b72c]
call fcn.00428518
call fcn.0040964c
pop ebx
ret

Function at 0x4b92b8
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4b9306
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004b879c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b931f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b9328
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004b879c
dec esi
jne 0x4b934a
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x402130
Capabilities:
Get session user name

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41d74d
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x534
test eax, eax
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0xa
mov esi, str.Upgrade_using_the_same_paths_as_before.
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
jne 0x402186
mov ecx, dword [ebx + 0x5c]
test ecx, ecx
je 0x40237e
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [ebx + 0x5c], 0
jmp 0x40237e
mov eax, dword [ebx + 0x5c]
test eax, eax
jne 0x40237e
push 0x58
call fcn.00418acf
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x548], 0
je 0x4021b7
mov ecx, eax
call fcn.00414876
jmp 0x4021b9
xor eax, eax
push 0
push ebx
mov ecx, eax
mov dword [esp + 0x550], 0xffffffff
mov dword [ebx + 0x5c], eax
call fcn.004148cb
test eax, eax
je 0x40237e
mov ecx, dword [ebx + 0x5c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x64
push 1
mov edx, dword [ecx + 0x1c]
push 0x403
push edx
call esi
mov eax, dword [ebx + 0x5c]
push 0x64
push 3
push 0x403
mov ecx, dword [eax + 0x1c]
push ecx
call esi
mov edx, dword [ebx + 0x5c]
push 0x7530
push 2
push 0x403
mov eax, dword [edx + 0x1c]
push eax
call esi
mov ecx, dword [ebx + 0x5c]
push 0x12c
push 0
push 0x418
mov edx, dword [ecx + 0x1c]
push edx
call esi
push 0x4245a8
lea eax, [esp + 0x144]
push str.Because_the_path_is_short_and_global_it_is_easier_to_maintain_your_data_such_as_message_files_and_email_address_list_files._This_is_good_if_you_only_plan_to_run_one_instance_of__s_on_this_computer.
push eax
call fcn.00406fe7
add esp, 0xc
lea ecx, [esp + 0x140]
push 0
push 0
push ecx
push 0x3e9
mov ecx, 0x429110
call fcn.00418374
mov ecx, dword [ebx + 0x5c]
push eax
call fcn.00414a96
test eax, eax
je 0x40237e
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push edx
push eax
mov dword [esp + 0x14], 0x105
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x140]
push ecx
push 0x4245a8
push str._s_will_be_available_for_this_Username__s__only.
push edx
call fcn.00406fe7
add esp, 0x10
lea eax, [esp + 0x140]
mov ecx, 0x429110
push 0
push 0
push eax
push 0x3ea
call fcn.00418374
mov ecx, dword [ebx + 0x5c]
push eax
call fcn.00414a96
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
push ecx
push 0x26
call fcn.00405130
push 0x424100
push 0x4245bc
push 0x4240f4
lea edx, [esp + 0x50]
push 0x4245bc
push edx
push 0x4245a8
lea eax, [esp + 0x160]
push str._s_will_be_installed_here__s_s_s_s_s_
push eax
call fcn.00406fe7
add esp, 0x28
lea ecx, [esp + 0x140]
push 0
push 0
push ecx
push 0x3eb
mov ecx, 0x429110
call fcn.00418374
mov ecx, dword [ebx + 0x5c]
push eax
call fcn.00414a96
push 0
lea edx, [esp + 0x18]
push 0
push edx
push 0x3ee
mov ecx, 0x429110
call fcn.00418374
mov ecx, dword [ebx + 0x5c]
push eax
call fcn.00414a96
mov eax, dword [ebx + 0x5c]
push 0
push 1
push 0x401
mov ecx, dword [eax + 0x1c]
push ecx
call esi
mov ecx, dword [esp + 0x540]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x540
ret 4
Function at 0x403d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x204
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
call fcn.0041b526
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x218]
and eax, 0xffff
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x403e63
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x403e63
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jbe 0x403e63
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x403e63
mov ecx, dword [esp + 0x21c]
push 0x180
push 0x8302
push ecx
call fcn.004076fa
mov edi, eax
add esp, 0xc
test edi, edi
jl 0x403e63
push esi
push ebx
push edi
call fcn.0040750a
add esp, 0xc
cmp eax, esi
je 0x403e55
mov edx, dword [esp + 0x21c]
lea eax, [esp + 0x14]
push edx
push 0x42536c
push eax
call fcn.00406fe7
add esp, 0xc
lea ecx, [esp + 0x14]
push 0x10
push 0x4245a8
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004172e5
jmp 0x403e5a
mov ebp, 1
push edi
call fcn.0040742a
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x204
ret 8

Function at 0x403e80
Capabilities:
Copy file

Disassembly:
push esi
push 0x4291d8
mov esi, ecx
push 0x3f2
call fcn.00418408
mov al, byte [0x4292e0]
test al, al
jne 0x403ee6
push str.RCDATA
push 0x3f1
mov ecx, esi
call fcn.00418408
mov eax, dword [esp + 8]
push 0x4291d8
push eax
mov ecx, esi
call fcn.00403d90
test eax, eax
jne 0x403f8f
push 0x4291d8
push 0x4291d8
push str.Copying_to:_n_s_nThe_file_could_not_be_copied._n_no_Is__s_in_use__no_Is_your_disk_full__n
push 0x4293e8
call fcn.00406fe7
add esp, 0x10
jmp 0x403f76
push 0x4292e0
push 0x3f1
mov ecx, esi
call fcn.00418408
push 0
push 0x4292e0
call fcn.00414742
add esp, 8
test eax, eax
je 0x403f23
push 0x4292e0
push str.Source_File:_n_s_nis_missing_
push 0x4293e8
call fcn.00406fe7
add esp, 0xc
jmp 0x403f76
push 0x180
push 0x4291d8
call fcn.00406f78
push 0x4291d8
call fcn.00406f4e
add esp, 0xc
push 0
push 0x4291d8
push 0x4292e0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x403f8f
push 0x4291d8
push 0x4291d8
push 0x4292e0
push str.Copying_from:_n_s_nCopying_to:_n_s_nThe_file_could_not_be_copied._n_no_Is__s_in_use__no_Is_your_disk_full__no_You_may_have_specified_an_invalid_destination._n
push 0x4293e8
call fcn.00406fe7
add esp, 0x14
push 0x10
push 0x4245ec
push 0x4293e8
mov ecx, esi
call fcn.004172e5
xor eax, eax
pop esi
ret 4
mov eax, 1
pop esi
ret 4
Function at 0x4042f0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x244
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 0x425520
push ecx
call fcn.00406fe7
lea ebx, [esp + eax + 0x1c]
mov edi, 0x42551c
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x114]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
mov eax, dword [esp + 0x258]
xor edx, edx
cmp ebp, 0xffffffff
setne dl
push 0x5c
push eax
mov esi, edx
call fcn.00406fc0
add esp, 8
cmp esi, 1
jne 0x404413
test eax, eax
je 0x404413
lea edi, [esp + 0x140]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov al, byte [esp + 0x114]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test al, 0x10
rep movsb byte es:[edi], byte [esi]
je 0x4043c8
cmp byte [esp + 0x140], 0x2e
jne 0x4043b9
mov esi, 1
jmp 0x4043da
lea eax, [esp + 0x10]
push eax
call fcn.004042f0
add esp, 4
jmp 0x4043d3
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
cmp esi, 1
jne 0x4043ee
lea edx, [esp + 0x114]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x404379
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 1
jne 0x404413
mov eax, dword [esp + 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret
Function at 0x405350
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x429f58]
push esi
push edi
mov esi, 1
xor edi, edi
cmp eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x104
jne 0x405389
push 0
push 0x14
call fcn.00405280
mov eax, dword [0x429f58]
add esp, 8
cmp eax, esi
je 0x405374
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x234]
push eax
push 0x4245bc
push ecx
lea edx, [esp + 0x124]
push 0x424ad8
push edx
mov dword [0x429f58], esi
call fcn.00406fe7
add esp, 0x14
lea eax, [esp + 8]
lea ecx, [esp + 0x118]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405444
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x228]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405406
mov edi, esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x405444
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x405444
mov edx, dword [esp + 0x230]
mov edi, dword [esp + 0x22c]
lea eax, [esp + 0x14]
push edx
push eax
push edi
call fcn.00405190
add esp, 0xc
jmp 0x405474
mov eax, dword [esp + 0x228]
test eax, eax
je 0x40546a
mov ecx, dword [esp + 0x230]
mov edi, dword [esp + 0x22c]
push ecx
push eax
push edi
call fcn.00405190
add esp, 0xc
jmp 0x405474
mov edi, dword [esp + 0x22c]
mov byte [edi], 0
or ecx, 0xffffffff
xor eax, eax
mov dword [0x429f58], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov eax, ecx
pop esi
add esp, 0x214
ret
Function at 0x4054a0
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
mov eax, dword [0x429f58]
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov edi, 1
xor ebp, ebp
cmp eax, edi
jne 0x4054cf
push 0
push 0x14
call fcn.00405280
mov eax, dword [0x429f58]
add esp, 8
cmp eax, edi
je 0x4054ba
mov ebx, dword [esp + 0x228]
mov dword [0x429f58], edi
test ebx, ebx
jne 0x405543
mov edi, dword [esp + 0x230]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
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 + 0x10]
push ecx
push 0xf003f
push ebx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40562f
mov eax, dword [esp + 0x224]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40561f
mov esi, dword [esp + 0x22c]
test esi, esi
jne 0x4055b3
mov eax, dword [esp + 0x224]
mov ecx, dword [esp + 0x230]
push eax
push 0x4245bc
push ecx
lea edx, [esp + 0x24]
push 0x424ad8
push edx
call fcn.00406fe7
add esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0xf003f
push esi
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40562f
mov edx, dword [esp + 0x10]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, edi
jmp 0x40562f
mov ecx, dword [esp + 0x224]
mov edx, dword [esp + 0x230]
push ecx
push 0x4245bc
push edx
lea eax, [esp + 0x24]
push 0x424ad8
push eax
call fcn.00406fe7
add esp, 0x14
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40562f
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push esi
push 1
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, 1
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword [0x429f58], 0
pop ebx
add esp, 0x210
ret

Function at 0x405780
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push 0
push esi
push edi
push eax
mov ebx, 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4057b5
push edi
push esi
call fcn.00405130
add esp, 8
test eax, eax
jne 0x4057b5
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x405a00
Capabilities:
Create directory

Disassembly:
sub esp, 0x40
xor eax, eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 7
mov esi, str.Unable_to_read_write_access
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 8
lea edi, [esp + 0x2d]
rep stosd dword es:[edi], eax
xor ebx, ebx
stosw word es:[edi], ax
push ebx
push str.C:Pcx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push str.C:Pcx
call fcn.00414742
add esp, 8
test eax, eax
jne 0x405a85
mov edi, str.C:Pcx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x54]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov dword [0x429f4c], 0x3e9
pop ebx
add esp, 0x40
ret 8
mov edi, str.C:Pcx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [0x429f4c], eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x405ada
cmp dword [esp + 0x58], 1
jne 0x405ada
push 0x40
lea ecx, [esp + 0x14]
push 0x4245a8
push ecx
mov ecx, ebp
call fcn.004172e5
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x40
ret 8

Function at 0x406f78
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406fa3
test byte [esp + 8], 0x80
je 0x406f92
and al, 0xfe
jmp 0x406f94
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x406fb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004098c0
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret