joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4731d8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4731ef
add esp, 0xfffffff0
call fcn.00404900
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004223e8
mov eax, dword [0x4ee094]
cmp word [eax + 2], 0
jne 0x473217
mov eax, dword [0x4ee094]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00474df0
mov eax, dword [0x4ee258]
cmp word [eax + 2], 0
jne 0x473231
mov eax, dword [0x4ee258]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00474ffc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x418a5c]
call fcn.004045ac
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x418a5c]
call fcn.004045ac
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x418a5c]
call fcn.004045ac
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x427094]
call fcn.0042f554
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4733e8
mov eax, dword [0x4ede90]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042f928
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4756d0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4ede90]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ff90
test eax, eax
je 0x473338
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040b698
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ffc4
test eax, eax
je 0x47334c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405768
mov byte [ebx + 0xd4], 0
push ebx
push 0x474900
call fcn.00423578
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4edb8c]
cmp byte [eax], 0
jne 0x47339d
mov eax, ebx
call fcn.0047352c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004758a8
mov eax, ebx
call fcn.0047640c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4733dd
call fcn.00404958
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4737ac
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x47384b
cmp dword [ebx + 0x94], 0
jne 0x473845
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x473734
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x473845
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x47380b
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x473845
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041b12c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47381a
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x473a64
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4f3ce0]
cmp dword [eax + 0x30], 0
je 0x473bc1
test bl, bl
jne 0x473b12
cmp dword [esi + 0x9c], 0
jne 0x473b07
mov eax, esi
call fcn.00476288
push eax
push 0x473990
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x473ad8
mov eax, dword [0x4f3ce0]
call fcn.00476968
test al, al
je 0x473ad8
mov eax, dword [0x4f3d04]
call fcn.00406a94
mov edi, eax
cmp edi, 0
jl 0x473ad8
push 0
mov eax, dword [0x4f3d04]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x473ac2
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x473b07
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041b12c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x473ae7
inc dword [esi + 0x9c]
jmp 0x473bc1
cmp dword [esi + 0x9c], 0
jle 0x473bc1
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x473bc1
cmp dword [esi + 0x44], 0
je 0x473b6d
mov eax, dword [0x4f3ce0]
call fcn.00476968
test al, al
je 0x473b6d
mov eax, dword [0x4f3d04]
call fcn.00406a94
mov edi, eax
cmp edi, 0
jl 0x473b6d
push 5
mov eax, dword [0x4f3d04]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x473b57
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x473b9c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041b12c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x473b7c
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x4f3d04
mov ecx, 1
mov edx, dword [0x473970]
call fcn.00406c48
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x474654
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4746be
mov eax, ebx
call fcn.00476968
test al, al
jne 0x4746be
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004055e8
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x4746ab
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4746cb
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040554c
jmp 0x4746cb
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040554c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x475a8c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x475afa
mov eax, esi
call fcn.0045f5b0
test al, al
je 0x475afa
mov eax, dword [ebx + 0x84]
call fcn.0045f200
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x475afa
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x475aee
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045f200
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004570a0
jmp 0x475afa
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004758c8
pop esi
pop ebx
ret
Function at 0x476f68
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x408934]
call fcn.00406158
xor eax, eax
push ebp
push 0x477109
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e7a40], 0
jne 0x476fc3
mov ecx, dword [0x4edbc4]
mov dl, 1
mov eax, dword [0x408f6c]
call fcn.0040f018
call fcn.00404e50
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403bd0
mov eax, ebx
call fcn.00405ea0
mov dword [ebp - 0x24], eax
mov esi, 0x477118
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040736c
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405eb0
test eax, eax
jle 0x4770ac
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x477098
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405768
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x47703e
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.0040579c
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x477054
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.0040579c
mov eax, dword [ebp - 0x54]
call fcn.004059a4
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405768
mov eax, dword [ebp - 0x58]
call fcn.004059a4
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x47709a
xor eax, eax
test al, al
je 0x4770a5
mov ebx, 0x15
jmp 0x4770b1
mov ebx, 0x10
jmp 0x4770b1
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4e7a40]
call fcn.00476de8
mov eax, dword [ebp - 4]
call fcn.00476de8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00407384
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477110
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.0040551c
lea eax, [ebp - 0xc]
mov edx, dword [0x408934]
call fcn.00406228
ret
Function at 0x4823e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x482551
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48252c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.004056e0
lea eax, [ebp - 0x118]
mov edx, 0x482568
call fcn.004057e0
mov eax, dword [ebp - 0x118]
call fcn.004059a4
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x48249e
lea eax, [ebp - 0x111]
call fcn.0040b644
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.004055e8
jmp 0x4824a5
mov eax, esi
call fcn.004054f8
cmp bl, 0x61
jae 0x4824c6
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040fe5c
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.0040554c
jmp 0x4824e0
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040fdc8
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.0040554c
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x482574
call fcn.0040c110
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.0040554c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482533
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4a39e8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4a3a42
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004a39d8
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004a1630
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004a1148
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3a49
lea eax, [ebp - 4]
call fcn.004054f8
ret
Function at 0x4abcf8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405ea0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4abd11
test al, 0x10
je 0x4abd15
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4abd1c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push esp
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00405e74
add esp, 0x20c
pop ebx
ret

