joyce8/EMBER2024-capa huggingface dataset:
Function at 0x70013e5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x58], 0x4f0053
mov dword [ebp - 0x54], 0x540046
mov dword [ebp - 0x50], 0x410057
mov dword [ebp - 0x4c], 0x450052
mov dword [ebp - 0x48], 0x4d005c
mov dword [ebp - 0x44], 0x630069
mov dword [ebp - 0x40], 0x6f0072
mov dword [ebp - 0x3c], 0x6f0073
mov dword [ebp - 0x38], 0x740066
mov dword [ebp - 0x34], 0x43005c
mov dword [ebp - 0x30], 0x790072
mov dword [ebp - 0x2c], 0x740070
mov dword [ebp - 0x28], 0x67006f
mov dword [ebp - 0x24], 0x610072
mov dword [ebp - 0x20], 0x680070
mov word [ebp - 0x1c], 0x79
mov word [ebp - 0x1a], 0
mov dword [ebp - 0x18], 0x61004d
mov dword [ebp - 0x14], 0x680063
mov dword [ebp - 0x10], 0x6e0069
mov dword [ebp - 0xc], 0x470065
mov dword [ebp - 8], 0x690075
mov word [ebp - 4], 0x64
mov word [ebp - 2], 0
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x58]
push edx
push 0x70038ec
call fcn.07001362
add esp, 0xc
test eax, eax
je 0x70014b5
push section..data
push 0
push eax
call fcn.070015b5
leave
ret

