joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6612b0c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.6612a2e0
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x6612b0e2
call fcn.6612a470
test byte [ebx + 0x20], 0x30
jne 0x6612b0fc
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x661dc348]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x6612b13f
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x6612b183
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x6612b132
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x6612b148
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov dword [ebx + 0x14], 0
mov eax, ebx
call fcn.66129e60
mov eax, dword [0x661dc348]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x6612b13f
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x6612b197
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jmp 0x6612b162
Function at 0x66138570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x661e578d
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x661e57f1]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.661146c0
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
mov dword [ebp - 0x8c], edx
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.661d32b0
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x661dde9c], 0
jne 0x66138696
mov byte [0x661dde9c], 1
call fcn.661ce010
test eax, eax
je 0x66138664
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.66113910
mov dword [esp], 2
mov esi, dword [fcn.66127b40]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x66138654
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x661e463d
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x661d20e4
jmp 0x661d20dc
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x6613861a
mov dword [esp], 2
call dword [0x661dc320]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x661d20d7
mov dword [esp], 2
call dword [0x661dc320]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
mov ebx, ecx
sub esp, 0x18
mov dword [ecx], 0x661ee45c
call fcn.661c6bb0
mov dword [esp], ebx
mov dword [esp + 4], 4
call fcn.661cddb0
add esp, 0x18
pop ebx
ret
Function at 0x6618a440
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
jmp 0x6618a463
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
jne 0x6618a481
mov ecx, ebx
call fcn.6618a1e0
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll__read
mov ebp, eax
cmp eax, 0xffffffff
je 0x6618a458
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x661c6e00
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push edi
push esi
push ebx
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
xor eax, esi
cmp esi, 3
jbe 0x661c6e90
lea edx, [esi - 4]
shr edx, 2
lea ebx, [ecx + edx*4 + 4]
imul edi, dword [ecx], 0x5bd1e995
add ecx, 4
mov edx, edi
shr edx, 0x18
xor edx, edi
imul edi, eax, 0x5bd1e995
imul eax, edx, 0x5bd1e995
xor eax, edi
cmp ecx, ebx
jne 0x661c6e20
and esi, 3
cmp esi, 2
je 0x661c6e79
cmp esi, 3
je 0x661c6e70
cmp esi, 1
je 0x661c6e82
mov edx, eax
pop ebx
pop esi
shr edx, 0xd
pop edi
xor eax, edx
imul eax, eax, 0x5bd1e995
mov edx, eax
shr edx, 0xf
xor eax, edx
ret
movzx edx, byte [ebx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ebx + 1]
shl edx, 8
xor eax, edx
movzx edx, byte [ebx]
xor eax, edx
imul eax, eax, 0x5bd1e995
jmp 0x661c6e54
mov ebx, ecx
jmp 0x661c6e45
Function at 0x401eee
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test esi, esi
jne 0x401f01
push 0xd
pop eax
jmp 0x401f2c
push edi
xor edi, edi
push esi
call dword [sym.imp.p_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401f04
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.base_constructor_iterator_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x402486
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push dword [ebp + 8]
xor esi, esi
push dword [edi]
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00401e5a
mov ebx, eax
cmp ebx, esi
je 0x4024c9
lea ecx, [ebp - 8]
call fcn.00401de5
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
mov ebx, dword [sym.imp.base_constructor_iterator_RegEnumKeyExW]
jmp 0x4024e4
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 8]
call fcn.00402486
cmp eax, esi
jne 0x402519
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x100
call ebx
test eax, eax
je 0x4024d1
lea ecx, [ebp - 8]
call fcn.00401de5
push dword [ebp + 8]
mov ecx, edi
call fcn.00401d88
lea ecx, [ebp - 8]
mov esi, eax
call fcn.00401de5
mov eax, esi
jmp 0x4024c2
Function at 0x4077ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
xor edi, edi
push 2
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x410], edi
call dword [sym.imp.p_LoadLibraryExW]
mov ebx, eax
mov dword [ebp + 8], ebx
cmp ebx, edi
jne 0x40780c
call fcn.00401ca8
mov esi, eax
jmp 0x4078d6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.p_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x407829
call fcn.00401ca8
jmp 0x4078cb
push esi
push ebx
call dword [sym.imp.p_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x40781f
push esi
push dword [ebp + 8]
call dword [sym.imp.p_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x407879
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x407863
lea ecx, [ebp - 0x410]
call fcn.00402434
mov esi, 0x8007000e
lea ecx, [ebp - 4]
call fcn.004015d5
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
push eax
lea ecx, [ebp - 0x410]
call fcn.00402baa
cmp dword [ebp - 0x410], edi
jne 0x407894
mov esi, 0x8007000e
jmp 0x4078cd
push esi
push dword [ebp - 0x410]
push esi
push ebx
push edi
push 3
call dword [sym.imp.p_MultiByteToWideChar]
cmp eax, edi
je 0x40781f
mov edx, dword [ebp - 0x410]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x410]
lea ecx, [ebp - 0xc]
call fcn.00403751
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.p_FreeLibrary]
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x407868
lea ecx, [ebp - 0x410]
call fcn.00402434
jmp 0x407868

