joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100304c0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov edx, dword [ebp + 8]
lea edi, [esi + 0x60]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi]
mov dword [eax], ecx
cmp dword [esi + 4], 8
je 0x100304eb
cmp dword [esi + 4], 7
jne 0x10030509
xor ebx, ebx
test ecx, ecx
je 0x10030510
mov ecx, dword [esi + 0x48]
mov dword [esi + 0xa4], ebx
mov dword [edi], ebx
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov byte [eax + ecx], bl
xor eax, eax
jmp 0x100305be
cmp dword [esi + 0xa4], ebx
jne 0x10030509
push dword [esi + 0x64]
push str.call_InternetReadFile_0x_08x__n
push 7
push 0xc
call fcn.1001ef2c
add esp, 0x10
lea ecx, [esi + 0x34]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x24]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx]
call dword [eax + 0x2c]
push edi
push 0x1000
push eax
push dword [esi + 0x64]
call dword [sym.imp.WININET.dll_InternetReadFile]
push dword [esi + 0x64]
test eax, eax
je 0x10030599
push dword [edi]
push str.received__d_bytes_from_0x_08x_n
push 7
push 0xc
call fcn.1001ef2c
mov ecx, dword [edi]
add esp, 0x14
test ecx, ecx
jne 0x10030574
mov dword [esi + 4], 9
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [esi + 0x48]
mov dword [edi], ebx
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [ebp + 0xc]
push ebx
mov ecx, dword [ecx]
mov byte [eax + ecx], bl
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx]
call dword [eax + 0x34]
jmp 0x10030509
push str.InternetReadFile_on_0x_08x_returned_FALSE_n
push 7
push 0xc
call fcn.1001ef2c
add esp, 0xc
mov dword [esi + 0xa4], 1
lea ecx, [esi + 0x34]
push ebx
push ebx
call fcn.1000dcdd
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1006dab8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x100a91de
call fcn.1009cc92
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x1006dcca
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x1006db0a
sub edx, ecx
sar edx, 1
inc edx
push ecx
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x41c], edx
call fcn.1006c7b5
test eax, eax
js 0x1006dcca
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x1006db5b
mov ecx, esi
call fcn.1006c818
test al, al
je 0x1006db5b
mov eax, esi
call fcn.1009cd15
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1006db67
push esi
lea ecx, [ebp - 0x428]
call fcn.1000dcdd
push 3
push esi
mov edx, edi
mov ecx, eax
call fcn.1000dcdd
mov edi, eax
test edi, edi
je 0x1006dcc4
push 0x60
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov esi, eax
mov dword [ebp - 0x41c], esi
test esi, esi
jne 0x1006dbb5
push 2
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov esi, eax
mov dword [ebp - 0x41c], eax
test esi, esi
jne 0x1006dbb5
call fcn.1006c19a
mov edi, eax
jmp 0x1006dca9
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x1006dbd8
call fcn.1006c19a
jmp 0x1006dc9c
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x1006dbce
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x424], edi
lea ecx, [edi + 1]
cmp ecx, edi
jae 0x1006dc0b
mov edi, 0x8007000e
jmp 0x1006dc9e
mov byte [ebp - 4], 2
call fcn.1006c8c7
cmp eax, 0x400
jbe 0x1006dc29
push eax
lea ecx, [ebp - 0x418]
call fcn.1000dcdd
jmp 0x1006dc35
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x1006dc59
cmp dword [ebp - 0x418], 0
je 0x1006dc01
mov ecx, dword [ebp - 0x418]
mov edx, edi
push edi
push dword [ebp - 0x420]
call fcn.1000dcdd
pop ecx
pop ecx
mov ecx, eax
call fcn.1006cdee
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
push dword [ebp + 0x14]
mov byte [eax + edi], bl
push dword [ebp - 0x418]
call fcn.1000dcdd
mov edi, eax
test esi, esi
je 0x1006dca9
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1006dce4
lea ecx, [ebp - 0x418]
call fcn.1006c188
jmp 0x1006dce4
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x1006dcdf
lea ecx, [ebp - 0x418]
call fcn.1006c188
mov edi, 0x8007000e
lea ecx, [ebp - 0x428]
call fcn.1006c79b
mov eax, edi
lea esp, [ebp - 0x440]
call fcn.1009cbe3
ret 0x10
Function at 0x1006f8c5
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x230
mov eax, 0x100a94b9
call fcn.1009cc24
mov dword [ebp - 0x234], edx
mov ebx, ecx
push ebx
lea ecx, [ebp - 0x238]
call dword [sym.imp.fpsrvutl.dll_Ordinal_5241]
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [0x100f55b0]
add eax, 0xe8
mov dword [ebp - 0x23c], eax
mov edi, dword [eax]
test edi, edi
jne 0x1006f924
push 0xf0000040
push 1
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov edi, dword [ebp - 0x23c]
mov edi, dword [edi]
test edi, edi
je 0x1006fa2c
lea eax, [ebp - 0x230]
push eax
push 0x18
push edi
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1006fa2c
mov eax, dword [ebp - 0x21c]
xor edx, edx
push 0x24
pop ecx
div ecx
movzx eax, word [edx*2 + str.abcdefghijklmnopqrstuvwxyz0123456789]
xor edx, edx
push eax
mov eax, dword [ebp - 0x220]
div ecx
movzx eax, word [edx*2 + str.abcdefghijklmnopqrstuvwxyz0123456789]
xor edx, edx
push eax
mov eax, dword [ebp - 0x224]
div ecx
movzx eax, word [edx*2 + str.abcdefghijklmnopqrstuvwxyz0123456789]
xor edx, edx
push eax
mov eax, dword [ebp - 0x228]
div ecx
movzx eax, word [edx*2 + str.abcdefghijklmnopqrstuvwxyz0123456789]
xor edx, edx
push eax
mov eax, dword [ebp - 0x22c]
div ecx
movzx eax, word [edx*2 + str.abcdefghijklmnopqrstuvwxyz0123456789]
xor edx, edx
push eax
mov eax, dword [ebp - 0x230]
div ecx
movzx eax, word [edx*2 + str.abcdefghijklmnopqrstuvwxyz0123456789]
push eax
push dword [ebp - 0x238]
lea eax, [ebp - 0x218]
push str._wswe_c_c_c_c_c_c.tmp
push 0xffffffffffffffff
push eax
call fcn.1000dcdd
add esp, 0x28
lea eax, [ebp - 0x218]
cmp byte [ebp + 8], 0
je 0x1006fa1d
push esi
push 0x80
push 1
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x1006fa10
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x1006f924
cmp eax, 0x50
je 0x1006f924
jmp 0x1006fa32
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x218]
mov ecx, dword [ebp - 0x234]
push eax
call dword [sym.imp.fpsrvutl.dll_Ordinal_5525]
jmp 0x1006fa41
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
mov edx, eax
mov ecx, 0x20002
call fcn.10020b05
mov esi, eax
lea ecx, [ebp - 0x238]
call dword [sym.imp.fpsrvutl.dll_Ordinal_2017]
mov eax, esi
call fcn.1009cbd6
ret 4
Function at 0x1006fadc
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x100a94f7
call fcn.1009cbf0
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.fpsrvutl.dll_Ordinal_4936]
push ebx
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x10], 1
call dword [sym.imp.kernel32.dll_GetTempPathA]
mov ebx, eax
test ebx, ebx
jle 0x1006fb90
lea edi, [ebx + 1]
call dword [sym.imp.fpsrvutl.dll_Ordinal_4348]
test eax, eax
je 0x1006fb2a
mov ecx, edi
call dword [sym.imp.fpsrvutl.dll_Ordinal_5011]
jmp 0x1006fb32
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov edi, eax
test edi, edi
je 0x1006fb90
push edi
push ebx
call dword [sym.imp.kernel32.dll_GetTempPathA]
push edi
mov ecx, esi
mov byte [eax + edi], 0
call dword [sym.imp.fpsrvutl.dll_Ordinal_4818]
push 0
mov ecx, esi
call dword [sym.imp.fpsrvutl.dll_Ordinal_3947]
push 0x5c
push 2
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call dword [sym.imp.fpsrvutl.dll_Ordinal_5801]
push eax
mov ecx, esi
call dword [sym.imp.fpsrvutl.dll_Ordinal_687]
push 0x2f
push 2
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call dword [sym.imp.fpsrvutl.dll_Ordinal_5801]
push eax
mov ecx, esi
call dword [sym.imp.fpsrvutl.dll_Ordinal_687]
push edi
call fcn.1000dcdd
pop ecx
mov eax, esi
call fcn.1009cbc1
ret
Function at 0x401000
Capabilities:
Get file version info

