joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41758e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x25
jne 0x4175ae
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5f
jne 0x4175d7
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00417a69
add esp, 8
jmp 0x417690
push str.st_test
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x417601
mov dword [0x4323c0], 1
mov eax, 1
jmp 0x417690
cmp dword [0x4335e4], 0
je 0x417662
mov ecx, dword [0x4335e4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x41764a
mov edx, dword [ebp - 0xc]
cmp dword [edx + 8], 0
je 0x417643
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov dword [eax], edx
xor eax, eax
jmp 0x417690
mov eax, 1
jmp 0x417690
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x41765c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
jmp 0x41765e
jmp 0x417660
jmp 0x417613
jmp 0x417690
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x417684
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
xor eax, eax
jmp 0x417690
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x417c50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
pop ebp
ret

Function at 0x41a52e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41a56c
mov ecx, dword [ebp + 0xc]
push ecx
push str.Out_of_memory_for__s_n
mov edx, dword [sym.imp.MSVCRT.dll__iob]
add edx, 0x40
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp + 8]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4217f9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.00436274
add byte [eax], al
add al, ch
dec edx
dec edx
add dword [eax], eax
push eax
push esp
or al, 0x51
fild qword [esi]
bound eax, qword [ecx]
adc dword [ebx], ebp
sub cl, byte [edx]
add ebx, dword [esi + edi*4]
and bh, byte [ecx + 0x28]
out 0xd3, eax
lds ebp, [esi + 0x11f0b4ce]
mov ebp, 0x9221f795
cli
dec ecx
neg byte [esi + 0x43d8c73a]
and al, 0x5e
add al, 4
xchg esi, eax
wait
xor dword [eax + 0x21002c80], ecx
jg 0x421822
salc
mov eax, dword [0x83d22b86]
retf

Function at 0x426da5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 0xc], 0x78
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 0xa], 0x42
mov byte [ebp - 9], 0x69
mov byte [ebp - 8], 0x4c
mov byte [ebp - 7], 0x66
mov byte [ebp - 6], 0x44
mov byte [ebp - 5], 0x2f
mov byte [ebp - 4], 0x3a
mov byte [ebp - 3], 0x2d
mov eax, dword [ebp + 0xc]
mov cx, word [eax]
mov word [ebp - 0x14], cx
mov edx, dword [ebp + 8]
add edx, 0x126
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x426e11
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
push ecx
call fcn.0040f239
add esp, 8
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x426de9
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 4]
movsx eax, byte [ebp + edx - 0xc]
push eax
call fcn.0040f239
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x88], 0
je 0x426e75
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x88]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
test edx, edx
je 0x426e75
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
push eax
call fcn.0040f239
add esp, 8
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x426e44
mov edx, dword [ebp - 0x14]
and edx, 0xffff
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret
Function at 0x4278a8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4284d0
push 0x4279da
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x434504], 0xffffffff
or dword [0x434508], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x432420]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x43241c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x43450c], eax
call fcn.004279d9
cmp dword [0x432170], 0
jne 0x42792b
push 0x4279d6
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004279c4
push 0x42a00c
push 0x42a008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x432418]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x432414]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x42a004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.0040cd1e
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40601d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406041
xor eax, eax
test eax, eax
je 0x406053
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406053
xor ecx, ecx
jmp 0x406056
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

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

Disassembly:
cmp dword [0x422b14], 0
push esi
jne 0x40612d
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406107
mov dword [ecx*4 + 0x422b10], eax
inc ecx
cmp ecx, 0x100
jl 0x406102
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40615e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422b10]
xor eax, esi
inc ecx
dec edx
jne 0x406140
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402d15
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea edx, [0x4052b9]
mov ecx, edx
mov eax, dword [edx]
inc ecx
inc ecx
inc ecx
inc ecx
mov edi, dword [ecx]
mov ecx, eax
mov eax, dword [edi]
add edi, 4
mov esi, edi
mov ebx, esi
add edi, eax
mov edx, edi
dec edx
sub ecx, eax
dec ecx
dec ecx
dec ecx
dec ecx
lea eax, [0x4052b9]
mov dword [eax], ecx
inc eax
inc eax
inc eax
inc eax
mov dword [eax], edi
push ecx
mov ch, byte [edi]
mov al, byte [0x405199]
jmp 0x402d56
add al, byte [esi]
xor al, ch
mov byte [edi], al
mov eax, edx
cmp esi, eax
jne 0x402d65
mov esi, ebx
dec esi
inc esi
pop ecx
inc edi
dec ecx
jne 0x402d49
jmp 0x402d71
mov edi, esi
push 0x39
push 0x4052b9
push 0x111
push dword [0x405295]
call dword [sym.imp.user32.dll_SendMessageA]
mov ecx, dword [0x4052b9]
mov edi, dword [0x4052bd]
mov esi, dword [0x4052ad]
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x402d9d
mov esi, dword [0x405194]
mov ecx, dword [0x405190]
push ecx
add ecx, esi
mov dword [0x405279], ecx
pop ecx
mov eax, dword [esi]
inc esi
inc esi
nop
inc esi
inc esi
mov edi, dword [0x4052ad]
mov ebx, esi
add ebx, eax
mov dword [0x405275], ebx
mov edx, esi
add esi, eax
mov ecx, 0
movzx eax, byte [edx]
inc eax
cmp edx, ebx
jae 0x402e44
cmp eax, ecx
jae 0x402de9
ret
sub eax, ecx
mov ecx, eax
test ecx, ecx
je 0x402dfa
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x402df1
inc edx
mov al, byte [edx]
inc edx
movzx ecx, byte [edx]
test ecx, ecx
je 0x402e0d
push ecx
mov byte [edi], al
inc edi
dec ecx
jne 0x402e06
pop ecx
inc edx
movzx eax, byte [edx]
inc cl
cmp cl, 0
jne 0x402e2e
inc al
cmp al, 0
jne 0x402e26
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x402e2a
mov al, 0
dec al
dec cl
jmp 0x402e40
dec cl
inc al
cmp al, 0
jne 0x402e3e
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x402e40
dec al
jmp 0x402de0
mov ecx, dword [0x405279]
sub ecx, esi
test ecx, ecx
je 0x402e59
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x402e50
mov edi, dword [0x4052ad]
mov dword [0x4052ad], edi
ret

Function at 0x40635d
Capabilities:
Encode data using xor

Disassembly:
call 0x406247
sub ecx, ecx
sub ecx, 0xffffff8c
call 0x40635d
rcr byte [esi - 0x7f], 0x76
push cs
insb byte es:[edi], dx
outsw dx, word [esi]
cmpsb byte [esi], byte es:[edi]
xor dword [esi + 0xe], 0xa66f666c
sub esi, 0xfffffffc
loop 0x406360
hlt
push es
or byte [esi], dh
jg 0x4062f3
mov edi, 0x3d98821b
out dx, al
aad 0x7f
mov al, 0xb
cld
sti
in eax, 0x84
pop edx
mov ss, word [edx + 0x7bb73101]
jae 0x4063a7
imul dword [eax]
int 0xe6
ret 0x92aa
xchg edx, eax
or eax, dword [edi + 0x22818896]
jb 0x4063e9
xor eax, 0x42d3a9b2
adc dword [edx], edx
dec esi
cwde
ljmp 0xe1e7
loope 0x4063d9
cmp bl, byte [edi + ecx*2]
in al, 0xc1
pop ds
clc
out dx, al
aam 0xe4
inc esi
add ch, dl
jne 0x40636b
sbb bh, byte [edx - 0x61]
and dword [edi - 0x2c474a30], ebx
aas
imul edi, dword [edx + 0x6e4c1314], 0x5598cea3
sti
imul eax, dword [esi - 0x6c5d0cab], 0x6c
in eax, dx
in eax, dx
sub ecx, dword [esp + ebx*4]
loopne 0x40638e
ror byte [esi], 0x9a
adc dword [eax + 0x5e45adf9], esp
mov al, byte [0x5e45adf9]
Function at 0x40324c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40325b
pop dword [ebp - 0x4c]
mov eax, 0x4684ac6d
add eax, 0xb9bb85ee
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x672a2d7
sub dword [ebp - 0x5c], 0xb8205d8c
mov dword [ebp - 0x58], 0x7c17c731
sub dword [ebp - 0x58], 0x49e47aec
mov dword [ebp - 0x54], 0x8b64ea89
add dword [ebp - 0x54], 0xc0e759a5
mov dword [ebp - 0x50], 0xf691c7db
add dword [ebp - 0x50], 0x96e3825
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xf9b2c869
add dword [ebp - 0x5c], 0x7abfa0ed
mov dword [ebp - 0x58], 0x1d33fc22
sub dword [ebp - 0x58], 0xdbc79aad
mov dword [ebp - 0x54], 0x220e83d4
add dword [ebp - 0x54], 0x4160e898
mov dword [ebp - 0x50], 0x624a2813
add dword [ebp - 0x50], 0x9db5d7ed
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xa6cbafff
sub eax, 0xa68b2f83
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3aaf4
push 0
call eax
mov ecx, 0x569d
mov ebx, eax
mov edi, 0x6d8e82e5
add edi, 0x92b6911b
add edi, dword [ebp - 0x4c]
mov edx, 0xb45977bc
sub edx, 0x9f29b6a2
mov esi, dword [edi]
sub dword [ebp - 0x28], ebx
add esi, edx
xor dword [ebp - 0x40], ebx
mov dword [ebx], esi
mov dword [ebp - 4], 0x1c477c41
add ebx, 0xb73f4ebd
sub ebx, 0xb73f4eb9
add edi, 0xb5a2c62e
sub edi, 0xb5a2c62a
loop 0x403372
add eax, 0x18b0860b
add eax, 0xe750c73c
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10c9058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10c91a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10c907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c906a
add dl, dl
jne 0x10c9089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c90dc
xor eax, eax
add dl, dl
jne 0x10c9096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c917d
add dl, dl
jne 0x10c90a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c90b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c90bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c90c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10c90d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10c9075
mov eax, 1
add dl, dl
jne 0x10c90ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c90f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c90e1
sub eax, ebx
mov ebx, 1
jne 0x10c9128
mov ecx, 1
add dl, dl
jne 0x10c910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10c9119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c9105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c9075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10c913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10c914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c9136
cmp eax, 0x7d00
jae 0x10c916d
cmp eax, 0x500
jb 0x10c9168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c9075
cmp eax, 0x7f
ja 0x10c9170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c9075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10c919e
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 0x10c9075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x57f770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x122000]
push edi
jmp 0x57f78a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x57f791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f780
mov eax, 1
add ebx, ebx
jne 0x57f7a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x57f7b4
jne 0x57f7d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7d3
dec eax
add ebx, ebx
jne 0x57f7c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x57f798
add ebx, ebx
jne 0x57f7cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x57f825
xor ecx, ecx
sub eax, 3
jb 0x57f7eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57f85a
sar eax, 1
mov ebp, eax
jmp 0x57f7f6
add ebx, ebx
jne 0x57f7f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7c4
inc ecx
add ebx, ebx
jne 0x57f804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7c4
add ebx, ebx
jne 0x57f811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x57f806
jne 0x57f822
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x57f806
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x57f844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x57f836
jmp 0x57f786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x57f844
add edi, ecx
jmp 0x57f786
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57f862
cmp byte [edi], 0x11
jne 0x57f862
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 0x57f867
lea edi, [esi + 0x178000]
mov eax, dword [edi]
or eax, eax
je 0x57f8df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x219a50]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x219bcc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x57f894
mov ecx, edi
jns 0x57f8c3
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 + 0x219bd0]
or eax, eax
je 0x57f8d9
mov dword [ebx], eax
add ebx, 4
jmp 0x57f8b1
call dword [esi + 0x219be0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x57f910
cmp al, 0xef
ja 0x57f903
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x57f8e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x57f8f2
mov ebp, dword [esi + 0x219bd4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x57f944
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x403308
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x407a30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x407ac0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x407ac0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x407a73
test edx, 3
jne 0x407a62
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x407a6d
jmp 0x407a73
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x407a73
cmp dword [ecx - 8], 1
je 0x407a7d
mov edx, ebx
or edx, 3
call fcn.00404f78
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x407a8f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004048ac

Function at 0x407acc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x407b5c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x407b5c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x407b0f
test edx, 3
jne 0x407afe
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x407b09
jmp 0x407b0f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x407b0f
cmp dword [ecx - 8], 1
je 0x407b19
mov edx, ebx
or edx, 3
call fcn.00404f78
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x407b2b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004048ac
Function at 0x41d83c
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x41d85b
add edx, 3
sar edx, 2
test edx, edx
jle 0x41d969
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x41d890
je 0x41d8d3
sub ecx, 0x2b
je 0x41d8c9
sub ecx, 4
je 0x41d8ce
dec ecx
sub ecx, 0xa
jb 0x41d8bb
jmp 0x41d8d6
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x41d8a2
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x41d8ad
jmp 0x41d8d6
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x41d8d6
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x41d8d6
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x41d8d6
mov byte [eax], 0x3e
jmp 0x41d8d6
mov byte [eax], 0x3f
jmp 0x41d8d6
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x41d873
movzx eax, byte [esp + 4]
add eax, eax
add eax, eax
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x41d927
cmp byte [esp + 7], 0xff
jne 0x41d927
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x41d95e
cmp dl, 0xff
je 0x41d95e
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x41d86a
add esp, 0x10
pop ebp
pop edi
pop esi
ret