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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x4bd519
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4bd512
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x4bd52d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004bcec4
test bl, bl
jne 0x4bd60d
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x507dd0
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4bd565
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4bd57a
push 0x3e7
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004bd3d4
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
movzx ebx, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x4bd5b0
add dword [ebp - 0x14], 0x3e8
dec dword [ebp - 8]
jne 0x4bd55a
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x4bd5d7
mov eax, 4
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x4bd5e9
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x4bd5fe
jmp 0x4bd6d4
cmp bl, 1
jne 0x4bd6d4
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x50b868
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4bd62d
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4bd642
push 0x3e7
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004bd3d4
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x4bd678
sub ebx, 0x3e8
inc dword [ebp - 8]
jne 0x4bd622
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x4bd6a3
mov eax, 4
mov ebx, dword [ebp + 0xc]
movzx edx, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x4bd6b5
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x4bd6ca
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004bcf44
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x4bdc2c
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x4bdc44
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4bdc3d
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.004035fc
xor edx, edx
mov eax, str.80_
movzx ebx, byte [eax]
mov ecx, ebx
and cl, 7
movzx ecx, cl
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
movzx ecx, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x4bdcab
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x4bdc62
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x4bdef4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x4bdf0d
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x4bdf06
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x4bdf1f
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4bdf18
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.004bdae4
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x4bdf39
movzx eax, byte [ebp - 0xa]
movzx edx, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 9]
movzx ecx, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
add edx, edx
add edx, edx
movzx eax, byte [ebp - 8]
movzx ecx, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 7]
movzx edx, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 6]
and al, 0xf
add eax, eax
add eax, eax
movzx edx, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
movzx eax, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
movzx edx, byte [esi]
call fcn.004bdbf4
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x4bdfc1
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x4bdfdf
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.004bdb74
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x4be009
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4cbe54
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4cbe82
mov eax, ebx
call fcn.004cc908
cmp dword [ebx + 0x40], 0
je 0x4cbe7b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4cbef3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4cbee5
cmp dword [ebx + 8], 0
je 0x4cbea4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4cbeb6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4cbee5
cmp dword [ebx + 8], 0
je 0x4cbe97
cmp eax, 3
je 0x4cbec9
dec eax
jne 0x4cbe97
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4cbe97
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4cbe97
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4cbf11
cmp dword [ebx + 0x14], 0xcc
je 0x4cbf11
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004cbf1c
pop ebx
ret

Function at 0x4dc57c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
jmp 0x4dc622
mov eax, dword [edi + 0xc]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
mov ebx, dword [edi + 0x10]
add ebx, dword [ebp + 8]
mov esi, ebx
cmp dword [edi + 4], 0xffffffff
jne 0x4dc61a
mov ebx, dword [edi]
add ebx, dword [ebp + 8]
jmp 0x4dc61a
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_VirtualProtectEx
test eax, eax
je 0x4dc614
test byte [ebx + 3], 0x80
je 0x4dc5ea
mov eax, dword [ebx]
and eax, 0xffff
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
jmp 0x4dc5fe
mov eax, dword [ebp + 8]
add eax, dword [ebx]
add eax, 2
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_VirtualProtectEx
add ebx, 4
add esi, 4
cmp dword [ebx], 0
jne 0x4dc5b7
add edi, 0x14
cmp dword [edi + 0x10], 0
je 0x4dc632
cmp dword [edi + 0xc], 0
jne 0x4dc58d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4dc63c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 4]
push 0x40
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4dc7aa
cmp word [edi], 0x5a4d
jne 0x4dc7aa
mov esi, dword [edi + 0x3c]
add esi, dword [ebp - 4]
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4dc7aa
cmp dword [esi], 0x4550
jne 0x4dc7aa
xor eax, eax
mov dword [ebp - 0x14], eax
mov ebx, esi
add ebx, 0xf8
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4dc7aa
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [edx], eax
push 0x40
push 0x3000
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4dc7aa
movzx eax, word [esi + 6]
mov dword [ebp - 0x10], eax
mov ecx, ebx
sub ecx, edi
mov eax, dword [ebp - 0x10]
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax + eax*4]
add ecx, eax
mov edx, edi
mov eax, dword [ebp - 0x1c]
call fcn.00407c24
mov ecx, dword [ebp - 0x14]
dec ecx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00407c24
mov edi, dword [ebp - 0x10]
dec edi
test edi, edi
jl 0x4dc733
inc edi
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
add edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 0x1c]
call fcn.00407c24
add ebx, 0x28
dec edi
jne 0x4dc719
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x4dc754
mov edx, dword [esi + 0xa4]
push edx
mov ecx, eax
add ecx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x34]
mov edx, dword [ebp - 0x1c]
call fcn.004dc508
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4dc76b
add eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004dc57c
mov eax, dword [esi + 0x28]
mov edi, eax
mov ecx, dword [ebp - 0x1c]
add edi, ecx
mov edx, edi
test eax, eax
je 0x4dc7a4
xor eax, eax
push ebp
push 0x4dc79a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 1
push ecx
call edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4dc7a4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4df3e8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040509c
mov eax, dword [ebp - 8]
call fcn.0040509c
xor eax, eax
push ebp
push 0x4df4bf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.004032c0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x1c]
mov ecx, 1
mov eax, 0x4df4d4
call fcn.0040abec
mov eax, dword [ebp - 0xc]
call fcn.004050ac
push eax
call sub.kernel32.dll_OutputDebugStringA
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x1c]
mov ecx, 1
mov eax, 0x4df4d4
call fcn.0040abec
mov eax, dword [ebp - 0x24]
call fcn.004050ac
push eax
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df4c6
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404c40
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c40
ret

