joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b2d2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00413428
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41b30a
xor eax, eax
jmp 0x41b336
cmp esi, dword [ebp - 4]
je 0x41b333
cmp dword [ebp + 0xc], 0
je 0x41b333
push dword [edi + 0x9c]
call fcn.0041aee0
push dword [edi + 0x9c]
mov esi, eax
call fcn.0040e2d6
pop ecx
pop ecx
cmp esi, eax
je 0x41b306
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x410390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
jmp 0x4103aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4103b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4103a0
mov eax, 1
add ebx, ebx
jne 0x4103c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4103b8
jne 0x4103d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4103b8
xor ecx, ecx
sub eax, 3
jb 0x4103e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41045a
mov ebp, eax
add ebx, ebx
jne 0x4103f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x410400
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x410424
inc ecx
add ebx, ebx
jne 0x410410
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x410405
jne 0x410421
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410405
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x410444
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x410435
jmp 0x4103a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x410444
add edi, ecx
jmp 0x4103a6
pop esi
mov edi, esi
mov ecx, 0x2ee
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x410462
cmp byte [edi], 1
jne 0x410462
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x410467
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x4104df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10dc0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10eb0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x410494
mov ecx, edi
jns 0x4104c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10eb4]
or eax, eax
je 0x4104d9
mov dword [ebx], eax
add ebx, 4
jmp 0x4104b1
call dword [esi + 0x10ec4]
mov ebp, dword [esi + 0x10eb8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x410513
sub esp, 0xffffff80
jmp 0x4080ef
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x13211b5a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x6ffa5e26
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40c967
Capabilities:
Delete file

Disassembly:
push 0x98
mov eax, 0x4308e1
call fcn.00410777
mov esi, dword [ebp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40c983
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40ca30
xor edi, edi
push edi
call fcn.0040ef1f
mov ecx, eax
call fcn.0040f188
test al, al
je 0x40ca2c
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 0xc], esp
push esi
mov dword [ecx], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.00402bfe
push 1
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], edi
call fcn.00401bbf
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 1
push 0x4349e0
push eax
call fcn.004011c7
pop ecx
pop ecx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 2
call fcn.00401396
mov esi, eax
push 0x434824
push esi
call fcn.004011c7
pop ecx
pop ecx
push esi
push 0x4349ec
push 0x278
push 0x434798
push edi
call fcn.0040ef1f
mov ecx, eax
call fcn.00403d0c
lea ecx, [ebp - 0xa4]
call fcn.00402821
mov al, 1
jmp 0x40ca3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040da1a
add esp, 4
call fcn.00410745
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 0x10
jb 0x40d2da
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d2ed
test al, 0x10
je 0x40d2ed
mov al, 1
ret
xor al, al
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 0x10
jb 0x40d2fc
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret
Function at 0x40e2f1
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40e313
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.00404e4c
jmp 0x40e3e5
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], edi
test ecx, ecx
je 0x40e340
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40e346
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, ecx
cdq
mov dword [esp + 0x2c], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x40e3ae
jg 0x40e35d
test esi, esi
je 0x40e3ae
test ecx, ecx
jl 0x40e3a8
jg 0x40e367
test eax, eax
je 0x40e3a8
cmp edi, ecx
jg 0x40e37b
jl 0x40e371
cmp esi, eax
jae 0x40e37b
mov eax, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x28]
push eax
push ebp
push dword [esp + 0x20]
call fcn.004032c4
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
add ebp, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x40e3b2
mov ebp, dword [esp + 0x28]
jmp 0x40e3bc
mov ebp, dword [esp + 0x28]
test edi, edi
jl 0x40e3d6
jg 0x40e3bc
test esi, esi
je 0x40e3d6
cmp dword [ebx + 0x4c], 0
je 0x40e3d6
push dword [ebx + 0x4c]
push esi
push 1
push ebp
call fcn.004189a6
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc

Function at 0x4112ac
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4112eb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4112eb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4112eb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4112eb
cmp dword [ecx + 0x74], 0xe
jbe 0x4112eb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41a043
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1418
call fcn.00410d70
mov eax, dword [0x444158]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov edx, dword [ebp + 0x10]
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
push ebx
push esi
mov eax, dword [eax*4 + 0x445e08]
mov esi, dword [ebp + 8]
push edi
mov edi, esi
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x1410], eax
add ecx, edx
xor eax, eax
mov dword [ebp - 0x140c], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, edx
cmp edx, ecx
jae 0x41a0b8
mov esi, dword [ebp - 0x140c]
lea eax, [ebp - 0x6b0]
cmp edi, esi
jae 0x41a025
movzx ecx, word [edi]
add edi, 2
cmp ecx, 0xa
jne 0x41a018
push 0xd
pop edx
mov word [eax], dx
add eax, 2
mov word [eax], cx
add eax, 2
lea ecx, [ebp - 8]
cmp eax, ecx
jb 0x41a000
push 0
push 0
push 0xd55
lea ecx, [ebp - 0x1408]
push ecx
lea ecx, [ebp - 0x6b0]
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
push eax
push 0
push 0xfde9
call fcn.00424a63
mov esi, dword [ebp + 8]
add esp, 0x20
mov dword [ebp - 0x1418], eax
test eax, eax
je 0x41a0b0
xor ebx, ebx
test eax, eax
je 0x41a09a
push 0
lea ecx, [ebp - 0x1414]
sub eax, ebx
push ecx
push eax
lea eax, [ebp - 0x1408]
add eax, ebx
push eax
push dword [ebp - 0x1410]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a0b0
add ebx, dword [ebp - 0x1414]
mov eax, dword [ebp - 0x1418]
cmp ebx, eax
jb 0x41a065
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
cmp edi, dword [ebp - 0x140c]
jb 0x419ff4
jmp 0x41a0b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410737
leave
ret

Function at 0x422c7b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00422af1

Function at 0x42880f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042848c

Function at 0x42ea20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42ea4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42ea4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402b60
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e45e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x704200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
je 0x402bc3
push fcn.00545210
lea esi, [eax - 4]
mov dword [ebp - 4], 0
push dword [esi]
push 0xc
push eax
call fcn.0041e708
mov eax, dword [esi]
lea eax, [eax + eax*2]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.0041e478
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x402bf9
push fcn.00545210
lea esi, [eax - 4]
mov dword [ebp - 4], 1
push dword [esi]
push 0xc
push eax
call fcn.0041e708
mov eax, dword [esi]
lea eax, [eax + eax*2]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.0041e478
add esp, 8
lea ecx, [edi + 0x48]
call fcn.00545210
lea ecx, [edi + 0x3c]
call fcn.00545210
lea ecx, [edi + 0x30]
call fcn.00545210
lea ecx, [edi + 0x24]
call fcn.00545210
lea ecx, [edi + 0x18]
call fcn.00545210
lea ecx, [edi + 0xc]
call fcn.00545210
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404a30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e49c6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x704200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
mov dword [esi], 0
lea ecx, [esi + 0x68]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movsd qword [esi + 0x18], xmm0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
call fcn.005453c0
mov dword [ebp - 4], 0
mov dword [esi + 0x74], 0
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 1
call fcn.005332d0
lea ecx, [esi + 0x9c]
mov byte [ebp - 4], 2
call fcn.005332d0
mov byte [esi + 0xbc], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42f860
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f88d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f88d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x46a050
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e83bc
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x704200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x40], 0x64
call fcn.00469eb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4dabb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ef0c4
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x704200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.005415f0
movsd qword [esi], xmm0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0xd4], 0xffffffff
mov dword [ebp - 4], 0
mov dword [esi + 0xd8], 0xffffffff
mov byte [ebp - 4], 1
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov dword [esi + 0xf8], 0x62edb8
mov dword [esi + 0xfc], 0x62ee08
call fcn.00530290
mov byte [esi + 0x100], al
mov dword [esi + 0x104], 0
mov byte [esi + 0x108], 0
call fcn.00530290
push ecx
mov ecx, esi
mov byte [esi + 0x48], al
call fcn.004da680
push ecx
mov ecx, esi
mov dword [esi + 0x40], eax
call fcn.004da5f0
push ecx
mov ecx, esi
mov dword [esi + 0x44], eax
call fcn.004da590
mov dword [esi + 0x3c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ee3a0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.00541aa0
cmp eax, 0x26
jge 0x4ee3b5
pop edi
xor al, al
pop esi
ret
movzx eax, word [esi + 0x10]
mov edx, 0x14
mov word [edi], ax
movzx eax, word [esi + 0xe]
mov word [edi + 2], ax
movzx eax, word [esi + 0xc]
mov word [edi + 4], ax
movzx eax, word [esi + 0xa]
mov word [edi + 6], ax
movzx eax, word [esi + 8]
mov word [edi + 8], ax
movzx eax, word [esi + 6]
mov word [edi + 0xa], ax
movzx eax, word [esi + 4]
mov word [edi + 0xc], ax
movzx eax, word [esi + 2]
mov word [edi + 0xe], ax
movzx eax, word [esi + 0x1a]
mov word [edi + 0x10], ax
movzx eax, word [esi + 0x18]
mov word [edi + 0x12], ax
movzx eax, word [esi + 0x16]
mov word [edi + 0x14], ax
movzx eax, word [esi + 0x14]
mov word [edi + 0x16], ax
movzx eax, word [esi + 0x24]
mov word [edi + 0x18], ax
movzx eax, word [esi + 0x22]
mov word [edi + 0x1a], ax
movzx eax, word [esi + 0x20]
mov word [edi + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [edi + 0x1e], ax
mov eax, 0x10
nop
movzx ecx, word [esi + edx*2 + 2]
mov word [edi + eax*2], cx
movzx ecx, word [esi + edx*2]
add edx, 2
mov word [edi + eax*2 + 2], cx
add eax, 2
cmp edx, 0x18
jl 0x4ee440
mov edx, 0x19
movzx ecx, word [esi + edx*2 + 2]
lea eax, [eax + 2]
mov word [edi + eax*2 - 4], cx
movzx ecx, word [esi + edx*2]
add edx, 2
mov word [edi + eax*2 - 2], cx
cmp edx, 0x24
jl 0x4ee462
pop edi
mov al, 1
pop esi
ret
Function at 0x4ff720
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, ecx
movsx eax, dl
mov ecx, dword [esi]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x67e740]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [esi + 8]
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
mov dword [esi + 8], ecx
pop esi
ret

Function at 0x4ff770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4ff77b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4ff837
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
sub edi, 1
jne 0x4ff790
pop edi
test esi, esi
je 0x4ff85a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
sub esi, 1
jne 0x4ff840
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x5028b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x704200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x48]
push eax
push ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 8], ecx
call dword [0x5fd454]
test eax, eax
jne 0x502900
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e465
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x48]
mov edi, 0x41000000
mov esi, ebx
and esi, 1
mov ecx, esi
or ecx, 2
test bl, 2
cmove ecx, esi
mov edx, ecx
or edx, 4
test bl, 4
cmove edx, ecx
mov ecx, ebx
and ecx, 0x10
mov eax, edx
or eax, 0x10
mov dword [ebp - 0xc], ecx
test ecx, ecx
cmove eax, edx
mov edx, 0x81000000
mov ecx, eax
or ecx, 0x20
test bl, 0x20
cmove ecx, eax
mov eax, dword [ebp - 0xc]
test eax, eax
cmove edi, edx
or edi, ecx
test esi, esi
jne 0x502964
test eax, eax
mov edi, 0x41800000
mov edx, 0x81800000
cmove edi, edx
or edi, ecx
mov ebx, dword [ebp - 8]
push 0
push ebx
call dword [0x5fd34c]
mov esi, eax
cmp esi, 0x28
jbe 0x502a14
push 0
push 0
push 0
push ebx
call dword [0x5fd4bc]
push 0
lea eax, [ebp - 0x10]
push eax
push 2
lea eax, [ebp - 8]
push eax
push ebx
call dword [0x5fd524]
push 0
push 0
push 0x24
push ebx
call dword [0x5fd4bc]
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [0x5fd524]
mov eax, 0x54ad
cmp word [ebp - 8], ax
jne 0x502a14
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + 0x34]
cmp esi, eax
jbe 0x502a14
push 0
push 0
push ecx
push ebx
call dword [0x5fd4bc]
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [0x5fd524]
mov eax, dword [ebp - 0x14]
cmp eax, 0x5a4d
je 0x502a0e
cmp eax, 0x454e
je 0x502a0e
cmp eax, 0x454c
je 0x502a0e
cmp eax, 0x4550
jne 0x502a14
or edi, 0x400000
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x502a1d
mov dword [eax], edi
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x502a26
mov dword [eax], esi
mov ebx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
test ebx, ebx
je 0x502a64
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.00502b20
push esi
push edi
mov dword [ebx], eax
mov dword [ebx + 4], edx
call fcn.00502b20
push dword [ebp - 0x40]
mov dword [ebx + 8], eax
push dword [ebp - 0x44]
mov dword [ebx + 0xc], edx
call fcn.00502b20
add esp, 0x18
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x502a8a
push esi
push edi
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.00502aa0
movzx ecx, word [ebp - 8]
add esp, 8
movzx eax, word [ebp - 0xc]
shl ecx, 0x10
or ecx, eax
mov dword [ebx], ecx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e465
mov esp, ebp
pop ebp
ret
Function at 0x502c70
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, ecx
movsx eax, dl
mov ecx, dword [esi]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x67e740]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [esi + 8]
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
mov dword [esi + 8], ecx
pop esi
ret

Function at 0x502cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x502ccb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x502d87
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
sub edi, 1
jne 0x502ce0
pop edi
test esi, esi
je 0x502daa
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x67e740]
sub esi, 1
jne 0x502d90
not ecx
mov eax, ecx
pop esi
pop ebp
ret