joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3b20
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e64
call fcn.004cd3a0
push ebx
mov ebx, dword [esp + 0x8e6c]
push ebp
mov ebp, edx
mov edx, dword [esp + 0x8e74]
push esi
mov esi, dword [esp + 0x8e7c]
push edi
mov al, byte [ebp]
mov edi, ecx
cmp al, 0x41
je 0x4a3b52
cmp al, 0x61
jne 0x4a3bb5
cmp byte [ebp + 1], 0
jne 0x4a3bb5
cmp byte [ebx], 0
jne 0x4a3bb5
cmp byte [edx], 0
jne 0x4a3bb5
cmp byte [esi], 0
jne 0x4a3bb5
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4a3b94
cmp byte [edi + 0xca], 0
jne 0x4a3b94
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a3b92
mov ecx, esi
call fcn.004a4900
test al, al
je 0x4a3b94
xor esi, esi
cmp byte [esp + 0x8e88], 0
je 0x4a3ba8
test esi, esi
je 0x4a3ba8
mov dword [edi + 0xa4], esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8e64
ret
test al, al
jne 0x4a3bd5
cmp byte [ebx], al
jne 0x4a3bd5
cmp byte [edx], al
jne 0x4a3bd5
cmp byte [esi], al
jne 0x4a3bd5
call fcn.004a3cf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e64
ret
lea ecx, [esp + 0x10]
call fcn.00440a90
push esi
push edx
push ebx
push ebp
push edi
call fcn.004a4a50
test eax, eax
je 0x4a3caa
test byte [esp + 0x10], 2
mov al, byte [esp + 0x8e84]
mov byte [esp + 0xc3d], al
mov eax, dword [esp + 0x8e8c]
mov dword [esp + 0xc4c], eax
mov eax, dword [esp + 0x8e90]
mov dword [esp + 0xc50], eax
je 0x4a3cb7
mov esi, dword [esp + 0x82c]
cmp esi, 0xffff
je 0x4a3c82
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a3caa
cmp byte [edi + 0xca], 0
mov esi, dword [esp + 0x82c]
jne 0x4a3c82
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a3c65
mov ecx, esi
call fcn.004a4900
test al, al
je 0x4a3c7b
push 0xfffffffffffffff0
push dword [esp + 0x830]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x4a3caa
mov esi, dword [esp + 0x82c]
cmp dword [esp + 0xc64], esi
je 0x4a3c9b
lea ecx, [esp + 0x10]
mov dword [esp + 0xc64], esi
call fcn.004a4ec0
push 0
lea ecx, [esp + 0x14]
call fcn.004a4fa0
test eax, eax
jne 0x4a3cc7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e64
ret
lea eax, [esp + 0x10]
push eax
push 0x4a3d90
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [esp + 0x8e88], 0
mov eax, dword [esp + 0xc44]
je 0x4a3cac
test eax, eax
je 0x4a3cac
mov dword [edi + 0xa4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e64
ret
Function at 0x4a4ec0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc54]
test ecx, ecx
je 0x4a4f96
mov eax, dword [esi]
test eax, eax
je 0x4a4f96
push edi
test al, 1
jne 0x4a4eec
mov eax, dword [esi + 0x80c]
cmp byte [eax], 0
je 0x4a4f05
push 0x7fff
lea edi, [esi + 0xc60]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x4a4f05
mov byte [edi], al
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test al, 4
je 0x4a4f22
lea eax, [esi + 0xc5c]
push eax
push dword [esi + 0xc54]
call edi
mov eax, dword [esi]
test al, 0x20
je 0x4a4f5c
lea eax, [esp + 8]
push eax
push dword [esi + 0xc54]
call edi
test eax, eax
je 0x4a4f5c
movzx eax, byte [esi + 0xc2c]
lea edx, [esi + 0x8d60]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.004694c0
add esp, 8
test eax, eax
jne 0x4a4f5c
mov byte [esi + 0x8d60], al
mov eax, dword [esi]
pop edi
test al, 8
je 0x4a4f7d
push 0x101
lea eax, [esi + 0x8c5f]
push eax
push dword [esi + 0xc54]
call dword [sym.imp.USER32.dll_GetClassNameA]
mov eax, dword [esi]
test eax, 0x100
je 0x4a4f96
push dword [esi + 0xc54]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esi + 0xc58], eax
pop esi
pop ecx
ret

