joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c238
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.USER32.DLL_GetMessagePos
call fcn.00412630
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00456dec
test ebx, ebx
jne 0x45c28b
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0045c174
mov ebx, eax
test ebx, ebx
je 0x45c376
cmp esi, ebx
je 0x45c2b4
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x45c2c9
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x45c301
add eax, 0xffffff5f
sub eax, 2
jb 0x45c319
dec eax
sub eax, 2
jb 0x45c32d
dec eax
sub eax, 2
jb 0x45c323
jmp 0x45c337
add eax, 0xfffffdff
sub eax, 2
jb 0x45c319
dec eax
sub eax, 2
jb 0x45c32d
dec eax
sub eax, 2
jb 0x45c323
jmp 0x45c337
mov byte [esp + 0x120], 0
jmp 0x45c33f
mov byte [esp + 0x120], 2
jmp 0x45c33f
mov byte [esp + 0x120], 1
jmp 0x45c33f
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004404b0
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004585a4
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x45c378
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x464774
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x487504]
cmp byte [eax + 0xc], 0
je 0x4648e1
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4648da
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48c7a8], 0
jne 0x4647c8
push 0x4648e8
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x4648f0
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c7a8], eax
cmp dword [0x481670], 0
jne 0x4648c3
push 0x464900
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x481670], eax
cmp dword [0x481670], 0
je 0x4648c3
push 0x46490c
mov eax, dword [0x481670]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c7ac], eax
push 0x46491c
mov eax, dword [0x481670]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c7b0], eax
push 0x464930
mov eax, dword [0x481670]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c7b4], eax
push 0x464948
mov eax, dword [0x481670]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c7b8], eax
push 0x464960
mov eax, dword [0x481670]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c7bc], eax
push 0x464974
mov eax, dword [0x481670]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c7c0], eax
push 0x46498c
mov eax, dword [0x481670]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c7c4], eax
push 0x4649a4
mov eax, dword [0x481670]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c7c8], eax
push 0x4649c0
mov eax, dword [0x481670]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c7cc], eax
push 0x4649cc
mov eax, dword [0x481670]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x48c7d0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4648e1
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x467760
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
lea ebx, [ebp + 8]
mov eax, 0x481ee4
call fcn.00470924
mov word [ebp - 0x18], 0xc
mov edx, 0x4823e8
mov ecx, dword [ebx]
mov dword [ecx], edx
push 0x10
call fcn.0046c2f0
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4677ad
mov word [ebp - 0x18], 0x30
mov edx, dword [ebp - 4]
push edx
call fcn.0046aad4
pop ecx
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 4]
jmp 0x4677b0
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x3c], ecx
mov word [ebp - 0x18], 0x18
mov eax, dword [ebx]
mov edx, dword [ebx]
add edx, 0xc
mov dword [eax + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x10
mov dword [ecx + 0x18], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ebx]
add ecx, 0x20
mov dword [eax + 0x28], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x2c
mov dword [ecx + 0x34], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x30
mov dword [edx + 0x38], eax
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d100
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
lea ebx, [ebp + 8]
mov eax, 0x48335c
call fcn.00470924
mov word [ebp - 0x18], 0xc
mov edx, 0x4836e4
mov ecx, dword [ebx]
mov dword [ecx], edx
push 0x10
call fcn.0046c2f0
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x46d14d
mov word [ebp - 0x18], 0x30
mov edx, dword [ebp - 4]
push edx
call fcn.0046aad4
pop ecx
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 4]
jmp 0x46d150
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x3c], ecx
mov word [ebp - 0x18], 0x18
mov eax, dword [ebx]
mov edx, dword [ebx]
add edx, 0xc
mov dword [eax + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x10
mov dword [ecx + 0x18], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ebx]
add ecx, 0x20
mov dword [eax + 0x28], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x2c
mov dword [ecx + 0x34], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x30
mov dword [edx + 0x38], eax
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4717ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4717c8
call fcn.0047291c
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4717e7
test bl, 1
je 0x4717e7
call fcn.004788e8
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x475598
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.00470584
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.00470614
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.00470614
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x4854f5
lea ecx, [ebp - 0x200]
push ecx
call fcn.00470584
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.00470614
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00476934
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4756a9
push esi
call fcn.00470614
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00470614
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.004701dc
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x475680
xor eax, eax
jmp 0x475730
push esi
call fcn.00470614
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00470614
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004704dc
add esp, 0xc
jmp 0x4756e9
mov edi, dword [ebx + 0x24]
push edi
call fcn.00470614
pop ecx
push eax
push esi
call fcn.00470614
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00470614
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004701fc
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4756e9
xor eax, eax
jmp 0x475730
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.00470584
add esp, 8
push 0x4854f7
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00470584
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.00470584
add esp, 8
push 0x4854f9
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00470584
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47887c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x4788a9
jmp 0x4788e0
call fcn.0047882c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00470614
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00470614
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x478964
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x485b28], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x478a3e
cmp dword [0x485b24], 0
jne 0x478a3e
cmp dword [0x485d08], 0
je 0x4789f8
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0047872c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4789de
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0047872c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4789de
lea ebx, [ebp - 0x84]
jmp 0x4789df
inc ebx
call fcn.0047891c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x478a79
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x485b2c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00470614
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x485b2f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x478a79
cmp dword [0x485b24], 0
je 0x478a58
cmp dword [0x485b24], 0xffffffff
je 0x478a79
push esi
call dword [0x485b24]
pop ecx
mov eax, dword [0x485b28]
test eax, eax
je 0x478a79
cmp dword [0x485b28], 0xffffffff
je 0x478a79
cmp byte [eax], 0
je 0x478a79
push esi
push eax
call fcn.0047887c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401040
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c54a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x43b83c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0041450f
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4010e6
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.bad_locale_name
call fcn.0041518a
push 0x438578
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.00417ee3
push edi
push esi
call fcn.004147a6
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415144
mov esp, ebp
pop ebp
ret 4
Function at 0x4019d0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43b83c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0xa
push 0x434de4
push 0
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401a13
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415144
mov esp, ebp
pop ebp
ret 0x10
push ebx
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push str.loader64.gif
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xa
push 0x434dec
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401a92
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415144
mov esp, ebp
pop ebp
ret 0x10
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push str.icon.ico
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x28]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x43dd18
push 0x67
push ebx
call esi
push 0x64
push 0x43dcb0
push 0x6d
push ebx
call esi
mov ecx, ebx
call fcn.00401b90
mov edx, dword [ebp + 0x14]
mov ecx, ebx
call fcn.00401c20
test eax, eax
je 0x401b75
push 0x6d
push ebx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
je 0x401b75
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x401b65
lea eax, [ebp - 0x24]
push eax
call edi
lea eax, [ebp - 0x24]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
jne 0x401b45
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00415144
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4034c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x43b83c]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x403555
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x403555
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea esp, [esp]
mov eax, str.Installer.exe
lea ecx, [esp + 0x34]
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x403540
test dl, dl
je 0x40353c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x403540
add ecx, 2
add eax, 2
test dl, dl
jne 0x403520
xor eax, eax
jmp 0x403545
sbb eax, eax
or eax, 1
test eax, eax
je 0x40356c
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x403510
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00415144
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
mov edi, eax
test edi, edi
je 0x4035db
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
lea eax, [esp + 0xc]
push eax
push edi
call esi
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x18]
je 0x4035ba
push 2
push edi
call ebx
mov edi, eax
test edi, edi
jne 0x403586
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00415144
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edi
call esi
push 6
push edi
call esi
push 9
push edi
call esi
push 1
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00415144
mov esp, ebp
pop ebp
ret
Function at 0x404f60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c4ae
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x43b83c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [edi], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00405250
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [edi + 0x20], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00405250
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov edx, dword [ebp + 0x14]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x68], eax
mov dword [edi + 0x58], edx
mov dword [edi + 0x60], 0
mov byte [edi + 0x64], 0
movsx eax, byte [edx + 8]
and eax, 8
shr eax, 3
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [edx + 0x18]
call fcn.004050b0
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 0x1c
Function at 0x408530
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov edx, 0x811c9dc5
mov ecx, 0
sub esi, edi
je 0x408561
lea esp, [esp]
movzx eax, byte [ecx + edi]
xor edx, eax
inc ecx
imul edx, edx, 0x1000193
cmp ecx, esi
jb 0x408550
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x40d9c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40d9cb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x40da95
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x435080]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x435080]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x435080]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x435080]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x435080]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x435080]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x435080]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x435080]
add edx, 8
sub esi, 8
dec edi
jne 0x40d9e0
pop edi
test esi, esi
je 0x40daba
lea esp, [esp]
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x435080]
lea edx, [edx + 1]
dec esi
jne 0x40daa0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x40dad0
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
and eax, 0xff
shr esi, 8
mov eax, dword [eax*4 + 0x435080]
xor eax, esi
movzx ecx, al
add ecx, dword [edi + 4]
mov dword [edi], eax
mov eax, dword [edi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x435080]
mov dword [edi + 8], eax
pop edi
pop esi
ret

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

Disassembly:
push ebx
push esi
push edi
mov bl, dl
mov edx, ecx
mov edi, dword [edx + 8]
mov ecx, dword [edx]
mov esi, edi
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
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x435080]
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
and eax, 0xff
shr edi, 8
xor edi, dword [eax*4 + 0x435080]
mov al, bl
mov dword [edx + 8], edi
pop edi
pop esi
pop ebx
ret