joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417972
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x428cfb
call fcn.0041cfb0
sub esp, 0x45c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x33b]
mov byte [ebp - 0x33c], bl
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x33c]
push esi
push eax
push dword [0x435d40]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x33c]
lea ecx, [ebp - 0x468]
push eax
call fcn.004158a4
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x133]
mov byte [ebp - 0x134], bl
push dword [0x42f2e8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x468]
mov dword [ebp - 4], ebx
push eax
call fcn.00417ae8
pop ecx
test eax, eax
pop ecx
je 0x417a56
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x237]
mov byte [ebp - 0x238], bl
mov byte [ebp - 0xd], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x134]
push eax
push ebx
lea eax, [ebp - 0x238]
push 0x42f628
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x134]
push ebx
push eax
lea ecx, [ebp - 0x468]
push dword [0x42f2e8]
call fcn.00415b06
jmp 0x417a6b
lea eax, [ebp - 0x134]
push 0x434e60
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [ebp - 0xd], bl
lea ecx, [ebp - 0x30]
call fcn.00401ae9
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00401b31
push dword [ebp + 0x14]
lea ecx, [ebp - 0x30]
push dword [ebp + 0x10]
push 0x432d70
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401d30
cmp byte [ebp - 0xd], bl
je 0x417ab1
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00402dee
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0040285f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x468]
call fcn.004159e9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x417cbc
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x428d24
call fcn.0041cfb0
sub esp, 0x210
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea edi, [eax + 0x3318]
mov esi, 0x104
lea eax, [ebp - 0x118]
push esi
xor ebx, ebx
push eax
push ebx
mov ecx, edi
push dword [0x429ecc]
push dword [ebp + 8]
call fcn.0040545b
lea eax, [ebp - 0x118]
push eax
call fcn.0041dac2
cmp eax, 4
pop ecx
jne 0x417d33
mov eax, dword [ebp + 0xc]
push str.1.20.1827.0
add eax, 0xac
push eax
call fcn.00416edf
pop ecx
test eax, eax
pop ecx
jl 0x417d2a
mov esi, 0x300
jmp 0x417d52
push esi
lea eax, [ebp - 0x21c]
jmp 0x417d3a
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [0x429ee0]
mov ecx, edi
push dword [ebp + 8]
call fcn.0040545b
mov esi, eax
cmp esi, ebx
je 0x417dc0
mov dword [ebp + 8], ebx
push 0x20019
push str.SystemCurrentControlSetControlWindows
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00409d2d
test eax, eax
jne 0x417db2
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.CSDVersion
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp + 0xc], esi
jae 0x417db2
cmp dword [ebp + 8], ebx
je 0x417dae
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x417dc3
cmp dword [ebp + 8], ebx
je 0x417dc0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4184cb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.00418667
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x41857f
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x418571
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x418535
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x41855e
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x41856b
cmp byte [ebp - 0x838], bl
je 0x418571
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x41857f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0041813f
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x4185a4
cmp dword [ebp + 0xc], 4
jne 0x4185d0
cmp dword [ebp - 0x14], ebx
jne 0x4185d0
mov ax, word [edi + 0x14]
cmp ax, 3
jne 0x4185bc
mov ecx, edi
call fcn.00418b82
jmp 0x4185d0
cmp ax, 4
mov ecx, edi
jne 0x4185cb
call fcn.00418d63
jmp 0x4185d0
call fcn.00419137
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x418b82
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.0041cf80
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWARENetscapeNetscape_NavigatorProxy_Information
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x418d50
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push str.Proxy_Type
push dword [ebp - 4]
mov dword [ebp - 0x48], str.http
mov dword [ebp - 0x44], str.HTTP_Proxy
mov dword [ebp - 0x40], str.HTTP_ProxyPort
mov dword [ebp - 0x3c], str.https
mov dword [ebp - 0x38], str.HTTPS_Proxy
mov dword [ebp - 0x34], str.HTTPS_ProxyPort
mov dword [ebp - 0x30], str.ftp
mov dword [ebp - 0x2c], str.FTP_Proxy
mov dword [ebp - 0x28], str.FTP_ProxyPort
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x418d50
cmp dword [ebp - 0x14], 1
jne 0x418d50
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x418d13
cmp byte [ebp - 0x148], al
je 0x418d13
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x418d05
lea eax, [ebp - 0x96c]
push 0x42f968
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x42eb30
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x42e7d8
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x418c69
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.00418350
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x418d5e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419cd7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0xf4]
cmp eax, 0x7530
jbe 0x419d3a
mov ecx, dword [esi + 0xe8]
lea eax, [esi + 0xe8]
mov edx, dword [esi + 0xf0]
mov dword [esi + 0xdc], ecx
xor ecx, ecx
mov dword [esi + 0xe4], edx
mov dword [eax], ecx
lea eax, [esi + 0xf0]
mov edx, dword [esi + 0xec]
mov dword [esi + 0xec], ecx
mov dword [eax], ecx
lea eax, [esi + 0xec]
mov dword [esi + 0xe0], edx
call edi
mov dword [esi + 0xf4], eax
mov edi, dword [esi + 0xe4]
test edi, edi
jne 0x419d4c
mov eax, dword [esi + 0xdc]
jmp 0x419da4
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x419da2
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0xdc]
cmp ebx, eax
jbe 0x419d7a
shr ebx, 1
shr edi, 1
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe4], edi
mov eax, dword [esi + 0xdc]
mov edi, dword [esi + 0xe4]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x419d55
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x41a5f1
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x41a643
push eax
call fcn.0041c5b8
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41a643
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x42ec24
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x41a647
xor al, al
jmp 0x41a6a8
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x41a6a6
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.0041c5b8
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x41a6a6
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x41a694
mov al, 1
pop ebx
leave
ret 4
Function at 0x424d86
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4327e0
cmp edx, dword [eax]
je 0x424da8
add eax, 8
inc ecx
cmp eax, 0x432870
jl 0x424d99
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4327e0]
jne 0x424ed6
mov eax, dword [0x435e20]
cmp eax, 1
je 0x424eb0
test eax, eax
jne 0x424dd9
cmp dword [0x42fdd4], 1
je 0x424eb0
cmp edx, 0xfc
je 0x424ed6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x424e10
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041c970
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c8f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x424e53
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c8f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42a4b8
push edi
call fcn.0041c7f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041c970
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041c980
lea eax, [ebp - 0xa0]
push 0x42a498
push eax
call fcn.0041c980
push dword [esi + 0x4327e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041c980
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00426b28
add esp, 0x2c
pop edi
jmp 0x424ed6
lea eax, [ebp + 8]
lea esi, [esi + 0x4327e4]
push 0
push eax
push dword [esi]
call fcn.0041c8f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4019d0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [ebp + 8]
mov ecx, dword [0x453040]
xor ecx, ebp
mov dword [esp + 0x58], ecx
xor esi, esi
test eax, eax
je 0x401aa2
lea ecx, [esp + 0xc]
push 0
push 0
push ecx
push eax
push 0
call sub.urlmon.dll_URLOpenBlockingStreamW
test eax, eax
js 0x401aa2
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push 1
push edx
push eax
call dword [ecx + 0x30]
xor esi, esi
test eax, eax
js 0x401a98
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0x18]
inc eax
mov dword [ebx], eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
je 0x401a98
mov edi, eax
push dword [ebx]
push 0
push eax
call fcn.0042a390
add esp, 0xc
mov eax, dword [esp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, dword [eax]
sub esp, 0x14
movsd xmm0, qword [esp + 0x14]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [ecx + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [ebx]
dec ecx
mov edx, dword [eax]
push 0
push ecx
push edi
push eax
call dword [edx + 0xc]
mov esi, edi
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0040590a
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [0x453040]
xor edx, esp
mov dword [esp + 8], edx
lea edx, [esp + 4]
push edx
push 0x101
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
jne 0x401b4b
mov edi, dword [esp + 0x24]
mov ebx, esp
push ebx
push 0
push 0
push 0
push edi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor esi, esi
test eax, eax
jne 0x401b41
mov eax, dword [esp]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea eax, [esp + 0x28]
push ebx
push esi
push eax
push 0
push edi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401b41
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0040590a
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
ret
Function at 0x40d2d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
push edi
xor edi, edi
bts edi, eax
cmp eax, 0x20
cmovae edx, edi
xor edi, edx
cmp eax, 0x40
mov eax, dword [esp + 0xc]
cmovae edx, edi
test eax, eax
js 0x40d31c
push ebx
push esi
lea ebx, [esp + 0x14]
xor ecx, ecx
lea ebx, [ebx + 4]
bts ecx, eax
xor esi, esi
cmp eax, 0x20
cmovae esi, ecx
xor ecx, esi
cmp eax, 0x40
mov eax, dword [ebx]
cmovae esi, ecx
or edi, ecx
or edx, esi
test eax, eax
jns 0x40d2f8
pop esi
pop ebx
mov eax, edi
pop edi
ret

Function at 0x411f00
Capabilities:
Hash data using djb2

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
mov ecx, 0x1505
test edi, edi
jne 0x411f16
pop edi
xor eax, eax
pop esi
ret
push ebx
mov bl, byte [edi]
test bl, bl
je 0x411f40
nop dword [eax]
mov eax, ecx
lea edi, [edi + 1]
mov edx, esi
shld esi, ecx, 5
shl ecx, 5
add ecx, eax
movzx eax, bl
mov bl, byte [edi]
adc esi, edx
cdq
add ecx, eax
adc esi, edx
test bl, bl
jne 0x411f20
pop ebx
pop edi
mov eax, ecx
pop esi
ret

Function at 0x4127f1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x412830
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412830
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412830
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x412830
cmp dword [ecx + 0x74], 0xe
jbe 0x412830
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x416360
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x24], 0
xorps xmm0, xmm0
push esi
mov esi, dword [esp + 0x18]
movlpd qword [esp + 8], xmm0
jb 0x4164cc
push ebp
mov ebp, dword [esp + 0x28]
ja 0x41638b
test ebp, ebp
je 0x4164cb
cmp dword [esp + 0x20], 0
push ebx
push edi
je 0x416458
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
nop dword [eax + eax]
mov ecx, dword [esp + 0x2c]
push 1
mov bl, byte [eax + ecx]
mov ax, word [esi + 8]
or ax, 2
mov byte [esp + 0x14], bl
movzx edi, ax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi]
not eax
push eax
call fcn.00415ad0
not eax
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
mov byte [esp + 0x20], al
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 8]
not eax
push eax
call fcn.00415ad0
mov edx, dword [esp + 0x40]
not eax
mov dword [esi + 8], eax
add esp, 0x18
mov eax, edi
mov ecx, edi
xor ecx, 1
imul ecx, eax
mov eax, dword [esp + 0x14]
shr ecx, 8
xor cl, bl
mov byte [eax + edx], cl
add eax, 1
mov ecx, dword [esp + 0x1c]
adc ecx, 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esp + 0x34]
jb 0x4163b0
ja 0x4164c9
cmp eax, ebp
jb 0x4163b0
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x10
ret
movlpd qword [esp + 0x14], xmm0
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
push 1
mov al, byte [edi + eax]
mov byte [esp + 0x14], al
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi]
not eax
push eax
call fcn.00415ad0
not eax
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
mov byte [esp + 0x20], al
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 8]
not eax
push eax
call fcn.00415ad0
add esp, 0x18
not eax
add edi, 1
mov dword [esi + 8], eax
adc ebx, 0
cmp ebx, dword [esp + 0x34]
jb 0x416466
ja 0x4164c9
cmp edi, ebp
jb 0x416466
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x10
ret
Function at 0x4164e0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x24]
xorps xmm0, xmm0
movlpd qword [esp + 8], xmm0
push esi
mov esi, dword [esp + 0x18]
test ebp, ebp
jb 0x41662b
push ebx
mov ebx, dword [esp + 0x28]
ja 0x41650d
test ebx, ebx
je 0x41662a
mov edx, dword [esp + 0x20]
push edi
test edx, edx
je 0x4165b8
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
movzx eax, word [esi + 8]
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [esp + 0x28]
push 1
shr ecx, 8
xor cl, byte [edi + eax]
lea eax, [esp + 0x14]
push eax
mov byte [edi + edx], cl
mov eax, dword [esi]
not eax
mov byte [esp + 0x18], cl
push eax
call fcn.00415ad0
not eax
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
mov byte [esp + 0x20], al
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 8]
not eax
push eax
call fcn.00415ad0
mov edx, dword [esp + 0x3c]
not eax
add esp, 0x18
mov dword [esi + 8], eax
mov eax, dword [esp + 0x2c]
add edi, 1
adc eax, 0
mov dword [esp + 0x2c], eax
cmp eax, ebp
jb 0x416526
ja 0x416629
cmp edi, ebx
jb 0x416526
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret
movlpd qword [esp + 0x14], xmm0
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
push 1
mov al, byte [edi + eax]
mov byte [esp + 0x14], al
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi]
not eax
push eax
call fcn.00415ad0
not eax
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
mov byte [esp + 0x20], al
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 8]
not eax
push eax
call fcn.00415ad0
add esp, 0x18
not eax
add edi, 1
mov dword [esi + 8], eax
adc ebp, 0
cmp ebp, dword [esp + 0x30]
jb 0x4165c6
ja 0x416629
cmp edi, ebx
jb 0x4165c6
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x416660
Capabilities:
Generate random numbers via winapi