Function at 0x700156c
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
mov dword [ebp - 4], 0
lea ebx, [ebp - 4]
push 0
push 0
push ebx
push 0
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.crypt32.dll_CryptStringToBinaryA]
test eax, eax
je 0x70015b0
mov eax, dword [ebx]
test eax, eax
je 0x70015b0
push 0
push 0
push ebx
push dword [ebp + 8]
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.crypt32.dll_CryptStringToBinaryA]
pop ebx
leave
ret 4
Function at 0x7001e45
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pushal
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
inc bl
mov dl, byte [edi + ebx]
add al, dl
mov cl, byte [edi + eax]
mov byte [edi + ebx], cl
mov byte [edi + eax], dl
add cl, dl
mov cl, byte [edi + ecx]
xor byte [esi], cl
inc esi
dec dword [ebp + 0x10]
jne 0x7001e57
popal
leave
ret 0xc
Function at 0x40344f
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x4034cb
push 9
call esi
test bl, al
je 0x4034cb
push 0x11
call esi
test bl, al
jne 0x4034cb
push 0x10
call esi
test bl, al
jne 0x4034cb
push 0x12
call esi
test bl, al
jne 0x4034cb
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x4034cb
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x4034cb
xor eax, eax
jmp 0x40354d
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x4034f4
push 0x11
call esi
test bl, al
jne 0x4034ec
push 0x10
call esi
test bl, al
jne 0x4034ec
push 0x12
call esi
test bl, al
je 0x4034f4
push 1
push ebp
call fcn.00403408
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40350a
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40354a
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40354a
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40354a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40354a
dec esi
push esi
push dword [0x40ff60]
call fcn.00406f38
test eax, eax
je 0x40354a
mov eax, dword [eax + 8]
jmp 0x40354c
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x4043d5
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x404424
push dword [esp + 0x10]
push 0x404353
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x40fdc0]
cmp esi, ebx
je 0x404478
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40441c
cmp byte [esi + 0x10], bl
je 0x40441c
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x4043f9
jmp 0x404478
mov esi, dword [0x40fdc0]
cmp esi, ebx
je 0x404478
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x404471
cmp byte [esi + 0x11], bl
je 0x40444e
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x404464
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x40fdc0
call fcn.0040760d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x40442f
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x405e70
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x40fe0c], eax
cmp eax, edi
je 0x405ea3
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40fe10], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x40fe08], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x405ee1
cmp dword [ebp - 0xc], 1
je 0x405ef2
cmp dword [ebp - 0xc], 2
jne 0x405ee1
cmp dword [ebp - 0x18], 5
jb 0x405ef2
jne 0x405ee1
cmp dword [ebp - 0x14], edi
jne 0x405ee1
mov dword [0x40fe08], edi
cmp dword [0x40fe08], edi
je 0x405ef8
call fcn.00405db7
test eax, eax
jne 0x405ef8
mov dword [0x40fe08], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x406997
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x4069b3
inc eax
jmp 0x4069b5
xor eax, eax
push fcn.004068f2
push 0x10
push 0x20
mov word [0x41007c], ax
call fcn.00406f98
mov dword [0x40ff1c], eax
movsx eax, word [0x41007c]
add esp, 0x190
ret
Function at 0x4069dc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push ebx
xor ebx, ebx
push esi
xor esi, esi
inc ebx
mov dword [ebp - 4], esi
cmp dword [edi + 0x14], ebx
jne 0x406a34
push esi
push esi
push dword [edi]
call dword [sym.imp.WSOCK32.DLL_accept]
mov esi, eax
cmp esi, 0xffffffff
je 0x406b32
lea eax, [edi + 0x1c]
push 0x18
push eax
call fcn.004075e0
pop ecx
mov dword [eax], ebx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
pop ecx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 4], ebx
mov dword [0x410084], ecx
mov dword [0x410080], eax
jmp 0x406b32
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x800
lea eax, [ebp - 0x81c]
push eax
push dword [edi]
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.WSOCK32.DLL_recvfrom]
mov dword [ebp - 8], eax
cmp eax, esi
jle 0x406b32
push dword [ebp - 0x1a]
lea ebx, [edi + 0x1c]
mov esi, dword [ebx]
mov dword [ebp - 4], 2
call dword [sym.imp.WSOCK32.DLL_ntohs]
movzx eax, ax
jmp 0x406a8c
cmp dword [esi + 0x10], eax
jne 0x406a8a
mov ecx, dword [esi + 0xc]
cmp ecx, dword [ebp - 0x18]
je 0x406aee
mov esi, dword [esi]
test esi, esi
jne 0x406a7d
push 0x28
push ebx
call fcn.004075e0
pop ecx
mov esi, eax
pop ecx
mov dword [esi], 2
push dword [ebp - 0x1a]
call dword [sym.imp.WSOCK32.DLL_ntohs]
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov eax, dword [esi + 0x14]
mov ebx, dword [ebp - 8]
test eax, eax
jne 0x406af3
push ebx
push eax
push dword [0x40fd74]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
lea ecx, [ebp - 0x81c]
push ecx
push eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x406b24
add esi, 8
jmp 0x406aba
mov ecx, dword [esi + 0x18]
add ecx, ebx
push ecx
push eax
push 8
push dword [0x40fd74]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push ebx
lea ecx, [ebp - 0x81c]
push ecx
mov ecx, dword [esi + 0x18]
add ecx, eax
push ecx
mov dword [esi + 0x14], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x18], ebx
mov dword [0x410080], esi
mov eax, dword [edi + 0x18]
mov dword [0x410084], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x406c54
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi], 1
jne 0x406c77
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_recv]
mov edi, eax
jmp 0x406cb8
cmp dword [esi + 0x14], edi
je 0x406cb8
mov eax, dword [esi + 0x18]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jle 0x406c88
mov edi, eax
push edi
push dword [esi + 0x1c]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0x18], edi
mov eax, dword [esi + 0x18]
add dword [esi + 0x1c], edi
add esp, 0xc
test eax, eax
jne 0x406cb8
push dword [esi + 0x14]
push eax
push dword [0x40fd74]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi + 0x14], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x406ce3
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
push dword [0x40ff1c]
call fcn.00406eb3
mov esi, eax
test esi, esi
je 0x406da7
cmp dword [ebp + 0xc], 0xffff
ja 0x406da7
push ebx
push 0
push dword [ebp + 0x10]
push 2
call dword [sym.imp.WSOCK32.DLL_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406da6
push edi
lea eax, [ebp - 8]
push eax
push 0x8004667e
push ebx
mov dword [ebp - 8], 1
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
cmp eax, 0xffffffff
jle 0x406d9e
push 2
pop eax
push dword [ebp + 0xc]
lea edi, [esi + 4]
mov word [edi], ax
call dword [sym.imp.WSOCK32.DLL_htons]
and dword [esi + 8], 0
push 0x10
push edi
push ebx
mov word [esi + 6], ax
call dword [sym.imp.WSOCK32.DLL_bind]
test eax, eax
jne 0x406d9e
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x406d81
push 0x64
push ebx
call dword [sym.imp.WSOCK32.DLL_listen]
test eax, eax
jne 0x406d9e
mov eax, dword [ebp + 8]
mov dword [esi], ebx
mov dword [esi + 0x14], edi
cmp eax, 0xffffffff
jne 0x406d96
mov dword [ebp - 4], esi
mov dword [esi + 0x18], esi
jmp 0x406da5
mov dword [ebp - 4], ebx
mov dword [esi + 0x18], eax
jmp 0x406da5
push ebx
call dword [sym.imp.WSOCK32.DLL_closesocket]
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 0xc

Function at 0x406dc1
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
jne 0x406ddf
lea eax, [ebp + 0xc]
push eax
push 0x4004667f
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
cmp dword [ebp + 0xc], esi
je 0x406e29
push 2
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406e22
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
cmp eax, 0x2745
je 0x406e26
cmp eax, 0x2746
je 0x406e26
cmp eax, 0x2749
je 0x406e26
cmp eax, 0x274a
je 0x406e26
xor esi, esi
jmp 0x406e29
test esi, esi
jne 0x406e29
push 0xfffffffffffffffe
pop esi
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x406e30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 1
jne 0x406e52
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_send]
jmp 0x406e91
push 2
pop eax
mov word [ebp - 0x10], ax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
movzx eax, word [esi + 8]
push eax
call dword [sym.imp.WSOCK32.DLL_htons]
mov word [ebp - 0xe], ax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x406e79
mov eax, dword [eax]
jmp 0x406e7c
mov eax, dword [esi + 0x10]
push 0x10
lea ecx, [ebp - 0x10]
push ecx
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WSOCK32.DLL_sendto]
pop esi
leave
ret 0xc
Function at 0x18ced60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1398
call fcn.018f7e40
mov eax, dword [0x456900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0x1388
lea ecx, [ebp - 0x138c]
push 0
push ecx
mov dword [ebp - 0x1394], eax
call fcn.018f7cb0
lea edx, [ebp - 0x138c]
push 0x440318
push edx
call fcn.018f7d50
lea eax, [ebp - 0x138c]
push 0x440280
push eax
call fcn.018f7d50
lea ecx, [ebp - 0x138c]
push 0x440218
push ecx
call fcn.018f7d50
lea edx, [ebp - 0x138c]
push edx
call fcn.018ede80
lea eax, [ebp - 0x138c]
push eax
call fcn.018ede80
add esp, 0x2c
lea ecx, [ebx + 1]
push ecx
push 0x40
call dword [0x440018]
lea edx, [ebp - 0x138c]
mov edi, eax
push edx
mov dword [ebp - 0x1390], edi
call fcn.018ede80
lea eax, [ebp - 0x138c]
push eax
call fcn.018ede80
lea ecx, [ebp - 0x138c]
push ecx
call fcn.018ede80
lea edx, [ebp - 0x138c]
push edx
mov byte [ebx + edi], 0
call fcn.018ede80
lea eax, [ebp - 0x138c]
push eax
call fcn.018ede80
add esp, 0x14
xor esi, esi
test ebx, ebx
je 0x18ceeb8
mov eax, dword [ebp + 8]
sub eax, edi
mov dword [ebp - 0x1398], eax
nop
lea ecx, [ebp - 0x138c]
push ecx
call fcn.018ede80
lea edx, [ebp - 0x138c]
push edx
call fcn.018ede80
mov eax, dword [ebp - 0x1394]
push eax
add edi, esi
call fcn.018ede80
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
mov eax, dword [ebp - 0x1394]
mov cl, byte [edx + eax]
mov edx, dword [ebp - 0x1398]
xor cl, byte [edx + edi]
lea eax, [ebp - 0x138c]
push eax
mov byte [edi], cl
call fcn.018ede80
lea ecx, [ebp - 0x138c]
push ecx
call fcn.018ede80
mov edi, dword [ebp - 0x1390]
inc esi
add esp, 0x14
cmp esi, ebx
jb 0x18cee50
lea edx, [ebp - 0x138c]
push edx
call fcn.018ede80
lea eax, [ebp - 0x138c]
push eax
call fcn.018ede80
lea ecx, [ebp - 0x138c]
push ecx
call fcn.018ede80
push 0x1388
lea edx, [ebp - 0x138c]
push 0
push edx
call fcn.018f7cb0
mov ecx, dword [ebp - 4]
add esp, 0x18
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.018f7d2a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x18d42f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x18d42fe
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x18d43dd
mov esi, edx
shr esi, 3
push edi
jmp 0x18d4320
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446800]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446800]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446800]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446800]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446800]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446800]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446800]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446800]
add ecx, 8
sub edx, 8
dec esi
jne 0x18d4320
pop edi
test edx, edx
je 0x18d43fa
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x446800]
inc ecx
dec edx
jne 0x18d43e1
not eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x446800]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x446800]
mov dword [edx + 8], ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov al, byte [ebp + 0xc]
shr edx, 8
xor al, dl
mov edx, dword [esi]
push edi
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x446800]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x446800]
pop edi
mov dword [esi + 8], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x18e64a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ea1b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x456900]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], 0x4479c4
call fcn.018f7a29
push 4
mov dword [ebp - 4], 0
call fcn.018f89b1
mov edi, eax
add esp, 4
test edi, edi
je 0x18e6520
call fcn.018f76e7
mov dword [edi], eax
call fcn.018f74a6
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.018f73db
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x18e6516
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.018f7403
jmp 0x18e6522
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
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 0x18e7090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43eb38
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x456900]
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
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x18e71be
cmp byte [edi + 0x49], bl
je 0x18e71be
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x18e71b2
push 8
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.018f7cb0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x1c], 8
jae 0x18e7112
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x18e712a
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x18e7153
dec eax
je 0x18e7157
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x18e71ad
jmp 0x18e71b9
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x18e7167
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x18e7190
cmp ebx, 0x10
jae 0x18e7176
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.018fb597
add esp, 0x10
cmp esi, eax
jne 0x18e71aa
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x18e71b6
test esi, esi
jne 0x18e711e
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.018d8c10
jmp 0x18e7118
lea ecx, [ebp - 0x2c]
call fcn.018d2ce0
xor al, al
jmp 0x18e71c0
lea ecx, [ebp - 0x2c]
call fcn.018d2ce0
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.018f7d2a
mov esp, ebp
pop ebp
ret
Function at 0x18f41d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x18f41de
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x18f42bd
mov esi, edx
shr esi, 3
push edi
jmp 0x18f4200
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4483b8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4483b8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4483b8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4483b8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4483b8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4483b8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4483b8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4483b8]
add ecx, 8
sub edx, 8
dec esi
jne 0x18f4200
pop edi
test edx, edx
je 0x18f42da
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4483b8]
inc ecx
dec edx
jne 0x18f42c1
not eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4483b8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4483b8]
mov dword [edx + 8], ecx
pop ebp
ret