joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474470
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
je 0x474537
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [0x4c7a54]
mov edx, dword [ecx + 0xd0]
lea eax, [esp + 0x14]
push eax
or edx, 0x20019
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x474544
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00474470
mov edx, dword [esp + 0x18]
add esp, 4
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x474544
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jne 0x474544
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
jne 0x4744ba
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret

Function at 0x474560
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
test ebx, ebx
je 0x474650
test edi, edi
je 0x474579
cmp word [edi], 0
jne 0x474581
test ebp, ebp
je 0x474650
mov ecx, dword [0x4c7a54]
mov edx, dword [ecx + 0xd0]
lea eax, [esp + 0x14]
push eax
or edx, 0x2001f
push edx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x474622
mov eax, dword [esp + 0x14]
test ebp, ebp
jne 0x474639
push eax
call fcn.00474470
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x474622
mov eax, 1
test byte [0x4cdb7c], al
jne 0x474600
or dword [0x4cdb7c], eax
push 0x4c173c
push 0x4af5bc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cdb78], eax
jmp 0x474605
mov eax, dword [0x4cdb78]
mov edx, dword [0x4c7a54]
mov ecx, dword [edx + 0xd0]
test ecx, ecx
je 0x47462f
test eax, eax
je 0x47462f
push 0
push ecx
push edi
push ebx
call eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x474655
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x474657
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x474620
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x474622
mov esi, 0x57
mov eax, esi
mov edx, dword [0x4c7a54]
mov dword [edx + 0x30], eax
mov edx, dword [esp + 0x10]
test esi, esi
setne al
movzx ecx, al
push ecx
push edx
call fcn.00430680
pop esi
pop ebp
pop ecx
ret 8
Function at 0x47a4f0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, 0x4cc4fc
call fcn.00404ae0
test eax, eax
jne 0x47a51d
push 0x4a4910
push 0x4a4c90
mov ecx, 0x4cc518
call fcn.00430c90
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x1c]
add eax, esi
mov ebp, esi
add esi, 4
mov dword [esp + 0x10], eax
cmp esi, eax
jbe 0x47a584
xor esi, esi
cmp dword [0x4cc514], esi
je 0x47a570
cmp dword [0x4cc504], esi
je 0x47a55e
mov edx, dword [0x4cc4fc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4cc504], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4cc514], esi
mov dword [0x4cc4fc], esi
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
mov ebp, dword [ebp]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x47a539
mov ecx, esi
add esi, 4
cmp esi, eax
ja 0x47a539
mov ebx, dword [ecx]
mov ebp, esi
add esi, ebx
cmp esi, eax
ja 0x47a539
xor ecx, ecx
test ebx, ebx
sete cl
add ecx, ebx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x47a5fb
test ebx, ebx
je 0x47a5e1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x47a651
push ebx
push ebp
push eax
call fcn.00498b20
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebp, esi
mov edx, dword [esp + 0x14]
push edi
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
lea esi, [ebp + 4]
cmp esi, dword [esp + 0x10]
jbe 0x47a580
jmp 0x47a539
cmp dword [0x4cc514], 0
je 0x47a635
cmp dword [0x4cc504], 0
je 0x47a623
mov eax, dword [0x4cc4fc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4cc504], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov dword [0x4cc514], eax
mov dword [0x4cc4fc], eax
push 0x4a4910
push 0x4a76c0
mov ecx, 0x4cc518
call fcn.00430c90
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
cmp dword [0x4cc514], esi
je 0x47a68f
cmp dword [0x4cc504], esi
je 0x47a67d
mov ecx, dword [0x4cc4fc]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4cc504], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4cc514], esi
mov dword [0x4cc4fc], esi
push 0x4a4910
push 0x4a4c5c
mov ecx, 0x4cc518
call fcn.00430c90
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x47aa80
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 0x17]
push edi
cmp eax, 3
ja case.default.0x47aa93
jmp dword [eax*4 + 0x47ac54]
mov eax, esi
call fcn.004011c0
cmp dword [0x4cb6c4], 0
jne 0x47ab5f
cmp dword [esi + 0xc], 0
jne 0x47ab5f
mov edi, dword [esp + 0x14]
cmp dword [0x4cda64], esi
jne 0x47aac8
test edi, edi
jne 0x47ab25
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x47ab21
mov dword [0x4cda64], 0
test edi, edi
je 0x47ab19
mov eax, dword [0x4cb6a0]
test eax, eax
je 0x47ab0a
mov edx, dword [esi + 0x18]
push edx
push 0x4c1b20
push eax
push 0x4cc518
xor ecx, ecx
call fcn.00431200
mov ecx, dword [esi + 0x18]
call fcn.00478860
pop edi
pop esi
pop ebx
pop ecx
ret 4
dec eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
test edi, edi
je 0x47ab50
cmp byte [esi + 0x17], 0
jne 0x47ab30
mov eax, dword [esi + 0xc]
jmp 0x47ab32
mov eax, esi
test byte [eax + 0x15], 4
je 0x47ab3f
mov eax, esi
call fcn.00431310
xor eax, eax
mov word [edi], ax
mov dword [0x4cda64], eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4cda64], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x14]
mov ebx, eax
shr ebx, 1
test edi, edi
je 0x47abe0
test eax, eax
jne 0x47ab97
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x47ab89
mov eax, esi
call fcn.00431310
xor ecx, ecx
mov word [edi], cx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x47abe0
cmp eax, 0x186a0
jae 0x47abcf
movzx eax, word [ecx]
test ax, ax
je 0x47abc1
lea ecx, [ecx]
add ecx, 2
mov word [edi], ax
movzx eax, word [ecx]
add edi, 2
test ax, ax
jne 0x47abb0
xor edx, edx
mov word [edi], dx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push eax
push ecx
push edi
call fcn.00498b20
add esp, 0xc
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0xc]
call fcn.0047aa80
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
push esi
mov ecx, 0x4cc4fc
call fcn.00404540
cmp eax, 0xffffffff
jne 0x47ac13
xor eax, eax
test esi, esi
je 0x47ac4b
xor edx, edx
mov word [esi + eax*2], dx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47ac31
xor ecx, ecx
mov word [eax], cx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov edx, dword [esi + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
push edx
push eax
call ecx
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x497276
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c6b10]
jne 0x497280
repz ret
jmp fcn.0049bcdd