Disassembly:
sub esp, 0x214
push esi
push edi
mov edi, dword [esp + 0x220]
lea eax, [esp + 0x10]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 8], eax
je 0x401048
push eax
call fcn.0040904f
mov ecx, dword [esp + 0xc]
add esp, 4
mov esi, eax
push esi
push ecx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x401053
push esi
call fcn.00409044
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x214
ret
lea edx, [esp + 8]
lea eax, [esp + 0x18]
push edx
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401048
mov ecx, dword [str.InternalName]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDefaultLangID]
mov edx, dword [str.StringFileInfo_04x04B0_s]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
and eax, 0xffff
push eax
lea eax, [esp + 0x24]
push edx
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401048
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x224]
push ecx
push edx
call edi
add esp, 8
mov eax, 1
pop edi
pop esi
add esp, 0x214
ret
Function at 0x401b10
Capabilities:
Enumerate processes

Disassembly:
mov eax, 0x2930
call fcn.00409160
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], ebx
push ebx
push 2
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], ebx
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
je 0x401bf3
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x128
push eax
push esi
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x401bec
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push 0xa
call ebx
mov ecx, dword [esp + 0x20]
push ecx
push 0
push 0x1f0fff
call ebp
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetPriorityClass]
lea edx, [esp + 0x3c]
push edx
call fcn.0040f654
mov edi, eax
lea eax, [esp + 0x144]
push eax
push str.3BCE2797A3694EB15C90D789CB898A1922F65C391C72371C339A5D31
call fcn.00408390
lea ecx, [esp + 0x14c]
push ecx
push edi
call fcn.004092e0
add esp, 0x14
test eax, eax
je 0x401bc9
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x401b73
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
pop ebp
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x2930
ret

Function at 0x4024b0
Capabilities:
Parse credit card information

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
xor esi, esi
mov cl, byte [ebx]
test cl, cl
mov byte [esp + 0xc], cl
je 0x402541
push edi
mov edi, dword [esp + 0x14]
cmp cl, 0x3a
je 0x4024e5
cmp cl, 0x3f
je 0x4024e5
cmp cl, 0x3d
je 0x4024e5
cmp cl, 0x26
je 0x4024e5
cmp cl, 0x25
je 0x4024e5
mov byte [esi + edi], cl
jmp 0x40252d
mov eax, dword [esp + 0x10]
mov byte [esi + edi], 0x25
and eax, 0xff
inc esi
mov edx, eax
and edx, 0xfffffff0
cmp edx, 0xa0
mov edx, eax
jge 0x40250a
shr edx, 4
add edx, 0x30
jmp 0x402510
shr edx, 4
add edx, 0x37
mov byte [esi + edi], dl
and cl, 0xf
inc esi
cmp cl, 0xa
jae 0x402524
and eax, 0xf
add eax, 0x30
jmp 0x40252a
and eax, 0xf
add eax, 0x37
mov byte [esi + edi], al
mov cl, byte [ebx + 1]
inc esi
inc ebx
mov byte [esp + 0x10], cl
test cl, cl
jne 0x4024c7
mov byte [esi + edi], cl
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x10]
mov byte [esi + eax], 0
pop esi
pop ebx
ret
Function at 0x402550
Capabilities:
Parse credit card information

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
xor esi, esi
mov cl, byte [ebx]
test cl, cl
mov byte [esp + 0xc], cl
je 0x4025ea
push edi
mov edi, dword [esp + 0x14]
cmp cl, 0x3a
je 0x40258e
cmp cl, 0x3f
je 0x40258e
cmp cl, 0x3d
je 0x40258e
cmp cl, 0x26
je 0x40258e
cmp cl, 0x25
je 0x40258e
cmp cl, 0x2f
je 0x40258e
mov byte [esi + edi], cl
jmp 0x4025d6
mov eax, dword [esp + 0x10]
mov byte [esi + edi], 0x25
and eax, 0xff
inc esi
mov edx, eax
and edx, 0xfffffff0
cmp edx, 0xa0
mov edx, eax
jge 0x4025b3
shr edx, 4
add edx, 0x30
jmp 0x4025b9
shr edx, 4
add edx, 0x37
mov byte [esi + edi], dl
and cl, 0xf
inc esi
cmp cl, 0xa
jae 0x4025cd
and eax, 0xf
add eax, 0x30
jmp 0x4025d3
and eax, 0xf
add eax, 0x37
mov byte [esi + edi], al
mov cl, byte [ebx + 1]
inc esi
inc ebx
mov byte [esp + 0x10], cl
test cl, cl
jne 0x40256b
mov byte [esi + edi], cl
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x10]
mov byte [esi + eax], 0
pop esi
pop ebx
ret
Function at 0x407430
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x134
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ebx
push ebx
push 2
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], ebx
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x407532
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push esi
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x40752b
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x148]
push 0xa
call ebp
mov ecx, dword [esp + 0x24]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetPriorityClass]
lea edx, [esp + 0x40]
push edx
call fcn.0040f654
push ebx
mov edi, eax
call fcn.0040f654
push eax
push edi
call fcn.004092e0
add esp, 0x10
test eax, eax
je 0x407504
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov ecx, dword [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x407522
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x407494
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
pop ebp
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x134
ret
Function at 0x408130
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x41978c]
push esi
test eax, eax
je 0x4081b8
push 0
push 0x80000080
push 4
push 0
push 0
push 0x40000000
push 0x418a5c
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4081b8
push ebx
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push 0
push eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [sym.imp.KERNEL32.DLL_WriteFile]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call ebx
lea ecx, [esp + 0xc]
push 0
push ecx
mov edi, 0x415ef4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x415ef4
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop ebx
pop esi
pop ecx
ret

