joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f198
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, 0x4378a4
mov esi, 0x4378cc
xor eax, eax
push ebp
push 0x42f32a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x435680]
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx], eax
push 0x42f338
mov eax, dword [ebx + 0x10]
push eax
call sub.user32.dll_LoadIconA
mov dword [ebx + 0x14], eax
mov dword [ebx + 4], 0x42f0a8
mov dword [ebx + 0x1c], 0x10
mov eax, 0x42f344
mov dword [ebx + 0x24], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0xc], eax
mov eax, 0x42f350
mov dword [ebx + 0x20], eax
push ebx
call sub.user32.dll_RegisterClassA
lea eax, [ebp - 4]
mov edx, dword [0x434cb0]
add edx, 0x700
call fcn.00402570
push 0xcf0000
push 0x190
push 0x190
push 0xaf
push 0x6e
push 0
push 0
mov eax, dword [0x435680]
push eax
push 0
mov ecx, 0x42f354
mov edx, dword [ebx + 0x24]
mov eax, 0x80
call fcn.00403ce8
mov dword [esi], eax
cmp dword [esi], 0
jne 0x42f274
mov eax, dword [0x435680]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_UnregisterClassA
jmp 0x42f314
push 6
push 0x32
push 0x9b
push 0x1a
mov eax, dword [esi]
push eax
push 0
mov eax, dword [0x435680]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004027b0
mov edx, eax
mov eax, 0x42f364
mov ecx, 0x50000000
call fcn.00403d40
mov dword [0x4378d0], eax
push 6
push 5
push 0x12c
push 0x14
mov eax, dword [esi]
push eax
push 0
mov eax, dword [0x435680]
push eax
push 0
mov edx, 0x42f36c
mov eax, 0x42f37c
mov ecx, 0x50000000
call fcn.00403d40
push 6
push 0x19
push 0x12c
push 0x14
mov eax, dword [esi]
push eax
push 0
mov eax, dword [0x435680]
push eax
push 0
mov edx, 0x42f384
mov eax, 0x42f37c
mov ecx, 0x50000000
call fcn.00403d40
push 1
mov eax, dword [esi]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [esi]
push eax
call sub.user32.dll_UpdateWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f331
lea eax, [ebp - 4]
call fcn.00402414
ret
Function at 0x430204
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004027a0
xor eax, eax
push ebp
push 0x43031b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4302fb
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xa
mov eax, dword [ebp - 4]
call fcn.004027b0
push eax
mov eax, dword [0x435680]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
jne 0x430260
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x430305
push ebx
mov eax, dword [0x435680]
push eax
call sub.kernel32.dll_SizeofResource
mov edi, eax
test edi, edi
jne 0x43027f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x430305
push ebx
mov eax, dword [0x435680]
push eax
call sub.kernel32.dll_LoadResource
test eax, eax
jne 0x43029b
pop dword fs:[0]
add esp, 8
jmp 0x430305
push eax
call sub.kernel32.dll_LockResource
mov esi, eax
test esi, esi
jne 0x4302b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x430305
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4302dd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x430305
push 0
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x430305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430322
lea eax, [ebp - 4]
call fcn.00402414
ret
Function at 0x40104d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401064
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401099
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401095
cmp edi, eax
jae 0x401099
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401087
cmp edi, eax
jb 0x40109d
xor eax, eax
jmp 0x4010a7
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4011f9
Capabilities:
Create process on windows

Disassembly:
push 0x58
mov eax, 0x43e9ba
call fcn.004279b7
push 0x40
xor esi, esi
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00426270
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x44dbcc]
add esp, 0xc
mov ecx, 0x44dbcc
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push str.__s___s
call fcn.004019b9
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x10]
mov word [ebp - 0x34], 0xa
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp ebx, esi
je 0x401287
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [ebp - 0x20], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40129a
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x20], esi
cmp dword [ebp - 0x1c], esi
je 0x4012a7
push dword [ebp - 0x1c]
call edi
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004010aa
mov eax, ebx
call fcn.00427a56
ret
Function at 0x401a51
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x401adf
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x401a88
cmp dword [ebp - 8], 2
jne 0x401ade
push esi
mov esi, dword [ebp + 0xc]
call fcn.0040168a
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004016ca
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x401add
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x401acf
push eax
call fcn.00426257
pop ecx
mov edx, esi
call fcn.0040170b
mov dword [ebp - 0xc], 1
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

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

Disassembly:
push 4
mov eax, 0x43e96c
call fcn.004279b7
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040163c
and dword [ebp - 4], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401bf5
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004010aa
mov eax, esi
call fcn.00427a56
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edi
call esi
test eax, eax
jne 0x401bdf
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, 0xb7
cmp eax, edi
je 0x401bdf
lea ecx, [ebp - 0x10]
call fcn.00401b70
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x401c2a
xor esi, esi
jmp 0x401be2
push eax
call fcn.00401bb7
test eax, eax
pop ecx
je 0x401c26
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x401bdf
call ebx
cmp eax, edi
jne 0x401c26
jmp 0x401bdf
Function at 0x404600
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ef39
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x44c038]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push esi
push edi
mov eax, dword [0x44c038]
xor eax, esp
push eax
lea eax, [esp + 0x310]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
push 0xd2
mov dword [esp + 0x14], eax
lea eax, [esp + 0x22]
push esi
push eax
mov word [esp + 0x28], si
call fcn.00426270
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x404679
xor eax, eax
jmp 0x404763
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [esp + 0xfa]
push esi
push eax
sar edi, 2
mov word [esp + 0x100], si
call fcn.00426270
mov word [esp + 0x308], si
mov esi, dword [esp + 0x1c]
add esp, 0xc
add esi, 4
lea ebx, [esp + 0x1c]
call fcn.004049e7
test edi, edi
jle 0x404760
mov dword [esp + 0x10], edi
and word [ebx + 4], 0
push 0x104
lea eax, [esp + 0xf8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x404753
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0xf8]
call fcn.0040163c
and dword [esp + 0x318], 0
lea eax, [esp + 0x14]
push eax
mov edi, esi
call fcn.0040498c
or dword [esp + 0x318], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004010aa
lea eax, [esp + 0x18]
push eax
mov edi, ebx
call fcn.0040163c
lea eax, [esp + 0x18]
push eax
mov edi, esi
mov dword [esp + 0x31c], 1
call fcn.0040498c
or dword [esp + 0x318], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004010aa
add ebx, 8
dec dword [esp + 0x10]
jne 0x4046c6
xor eax, eax
inc eax
mov ecx, dword [esp + 0x310]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.00425c5a
mov esp, ebp
pop ebp
ret 4

Function at 0x40501d
Capabilities:
Encode data using xor