Function at 0x4df4dc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040509c
mov eax, dword [ebp - 8]
call fcn.0040509c
xor eax, eax
push ebp
push 0x4df586
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x3c
call fcn.004035fc
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 4]
call fcn.004050ac
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
call fcn.004050ac
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], 0x40
call fcn.004bcb1c
test al, al
je 0x4df554
mov eax, 0x4df594
mov dword [ebp - 0x38], eax
jmp 0x4df55c
mov eax, 0x4df59c
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x44]
push eax
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df58d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c40
ret
Function at 0x4e2af0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4e2cf4
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00403320
xor eax, eax
mov dword [esi + 0x3f0], eax
push 0x4e2d04
call sub.kernel32.dll_OutputDebugStringA
mov eax, 0x20
call fcn.00403348
mov edi, eax
add di, 0xa37c
mov eax, dword [0x511960]
cmp dword [eax + 8], 0
jg 0x4e2cea
xor ecx, ecx
mov dl, 1
mov eax, dword [0x497864]
call fcn.0049ac14
mov ebx, eax
mov edx, 0x4e2d28
mov eax, ebx
call fcn.0049a8e0
movzx edx, di
mov eax, ebx
call fcn.0049a9e0
call fcn.004b9f2c
mov ecx, dword [ebx + 0xa0]
mov dword [ecx + 0xb0], eax
mov dword [ecx + 0xb4], edx
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x50], 0x4e2d7c
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x78], 0x4e2da0
mov edx, ebx
mov eax, dword [0x511960]
call fcn.0041af7c
mov eax, ebx
call fcn.0049aa8c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x497864]
call fcn.0049ac14
mov ebx, eax
mov edx, 0x4e2d40
mov eax, ebx
call fcn.0049a8e0
movzx edx, di
mov eax, ebx
call fcn.0049a9e0
call fcn.004b9f2c
mov ecx, dword [ebx + 0xa0]
mov dword [ecx + 0xb0], eax
mov dword [ecx + 0xb4], edx
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x50], 0x4e2d7c
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x78], 0x4e2da0
mov edx, ebx
mov eax, dword [0x511960]
call fcn.0041af7c
mov eax, ebx
call fcn.0049aa8c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x497864]
call fcn.0049ac14
mov ebx, eax
mov edx, 0x4e2d58
mov eax, ebx
call fcn.0049a8e0
movzx edx, di
mov eax, ebx
call fcn.0049a9e0
call fcn.004b9f2c
mov ecx, dword [ebx + 0xa0]
mov dword [ecx + 0xb0], eax
mov dword [ecx + 0xb4], edx
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x50], 0x4e2d7c
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x78], 0x4e2da0
mov edx, ebx
mov eax, dword [0x511960]
call fcn.0041af7c
mov eax, ebx
call fcn.0049aa8c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x497864]
call fcn.0049ac14
mov ebx, eax
mov edx, 0x4e2d70
mov eax, ebx
call fcn.0049a8e0
movzx edx, di
mov eax, ebx
call fcn.0049a9e0
call fcn.004b9f2c
mov ecx, dword [ebx + 0xa0]
mov dword [ecx + 0xb0], eax
mov dword [ecx + 0xb4], edx
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x50], 0x4e2d7c
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x78], 0x4e2da0
mov edx, ebx
mov eax, dword [0x511960]
call fcn.0041af7c
mov eax, ebx
call fcn.0049aa8c
mov eax, dword [esi + 0x3c4]
mov edx, 0x3e8
call fcn.00448c34
mov eax, dword [esi + 0x3c4]
mov dl, 1
call fcn.00448c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e2cfe
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4fcc20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov eax, 0x4fabf0
call fcn.00406e84
mov ebx, dword [0x5016ac]
mov eax, dword [ebx]
call fcn.00479c04
mov eax, dword [ebx]
xor edx, edx
call fcn.004796bc
mov eax, 0x4fcd1c
call fcn.00409c08
test al, al
jne 0x4fcc5b
mov eax, dword [ebx]
mov byte [eax + 0x5b], 0
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov ecx, dword [0x501330]
mov eax, dword [ebx]
mov edx, dword [0x4de848]
call fcn.00479c1c
push pe_nt_image_headers32
push 0xffffffffffffffec
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetWindowLongA
cmp dword [ebx], 0
jne 0x4fcd04
mov ecx, dword [0x5018b0]
mov eax, dword [ebx]
mov edx, dword [0x4e948c]
call fcn.00479c1c
mov ecx, dword [0x501910]
mov eax, dword [ebx]
mov edx, dword [0x4f7cbc]
call fcn.00479c1c
mov ecx, dword [0x501624]
mov eax, dword [ebx]
mov edx, dword [0x4f89b8]
call fcn.00479c1c
mov ecx, dword [0x501418]
mov eax, dword [ebx]
mov edx, dword [0x4f920c]
call fcn.00479c1c
mov ecx, dword [0x5017c8]
mov eax, dword [ebx]
mov edx, dword [0x4f9d80]
call fcn.00479c1c
mov ecx, dword [0x5016f8]
mov eax, dword [ebx]
mov edx, dword [0x4fa3a0]
call fcn.00479c1c
mov eax, dword [ebx]
call fcn.00479c9c
pop ebx
call fcn.00404a54
add byte [eax], al
add bh, bh
invalid
Function at 0x40326c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x40385c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x42c024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4038f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4038d4
xor eax, eax
push ebp
push 0x4038cd
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 0x40392c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4038d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x42c024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x42c024], ax
mov esp, ebp
pop ebp
ret

Function at 0x40438c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x437ae8
cmp dword [ebp + 0xc], 2
jl 0x4043a0
mov ebx, 0x437b18
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x4043d8
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x401230
mov dword [0x435014], eax
mov eax, 0x401238
mov dword [0x435018], eax
mov eax, ebx
call fcn.00404278
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x40440d
cmp al, 3
jge 0x40440d
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x40441e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x404429
call dword [ecx + eax*4]
cmp dword [0x435038], 0
jne 0x40443f
mov byte [0x435040], 1
fnstcw word [0x42c024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004046bc
call fcn.00404324
ret 4

Function at 0x40462c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x435050], 0
je 0x40468d
cmp word [0x43532c], 0xd7b2
jne 0x404655
cmp dword [0x435334], 0
jbe 0x404655
mov eax, 0x435328
call dword [0x435344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x4046b8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42c030], 0
jne 0x4046a9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406e54
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40a774
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7fc
push ebx
xor edx, edx
mov dword [ebp - 0x804], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40a7e9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x800]
push eax
push 0x400
call sub.kernel32.dll_GetCurrentDirectoryW
mov ecx, eax
lea edx, [ebp - 0x800]
mov eax, ebx
call fcn.00405204
lea edx, [ebp - 0x804]
mov eax, dword [ebx]
call fcn.0040a624
mov edx, dword [ebp - 0x804]
mov eax, ebx
call fcn.004050c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a7f0
lea eax, [ebp - 0x804]
call fcn.004050b8
ret

Function at 0x40a8f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40a907
test eax, 0x10
seta al
xor al, 1
ret
xor eax, eax
ret

Function at 0x40a90c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40a921
test eax, 0x10
seta al
ret
xor eax, eax
ret

Function at 0x40aa10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test esi, esi
je 0x40aa23
xor eax, eax
mov dword [esi], eax
push 0
mov eax, esi
mov ecx, 1
mov edx, dword [0x40772c]
call fcn.004063ec
add esp, 4
push 0
push 0
push 3
push 0
push 7
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov edi, eax
test edi, edi
setg bl
test bl, bl
je 0x40aaa7
push 2
push 0
push 0
push edi
call sub.kernel32.dll_SetFilePointer
mov dword [ebp - 4], eax
push 0
push 0
push 0
push edi
call sub.kernel32.dll_SetFilePointer
mov eax, dword [ebp - 4]
push eax
mov eax, esi
mov ecx, 1
mov edx, dword [0x40772c]
call fcn.004063ec
add esp, 4
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [esi]
push eax
push edi
call sub.kernel32.dll_ReadFile
push edi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40ad20
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, eax
mov eax, esi
call fcn.0040a8f0
mov ebx, eax
push 0
push 0
push 4
push 0
push 0
push 0x40000000
mov edi, esi
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
jne 0x40ad51
mov byte [esp], 0
jmp 0x40ad5b
push eax
call sub.kernel32.dll_CloseHandle_1
mov byte [esp], 1
test bl, bl
jne 0x40ad65
push edi
call sub.kernel32.dll_DeleteFileW
movzx eax, byte [esp]
pop edx
pop edi
pop esi
pop ebx
ret