Function at 0x4082b0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 3
call fcn.004096fb
mov ebx, dword [esp + 0x1c]
mov ebp, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
shr ecx, 1
inc ecx
push ecx
call fcn.004096fb
mov edx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 8
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], edx
test ecx, 0xfffffffe
jbe 0x40832f
mov al, byte [ebx]
push 0x10
mov byte [ebp], al
mov cl, byte [ebx + 1]
push ebp
mov byte [ebp + 1], cl
mov byte [ebp + 2], 0
call fcn.00408ad0
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
add esp, 8
or ecx, 0xffffffff
mov byte [edx + esi], al
xor eax, eax
inc esi
add ebx, 2
repne scasb al, byte es:[edi]
not ecx
dec ecx
shr ecx, 1
cmp esi, ecx
jb 0x4082f6
xor eax, eax
mov byte [edx + esi], 0
test esi, esi
jbe 0x40836d
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, edx
sub edi, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], esi
xor ebx, ebx
mov bl, ch
xor bl, byte [eax]
mov byte [edi + eax], bl
movzx bx, byte [eax]
add ebx, ecx
imul ebx, dword [esp + 0x1c]
add ebx, edx
inc eax
dec esi
mov ecx, ebx
jne 0x40834d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
push ebp
mov byte [eax + ecx], 0
call fcn.00409692
mov edx, dword [esp + 0x14]
push edx
call fcn.00409692
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x408440
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x408
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4084da
mov edx, dword [esp + 0x414]
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x408492
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x408
ret
lea ecx, [esp + 4]
lea eax, [esp + 8]
push ecx
mov ecx, dword [esp + 4]
push eax
push 0
push 0
push edx
push ecx
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4084cf
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x408
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x408
ret

Function at 0x4084f0
Capabilities:
Delete registry key

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40851e
xor eax, eax
ret
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x408535
xor eax, eax
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret

Function at 0x408550
Capabilities:
Delete registry value

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40857e
xor eax, eax
ret
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x408595
xor eax, eax
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret
Function at 0x4085b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push ebx
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4085e2
xor eax, eax
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408634
push esi
push edi
mov edi, dword [esp + 0x20]
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, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x408650
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40867e
xor eax, eax
ret
mov edx, dword [esp + 0x10]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
je 0x4086ab
xor eax, eax
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret
Function at 0x408bf0
Capabilities:
Move file

Disassembly:
mov eax, 0x2334
call fcn.00409160
lea eax, [esp]
push edi
push eax
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [esp + 0x14], 2
jne 0x408c5a
mov edx, dword [esp + 0x2340]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 5
jne 0x408c43
mov ecx, dword [esp + 0x2340]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
pop edi
add esp, 0x2334
ret
push edx
mov edx, dword [esp + 0x2344]
push edx
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
pop edi
add esp, 0x2334
ret
mov ecx, dword [esp + 0x233c]
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
lea eax, [esp + 0x1a0]
push 0x104
push eax
push ecx
call esi
mov edx, dword [esp + 0x2344]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x408cb6
mov edi, 0x415fd4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x9c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x408cc6
lea ecx, [esp + 0x9c]
push 0x104
push ecx
push edx
call esi
mov edi, str.rename
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x12f0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2a4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Wininit.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1a0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x9c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2a4]
push ecx
push edx
lea ecx, [esp + 0x12f8]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
pop esi
pop edi
add esp, 0x2334
ret