Function at 0x499fc0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c6b10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004945f2
and dword [ebp - 0x14], 0
cmp dword [0x4c9cbc], 0
mov dword [ebp - 0x18], eax
jne 0x49a073
push 0x4a402c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x49a11b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a4020
push ebx
call edi
test eax, eax
je 0x49a11b
mov esi, dword [fcn.00490c70]
push eax
call esi
push 0x4a4010
push ebx
mov dword [0x4c9cbc], eax
call edi
push eax
call esi
push 0x4a3ffc
push ebx
mov dword [0x4c9cc0], eax
call edi
push eax
call esi
push 0x4a3fe0
push ebx
mov dword [0x4c9cc4], eax
call edi
push eax
call esi
mov dword [0x4c9ccc], eax
test eax, eax
je 0x49a073
push 0x4a3fc8
push ebx
call edi
push eax
call esi
mov dword [0x4c9cc8], eax
mov eax, dword [0x4c9cc8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00490c74]
cmp eax, ecx
je 0x49a0cc
cmp dword [0x4c9ccc], ecx
je 0x49a0cc
push eax
call esi
push dword [0x4c9ccc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x49a0cc
test ebx, ebx
je 0x49a0cc
call edi
test eax, eax
je 0x49a0c3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x49a0c3
test byte [ebp - 8], 1
jne 0x49a0cc
or dword [ebp + 0x10], 0x200000
jmp 0x49a0ff
mov eax, dword [0x4c9cc0]
cmp eax, dword [ebp - 0x18]
je 0x49a0ff
push eax
call esi
test eax, eax
je 0x49a0ff
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x49a0ff
mov eax, dword [0x4c9cc4]
cmp eax, dword [ebp - 0x18]
je 0x49a0ff
push eax
call esi
test eax, eax
je 0x49a0ff
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c9cbc]
call esi
test eax, eax
je 0x49a11b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x49a11d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497276
leave
ret
Function at 0x403240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0x18]
add edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [eax + edx*8]
mov dword [ebp - 8], ecx
push edi
xor eax, dword [esi]
mov dword [esi], eax
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x18]
mov eax, dword [eax + edx*8 + 4]
xor eax, dword [esi + 4]
mov dword [esi + 4], eax
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x18]
mov ebx, dword [eax + edx*8 + 8]
xor ebx, dword [esi + 8]
mov dword [esi + 8], ebx
mov eax, dword [ecx + 0x18]
mov ecx, dword [eax + edx*8 + 0xc]
mov eax, dword [ebp + 8]
movzx eax, al
xor ecx, dword [esi + 0xc]
mov edx, dword [ebp - 4]
movzx eax, byte [eax + 0x8fb890]
mov byte [ebp - 0x18], al
mov eax, ecx
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x8fb890]
mov byte [ebp - 0x17], al
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x8fb890]
mov byte [ebp - 0x16], al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x8fb890]
mov byte [ebp - 0x15], al
movzx eax, dl
movzx eax, byte [eax + 0x8fb890]
mov byte [ebp - 0x14], al
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x8fb890]
mov byte [ebp - 0x13], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x8fb890]
mov byte [ebp - 0x12], al
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x8fb890]
mov byte [ebp - 0x11], al
movzx eax, bl
movzx eax, byte [eax + 0x8fb890]
mov byte [ebp - 0x10], al
mov eax, edx
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x8fb890]
mov byte [ebp - 0xf], al
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x8fb890]
mov byte [ebp - 0xe], al
mov eax, ecx
shr eax, 0x18
shr ebx, 8
movzx eax, byte [eax + 0x8fb890]
mov byte [ebp - 0xd], al
movzx eax, cl
movzx eax, byte [eax + 0x8fb890]
mov byte [ebp - 0xc], al
movzx eax, bl
mov ebx, dword [ebp - 8]
shr edx, 0x10
movzx eax, byte [eax + 0x8fb890]
mov byte [ebp - 0xb], al
movzx eax, dl
movzx eax, byte [eax + 0x8fb890]
mov byte [ebp - 0xa], al
mov eax, dword [ebp + 8]
shr eax, 0x18
movzx eax, byte [eax + 0x8fb890]
mov byte [ebp - 9], al
movups xmm0, xmmword [ebp - 0x18]
movups xmmword [esi], xmm0
mov edi, dword [ebx + 8]
dec edi
mov dword [ebp + 8], edi
test edi, edi
jle 0x4033df
shl edi, 4
mov eax, dword [ebx + 0x18]
push esi
mov eax, dword [edi + eax]
xor dword [esi], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [edi + eax + 4]
xor dword [esi + 4], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [edi + eax + 8]
xor dword [esi + 8], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [edi + eax + 0xc]
xor dword [esi + 0xc], eax
call fcn.00403410
mov eax, dword [ebp + 8]
lea edi, [edi - 0x10]
dec eax
mov dword [ebp + 8], eax
test eax, eax
jg 0x4033a5
mov eax, dword [ebx + 0x18]
pop edi
mov eax, dword [eax]
xor dword [esi], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 4]
xor dword [esi + 4], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 8]
xor dword [esi + 8], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0xc]
xor dword [esi + 0xc], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4049b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x81fce0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x93bf44]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.00404970
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov word [esi + 0xc], 0
push dword [ecx]
lea ecx, [esi + 0x10]
call fcn.00405d70
mov dword [esi + 0x28], 0
mov eax, esi
mov dword [esi + 0x30], 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 0xc