Function at 0x4abd60
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00405d1c
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00405ea0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4abda5
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00405e14
jmp 0x4abdbe
mov edx, ebx
dec edx
mov eax, esi
call fcn.004060f4
push ebx
mov eax, dword [esi]
call fcn.00405ea0
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push esi
push edi
push ebx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov eax, 0xffffffff
mov ecx, edi
shr ecx, 2
jecxz 0x4b199b
mov edx, dword [esi]
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x4e953c]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x4e953c]
shr edx, 0x10
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x4e953c]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x4e953c]
add esi, 4
loop 0x4b1959
mov ecx, edi
and ecx, 3
jecxz 0x4b19b3
mov bl, al
xor bl, byte [esi]
shr eax, 8
inc esi
xor eax, dword [ebx*4 + 0x4e953c]
loop 0x4b19a2
xor eax, 0xffffffff
pop ebx
pop edi
pop esi
ret
Function at 0x4c71bc
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.00405994
xor eax, eax
push ebp
push 0x4c721a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.004c7298
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x4c7202
lea eax, [ebp - 4]
call fcn.004c7298
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4c7204
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7221
lea eax, [ebp - 4]
call fcn.004054f8
ret

Function at 0x4c7228
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.00405994
xor eax, eax
push ebp
push 0x4c728c
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.004c7298
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040b884
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7293
lea eax, [ebp - 4]
call fcn.004054f8
ret

Function at 0x4c784c
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.00405994
xor eax, eax
push ebp
push 0x4c7945
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [esi + 4]
mov word [ebx + 4], ax
movzx eax, word [esi + 6]
mov word [ebx + 6], ax
movzx eax, word [esi + 8]
mov word [ebx + 8], ax
movzx eax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.004c6f4c
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
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x22], ax
movzx eax, word [esi + 0x22]
mov word [ebx + 0x24], ax
movzx eax, 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.0040b428
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c821c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040b2e8
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004c8294
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 0x4c794c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040551c
ret
Function at 0x4c7954
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.00405994
xor eax, eax
push ebp
push 0x4c7a5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
movzx eax, word [esi + 4]
mov word [ebx + 6], ax
movzx eax, word [esi + 6]
mov word [ebx + 8], ax
movzx eax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.004c6f4c
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
movzx eax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
movzx eax, 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 0x4c7a23
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040b428
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004c821c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040b2e8
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004c8294
jmp 0x4c7a35
xor edx, edx
mov eax, ebx
call fcn.004c821c
xor edx, edx
mov eax, ebx
call fcn.004c8294
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 0x4c7a64
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040551c
ret

Function at 0x4ce34c
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.004ce588
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.004ce588
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4ce3c0
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 0x4ce3e6
inc esi
mov eax, edi
call fcn.004ce3a4
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, edi
call fcn.004ce34c
inc ebx
dec esi
jne 0x4ce3cf
pop edi
pop esi
pop ebx
ret
Function at 0x4ce47c
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.00405994
xor eax, eax
push ebp
push 0x4ce4f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004ce3ec
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004ce3a4
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.004ce34c
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4ce4bc
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce4f9
lea eax, [ebp - 4]
call fcn.004054f8
ret
Function at 0x4cf18c
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 0x4cf372
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x4cf32e
mov eax, dword [ebp - 4]
call fcn.004d0b34
cmp ebx, eax
jge 0x4cf32e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.004c5780
mov edx, dword [0x4c72ec]
call fcn.0040478c
mov esi, eax
mov eax, esi
call fcn.004c81b0
test al, al
je 0x4cf324
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x4cf318
xor eax, eax
push ebp
push 0x4cf311
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004cf744
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041db70
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.00405c34
mov eax, dword [ebp - 8]
call fcn.00405a04
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]
movzx eax, 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.004cf508
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cf35c
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 0x4cf310
mov eax, dword [ebp - 4]
call fcn.004cf7c8
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040b884
jmp 0x4cf35c
mov eax, dword [ebp - 8]
call fcn.004054f8
jmp 0x4cf35c
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.0040ac70
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x418834]
call fcn.0040ef98
call fcn.00404e50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cf379
lea eax, [ebp - 0x54]
call fcn.004054f8
ret