joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000654c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1000655b
pop dword [ebp - 0x1c]
mov eax, 0x1000655b
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x781f32ff
add dword [ebp - 0x2c], 0xd633124c
mov dword [ebp - 0x28], 0x1c666e21
sub dword [ebp - 0x28], 0xea3321dc
mov dword [ebp - 0x24], 0x64e5cfbd
add dword [ebp - 0x24], 0xe7667471
mov dword [ebp - 0x20], 0x66f4b743
add dword [ebp - 0x20], 0x990b48bd
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x7eed1e84
add eax, 0x9113d22c
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xda818eba
add dword [ebp - 0x2c], 0x99f0da9c
mov dword [ebp - 0x28], 0x8a15c0ac
sub dword [ebp - 0x28], 0x48a95f37
mov dword [ebp - 0x24], 0xe9ad4c1
add dword [ebp - 0x24], 0x54d497ab
mov dword [ebp - 0x20], 0x57b616b7
add dword [ebp - 0x20], 0xa849e949
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x6d555b47
add eax, 0xa2ab9561
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3bea1
push 0
call eax
mov ecx, 0x54a5
xor edi, edi
add edi, eax
mov ebx, 0x10023800
add ebx, dword [ebp - 0x1c]
mov edx, 0xfc832b9e
sub edx, 0xfd2517d7
mov dword [ebp - 0x10], 0xc71d220c
mov esi, dword [ebx]
sub dword [ebp - 4], esi
xor esi, edx
mov dword [edi], esi
xor dword [ebp - 0x18], 0xc16aeb9
add edi, 0x6dcd419
sub edi, 0x6dcd415
add ebx, 0x924005f6
sub ebx, 0x924005f2
loop 0x1000666e
add eax, 0x14567
xor ebx, ebx
add ebx, eax
add eax, 0xe2ff6b4a
sub eax, 0xe2ff6b45
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x1000b110
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
cmp eax, 0x1a
jl 0x1000b168
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jl 0x1000b168
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 0x10
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.1000654c
push 1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4

Function at 0x1000b700
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push dword [ecx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x408b55
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], 0x9e3779b9
mov esi, edx
mov dword [ebp - 0x38], edi
lea ecx, [ebp - 8]
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
call fcn.00408a99
mov eax, dword [esi + 8]
add dword [ebp - 8], 0x23f
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [0x2d37654]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x408bdc
push 0x4010f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x2d37654]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d37698]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x2d37698], eax
mov eax, dword [0x2d376a0]
cmove eax, dword [ebp - 0x24]
mov dword [0x2d376a0], eax
mov eax, dword [ebp - 8]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x2d3769c], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, edi
mov dword [ebp - 0x14], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
dec esi
jne 0x408ba4
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408cb6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x408cf4
cmp dword [0x2d37654], 0x959
jne 0x408ce4
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00408b55
add edi, 8
dec esi
jne 0x408cc6
pop edi
pop esi
pop ebp
ret 4
Function at 0x4123f1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x432cd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00410f18
mov dword [ebp - 0x14], eax
cmp dword [0x2d38438], esi
jne 0x4124e4
push 0x800
push esi
push 0x4052ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x412471
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4125c4
push esi
push esi
push 0x4052ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4125c4
push 0x4052c4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4125c4
push eax
call ebx
push 0x4052d0
push edi
mov dword [0x2d38438], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4052e0
push edi
mov dword [0x2d3843c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4052f4
push edi
mov dword [0x2d38440], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2d38448], eax
test eax, eax
je 0x4124e1
push 0x405310
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2d38444], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x412509
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4124fc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41251e
push 4
pop eax
jmp 0x4125c6
cmp dword [ebp - 0x14], esi
je 0x41251e
push dword [0x2d38438]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x412503
mov eax, dword [0x2d38444]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41257c
cmp dword [0x2d38448], edi
je 0x41257c
push eax
call ebx
push dword [0x2d38448]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41257c
test eax, eax
je 0x41257c
call ecx
test eax, eax
je 0x412571
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x412571
test byte [ebp - 8], 1
jne 0x41257c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4125ac
mov eax, dword [0x2d3843c]
cmp eax, edi
je 0x4125a9
push eax
call ebx
test eax, eax
je 0x4125a9
call eax
mov esi, eax
test esi, esi
je 0x4125a9
mov eax, dword [0x2d38440]
cmp eax, edi
je 0x4125a9
push eax
call ebx
test eax, eax
je 0x4125a9
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x2d38438]
call ebx
test eax, eax
je 0x4125c4
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4125c6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b3ae
mov esp, ebp
pop ebp
ret
Function at 0x402bfc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402c39
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402c59
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040463c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402e64
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402ebd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d00
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d00
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402ea7
inc ebx
jmp 0x402e90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ec4
lea eax, [ebp - 8]
call fcn.004043cc
ret