Disassembly:
movzx eax, word [esp + 8]
push 2
push eax
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
shr eax, 0x1f
xor al, 1
ret

Function at 0x416a50
Capabilities:
Hash data via bcrypt

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x416a7f
cmp dword [esp + 0x10], 0
ja 0x416a7f
mov ecx, dword [esp + 0xc]
jb 0x416a6a
cmp ecx, 0xffffffff
ja 0x416a7f
push 0
push ecx
push dword [esp + 0x10]
push dword [eax + 4]
call sub.bcrypt.dll_BCryptHashData
shr eax, 0x1f
xor al, 1
ret
xor al, al
ret
Function at 0x417770
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [eax + 0x38]
mov bl, byte [eax + 0x34]
test esi, esi
jle 0x4177ad
mov edx, dword [eax + 0x260]
push edi
movzx edi, bl
nop word [eax + eax]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, edi
xor edx, dword [ecx*4 + 0x453a30]
mov dword [eax + 0x260], edx
sub esi, 1
jne 0x417790
pop edi
mov ecx, dword [eax + 0x34]
mov byte [ecx + eax + 0x58], 1
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, 1
je 0x41785d
sub ecx, 1
je 0x417841
sub ecx, 1
je 0x417818
mov byte [edx + eax + 0x54], 1
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
inc edx
mov dword [eax + 0x44], edx
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov esi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
inc dword [eax + 0x44]
pop esi
pop ebx
ret
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret