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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx + 0x38]
or eax, dword [ebx + 0x3c]
je 0x556644
mov eax, 0xfffffffe
pop ebx
ret
push esi
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov eax, esi
add eax, dword [ebx + 0x30]
adc ecx, dword [ebx + 0x34]
cmp ecx, 0x20000000
ja 0x5566f9
jb 0x556669
test eax, eax
jne 0x5566f9
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [ebx + 0x16c]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], ecx
test edi, edi
je 0x5566a9
nop
test esi, esi
je 0x556695
mov al, byte [ebp]
dec esi
xor byte [edi + ebx + 0x40], al
inc ebp
inc edi
and edi, 0xf
jne 0x556680
jmp 0x556699
test edi, edi
jne 0x5566ec
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call fcn.00557880
add esp, 8
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x14], eax
je 0x5566ce
push eax
push ebp
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call fcn.00557640
add ebp, dword [esp + 0x24]
add esp, 0x10
sub esi, dword [esp + 0x14]
test esi, esi
je 0x5566ec
xor ecx, ecx
mov edi, esi
test esi, esi
je 0x5566ec
nop word [eax + eax]
mov al, byte [ecx + ebp]
xor byte [ebx + ecx + 0x40], al
inc ecx
cmp ecx, esi
jb 0x5566e0
mov dword [ebx + 0x16c], edi
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
ret
pop esi
or eax, 0xffffffff
pop ebx
ret
Function at 0x557880
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.0058b100
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
movzx ecx, byte [eax + 0xf]
mov esi, dword [esp + 0x28]
mov ebp, ecx
and ecx, 0xf
mov dword [esp + 0x24], 0
add ecx, ecx
and ebp, 0xfffffff0
push edi
mov ebx, dword [esi + ecx*8]
mov edi, dword [esi + ecx*8 + 4]
mov edx, dword [esi + ecx*8 + 8]
mov ecx, dword [esi + ecx*8 + 0xc]
mov esi, edx
shrd edx, ecx, 4
and esi, 0xf
mov dword [esp + 0x14], ebx
or dword [esp + 0x28], edx
shl dword [esp + 0x14], 0x1c
shrd ebx, edi, 4
mov edx, dword [esi*4 + 0x616e78]
mov esi, dword [esp + 0x2c]
shr ecx, 4
or dword [esp + 0x14], ecx
xor ecx, ecx
shr edi, 4
xor ecx, ebx
xor ecx, dword [esi + ebp]
xor edx, edi
xor edx, dword [esi + ebp + 4]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
xor edi, dword [esi + ebp + 8]
xor ebx, dword [esi + ebp + 0xc]
mov dword [esp + 0x18], edx
mov edx, 0xe
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
nop dword [eax + eax]
movzx edx, byte [edx + eax]
xor esi, esi
mov ebp, dword [esp + 0x10]
mov ecx, edx
shr ecx, 4
and edx, 0xf
mov dword [esp + 0x20], ecx
add edx, edx
mov ecx, edi
shl ebp, 0x1c
shrd edi, ebx, 4
and ecx, 0xf
mov dword [esp + 0x28], 0
shr ebx, 4
or esi, edi
or ebp, ebx
xor edi, edi
mov ebx, dword [ecx*4 + 0x616e78]
mov ecx, dword [esp + 0x18]
shrd dword [esp + 0x10], ecx, 4
xor edi, dword [esp + 0x10]
shr ecx, 4
xor ebx, ecx
mov ecx, dword [esp + 0x2c]
xor ebx, dword [ecx + edx*8 + 4]
xor ebp, dword [ecx + edx*8 + 0xc]
xor edi, dword [ecx + edx*8]
xor esi, dword [ecx + edx*8 + 8]
mov edx, edi
shrd edi, ebx, 4
mov ecx, esi
shl edx, 0x1c
shrd esi, ebp, 4
and ecx, 0xf
shr ebx, 4
or dword [esp + 0x28], esi
shr ebp, 4
or edx, ebp
xor ebp, ebp
mov ecx, dword [ecx*4 + 0x616e78]
xor ebp, edi
xor ecx, ebx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
mov ebx, ebp
add edx, edx
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x2c]
xor ebx, dword [ebp + edx*8]
xor ecx, dword [ebp + edx*8 + 4]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x28]
xor ebx, dword [ebp + edx*8 + 8]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x14]
xor ebx, dword [ebp + edx*8 + 0xc]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
sub edx, 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jns 0x557920
mov edx, dword [esp + 0x18]
shr ecx, 0x18
mov byte [eax], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov byte [eax + 3], dl
mov edx, dword [esp + 0x10]
mov ecx, edx
shr ecx, 0x18
mov byte [eax + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 5], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 6], cl
mov ecx, ebx
shr ecx, 0x18
mov byte [eax + 8], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [eax + 9], cl
mov ecx, ebx
shr ecx, 8
mov byte [eax + 0xa], cl
mov byte [eax + 7], dl
mov edx, edi
mov ecx, edx
mov byte [eax + 0xb], bl
shr ecx, 0x18
mov byte [eax + 0xc], cl
mov ecx, edx
shr ecx, 0x10
pop edi
mov byte [eax + 0xd], cl
mov ecx, edx
pop esi
shr ecx, 8
pop ebp
mov byte [eax + 0xe], cl
mov byte [eax + 0xf], dl
pop ebx
add esp, 0x14
ret
Function at 0x55b620
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x55b634
mov dword [esp + 0x18], fcn.00559e00
jmp fcn.00555ba0
mov dword [esp + 0x18], fcn.005590a0
jmp fcn.005558e0
Function at 0x561e50
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x10c], 0xffffffff
jne 0x561e62
xor eax, eax
pop edi
ret
push ebp
push esi
push edi
call fcn.004de910
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test ebp, ebp
je 0x561f25
mov ecx, dword [edi + 0x10c]
push ebx
cmp ecx, esi
jne 0x561eb6
test esi, esi
jle 0x561f04
mov edx, ebp
lea ecx, [edi + 0x8c]
mov ebx, esi
nop word [eax + eax]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x561ea0
jmp 0x561f04
sub eax, ecx
mov byte [ecx + edi + 0xec], 0x80
cmp eax, 1
jle 0x561eda
dec eax
push eax
lea eax, [edi + 0xed]
add eax, ecx
push 0
push eax
call fcn.005a3020
add esp, 0xc
test esi, esi
jle 0x561f04
mov edx, ebp
lea ecx, [edi + 0xac]
mov ebx, esi
nop dword [eax + eax]
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x561ef0
push esi
push ebp
push ebp
push edi
call fcn.005013c0
add esp, 0x10
pop ebx
test eax, eax
jne 0x561f25
push esi
push ebp
call fcn.004f3c70
add esp, 8
xor eax, eax
pop esi
pop ebp
pop edi
ret
pop esi
pop ebp
mov eax, 1
pop edi
ret
Function at 0x563800
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.0058b100
mov eax, dword [0x6609c4]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x50]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x14], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x24], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x2c]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x18], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x5639c5
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
nop dword [eax]
dec eax
mov dword [esp + 0x44], eax
test esi, esi
jne 0x563955
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
call fcn.00563210
mov ebx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x5638f0
test ebp, ebp
mov ebp, dword [esp + 0x24]
je 0x5639ac
mov ecx, dword [esp + 0x28]
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00589ffa
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00589ffa
add esp, 0x28
ret
Function at 0x56b710
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x56b7d9
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x56b731
cmp al, 0x6b
jne 0x56b7d9
inc ecx
cmp al, 0x6b
jne 0x56b79b
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x56b752
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x56b752
cmp dl, 0xbb
jne 0x56b77b
inc eax
cmp eax, esi
jl 0x56b740
sub esi, eax
test eax, eax
jne 0x56b79e
push 0x83
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.004ee870
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x7b
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.004ee870
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x56b7c7
push 0x8b
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.004ee870
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.005a3180
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x70
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.004ee870
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x572c40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x70
call fcn.0058b100
mov eax, dword [0x6609c4]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x88], 0x40000000
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x84]
push ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x90]
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], 0
ja 0x572e17
mov esi, dword [esp + 0x80]
cmp esi, 0x40000000
ja 0x572e17
cmp dword [esp + 0x88], 0x40000000
ja 0x572e17
push ebx
push edi
push eax
call fcn.00501400
mov edi, eax
lea eax, [esp + 0x28]
push eax
call fcn.004f8090
push 0
push dword [esp + 0x20]
lea eax, [esp + 0x34]
mov ebx, 1
push eax
call fcn.004f7c70
push dword [esp + 0xa4]
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], 0x1000000
push dword [esp + 0x30]
push eax
call fcn.004f7e20
add esp, 0x20
test eax, eax
je 0x572df3
push 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004f7e20
add esp, 0xc
test eax, eax
je 0x572df3
push dword [esp + 0x98]
lea eax, [esp + 0x28]
push dword [esp + 0x24]
push eax
call fcn.004f7e20
add esp, 0xc
test eax, eax
je 0x572df3
push 0
cmp esi, edi
jb 0x572dbb
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.004f7ba0
add esp, 0xc
test eax, eax
je 0x572df3
sub esi, edi
je 0x572deb
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x2c]
add ebp, edi
push eax
inc ebx
call fcn.004f7c70
push dword [esp + 0x9c]
mov eax, ebx
mov byte [esp + 0x23], bl
push dword [esp + 0x28]
shr eax, 8
mov byte [esp + 0x26], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x25], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x24], al
lea eax, [esp + 0x38]
push eax
call fcn.004f7e20
add esp, 0x18
test eax, eax
jne 0x572d07
jmp 0x572df3
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004f7ba0
add esp, 0xc
test eax, eax
je 0x572df3
push esi
lea eax, [esp + 0x40]
push eax
push ebp
call fcn.005a3180
lea eax, [esp + 0x48]
push edi
push eax
call fcn.004f3c70
add esp, 0x14
mov dword [esp + 0x1c], 1
lea eax, [esp + 0x24]
push eax
call fcn.004f7e30
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00589ffa
add esp, 0x70
ret
mov ecx, dword [esp + 0x74]
xor eax, eax
pop esi
pop ebp
xor ecx, esp
call fcn.00589ffa
add esp, 0x70
ret
Function at 0x574d70
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x574d87
mov edi, ecx
jmp 0x574d8b
mov edi, ebp
mov ebp, ecx
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 8]
jg 0x574d9b
mov eax, ebx
jmp 0x574da5
push eax
push ebx
call fcn.004d7c10
add esp, 8
test eax, eax
jne 0x574dad
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x574dcb
mov eax, dword [edi]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
mov eax, dword [ebx]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x574db5
cmp esi, dword [edi + 4]
jge 0x574de0
mov eax, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [edi + 4]
jl 0x574dd0
mov ecx, dword [edi + 4]
mov dword [ebx + 4], ecx
pop esi
test ecx, ecx
jle 0x574e04
mov edx, dword [ebx]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x574e01
dec ecx
test ecx, ecx
jg 0x574df3
mov dword [ebx + 4], ecx
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x58d385
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x5c3c23
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005c3aa2

Function at 0x5c8ad4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005c8794

Function at 0x408927
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
add ecx, esi
call fcn.00408944
xor dword [ebx], edx
inc ebx
dec ecx
cmp ebx, edi
jne fcn.00408927
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x810004]
jne 0x401010
repz ret
jmp fcn.004014bf

Function at 0x4079e5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404bd4
and dword [ebp - 4], 0
cmp dword [0x8129bc], 0
mov ebx, eax
jne 0x407a96
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407b47
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407b47
push eax
call fcn.00404b62
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x8129bc], eax
call esi
push eax
call fcn.00404b62
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x8129c0], eax
call esi
push eax
call fcn.00404b62
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x8129c4], eax
call esi
push eax
call fcn.00404b62
pop ecx
mov dword [0x8129cc], eax
test eax, eax
je 0x407a96
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404b62
pop ecx
mov dword [0x8129c8], eax
mov eax, dword [0x8129c8]
cmp eax, ebx
je 0x407aee
cmp dword [0x8129cc], ebx
je 0x407aee
push eax
call fcn.00404bdd
push dword [0x8129cc]
mov esi, eax
call fcn.00404bdd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407aee
test edi, edi
je 0x407aee
call esi
test eax, eax
je 0x407ae5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407ae5
test byte [ebp - 0xc], 1
jne 0x407aee
or dword [ebp + 0x10], 0x200000
jmp 0x407b27
mov eax, dword [0x8129c0]
cmp eax, ebx
je 0x407b27
push eax
call fcn.00404bdd
pop ecx
test eax, eax
je 0x407b27
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407b27
mov eax, dword [0x8129c4]
cmp eax, ebx
je 0x407b27
push eax
call fcn.00404bdd
pop ecx
test eax, eax
je 0x407b27
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x8129bc]
call fcn.00404bdd
pop ecx
test eax, eax
je 0x407b47
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407b49
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409d20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebp
xor ebp, ebp
push esi
cmp ebx, 0x19f
jne 0x409d36
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor esi, esi
cmp ebx, ebp
jle 0x409d71
lea esp, [esp]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebp
call fcn.00409d10
add esp, 4
mov eax, dword [esp + 0xc]
add eax, 0x64
mov dword [esp + 8], eax
sub dword [esp + 8], 0x64
mov cl, byte [esp + 8]
xor byte [esi + edi], cl
inc esi
cmp esi, ebx
jl 0x409d40
pop esi
pop ebp
cmp ebx, 0x2d
jne 0x409d8c
mov dword [0x2ecb408], 0xa62e7790
mov dword [0x2ecb40c], 0xffffffff
add esp, 8
ret
Function at 0x404966
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, 0x41737c
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
and dword [ebp - 4], 0
xor eax, eax
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
xor byte [ebp + eax - 0xc], 0xc9
inc eax
cmp eax, 6
jl 0x404982
lea eax, [ebp - 4]
push eax
push 0x28000
push 0x6000
lea eax, [ebp - 0xc]
push 6
push eax
lea eax, [ebp + 8]
push eax
call fcn.004099d4
add esp, 0x18
cmp eax, 0xffffffff
je 0x4049c6
add eax, 6
push 0
push eax
push dword [ebp + 8]
call dword [0x4151bc]
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x404ff1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 4]
mov edi, dword [0x4151b8]
push ebx
push eax
lea eax, [ebp - 8]
push 2
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call edi
test eax, eax
je 0x4050d4
cmp dword [ebp - 4], 2
jne 0x4050d4
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0x14]
mov eax, edx
mov cx, word [esi]
shl eax, 0xb
shr dx, 5
or eax, edx
xor eax, ecx
cmp ax, word [ebp + 0x10]
mov dword [ebp - 8], eax
ja 0x4050d4
mov dx, cx
add ecx, ecx
movzx eax, ax
shr dx, 0xf
or edx, ecx
inc eax
mov word [esi], dx
lea ecx, [ebp - 4]
cdq
sub eax, edx
push ebx
sar eax, 1
shl eax, 1
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call edi
test eax, eax
je 0x4050d4
movzx eax, word [ebp - 8]
inc eax
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
cmp dword [ebp - 4], ecx
jne 0x4050d4
mov edi, dword [ebp + 0xc]
test eax, eax
jle 0x4050c4
mov dx, word [edi]
mov cx, dx
shr cx, 7
shl edx, 9
or ecx, edx
mov word [edi], cx
xor cx, word [esi]
mov word [edi], cx
mov cx, word [esi]
mov dx, cx
shr dx, 0xe
shl ecx, 2
or edx, ecx
inc ebx
movzx ecx, bx
inc edi
mov word [esi], dx
inc edi
cmp ecx, eax
jl 0x405090
movzx eax, word [ebp - 8]
mov ecx, dword [ebp + 0xc]
push 1
and byte [eax + ecx], 0
pop eax
jmp 0x4050d6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407da3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [0x41a9c8]
call fcn.00407ec5
push 0xc
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.0040e680
add esp, 0x10
xor edi, edi
lea esi, [ebp + edi - 0xc]
call fcn.00407eaf
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00407e50
inc edi
pop ecx
cmp edi, 0xc
jl 0x407dc9
mov eax, dword [0x417bd4]
movzx cx, byte [ebp - 1]
test byte [eax + 0x28], 2
je 0x407e00
movzx eax, word [0x42c426]
shr eax, 8
jmp 0x407e08
mov eax, dword [0x42c42c]
shr eax, 0x18
movzx ecx, cx
cmp ecx, eax
je 0x407e14
or eax, 0xffffffff
jmp 0x407e4c
mov eax, dword [0x42c3c8]
mov ecx, dword [0x41bbac]
cmp eax, ecx
jle 0x407e25
mov eax, ecx
mov esi, dword [0x42c4a0]
mov ecx, eax
dec eax
test ecx, ecx
je 0x407e4a
lea edi, [eax + 1]
call fcn.00407eaf
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00407e50
inc esi
dec edi
pop ecx
jne 0x407e35
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x407e50
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x41a9bc]
mov edx, 0xff
mov eax, ecx
push esi
xor eax, dword [esp + 8]
shr ecx, 8
and eax, edx
mov eax, dword [eax*4 + 0x417648]
xor eax, ecx
mov ecx, dword [0x41a9c4]
mov dword [0x41a9bc], eax
and eax, edx
add eax, dword [0x41a9c0]
mov esi, ecx
and esi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [0x41a9c0], eax
shr eax, 0x18
xor eax, esi
pop esi
shr ecx, 8
mov eax, dword [eax*4 + 0x417648]
xor eax, ecx
mov dword [0x41a9c4], eax
mov eax, dword [esp + 4]
ret

Function at 0x408e37
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x41b810], 0
jne 0x408ec5
push 1
push 0x2000
push dword [0x42c3c4]
call fcn.00409b08
add esp, 0xc
cmp eax, 0xffffffff
mov dword [0x42c3c8], eax
je 0x408ec5
mov ecx, dword [0x417bd4]
push esi
mov esi, dword [0x42c3c4]
mov dword [0x42c4a0], esi
test byte [ecx + 0x28], 1
je 0x408eaf
mov ecx, dword [0x41bbac]
inc ecx
cmp eax, ecx
jg 0x408e89
mov ecx, eax
mov edx, ecx
dec ecx
test edx, edx
je 0x408eaf
push edi
lea edi, [ecx + 1]
call fcn.00407eaf
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00407e50
inc esi
dec edi
pop ecx
jne 0x408e94
mov eax, dword [0x42c3c8]
pop edi
dec eax
pop esi
mov dword [0x42c3c8], eax
mov eax, dword [0x42c4a0]
movzx eax, byte [eax]
inc dword [0x42c4a0]
ret
or eax, 0xffffffff
ret