Function at 0x402ecc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043cc
test esi, esi
jne 0x402f03
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004044bc
jmp 0x402f24
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d00
mov dword [esp], eax
test esi, esi
je 0x402f24
cmp dword [ebx], 0
je 0x402f24
dec esi
jmp 0x402f0b
add esp, 0x10c
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x429008], 0x8088405
inc edx
mov dword [ebx + 0x429008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4034f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x429024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403588
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403568
xor eax, eax
push ebp
push 0x403561
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 0x4035a4
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 0x403568
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x429024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x429024], ax
mov esp, ebp
pop ebp
ret
Function at 0x404248
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42d044], 0
je 0x4042a9
cmp word [0x42d218], 0xd7b2
jne 0x404271
cmp dword [0x42d220], 0
jbe 0x404271
mov eax, 0x42d214
call dword [0x42d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x429070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4042d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x429034], 0
jne 0x4042c5
push 0
push 0x429068
push 0x429070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405f90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405ff6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040463c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030e4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405fe0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ffd
lea eax, [ebp - 0x10]
call fcn.004043cc
ret

Function at 0x407fc0
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.0040488c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x407fe2
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40ab38
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ab71
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044bc
jmp 0x40ab7a
mov eax, ebx
mov edx, esi
call fcn.00404420
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ab84
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40aba5
mov al, byte [esp]
jmp 0x40aba7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c044
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c0a8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040463c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407aa0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0af
lea eax, [ebp - 0xc]
call fcn.004043cc
ret

Function at 0x4198a4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040487c
xor eax, eax
push ebp
push 0x419902
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.00419980
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x4198ea
lea eax, [ebp - 4]
call fcn.00419980
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4198ec
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419909
lea eax, [ebp - 4]
call fcn.004043cc
ret
Function at 0x419910
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040487c
xor eax, eax
push ebp
push 0x419974
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.00419980
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.004084bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41997b
lea eax, [ebp - 4]
call fcn.004043cc
ret

Function at 0x419f74
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040487c
xor eax, eax
push ebp
push 0x41a06d
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.0041964c
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040816c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0041a960
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004080e4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0041a9d4
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a074
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004043f0
ret
Function at 0x41a07c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040487c
xor eax, eax
push ebp
push 0x41a185
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.0041964c
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x41a14b
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040816c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0041a960
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004080e4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0041a9d4
jmp 0x41a15d
xor edx, edx
mov eax, ebx
call fcn.0041a960
xor edx, edx
mov eax, ebx
call fcn.0041a9d4
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a18c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004043f0
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.00420d0c
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.00420d0c
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x420b4c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x420b71
inc esi
mov eax, edi
call fcn.00420b30
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.00420ad8
inc ebx
dec esi
jne 0x420b5b
pop edi
pop esi
pop ebx
ret
Function at 0x420c00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.0040487c
xor eax, eax
push ebp
push 0x420c75
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00420b78
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.00420b30
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.00420ad8
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x420c40
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420c7c
lea eax, [ebp - 4]
call fcn.004043cc
ret
Function at 0x42162c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x421810
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x4217cc
mov eax, dword [ebp - 4]
call fcn.00422f88
cmp ebx, eax
jge 0x4217cc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.00417f24
mov edx, dword [0x419a14]
call fcn.00403838
mov esi, eax
mov eax, esi
call fcn.0041a8f4
test al, al
je 0x4217c2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x4217b6
xor eax, eax
push ebp
push 0x4217af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00421be4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.00413af8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.004049bc
mov eax, dword [ebp - 8]
call fcn.004048e4
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov al, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004219a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov dl, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4217fa
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4217ae
mov eax, dword [ebp - 4]
call fcn.00421c68
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004084bc
jmp 0x4217fa
mov eax, dword [ebp - 8]
call fcn.004043cc
jmp 0x4217fa
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.00407d5c
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x410f8c]
call fcn.0040b340
call fcn.00403e04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421817
lea eax, [ebp - 0x54]
call fcn.004043cc
ret