Function at 0x408e2b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.base_constructor_iterator_RegQueryValueExW]
test eax, eax
jne 0x408e94
cmp dword [ebp + 0x10], 1
je 0x408e6c
cmp dword [ebp + 0x10], 2
je 0x408e6c
push 0xd
pop eax
jmp 0x408e94
mov eax, dword [ebp - 4]
test edi, edi
je 0x408e8e
test eax, eax
je 0x408e89
test al, 1
jne 0x408e67
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x408e8e
jmp 0x408e67
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x409347
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
push edi
mov byte [ebp - 1], 1
cmp cl, 0xc
jne 0x409394
mov eax, dword [esi + 4]
mov edi, dword [0x42e4b0]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [0x42e460]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
jmp 0x4093bb
shr eax, 2
test al, 1
je 0x4093c4
push dword [esi + 4]
call dword [0x42e4b0]
push dword [esi + 4]
mov edi, eax
call dword [0x42e460]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
call dword [0x42e424]
jmp 0x4093f7
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x28]
push str.open
push ebx
call dword [0x42e358]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x4093f6
or byte [esi + 0x58], 2
push 1
push ebx
push dword [esi + 4]
call dword [0x42e474]
pop ebx
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret
Function at 0x40becf
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x30], edi
jbe 0x40bef0
mov eax, dword [esi + 0x38]
imul eax, edi
add eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.p_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x30]
jb 0x40beda
and dword [esi + 0x30], 0
pop edi
pop esi
ret

Function at 0x40c2fa
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b4
push ebx
mov ebx, ecx
push esi
lea ecx, [ebp - 0x430]
call fcn.00401a37
lea ecx, [ebp - 0x218]
call fcn.00401a37
lea ecx, [ebp - 0x9b4]
call fcn.0040b42b
xor esi, esi
push 0x24c
lea eax, [ebp - 0x67c]
push esi
push eax
mov dword [ebp - 0x680], esi
call fcn.00420470
add esp, 0xc
cmp dword [ebp + 0xc], esi
jne 0x40c373
lea ecx, [ebp - 0x9b4]
call fcn.0040b472
lea ecx, [ebp - 0x218]
call fcn.00401924
lea ecx, [ebp - 0x430]
call fcn.00401924
xor al, al
pop esi
pop ebx
leave
ret 8
push dword [0x43914c]
lea ecx, [ebp - 0x218]
call fcn.0040b814
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x9b4]
call fcn.0040af2a
test al, al
jne 0x40c3c1
xor bl, bl
lea ecx, [ebp - 0x9b4]
call fcn.0040b472
lea ecx, [ebp - 0x218]
call fcn.00401924
lea ecx, [ebp - 0x430]
call fcn.00401924
mov al, bl
jmp 0x40c36d
push edi
lea eax, [ebp - 0x9b4]
push eax
mov ecx, ebx
call fcn.0040c24e
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push dword [esi + 4]
lea eax, [ebp - 0x430]
push str._slanguages_s_.lng
push eax
call fcn.00401229
add esp, 0x10
lea eax, [ebp - 0x680]
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.p_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c462
lea eax, [ebp - 0x654]
push eax
push dword [esi + 4]
lea eax, [ebp - 0x218]
push str._slanguages_s
push eax
call fcn.00401229
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x9b4]
call fcn.0040af2a
test al, al
je 0x40c449
lea eax, [ebp - 0x9b4]
push eax
mov ecx, ebx
call fcn.0040c24e
lea eax, [ebp - 0x680]
push eax
push edi
call dword [sym.imp.p_FindNextFileW]
test eax, eax
jne 0x40c407
push edi
call dword [sym.imp.p_FindClose]
mov bl, 1
pop edi
jmp 0x40c39c
Function at 0x40c46a
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbcc
push ebx
push edi
mov edi, ecx
lea ecx, [ebp - 0x430]
call fcn.00401a37
lea ecx, [ebp - 0x648]
call fcn.00401a37
lea ecx, [ebp - 0x218]
call fcn.00401a37
lea ecx, [ebp - 0xbcc]
call fcn.0040b42b
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x894]
push ebx
push eax
mov dword [ebp - 0x898], ebx
call fcn.00420470
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x40c4f9
lea ecx, [ebp - 0xbcc]
call fcn.0040b472
lea ecx, [ebp - 0x218]
call fcn.00401924
lea ecx, [ebp - 0x648]
call fcn.00401924
lea ecx, [ebp - 0x430]
call fcn.00401924
xor al, al
pop edi
pop ebx
leave
ret 4
push dword [ebp - 0x214]
push dword [ebp - 0x20c]
call dword [sym.imp.p_GetTempPathW]
test eax, eax
jne 0x40c53f
lea ecx, [ebp - 0xbcc]
call fcn.0040b472
lea ecx, [ebp - 0x218]
call fcn.00401924
lea ecx, [ebp - 0x648]
call fcn.00401924
lea ecx, [ebp - 0x430]
call fcn.00401924
mov al, bl
jmp 0x40c4f3
lea ecx, [ebp - 0x218]
call fcn.0040120b
push dword [ebp + 8]
lea eax, [ebp - 0x430]
push dword [ebp - 0x214]
push str._s_s_
push eax
call fcn.00401229
add esp, 0x10
push dword [ebp - 0x42c]
push 0x40c0c6
push 0xa
push ebx
call dword [sym.imp.p_EnumResourceNamesW]
push str.mt5lang.tmp
push dword [ebp + 8]
lea eax, [ebp - 0x430]
push dword [ebp - 0x214]
push str._s_s_._s
push eax
call fcn.00401229
add esp, 0x14
lea eax, [ebp - 0x898]
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.p_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40c627
push esi
lea esi, [edi + 0x28]
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x648]
push str._s_s
push eax
call fcn.00401229
add esp, 0x10
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0xbcc]
call fcn.0040af2a
test al, al
je 0x40c600
lea eax, [ebp - 0xbcc]
push eax
mov ecx, edi
call fcn.0040c24e
push dword [ebp - 0x644]
mov ecx, esi
call fcn.0040c078
lea eax, [ebp - 0x898]
push eax
push ebx
call dword [sym.imp.p_FindNextFileW]
test eax, eax
jne 0x40c5bb
push ebx
call dword [sym.imp.p_FindClose]
pop esi
mov bl, 1
jmp 0x40c50f
Function at 0x40ca13
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Import public key
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
mov edi, ecx
cmp dword [ebp + 8], esi
je 0x40ca7e
cmp dword [ebp + 0xc], esi
je 0x40ca7e
cmp dword [ebp + 0x10], esi
je 0x40ca7e
cmp dword [ebp + 0x14], esi
je 0x40ca7e
mov eax, dword [edi]
cmp eax, esi
je 0x40ca7e
cmp dword [eax + 0xc], esi
je 0x40ca7e
push 0xf0000000
push 1
push esi
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.base_constructor_iterator_CryptAcquireContextW]
test eax, eax
je 0x40ca7e
lea eax, [ebp - 8]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
add eax, 0x38
push eax
push 0x10001
push dword [ebp - 4]
call dword [0x42e0a4]
test eax, eax
jne 0x40ca86
push esi
push dword [ebp - 4]
call dword [sym.imp.base_constructor_iterator_CryptReleaseContext]
xor al, al
pop edi
pop esi
leave
ret 0x10
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x8004
push dword [ebp - 4]
call dword [sym.imp.base_constructor_iterator_CryptCreateHash]
test eax, eax
jne 0x40caa9
push dword [ebp - 8]
call dword [sym.imp.base_constructor_iterator_CryptDestroyKey]
jmp 0x40ca74
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.base_constructor_iterator_CryptHashData]
test eax, eax
jne 0x40cad1
push dword [ebp - 8]
call dword [sym.imp.base_constructor_iterator_CryptDestroyKey]
push dword [ebp - 0xc]
call dword [sym.imp.base_constructor_iterator_CryptDestroyHash]
jmp 0x40ca74
push esi
push esi
push dword [ebp - 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.base_constructor_iterator_CryptVerifySignatureW]
push dword [ebp - 8]
test eax, eax
je 0x40cac0
call dword [sym.imp.base_constructor_iterator_CryptDestroyKey]
push dword [ebp - 0xc]
call dword [sym.imp.base_constructor_iterator_CryptDestroyHash]
push esi
push dword [ebp - 4]
call dword [sym.imp.base_constructor_iterator_CryptReleaseContext]
mov al, 1
jmp 0x40ca80

Function at 0x40ce94
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x40d5da
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov edi, edx
test esi, esi
je 0x40d60a
xor eax, eax
test edi, edi
jle 0x40d60a
push ebx
mov ebx, dword [ebp + 8]
mov edx, eax
and edx, 0xf
mov dl, byte [ebx + edx*4]
add dl, cl
xor byte [eax + esi], dl
movsx ecx, byte [eax + esi]
inc eax
cmp eax, edi
jl 0x40d5f0
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x40d610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor eax, eax
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp edi, eax
je 0x40d64e
cmp edx, eax
jle 0x40d64e
push ebx
push esi
mov ebx, dword [ebp + 8]
mov cl, byte [eax + edi]
mov edx, eax
and edx, 0xf
mov dl, byte [ebx + edx*4]
add dl, byte [ebp - 4]
movsx esi, cl
xor dl, cl
mov byte [eax + edi], dl
inc eax
cmp eax, dword [ebp - 8]
mov dword [ebp - 4], esi
jl 0x40d62a
pop esi
pop ebx
pop edi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi + 4]
mov edi, dword [sym.imp.p_GetFileAttributesW]
call edi
cmp eax, 0xffffffff
je 0x40d9c6
mov al, 1
jmp 0x40da48
push ebx
push dword [esi + 4]
lea eax, [ebp - 0x208]
push eax
call fcn.0040bd72
cmp word [ebp - 0x208], 0
mov ebx, dword [sym.imp.p_CreateDirectoryW]
pop ecx
pop ecx
lea esi, [ebp - 0x208]
je 0x40da24
cmp word [esi], 0x5c
jne 0x40da1c
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x208]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40da16
push 0
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
je 0x40da41
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
cmp word [esi], 0
jne 0x40d9ee
lea eax, [ebp - 0x208]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40da45
push 0
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
jne 0x40da45
xor al, al
jmp 0x40da47
mov al, 1
pop ebx
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x40da67
xor eax, eax
jmp 0x40daf6
push esi
push edi
push ebx
push 0x410
lea eax, [ebp - 0x414]
push eax
call fcn.0040d826
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.p_lstrlenW]
mov esi, dword [sym.imp.p_GetFileAttributesW]
mov edi, dword [sym.imp.p_CreateDirectoryW]
lea eax, [ebp + eax*2 - 0x416]
jmp 0x40daa5
cmp word [eax], 0x5c
je 0x40dab1
dec eax
dec eax
lea ecx, [ebp - 0x414]
cmp eax, ecx
ja 0x40da9d
jmp 0x40dae2
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call esi
cmp eax, 0xffffffff
jne 0x40dae2
push 0
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
jne 0x40dae2
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x414]
push eax
call fcn.0040da4c
push ebx
call esi
cmp eax, 0xffffffff
jne 0x40daf1
push 0
push ebx
call edi
jmp 0x40daf4
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40dafb
Capabilities:
Get file system object information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b8
push esi
xor esi, esi
push 0x2b0
lea eax, [ebp - 0x2b4]
push esi
push eax
mov dword [ebp - 0x2b8], esi
call fcn.00420470
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x40dc47
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
je 0x40dc46
push edi
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x40dc45
push 0x1000
xor eax, eax
mov word [ebx], ax
or dword [edi], 0xffffffff
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push esi
push dword [ebp + 8]
call dword [0x42e348]
mov esi, dword [sym.imp.p_lstrlenW]
lea eax, [ebp - 0x2ac]
push eax
call esi
test eax, eax
jle 0x40db98
lea eax, [ebp - 0x2ac]
push eax
push ebx
call esi
dec eax
push eax
push ebx
call fcn.0040d826
mov eax, dword [ebp - 0x2b4]
mov dword [edi], eax
jmp 0x40dc45
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x6b8]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 0x200
call dword [0x42e36c]
mov edi, dword [sym.imp.base_constructor_iterator_RegQueryValueW]
push eax
mov ebx, 0x80000000
push ebx
call edi
push 0x42f5e8
push 0x200
lea eax, [ebp - 0x6b8]
push eax
call fcn.0040d8a4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x6b8]
push eax
push ebx
mov dword [ebp - 4], 0x104
call edi
lea eax, [ebp - 0x4b8]
push 0x42f5e4
push eax
call fcn.0042095e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40dc45
push edi
call esi
xor ebx, ebx
inc ebx
sub ebx, eax
lea eax, [ebp - 0x4b8]
push eax
call esi
add eax, ebx
push eax
lea eax, [ebp - 0x4b8]
push eax
push dword [ebp + 0xc]
call esi
push eax
push dword [ebp + 0xc]
call fcn.0040d85a
add edi, 2
push edi
call fcn.00420e65
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
pop edi
pop ebx
pop esi
leave
ret 0xc

Function at 0x40de7b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x208], ax
xor edi, edi
lea eax, [ebp - 0x206]
push edi
push eax
mov ebx, ecx
call fcn.00420470
add esp, 0xc
cmp dword [ebp + 8], edi
je 0x40df2d
push dword [ebp + 8]
call fcn.004209bf
pop ecx
cmp eax, 1
jb 0x40df2d
mov esi, dword [0x42e34c]
push edi
push 0x17
lea eax, [ebp - 0x208]
push eax
push edi
call esi
test eax, eax
jne 0x40dee4
push edi
push 2
lea eax, [ebp - 0x208]
push eax
push edi
call esi
test eax, eax
je 0x40df2d
push 0x42f618
mov esi, 0x208
push esi
lea eax, [ebp - 0x208]
push eax
call fcn.0040d8a4
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0040d8a4
push 1
push 1
push 0x42f610
lea eax, [ebp - 0x208]
push eax
mov ecx, ebx
call fcn.0040dc4c
xor ecx, ecx
test eax, eax
setg cl
mov al, cl
jmp 0x40df2f
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4