Disassembly:
push 0xc
mov eax, 0x43e7b5
call fcn.00427a20
mov eax, dword [0x44dbcc]
xor ebx, ebx
mov ecx, 0x44dbcc
mov dword [ebp - 0x14], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
call dword [section..data]
cmp dword [ebp + 0xc], ebx
je 0x405060
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x405064
xor eax, eax
jmp 0x405079
lea edi, [eax + eax]
mov eax, edi
call fcn.0042dbb0
mov esi, esp
push edi
push dword [ebp + 0xc]
call fcn.004028c2
push eax
lea eax, [ebp - 0x18]
call fcn.004030a0
mov edi, dword [ebp - 0x18]
movzx eax, word [edi - 0xc]
mov dword [ebp - 0x14], eax
movzx eax, ax
xor ecx, ecx
cmp eax, ebx
jle 0x40509e
xor byte [ecx + edi], 0x88
inc ecx
cmp ecx, eax
jl 0x405095
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 2
add esi, 4
pop ebx
call fcn.00404e67
movzx ebx, word [ebp - 0x14]
push edi
call fcn.00404e67
lea eax, [edi - 0x10]
call fcn.004010aa
lea esp, [ebp - 0x28]
call fcn.00427a6a
ret 8
Function at 0x4051e5
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x43eb6a
call fcn.004279b7
mov esi, ecx
mov eax, dword [0x44dbcc]
or dword [ebp - 0x18], 0xffffffff
mov ecx, 0x44dbcc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x10]
push eax
push ecx
push edi
call fcn.00406b05
push edi
mov ebx, eax
call fcn.00426ebd
add esp, 0x10
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
movzx eax, word [esi + 0x2c]
push edx
push dword [ebp - 0x14]
push ebx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str._s_d__x__x__x.ich
call fcn.004019b9
mov ebx, dword [esi + 0x18]
mov esi, dword [esi + 0x10]
add esp, 0x18
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x4052af
push edi
lea ecx, [ebp + 8]
push ecx
push ebx
push esi
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40529e
cmp dword [ebp + 8], ebx
jne 0x40529e
mov dword [ebp - 0x14], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x4052af
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004010aa
mov eax, dword [ebp - 0x18]
call fcn.00427a56
ret 4
Function at 0x4058a4
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x44c038]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x43eb3a
call fcn.004279b7
xor ebx, ebx
push 0x206
lea eax, [ebp + 2]
mov esi, ecx
push ebx
mov dword [ebp - 0x18], ebx
push eax
mov dword [ebp - 0x1c], esi
mov word [ebp], bx
call fcn.00426270
add esp, 0xc
call fcn.00401627
xor edi, edi
inc edi
push edi
push 0x23
lea eax, [ebp]
push eax
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x18], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
lea eax, [ebp]
jne 0x40596c
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, ebx
je 0x4059b3
lea eax, [ebp]
push eax
push esi
call fcn.004017a3
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov eax, esi
call fcn.00401d6b
mov dword [ebp - 4], edi
mov edi, 0x442168
push edi
push eax
call fcn.00401e92
test eax, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.004010aa
cmp byte [ebp - 0xd], bl
je 0x405965
push edi
push esi
call fcn.00401df7
push str.All_UsersApplication_Data_
jmp 0x4059ad
push eax
push esi
call fcn.004017a3
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov eax, esi
call fcn.00401d6b
mov edi, 0x442168
push edi
push eax
mov dword [ebp - 4], 2
call fcn.00401e92
test eax, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.004010aa
cmp byte [ebp - 0xd], bl
je 0x4059b3
push edi
push esi
call fcn.00401df7
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00425c5a
add ebp, 0x20c
leave
ret

Function at 0x4061ee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x406289
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
mov ebx, 0x442500
push ebx
push eax
call edi
cmp dword [ebp - 8], 1
je 0x406230
cmp dword [ebp - 8], 2
jne 0x406287
push esi
mov esi, dword [ebp + 0xc]
call fcn.0040168a
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004016ca
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push 0
push ebx
push dword [eax]
call edi
test eax, eax
jne 0x406286
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x406278
push eax
call fcn.00426257
pop ecx
mov edx, esi
call fcn.0040170b
mov dword [ebp - 0xc], 1
pop esi
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x40632a
Capabilities:
Read .ini file

Disassembly:
push 0xc
mov eax, 0x43ee7c
call fcn.004279b7
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov eax, dword [0x44dbcc]
mov ecx, 0x44dbcc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x24]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00406484
lea eax, [ebp - 0x18]
push eax
call fcn.00401c48
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
mov dword [esp], str.ressrcchsuplive.svr
push eax
call fcn.00401df7
push dword [ebp - 0x18]
push esi
push str.TryNo
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004010aa
mov dword [edi + 4], esi
call fcn.00406599
mov dword [edi + 8], eax
call fcn.004067cf
push str.SOFTWAREkingsoftAntivirusSetup
push reloc.WS2_32.dll_bind
lea esi, [ebp - 0x14]
mov dword [edi + 0xc], eax
call fcn.00401a23
lea esi, [ebp - 0x10]
call fcn.0040168a
mov eax, esi
push eax
push 0x44254c
lea ebx, [ebp - 0x14]
call fcn.00401a51
push dword [ebp - 0x10]
call fcn.004269a1
pop ecx
mov dword [edi + 0x10], eax
call fcn.0040168a
mov eax, esi
push eax
push str.tid1
call fcn.00401a51
push dword [ebp - 0x10]
call fcn.004269a1
pop ecx
mov dword [edi + 0x14], eax
call fcn.0040168a
mov eax, esi
push eax
push str.tid2
call fcn.00401a51
push dword [ebp - 0x10]
call fcn.004269a1
pop ecx
mov dword [edi + 0x18], eax
call fcn.0040168a
mov eax, esi
push eax
push str.tod1
call fcn.00401a51
push dword [ebp - 0x10]
call fcn.004269a1
pop ecx
mov dword [edi + 0x1c], eax
call fcn.0040168a
mov eax, esi
push eax
push str.tod2
call fcn.00401a51
mov esi, dword [ebp - 0x10]
push esi
call fcn.004269a1
mov dword [edi + 0x20], eax
pop ecx
lea eax, [esi - 0x10]
call fcn.004010aa
cmp dword [ebp - 0x14], 0
je 0x40647b
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
call fcn.00427a56
ret
Function at 0x406b05
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x406b1e
mov eax, dword [ebp - 4]
jmp 0x406bf8
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x406bd3
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x442ac0]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x442ac0]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x442ac0]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x442ac0]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x442ac0]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x442ac0]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x442ac0]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x442ac0]
dec ebp
jne 0x406b3d
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x406bef
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x442ac0]
dec ecx
jne 0x406bdd
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a2a1
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f4f2
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x44c038]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
and dword [esp + 0x20], 0
lea esi, [esp + 0x3c]
call fcn.0040860a
and dword [esp + 0x68], 0
mov eax, dword [0x44dbcc]
mov esi, 0x44dbcc
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x68], 1
mov eax, dword [0x44dbcc]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea esi, [ebx + 0x6c]
push 1
mov dword [esp + 0x30], esi
mov byte [esp + 0x34], 1
mov byte [esp + 0x35], 1
call fcn.00408c57
mov edi, dword [ebp + 8]
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x6c], 3
call fcn.0040163c
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x38]
lea edi, [ebx + 0x38]
push eax
call fcn.004034da
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004010aa
test esi, esi
mov eax, dword [edi + 4]
mov dword [esp + 0x28], eax
je 0x40a36a
cmp esi, edi
je 0x40a36f
call fcn.00426980
cmp ebx, dword [esp + 0x28]
je 0x40a4b4
test esi, esi
jne 0x40a382
call fcn.00426980
cmp ebx, dword [esi + 4]
jne 0x40a38c
call fcn.00426980
mov ebx, dword [ebx + 0x10]
push 1
mov esi, ebx
mov dword [esp + 0x28], ebx
call fcn.00408c57
mov byte [esp + 0x68], 2
mov esi, dword [esp + 0x2c]
call fcn.00408d09
lea esi, [ebx + 0x28]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebx]
mov eax, esi
call fcn.0040c160
push eax
push str.count
push ebx
call dword [edi + 4]
mov eax, esi
xor edi, edi
call fcn.0040c160
test eax, eax
jbe 0x40a464
lea eax, [esp + 0x3c]
push eax
call fcn.00408776
mov eax, esi
call fcn.0040c160
cmp edi, eax
jb 0x40a3ee
call fcn.00426980
mov eax, dword [esi + 4]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [ecx + 4]
push 0
push 0
lea eax, [esp + 0x44]
push eax
call fcn.00408738
test eax, eax
mov dword [esp + 0x20], eax
jle 0x40a431
push eax
push eax
lea eax, [esp + 0x1c]
call fcn.004087dc
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00408738
push edi
push 0x442204
lea eax, [esp + 0x20]
call fcn.004019b9
mov eax, dword [ebx]
pop ecx
pop ecx
push dword [esp + 0x20]
push dword [esp + 0x18]
push dword [esp + 0x20]
push ebx
call dword [eax + 0xc]
mov eax, esi
inc edi
call fcn.0040c160
cmp edi, eax
jb 0x40a3d4
mov esi, dword [esp + 0x24]
call fcn.00408d09
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004010aa
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004010aa
or dword [esp + 0x68], 0xffffffff
lea eax, [esp + 0x3c]
call fcn.00408629
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [esp + 0x2c]
call fcn.00408d09
jmp 0x40a475