joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d1d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
mov eax, dword [0x4e5070]
xor eax, esp
mov dword [esp + 0x24c], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x14c]
mov esi, ecx
push 0
push eax
call fcn.00498020
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x40d20d
mov esi, dword [esi]
push esi
lea eax, [esp + 0x14c]
push 0x104
push eax
call fcn.0049cf5d
push str..
lea eax, [esp + 0x158]
push 0x104
push eax
call fcn.0049cfb7
add esp, 0x18
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d281
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop word [eax + eax]
cmp byte [esp + 0x34], 0x2e
je 0x40d26e
test byte [esp + 8], 4
je 0x40d29a
lea eax, [esp + 8]
push eax
push esi
call edi
test eax, eax
jne 0x40d260
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.00493122
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x254]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00493122
mov esp, ebp
pop ebp
ret

Function at 0x40dd30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x4e5070]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
mov esi, dword [ebp + 8]
push edx
mov edx, ecx
mov dword [esp + 0x20], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0040d460
add esp, 4
lea edx, [esp + 8]
mov ecx, esi
call fcn.0040d530
mov ecx, dword [esp + 0x64]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00493122
mov esp, ebp
pop ebp
ret 4

Function at 0x40ddd0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4e5070]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push edi
mov edi, dword [ebp + 0x10]
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40de4e
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
push edi
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40de4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
je 0x40de4e
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00493122
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00493122
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e310
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push ecx
mov esi, edx
call fcn.0040e280
add esp, 4
test al, al
jne 0x40e32b
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, 0xf003f
call fcn.0040e170
test al, al
mov dword [ebp - 4], 0
mov ecx, 0xf013f
cmovne edi, ecx
cmp dword [esi + 0x14], 8
jb 0x40e34f
mov esi, dword [esi]
lea eax, [ebp - 4]
push eax
push edi
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
test eax, eax
je 0x40e36e
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40e379
mov eax, dword [eax]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x40e3a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], edx
mov bl, 1
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 8], esi
lea edi, [esi + 1]
mov dword [ebp - 0xc], esi
cmp dword [0x4ebdc8], esi
jne 0x40e3e8
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ebdc8], eax
test eax, eax
je 0x40e3f9
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4ebdc8]
cmp dword [ebp - 0xc], edi
mov eax, 0x101
mov ecx, dword [ebp - 0x10]
cmove edi, eax
lea eax, [ebp - 8]
push eax
push edi
push 0
call fcn.004034f0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e42a
xor bl, bl
jmp 0x40e4b9
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
mov ecx, edi
call fcn.004034f0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40e450
xor bl, bl
jmp 0x40e4b9
push dword [ebp - 4]
call fcn.0049ca94
push dword [ebp - 4]
mov esi, eax
push 0
push esi
call fcn.00498020
add esp, 0x10
lea eax, [ebp - 4]
mov ecx, edi
push eax
push esi
push 0
push 0
call fcn.004034f0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40e48a
xor bl, bl
jmp 0x40e4b9
cmp word [esi], 0
jne 0x40e494
xor ecx, ecx
jmp 0x40e4af
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e4a0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.004036e0
mov eax, dword [ebp - 8]
test eax, eax
je 0x40e4c7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40e4d4
push esi
call fcn.0049b90f
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e4e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push ecx
mov esi, edx
call fcn.0040e280
add esp, 4
test al, al
jne 0x40e503
push ecx
mov edx, esi
call fcn.0040e1d0
add esp, 4
cmp dword [0x4ebdc8], 0
mov bl, 1
mov dword [ebp - 4], 0
mov edi, 0x20006
mov dword [ebp - 8], 0
jne 0x40e541
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ebdc8], eax
test eax, eax
je 0x40e552
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4ebdc8]
cmp dword [ebp - 8], 1
mov eax, 0x20106
mov ecx, esi
cmove edi, eax
lea eax, [ebp - 4]
push eax
push edi
push 0
call fcn.004034f0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e580
xor bl, bl
jmp 0x40e5b6
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
add eax, eax
push eax
call fcn.004034f0
mov ecx, dword [ebp + 8]
push eax
push 1
push 0
call fcn.004034f0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e5ad
xor bl, bl
jmp 0x40e5b6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40e5c4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e8b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4e5070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], esi
cmp dword [0x4e91c0], 0
push edi
jne 0x40ea0a
push 0x208
lea eax, [ebp - 0x230]
mov dword [ebp - 0x234], 0
push 0
push eax
mov dword [ebp - 0x238], 0x34
call fcn.00498020
add esp, 0xc
lea eax, [ebp - 0x230]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40e9c2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004933e1
add esp, 4
mov edi, eax
lea eax, [ebp - 0x230]
push edi
push ebx
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40e9b5
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x234]
push eax
push 0x4c9500
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40e9b5
mov ecx, dword [ebp - 0x234]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x24]
push str._d._d._d._d
push eax
call fcn.0040f1d0
add esp, 0x18
push 2
push edi
call fcn.004933d3
add esp, 8
jmp 0x40e9db
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x24]
push str._d._d._d._d
push eax
call fcn.0040f1d0
add esp, 0x18
cmp byte [ebp - 0x24], 0
jne 0x40e9e5
xor ecx, ecx
jmp 0x40e9f9
lea ecx, [ebp - 0x24]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e9f0
sub ecx, edx
push ecx
lea eax, [ebp - 0x24]
mov ecx, 0x4e91b0
push eax
call fcn.00403a90
mov ecx, esi
push 0xffffffffffffffff
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x4e91b0
mov byte [esi], 0
call fcn.00403b90
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493122
mov esp, ebp
pop ebp
ret
Function at 0x40ec60
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
push 0x288
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], 0x288
call fcn.0049ca94
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
je 0x40ed2e
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [esp + 0x10]
push eax
push edi
call esi
cmp eax, 0x6f
jne 0x40ecc5
push edi
call fcn.0049b90f
add esp, 4
push dword [esp + 0x10]
call fcn.0049ca94
mov edi, eax
mov dword [esp + 0x18], eax
add esp, 4
test edi, edi
je 0x40ed2e
lea eax, [esp + 0x10]
push eax
push edi
call esi
test eax, eax
jne 0x40ed2e
mov esi, edi
test edi, edi
je 0x40ed2e
mov edi, dword [esp + 0x18]
nop dword [eax + eax]
mov eax, dword [esi + 0x198]
mov ebx, dword [esi + 0x194]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x1b0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40ed24
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040f1f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ecx
mov esi, dword [esi]
test esi, esi
jne 0x40ece0
mov edi, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x40ed43
push edi
call fcn.0049b90f
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ed50
Capabilities:
Check for time delay via gettickcount
Resolve dns

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, 0xfa0
jae 0x40eda1
nop dword [eax + eax]
push str.www.baidu.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40eda7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x64
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
sub eax, ebx
cmp eax, 0xfa0
jb 0x40ed70
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [eax + 0xc]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov eax, dword [eax]
ret
Function at 0x40f850
Capabilities:
Check for time delay via gettickcount
Hide graphical window
Log keystrokes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi], 0
je 0x40f9f2
mov eax, dword [esi + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
test eax, eax
je 0x40f883
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov edi, dword [eax]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40f8db
push str.restart
push eax
call fcn.0049594d
add esp, 8
test eax, eax
je 0x40f8db
push edi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40f8d0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40f8c9
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x40f974
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40f974
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov ebx, eax
push 1
push esi
push ebx
call edi
mov esi, dword [ebp - 4]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [ebp - 4]
call esi
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push dword [ebp + 0xc]
push ebx
call edi
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40f988
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebx + 3]
cmp ecx, eax
jae 0x40f969
test edi, edi
je 0x40f9f2
cmp byte [ebp + 0xc], 0
je 0x40f9f2
push edi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40f9c6
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40f9bf
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0xc], 0
je 0x40f9e7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xc]
mov dword [ecx + 4], eax
add dword [esi + 4], 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x410ef0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b49d2
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4e5070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x4ca35c
mov dword [edi + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
sub esp, 8
mov dword [ebp - 4], 0
lea esi, [edi + 4]
mov dword [ebp - 0x10], 1
push esi
call fcn.00412510
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00412750
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x48], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x3d], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x4ebdf0]
mov dword [esi + 0x40], eax
mov eax, dword [0x4ebdf4]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x44], eax
mov dword [esi + 0x38], 0
mov eax, dword [ebp + 0xc]
push ecx
or eax, 2
mov byte [ebp - 4], 2
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00412430
test eax, eax
jne 0x411031
mov eax, dword [edi]
push 0
mov ecx, dword [eax + 4]
add ecx, edi
mov edx, dword [ecx + 0xc]
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
cmovne eax, edx
push eax
call fcn.004104b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x412120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4a88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e5070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x412270
cmp byte [edi + 0x3d], 0
je 0x412270
push 0xffffffffffffffff
call fcn.00411600
cmp eax, 0xffffffff
sete al
test al, al
je 0x412179
xor al, al
jmp 0x412272
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
nop
mov eax, dword [edi + 0x38]
lea ebx, [ebp - 0x28]
cmp ecx, 0x10
lea esi, [ebp - 0x28]
cmovae ebx, edx
cmovae esi, edx
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
cmp eax, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x4121d5
mov dword [ebp - 0x2c], esi
xor eax, eax
jmp 0x4121f6
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
push eax
push esi
lea eax, [edi + 0x40]
push eax
mov eax, dword [ebp - 0x30]
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub eax, 0
je 0x412209
sub eax, 1
je 0x41220d
sub eax, 2
je 0x41225a
xor bl, bl
jmp 0x41225c
mov byte [edi + 0x3d], 0
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub esi, eax
je 0x41223c
push dword [edi + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0049dad6
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov edx, dword [ebp - 0x28]
cmp esi, eax
jne 0x412205
cmp byte [edi + 0x3d], 0
je 0x41225a
test esi, esi
jne 0x4121b0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00412000
jmp 0x4121a9
mov bl, 1
cmp ecx, 0x10
jb 0x41226c
inc ecx
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403e20
mov al, bl
jmp 0x412272
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493122
mov esp, ebp
pop ebp
ret
Function at 0x412750
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3976
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e5070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00493133
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00491e96
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4158d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4158db
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x415997
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c5ec0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c5ec0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c5ec0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c5ec0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c5ec0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c5ec0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c5ec0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c5ec0]
sub edi, 1
jne 0x4158f0
pop edi
test esi, esi
je 0x4159ba
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c5ec0]
sub esi, 1
jne 0x4159a0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4159d0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x4c5ec0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c5ec0]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x415a20
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
mov bl, dl
mov edx, ecx
push edi
mov edi, dword [edx + 8]
mov esi, edi
mov ecx, dword [edx]
and esi, 0xfffd
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor bl, al
movsx eax, bl
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x4c5ec0]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [eax*4 + 0x4c5ec0]
mov al, bl
mov dword [edx + 8], edi
pop edi
pop esi
pop ebx
ret