Function at 0x4a5a40
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e64
call fcn.004cd3a0
mov edx, dword [ecx + 8]
test edx, edx
je 0x4a5ae0
lea ecx, [esp]
call fcn.00440a90
mov al, byte [esp + 0x8e68]
mov byte [esp + 0xc48], al
mov eax, dword [esp + 0x8e6c]
mov dword [esp + 0xc4c], eax
mov eax, ecx
push eax
push 0x4a6210
mov dword [esp + 0xc4c], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc34], 0
je 0x4a5ae0
mov eax, dword [0x4e88cc]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4a5ae0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4ed7f8], eax
je 0x4a5acd
mov eax, dword [0x4e88cc]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
add esp, 0x8e64
ret 8
mov ecx, dword [0x4e88cc]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.00401730
mov eax, 1
add esp, 0x8e64
ret 8
Function at 0x4a5db0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8e74
call fcn.004cd3a0
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x4a5fa0
push 0
call fcn.004a5fb0
test eax, eax
jne 0x4a5de3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [0x4e88cc]
mov ebx, eax
mov ecx, esi
push ebx
call fcn.004a6050
mov edx, dword [0x4ecf80]
xor ecx, ecx
test eax, eax
cmovne edx, ecx
lea ecx, [esp + 0x18]
mov dword [0x4ecf80], edx
call fcn.00440a90
cmp byte [ebp + 8], 0
je 0x4a5e27
mov byte [esp + 0xc45], 0
test edx, edx
je 0x4a5e2f
mov byte [esp + 0xc45], 1
mov eax, dword [0x4ecf7c]
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0xc54], eax
mov eax, dword [esi + 8]
mov dword [esp + 0xc5c], eax
lea eax, [esp + 0x18]
push eax
push 0x4a60e0
mov dword [esp + 0xc60], edx
call edi
mov eax, dword [esp + 0xc4c]
test eax, eax
je 0x4a5f68
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0x4a4840
mov dword [esp + 0x1c], 0
call edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4a5ecb
mov ecx, dword [0x4ecf80]
xor eax, eax
mov edx, dword [esp + 0xc4c]
mov esi, dword [0x4ecf7c]
test ecx, ecx
jle 0x4a5eb0
cmp dword [esi + eax*4], edx
je 0x4a5ec2
inc eax
cmp eax, ecx
jl 0x4a5ea6
cmp ecx, 0x1f4
jge 0x4a5ec2
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4ecf80], ecx
mov dword [esp + 0xc4c], edi
jmp 0x4a5ed2
mov edi, dword [esp + 0xc4c]
mov ecx, edi
call fcn.004a3530
mov ecx, dword [0x4ecf80]
xor eax, eax
mov edx, dword [esp + 0xc4c]
mov esi, dword [0x4ecf7c]
test ecx, ecx
jle 0x4a5efc
cmp dword [esi + eax*4], edx
je 0x4a5f0e
inc eax
cmp eax, ecx
jl 0x4a5ef2
cmp ecx, 0x1f4
jge 0x4a5f0e
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4ecf80], ecx
mov eax, dword [0x4e88cc]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4a5fa0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4ed7f8], eax
je 0x4a5f47
mov eax, dword [0x4e88cc]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4e88cc]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.00401730
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4ecf80]
test eax, eax
je 0x4a5fa0
cmp eax, 1
mov dword [0x4ecf80], 0
setg al
test al, al
je 0x4a5fa0
mov ecx, dword [0x4ecf7c]
push 0
mov dword [0x4ecf80], 1
mov dword [ecx], ebx
mov ecx, esi
call fcn.004a5db0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4beb98
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004cd3a0
mov eax, dword [0x4e8018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004c2733
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4bebda
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4bed36
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004cd2f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4eb118]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004c41aa
mov ecx, dword [esi*4 + 0x4eb118]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4bed2f
cmp eax, dword [edi + ecx + 0x24]
jne 0x4bed2f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bed2f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c41aa
add esp, 0x14
test edx, edx
jl 0x4bed2f
jg 0x4beca5
test eax, eax
jb 0x4bed2f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4bed2f
jl 0x4becbf
cmp dword [ebp - 0x1008], eax
ja 0x4bed2f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4becdd
test ebx, ebx
je 0x4bed16
cmp ecx, edi
jae 0x4bed16
mov al, byte [ecx]
cmp al, 0xd
jne 0x4becf7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4bed03
cmp byte [ecx + 1], 0xa
jne 0x4bed03
inc ecx
jmp 0x4bed03
movzx eax, al
movsx eax, byte [eax + 0x4e8208]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4becdd
cmp edx, ebx
jne 0x4becdd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4bed34
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b3a40
leave
ret

Function at 0x4c3012
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d2f14
push 0x4d2f0c
push str.FlsAlloc
push 0x1e
call fcn.004c2ef0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c3046
push dword [ebp + 8]
mov ecx, esi
call dword [0x4d0824]
call esi
jmp 0x4c304c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4c3090
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d2f24
push 0x4d2f1c
push str.FlsGetValue
push 0x20
call fcn.004c2ef0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c30c7
push dword [ebp + 8]
mov ecx, esi
call dword [0x4d0824]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4c4226
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4eb118]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4c4266
cmp byte [ebx], 0xa
jne 0x4c4266
or byte [eax + edi + 0x28], 4
jmp 0x4c426b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4c4369
mov al, byte [edx]
cmp al, 0x1a
je 0x4c434b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4c429a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4c42bf
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4c42c9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4c427c
jmp 0x4c4369
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c4346
cmp dword [ebp - 0xc], 0
je 0x4c4346
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4eb118]
test byte [eax + edi + 0x28], 0x48
je 0x4c4320
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4c430b
mov byte [esi], dl
jmp 0x4c431c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4eb118]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4c4369
cmp byte [ebp - 1], 0xa
jne 0x4c432f
cmp esi, ebx
jne 0x4c432f
mov byte [esi], 0xa
jmp 0x4c4368
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004c41c8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4c4369
mov byte [esi], 0xd
jmp 0x4c4368
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4eb118]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c4365
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c4369
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c4372
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4eb118]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4c43b5
cmp word [esi], dx
jne 0x4c43b5
or byte [edi + eax + 0x28], 4
jmp 0x4c43ba
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4c450d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4c44ed
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4c43fc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4c4432
cmp eax, edx
jae 0x4c443e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4c43d4
jmp 0x4c450d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c44e9
cmp dword [ebp - 0x14], 0
je 0x4c44e9
mov eax, dword [ebx*4 + 0x4eb118]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4c44c1
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4c448a
mov word [esi], cx
jmp 0x4c44bd
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4eb118]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4eb118]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4eb118]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4c450d
pop ebx
cmp word [ebp - 4], bx
jne 0x4c44d2
cmp esi, dword [ebp + 0xc]
jne 0x4c44d2
mov word [esi], bx
jmp 0x4c450a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004c41c8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4c450d
push 0xd
jmp 0x4c4506
mov ecx, dword [ebx*4 + 0x4eb118]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c4504
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c450d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c4d2e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c4b9f
Function at 0x4c6ffe
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4c709b
push ebx
push esi
call fcn.004c6fc7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004c38bf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c7048
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c709a
push edi
push eax
call fcn.004c162c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4c7068
call fcn.004c14ba
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c7099
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004c38bf
add esp, 0x20
test eax, eax
jne 0x4c7087
push edi
call fcn.004c14ba
jmp 0x4c708f
push ebx
call fcn.004c14ba
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4cb587
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004cb503
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4cb6ff
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4cb6ff
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4cb6ae
jg 0x4cb5e0
test eax, eax
je 0x4cb6a4
push 1
push 0x1000
call fcn.004c2a86
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4cb606
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4cb69b
push 0x8000
push ebx
call fcn.004c07e0
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4cb632
jg 0x4cb62d
cmp ecx, 0x1000
jb 0x4cb632
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004c582a
add esp, 0x10
cmp eax, 0xffffffff
je 0x4cb677
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4cb62d
jl 0x4cb65e
test ecx, ecx
jne 0x4cb61f
push dword [ebp - 0xc]
push ebx
call fcn.004c07e0
push esi
call fcn.004c14ba
add esp, 0xc
xor edi, edi
jmp 0x4cb710
cmp byte [edi + 0x24], 0
je 0x4cb68e
cmp dword [edi + 0x20], 5
jne 0x4cb68e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4cb699
mov edi, dword [edi + 0x18]
jmp 0x4cb69b
xor edi, edi
push esi
call fcn.004c14ba
pop ecx
jmp 0x4cb710
test ecx, ecx
jg 0x4cb670
jl 0x4cb6ae
test eax, eax
jae 0x4cb670
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c41c8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4cb6d1
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4cb670
jmp 0x4cb708
push ebx
call fcn.004c7807
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4cb670
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4cb710
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4cb70d
mov edi, dword [edi + 0x18]
jmp 0x4cb710
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004c41c8
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf44
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf6c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f0a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x5ae58e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ae595
ret