Function at 0x408550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x93bf44]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4085f3
cmp byte [esi + 0x3d], 0
je 0x4085f3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4085a9
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x4085bb
sub eax, 1
je 0x4085bf
sub eax, 2
je 0x4085f3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c22ca
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4085dc
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.006d7bd5
add esp, 0x10
cmp edi, eax
jne 0x4085a9
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c22ca
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.005c22ca
mov esp, ebp
pop ebp
ret
Function at 0x409840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
push ebx
mov dword [ebp - 0x10], eax
push esi
mov eax, dword [eax]
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
add eax, 8
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
lea esi, [eax + 1]
push esi
call fcn.00490df2
push esi
mov esi, eax
mov dword [ebp + 8], eax
push 0
push esi
call fcn.006ce4d0
mov eax, dword [edi + 0x10]
add esp, 0x10
cmp dword [edi + 0x14], 0x10
jb 0x40988c
mov edi, dword [edi]
push eax
push edi
push esi
call fcn.006cdf50
xor edi, edi
add esp, 0xc
cmp dword [ebp - 0xc], edi
jle 0x4098e8
nop
mov eax, dword [ebp - 4]
inc bl
mov esi, dword [ebp - 4]
movzx ebx, bl
mov ecx, dword [eax + ebx*4]
mov eax, dword [ebp - 8]
add eax, ecx
movzx edx, al
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [eax + edx*4]
mov dword [esi + ebx*4], eax
mov dword [esi + edx*4], ecx
add cl, al
movzx eax, cl
mov ecx, esi
mov esi, dword [ebp + 8]
movzx eax, byte [ecx + eax*4]
xor byte [edi + esi], al
mov al, byte [edi + esi]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00405500
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x4098a0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
push esi
mov eax, dword [ecx]
mov dword [eax], ebx
mov eax, dword [ecx]
mov dword [eax + 4], edx
call fcn.004263e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40baf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x820388
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x93bf44]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
mov dword [ebp - 0x18], 0
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x8fd984
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.0040d6f0
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 1
mov ebx, dword [eax + 4]
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 2
push eax
call fcn.0040c6b0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
movzx eax, ax
mov dword [ebp + 8], eax
mov dword [ebp - 4], 3
test ebx, ebx
je 0x40bbc3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
test eax, eax
je 0x40bbc0
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], ax
jne 0x40bbe1
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.00406760
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x41281b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4128d7
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fbb40]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fbb40]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fbb40]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fbb40]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fbb40]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fbb40]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fbb40]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fbb40]
sub edi, 1
jne 0x412830
pop edi
test esi, esi
je 0x4128fa
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fbb40]
sub esi, 1
jne 0x4128e0
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x413ef0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x4140ac
cmp dword [edi + 0x18], 0
je 0x4140ac
cmp dword [edi + 0x7c], 0
je 0x413f19
call fcn.004143a0
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.00413c80
add esp, 8
test eax, eax
je 0x413f3d
pop edi
mov eax, 0xffffff99
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x84
call fcn.006d7c2d
mov esi, eax
add esp, 4
test esi, esi
je 0x413f80
push 0x4000
call fcn.006d7c2d
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x413f8c
push esi
call fcn.006d7710
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x40], 0
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], 0
mov eax, dword [edi + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x413fe7
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00412b50
test eax, eax
jne 0x413fe7
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x41400a
mov al, byte [edi + 0x39]
jmp 0x41400d
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov ecx, 0xc
xor eax, eax
cmp byte [esi + 0x6c], al
cmovne eax, ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x70], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebx, ebx
je 0x41408d
nop dword [eax]
mov al, byte [ebx]
test al, al
je 0x41408d
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x8fbb40]
xor eax, ecx
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x70], eax
movzx eax, al
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fbb40]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x414040
mov eax, dword [ebp - 0xc]
add eax, 0x1e
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret