joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402600
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa18
mov eax, dword [0x458504]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.MSVCR120.dll_wcsncat_s]
lea eax, [ebp - 0x20c]
push 0xffffffffffffffff
push str.leidian_
push 0x104
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xffffffffffffffff
push str.history.txt
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push 0
push 0
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402761
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xa14]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0xa14], xmm0
call dword [sym.imp.MSVCR120.dll__time64]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xa0c], ax
lea eax, [ebp - 0xa0a]
push eax
call sub.MSVCR120.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0xa0c]
push dword [ebp - 0xa10]
push dword [ebp - 0xa14]
push str.time_I64dreport_id_u_r_n
push 0xffffffffffffffff
push 0x400
push eax
call dword [sym.imp.MSVCR120.dll__snwprintf_s]
lea ecx, [ebp - 0xa0c]
mov dword [ebp - 0xa18], 0
add esp, 0x2c
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402730
sub ecx, edx
lea eax, [ebp - 0xa18]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0xa0c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043d084
mov esp, ebp
pop ebp
ret
Function at 0x405100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e5f6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x458504]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4051ac
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4051ac
call fcn.00404220
mov esi, eax
jmp 0x40529c
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4051cf
call fcn.00404220
jmp 0x40528f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x4051ed
call fcn.00404220
jmp 0x40528f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40520e
mov esi, 0x8007000e
jmp 0x405291
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00404000
jmp 0x405238
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40524f
mov esi, 0x8007000e
jmp 0x405291
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40526f
call fcn.00404220
jmp 0x40528f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00404fa0
mov esi, eax
test edi, edi
je 0x40529c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4052c0
lea ecx, [ebp - 0x418]
call fcn.00404650
jmp 0x4052c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043d084
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405be0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x405bf9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405c05
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x405c00
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x405c40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x405c55
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x405c60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405c60
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40c6c0
Capabilities:
Create process on windows

Disassembly:
cmp byte [ecx + 0x26c], 0
je 0x40c6f9
cmp dword [ecx + 0x2b0], 0
jbe 0x40c6f9
add ecx, 0x2a0
cmp dword [ecx + 0x14], 8
jb 0x40c6e0
mov ecx, dword [ecx]
push 5
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
ret 0x10
add ecx, 0x64
push esi
cmp dword [ecx + 0x14], 0x10
mov esi, dword [ecx + 0x10]
jb 0x40c708
mov ecx, dword [ecx]
mov eax, 5
cmp esi, eax
cmovb eax, esi
push eax
push str.ldyun
push ecx
call fcn.0040f220
add esp, 0xc
test eax, eax
jne 0x40c74f
cmp esi, 5
jb 0x40c74f
cmp esi, 5
setne al
test eax, eax
jne 0x40c74f
push 5
push eax
push eax
push str.www.ldyunos.com
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
xor eax, eax
ret 0x10
push 5
push 0
push 0
push str.http:__www.ldmnq.com
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
xor eax, eax
ret 0x10
Function at 0x40f120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov esi, ecx
push 0x3f6
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x40f1a3
cmp dword [esi + 0x1f4], 0
je 0x40f1a3
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call sub.MSVCR120.dll_memset
lea eax, [esi + 0x1e4]
mov dword [ebp - 0x54], 0x44
add esp, 0xc
xorps xmm0, xmm0
cmp dword [eax + 0x14], 8
movdqu xmmword [ebp - 0x10], xmm0
jb 0x40f172
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40f1a3
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411ed0
Capabilities:
Create directory
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f08b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x458504]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x240], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x248], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.MSVCR120.dll_wcsncat_s]
lea eax, [ebp - 0x218]
push 0xffffffffffffffff
push str.leidian_
push 0x104
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x218]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xffffffffffffffff
push str.login_history.txt
lea eax, [ebp - 0x218]
push 0x104
push eax
call esi
add esp, 0x10
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
je 0x4120ab
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.0041ff0d
add esp, 4
mov dword [ebp - 0x238], 0
mov edi, eax
lea eax, [ebp - 0x238]
push 0
push eax
push esi
push edi
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esi - 0x21]
cmp eax, 0x3df
ja 0x4120ab
mov eax, dword [ebp - 0x238]
mov esi, edi
mov ecx, dword [ebp - 0x240]
xor ebx, ebx
push edi
mov byte [eax + edi], 0
call fcn.00401f10
cmp byte [edi], bl
je 0x412090
mov al, byte [esi]
cmp al, 0xd
jne 0x412077
inc ebx
cmp ebx, 3
jg 0x41208d
cmp byte [esi + 1], 0
je 0x412069
cmp byte [esi + 2], 0
je 0x412069
push 0x26
push 1
lea ecx, [ebp - 0x230]
call fcn.00412600
mov al, byte [esi + 1]
test al, al
je 0x412085
cmp al, 0xa
jne 0x412085
inc esi
jmp 0x412085
push eax
push 1
lea ecx, [ebp - 0x230]
call fcn.00412600
inc esi
cmp byte [esi], 0
jne 0x412042
jmp 0x412090
mov byte [esi], 0
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
mov ebx, dword [ebp - 0x244]
add esp, 4
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00401d70
cmp dword [ebp - 0x21c], 0x10
jb 0x4120d0
push dword [ebp - 0x230]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
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.0043d084
mov esp, ebp
pop ebp
ret
Function at 0x412c50
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x458504]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x514], ax
lea eax, [ebp - 0x512]
push eax
mov dword [ebp - 0x520], 0
call sub.MSVCR120.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x30c], ax
lea eax, [ebp - 0x30a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0x18
lea eax, [ebp - 0x30c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
push str.leidian_
lea eax, [ebp - 0x30c]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x30c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x102]
push eax
call sub.MSVCR120.dll_memset
push 0
call dword [sym.imp.MSVCR120.dll__time64]
mov dword [ebp - 0x51c], eax
lea eax, [ebp - 0x51c]
push eax
mov dword [ebp - 0x518], edx
call dword [sym.imp.MSVCR120.dll__localtime64]
push eax
push str._Y__m__d
lea eax, [ebp - 0x104]
push 0x7f
push eax
call dword [sym.imp.MSVCR120.dll_wcsftime]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x30c]
push eax
push str._s_s_bugreport
push 0xffffffffffffffff
lea eax, [ebp - 0x514]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll__snwprintf_s]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
add esp, 0x3c
mov word [esi], ax
cmp word [ebp - 0x514], ax
je 0x412d96
lea eax, [ebp - 0x514]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412d87
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x514]
mov ecx, esi
push eax
call fcn.00403350
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043d084
mov esp, ebp
pop ebp
ret
Function at 0x413180
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x458504]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0x854]
push edi
push eax
mov dword [ebp - 0x858], esi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebx, eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call sub.MSVCR120.dll_memset
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
add esp, 0xc
push dword [esi + 0x30]
push ebx
call edi
mov esi, eax
mov eax, dword [ebp - 0x858]
push dword [eax + 0x30]
push ebx
call edi
lea eax, [ebp - 0x814]
push eax
mov eax, dword [ebp - 0x858]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x800
lea eax, [ebp - 0x804]
push eax
mov eax, dword [ebp - 0x858]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xcc3300
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x24
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push esi
push ebx
call edi
mov eax, dword [ebp - 0x858]
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043d084
mov esp, ebp
pop ebp
ret 0x10
Function at 0x416a90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x458504]
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 + 0x40], 0
je 0x416bbd
cmp byte [edi + 0x45], 0
je 0x416bbd
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x416ae4
xor al, al
jmp 0x416bbf
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
lea esi, [edi + 0x48]
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmp ebx, 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
push esi
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x416b51
dec eax
je 0x416b55
sub eax, 2
je 0x416ba6
xor bl, bl
jmp 0x416ba8
mov byte [edi + 0x45], 0
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp ebx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, ecx
sub esi, eax
je 0x416b88
push dword [edi + 0x50]
cmp ebx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x416b4d
cmp byte [edi + 0x45], 0
je 0x416ba6
test esi, esi
lea esi, [edi + 0x48]
jne 0x416b17
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00412600
jmp 0x416b14
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x416bb9
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
jmp 0x416bbf
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.0043d084
mov esp, ebp
pop ebp
ret
Function at 0x41a4a0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [eax], 0x12345678
mov dword [eax + 4], 0x23456789
mov dword [eax + 8], 0x34567890
mov cl, byte [ebx]
test cl, cl
je 0x41a520
push esi
push edi
mov edi, dword [eax + 4]
mov esi, 0x34567890
mov edi, edi
mov edx, dword [eax]
lea ebx, [ebx + 1]
mov eax, dword [ebp + 0x10]
movsx ecx, cl
xor ecx, edx
shr edx, 8
and ecx, 0xff
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp + 0xc]
xor ecx, edx
mov edx, dword [ebp + 0x10]
mov dword [eax], ecx
movzx ecx, cl
add ecx, edi
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [eax + 4], edi
shr ecx, 0x18
xor ecx, esi
shr esi, 8
and ecx, 0xff
xor esi, dword [edx + ecx*4]
mov dword [eax + 8], esi
mov cl, byte [ebx]
test cl, cl
jne 0x41a4d0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41a530
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp dword [esi + 0x100ac], ebx
je 0x41a5e0
cmp dword [esi + 0x7c], ebx
jbe 0x41a5e0
mov eax, 0xffffff5c
lea ebx, [esi + 0xa4]
sub eax, esi
mov dword [ebp + 8], eax
movzx eax, byte [ebx]
mov ecx, dword [esi + 0x100d0]
xor eax, ecx
mov edx, dword [esi + 0x100dc]
and eax, 0xff
mov edi, dword [esi + 0x100d8]
shr ecx, 8
and edi, 0xfffd
or edi, 2
mov eax, dword [edx + eax*4]
xor eax, ecx
mov dword [esi + 0x100d0], eax
movzx eax, al
add eax, dword [esi + 0x100d4]
imul ecx, eax, 0x8088405
mov eax, dword [esi + 0x100d8]
inc ecx
mov dword [esi + 0x100d4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [edx + ecx*4]
mov dword [esi + 0x100d8], eax
mov eax, edi
xor eax, 1
imul eax, edi
shr eax, 8
xor byte [ebx], al
inc ebx
mov eax, dword [ebp + 8]
add eax, ebx
cmp eax, dword [esi + 0x7c]
jb 0x41a560
xor ebx, ebx
mov edi, dword [esi + 0x7c]
lea eax, [esi + 0xa4]
push edi
push eax
push dword [esi + 0x2c]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
mov dword [esi + 0x7c], 0
or ecx, 0xffffffff
cmp eax, edi
cmovne ebx, ecx
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, ebx
adc dword [esi + 0x100c4], 0
add dword [esi + 0x100c8], ecx
pop edi
adc dword [esi + 0x100cc], 0
mov dword [esi + 0x48], 0
pop esi
pop ebx
pop ebp
ret

Function at 0x41c1d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x41c1dc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0041c1f0
Function at 0x41de40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
lea ecx, [ecx]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp + 8], edx
cmp dword [edi + 0x6c], eax
jb 0x41decc
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call sub.MSVCR120.dll_memcpy
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x41de9f
sub eax, esi
jmp 0x41dea1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x41de90
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x41debf
sub eax, esi
jmp 0x41dec1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x41deb0
mov edx, dword [ebp + 8]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x41dff9
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x41def9
xor eax, eax
jmp 0x41df45
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x41df16
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.00418950
jmp 0x41df26
cmp eax, 2
jne 0x41df2f
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.0041c1d0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ebx + 0x30], eax
push ecx
push dword [ebx]
push dword [ebp - 4]
call sub.MSVCR120.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x41df6d
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x41df81
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x41de50
mov edx, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp edx, ecx
jae 0x41dff9
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp edx, esi
jae 0x41dfc9
sub ecx, esi
mov eax, 0x102
cmp ecx, eax
cmova ecx, eax
mov eax, dword [edi + 0x38]
push ecx
add eax, esi
mov dword [ebp + 8], ecx
push 0
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x102]
cmp edx, eax
jae 0x41dff9
mov eax, dword [edi + 0x38]
sub esi, edx
sub ecx, edx
add esi, 0x102
cmp esi, ecx
cmova esi, ecx
add eax, edx
push esi
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425b20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fdfe
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x458504]
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.0042a0b0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [edi + 0x20], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.0042a0b0
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
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 + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
mov byte [ebp - 4], 2
je 0x425c48
test dl, 0x10
jne 0x425c48
mov eax, 1
jmp 0x425c4a
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.0042ca90
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 0x42c2a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x42c2d1
lea esp, [esp]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x42c2c0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8