joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x1f9b4c95
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x4d5a371a
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40f643
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7d1677
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x8c8ca0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0xc], esi
call fcn.00544c61
push eax
lea ecx, [esp + 0x1c]
call fcn.00401a5a
lea ebx, [edi + 0x74]
mov ecx, ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call fcn.0040fd2d
push ebx
mov dword [esp + 0x24], eax
call fcn.0040a41a
mov eax, dword [edi + 0xe0]
mov eax, dword [eax + 0x2a9c]
mov dword [esp + 0x1c], eax
cmp eax, esi
je 0x40f732
mov ecx, dword [edi + 0xe0]
lea eax, [esp + 0x1c]
push eax
add ecx, 0x2a98
call fcn.00402099
mov esi, dword [eax]
test esi, esi
je 0x40f724
push dword [esi + 0x18]
lea eax, [esp + 0x1c]
push dword [esi + 0x1c]
push dword [esi + 0x14]
push dword [esi + 4]
push str._s_n_s_n_s_n_s
push eax
call fcn.0040501a
add esp, 0x18
mov ecx, edi
call fcn.0040f8f0
test eax, eax
je 0x40f720
push dword [esp + 0xc]
inc dword [esp + 0x14]
push dword [esp + 0x1c]
push ebx
call fcn.0040a3c8
push esi
push eax
push ebx
call fcn.0040a42f
cmp dword [esi + 0x24], 0
je 0x40f720
inc dword [esp + 0x14]
inc dword [esp + 0xc]
cmp dword [esp + 0x1c], 0
jne 0x40f6b7
cmp dword [esp + 0x10], 0
jne 0x40f73e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x158]
jmp 0x40f763
xor eax, eax
cmp dword [esp + 0x14], eax
mov ecx, edi
setle al
push eax
push 2
call fcn.0053d853
mov ecx, eax
call fcn.0053daa0
push dword [esp + 0x20]
mov ecx, ebx
call fcn.0040a4bf
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00401a7f
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c9bd
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, eax
xor eax, eax
mov edx, dword [eax + 0x8d08e0]
mov ecx, dword [esi]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x48
jb 0x41c9cc
xor eax, eax
mov dword [ebp - 4], 0x100
mov edx, dword [eax + 0x8d0928]
mov ecx, dword [esi + 4]
mov dword [eax + ecx], edx
add eax, 4
dec dword [ebp - 4]
jne 0x41c9e8
cmp eax, 0x1000
jb 0x41c9e1
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [esi]
mov edx, dword [ebp - 4]
add edx, eax
mov dword [ebp - 0xc], edx
xor edx, edx
lea eax, [ecx + 1]
div ebx
add dword [ebp - 4], 4
movzx eax, byte [edx + edi]
movzx edx, byte [ecx + edi]
shl edx, 8
or eax, edx
shl eax, 8
mov dword [ebp - 8], eax
xor edx, edx
lea eax, [ecx + 2]
div ebx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
movzx eax, byte [edx + eax]
mov edx, dword [ebp - 8]
or edx, eax
shl edx, 8
mov dword [ebp - 8], edx
xor edx, edx
lea eax, [ecx + 3]
div ebx
movzx eax, byte [edx + edi]
mov edx, dword [ebp - 8]
or edx, eax
mov eax, dword [ebp - 0xc]
xor dword [eax], edx
lea eax, [ecx + 4]
xor edx, edx
div ebx
cmp dword [ebp - 4], 0x48
mov ecx, edx
jb 0x41ca08
and dword [ebp + 8], 0
and dword [ebp - 4], 0
xor edi, edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.0041c269
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov dword [edi + eax], ecx
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
mov dword [edi + eax + 4], ecx
add edi, 8
cmp edi, 0x48
jb 0x41ca7a
xor edi, edi
mov ebx, 0x80
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.0041c269
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
mov dword [edi + eax], ecx
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 4]
mov dword [edi + eax + 4], ecx
add edi, 8
dec ebx
jne 0x41caa8
cmp edi, 0x1000
jb 0x41caa3
pop edi
pop ebx
leave
ret 4
Function at 0x422c5a
Capabilities:
Encode data using base64

Disassembly:
push 0xc
mov eax, 0x7d2dd5
call fcn.00648a34
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
cmp edi, ebx
jne 0x422c84
mov ecx, dword [ebp + 0xc]
push 0x7ef8b1
call fcn.0040220b
jmp 0x422d71
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
call fcn.00422bc8
mov esi, eax
call fcn.00544c61
push eax
lea ecx, [ebp - 0x14]
call fcn.00401a5a
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00401938
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0x14], ebx
jbe 0x422d51
jmp 0x422cc0
mov edi, dword [ebp + 0x10]
movzx esi, byte [ecx + edi]
inc ecx
shl esi, 8
cmp ecx, dword [ebp + 0x14]
jae 0x422cd6
movzx ebx, byte [ecx + edi]
or esi, ebx
inc ecx
jmp 0x422cd9
inc dword [ebp - 0x10]
shl esi, 8
cmp ecx, dword [ebp + 0x14]
jae 0x422cea
movzx edi, byte [ecx + edi]
or esi, edi
inc ecx
jmp 0x422ced
inc dword [ebp - 0x10]
push 3
pop edi
cmp dword [ebp - 0x10], 0
je 0x422d00
dec dword [ebp - 0x10]
mov byte [ebp + edi - 0x18], 0x3d
jmp 0x422d0f
mov ebx, esi
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi - 0x18], bl
shr esi, 6
dec edi
jns 0x422cf0
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x422d34
cmp dword [edi + 4], ebx
jb 0x422d34
mov byte [edx + eax], 0xd
inc edx
mov byte [edx + eax], 0xa
inc edx
and dword [edi + 4], 0
mov bl, byte [ebp + esi - 0x18]
mov edi, dword [ebp + 8]
mov byte [edx + eax], bl
inc edx
inc esi
inc dword [edi + 4]
cmp esi, 4
jl 0x422d1a
cmp ecx, dword [ebp + 0x14]
jb 0x422cbd
push edx
lea ecx, [ebp - 0x14]
call fcn.00416811
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.00402306
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401a7f
mov eax, dword [ebp + 0xc]
call fcn.00648b0c
ret 0x14
Function at 0x422e3c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x422e4e
xor eax, eax
jmp 0x422f16
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov edx, dword [esi - 0xc]
add edx, esi
mov dword [ebp + 8], edi
jmp 0x422f09
xor eax, eax
xor ebx, ebx
cmp esi, edx
jae 0x422eca
mov cl, byte [esi]
inc esi
cmp cl, 9
jl 0x422e81
cmp cl, 0xa
jle 0x422ec5
cmp cl, 0xd
je 0x422ec5
cmp cl, 0x20
je 0x422ec5
shl ebx, 6
cmp cl, 0x60
jle 0x422e91
movsx ecx, cl
sub ecx, 0x47
jmp 0x422eb1
cmp cl, 0x40
jle 0x422e9e
movsx ecx, cl
sub ecx, 0x41
jmp 0x422eb1
cmp cl, 0x3d
jne 0x422ea6
inc edi
jmp 0x422ec4
cmp cl, 0x2f
jle 0x422eb5
movsx ecx, cl
add ecx, 4
or ebx, ecx
jmp 0x422ec4
jne 0x422ebc
or ebx, 0x3f
jmp 0x422ec4
cmp cl, 0x2b
jne 0x422ec4
or ebx, 0x3e
inc eax
cmp eax, 4
jb 0x422e66
cmp eax, 4
jne 0x422f1b
mov eax, dword [ebp + 8]
add eax, 3
mov ecx, eax
sub ecx, edi
cmp ecx, dword [ebp + 0x10]
jbe 0x422efc
xor eax, eax
jmp 0x422f14
dec eax
test edi, edi
je 0x422ef3
mov ecx, dword [ebp + 8]
sub ecx, edi
add ecx, 3
cmp eax, ecx
jae 0x422ef9
mov ecx, dword [ebp + 0xc]
mov byte [eax + ecx], bl
shr ebx, 8
cmp eax, dword [ebp + 8]
jne 0x422ee2
push 3
pop eax
sub eax, edi
add dword [ebp + 8], eax
cmp esi, edx
jb 0x422e62
mov eax, dword [ebp + 8]
pop esi
pop ebx
pop edi
pop ebp
ret 0xc
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 8]
jmp 0x422f14

Function at 0x422f26
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor edx, edx
push esi
push edi
cmp eax, edx
je 0x422fd6
cmp dword [ebp + 8], edx
je 0x422fd6
lea esi, [eax + ecx]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
cmp eax, esi
jae 0x42300c
xor eax, eax
xor ebx, ebx
cmp dword [ebp - 4], esi
jae 0x422fc2
mov ecx, dword [ebp - 4]
mov cl, byte [ecx]
inc dword [ebp - 4]
cmp cl, 9
jl 0x422f77
cmp cl, 0xa
jle 0x422fbd
cmp cl, 0xd
je 0x422fbd
cmp cl, 0x20
je 0x422fbd
shl ebx, 6
cmp cl, 0x60
jle 0x422f87
movsx ecx, cl
sub ecx, 0x47
jmp 0x422fa9
cmp cl, 0x40
jle 0x422f94
movsx ecx, cl
sub ecx, 0x41
jmp 0x422fa9
cmp cl, 0x3d
jne 0x422f9e
inc dword [ebp - 8]
jmp 0x422fbc
cmp cl, 0x2f
jle 0x422fad
movsx ecx, cl
add ecx, 4
or ebx, ecx
jmp 0x422fbc
jne 0x422fb4
or ebx, 0x3f
jmp 0x422fbc
cmp cl, 0x2b
jne 0x422fbc
or ebx, 0x3e
inc eax
cmp eax, 4
jb 0x422f56
cmp eax, 4
jne 0x423010
mov ecx, dword [ebp - 8]
lea eax, [edx + 3]
mov edi, eax
sub edi, ecx
cmp edi, dword [ebp + 0xc]
jbe 0x422ff8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
dec eax
test ecx, ecx
je 0x422fef
mov edi, edx
sub edi, ecx
add edi, 3
cmp eax, edi
jae 0x422ff5
mov edi, dword [ebp + 8]
mov byte [eax + edi], bl
shr ebx, 8
cmp eax, edx
jne 0x422fdf
push 3
pop eax
sub eax, ecx
add edx, eax
cmp dword [ebp - 4], esi
jb 0x422f52
mov eax, edx
jmp 0x422fd8
neg eax
sbb eax, eax
not eax
and eax, edx
jmp 0x422fd8
Function at 0x42d917
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
jmp 0x40e86c
Function at 0x436132
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
cmp eax, edi
pop edi
je 0x43618f
mov ecx, dword [ebp - 4]
mov edx, ecx
and edx, 1
mov dword [esi + 0x3c], edx
mov edx, ecx
and edx, 2
mov dword [esi + 0x40], edx
mov edx, ecx
and edx, 4
mov dword [esi + 0x44], edx
mov edx, ecx
and edx, 0x10
mov dword [esi + 0x48], edx
mov edx, ecx
and edx, 0x20
and ecx, 0x40
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], ecx
leave
ret

Function at 0x439513
Capabilities:
Parse url

Disassembly:
push ebp
lea ebp, [esp - 0x7c0]
sub esp, 0x840
mov eax, dword [0x8c8ca0]
xor eax, ebp
mov dword [ebp + 0x7bc], eax
mov eax, dword [ebp + 0x7c8]
push ebx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp + 0x7cc]
push esi
push edi
mov ebx, edx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ecx
test eax, eax
je 0x4395aa
test ebx, ebx
je 0x4395aa
mov esi, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
and dword [ebp - 0x78], 0
mov edi, 0x22000000
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
mov dword [ebp - 0x74], 0x824
call esi
test eax, eax
jne 0x4395c6
call dword [0x7da60c]
cmp eax, 0x7a
jne 0x4395aa
push dword [ebp - 0x74]
call fcn.0053b596
pop ecx
push edi
lea ecx, [ebp - 0x74]
push ecx
push eax
push ebx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x78], 1
call esi
test eax, eax
jne 0x4395cb
push dword [ebp - 0x70]
call fcn.0053b58b
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x7bc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0063e2b3
add ebp, 0x7c0
leave
ret 8
lea ebx, [ebp - 0x68]
jmp 0x4395ce
mov ebx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x80]
push esi
xor edi, edi
push edi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x78], edi
je 0x4395ec
push ebx
call fcn.0053b58b
pop ecx
cmp dword [ebp - 0x70], edi
jne 0x4395fc
mov eax, dword [ebp - 0x6c]
mov dword [eax], 0x1000
jmp 0x439669
mov ax, word [esi + 0x18]
mov ecx, dword [ebp - 0x7c]
mov word [ecx], ax
mov eax, dword [esi + 0xc]
dec eax
je 0x439660
dec eax
je 0x439655
dec eax
je 0x43964a
dec eax
je 0x43963f
dec eax
je 0x439634
dec eax
je 0x439629
dec eax
mov eax, dword [ebp - 0x6c]
jne 0x4395f4
mov dword [eax], 0x1002
jmp 0x439669
mov eax, dword [ebp - 0x6c]
mov dword [eax], 0x1006
jmp 0x439669
mov eax, dword [ebp - 0x6c]
mov dword [eax], 0x1001
jmp 0x439669
mov eax, dword [ebp - 0x6c]
mov dword [eax], 0x100b
jmp 0x439669
mov eax, dword [ebp - 0x6c]
mov dword [eax], 3
jmp 0x439669
mov eax, dword [ebp - 0x6c]
mov dword [eax], 2
jmp 0x439669
mov eax, dword [ebp - 0x6c]
mov dword [eax], 1
mov eax, dword [ebp - 0x70]
jmp 0x4395ac
Function at 0x464689
Capabilities:
Read file on windows

Disassembly:
push 0x1c
mov eax, 0x7c6ab7
call fcn.00648a34
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
push ebx
push eax
call fcn.0063e8c4
pop ecx
pop ecx
test eax, eax
je 0x4646af
xor eax, eax
jmp 0x464780
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], vtable.CBitmap.0
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi]
push 0x85d680
push eax
call fcn.00642238
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x46476a
push edi
push 1
lea eax, [ebp - 0x28]
push 0xe
push eax
call fcn.00642809
add esp, 0x10
push edi
cmp eax, 1
jne 0x464764
mov eax, 0x4d42
cmp word [ebp - 0x28], ax
jne 0x464764
call fcn.00642c8f
mov esi, dword [esi]
pop ecx
push 0x90
push ebx
push ebx
push ebx
push esi
push ebx
call dword [0x7daa8c]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x46476a
push eax
lea ecx, [ebp - 0x18]
call fcn.00546c86
test eax, eax
je 0x46476a
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.0046467a
xor ebx, ebx
inc ebx
push ebx
push 2
push 0x21
push 0x10
lea edi, [esi + 0x18]
push 0x10
mov ecx, edi
call fcn.0054924d
test eax, eax
je 0x46476a
push dword [esi + 0x14]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.0040fe3c
mov dword [ebp - 0x10], ebx
jmp 0x46476a
call fcn.00642c8f
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], vtable.CBitmap.0
call fcn.0040502d
mov eax, dword [ebp - 0x10]
call fcn.00648b0c
ret 4

Function at 0x469f2f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7d304f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x8c8ca0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
mov eax, edi
call fcn.00469aa5
xor esi, esi
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], esi
je 0x469fc0
lea ecx, [esp + 0x10]
push ecx
push eax
lea eax, [edi + 4]
push eax
call fcn.0046a1c4
test eax, eax
jne 0x469fc0
push 0x490
call fcn.0053b55c
pop ecx
cmp eax, esi
je 0x469f9e
mov ecx, eax
call fcn.00439e40
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.00469fdd
lea eax, [esp + 0xc]
push eax
push esi
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.0046a0df
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.00401a7f
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x479315
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ecx + 4], eax
je 0x479351
push esi
push edi
mov edi, dword [ecx + 0xc]
movzx esi, byte [edx]
mov eax, dword [ecx + 4]
dec dword [ebp + 0xc]
xor esi, eax
and esi, 0xff
mov esi, dword [edi + esi*4]
shr eax, 8
xor eax, esi
inc edx
cmp dword [ebp + 0xc], 0
mov dword [ecx + 4], eax
jne 0x47932c
pop edi
pop esi
mov eax, dword [ecx + 4]
pop ebp
ret 0xc
Function at 0x51540e
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x5154a5
mov edx, dword [eax]
push ebx
push esi
push edi
mov byte [edx + 0x16], cl
mov edx, dword [eax]
mov byte [edx + 0x17], cl
mov edx, dword [eax]
mov byte [edx + 0x18], cl
mov edx, dword [eax]
mov byte [edx + 0x19], cl
mov esi, dword [eax + 4]
xor edx, edx
cmp esi, ecx
jle 0x51545a
mov edi, dword [eax]
mov ebx, ecx
shr ebx, 0x18
movzx edi, byte [edi + edx]
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x8b9108]
xor ecx, edi
inc edx
cmp edx, esi
jl 0x51543c
xor edx, edx
cmp dword [eax + 0xc], edx
jle 0x515481
mov esi, dword [eax + 8]
movzx edi, byte [esi + edx]
mov ebx, ecx
shr ebx, 0x18
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x8b9108]
xor ecx, edi
inc edx
cmp edx, dword [eax + 0xc]
jl 0x515464
mov edx, dword [eax]
pop edi
mov byte [edx + 0x16], cl
mov esi, dword [eax]
mov edx, ecx
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [eax]
mov edx, ecx
shr edx, 0x10
mov byte [esi + 0x18], dl
mov eax, dword [eax]
shr ecx, 0x18
pop esi
mov byte [eax + 0x19], cl
pop ebx
ret

Function at 0x521960
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x9257c8]
push ebx
push esi
push edi
push eax
call dword [0x7da470]
mov ebx, eax
test ebx, ebx
jne 0x52197c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
lea ecx, [ebx + 0xc88]
push ebp
push ecx
call fcn.005278d0
mov ebp, dword [esp + 0x18]
add esp, 4
xor edi, edi
call fcn.00527820
xor edx, edx
mov esi, eax
mov dl, byte [edi + ebp]
xor esi, edx
push esi
call fcn.00527850
add esp, 4
inc edi
cmp edi, 0xc
jl 0x521992
mov al, byte [ebx + 0xafc]
pop ebp
test al, 8
je 0x5219c8
xor eax, eax
mov ax, word [ebx + 0xb00]
shr eax, 8
jmp 0x5219dd
mov eax, dword [ebx + 0xc4a]
xor ecx, ecx
shr eax, 0x10
mov cl, ah
and ecx, 0xff
mov eax, ecx
and esi, 0xffff
cmp esi, eax
je 0x5219ee
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [ebx + 0x8cea]
mov ecx, dword [ebx + 0xab2]
cmp eax, ecx
jbe 0x521a00
mov eax, ecx
mov esi, dword [ebx + 0x8ce6]
mov edx, eax
dec eax
test edx, edx
je 0x521a2c
lea edi, [eax + 1]
call fcn.00527820
mov ebx, eax
xor eax, eax
mov al, byte [esi]
xor ebx, eax
push ebx
call fcn.00527850
add esp, 4
mov byte [esi], bl
inc esi
dec edi
jne 0x521a10
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x527850
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [0x9257c8]
push eax
call dword [0x7da470]
test eax, eax
je 0x5278c8
mov edx, dword [eax + 0xcca]
push esi
mov esi, dword [esp + 8]
mov ecx, edx
xor ecx, esi
and ecx, 0xff
shr edx, 8
mov ecx, dword [ecx*4 + 0x8c08f4]
xor ecx, edx
mov edx, dword [eax + 0xcce]
mov dword [eax + 0xcca], ecx
and ecx, 0xff
add ecx, edx
mov edx, dword [eax + 0xcd2]
imul ecx, ecx, 0x8088405
inc ecx
mov esi, edx
mov dword [eax + 0xcce], ecx
and esi, 0xff
shr ecx, 0x18
xor ecx, esi
pop esi
shr edx, 8
mov ecx, dword [ecx*4 + 0x8c08f4]
xor ecx, edx
mov dword [eax + 0xcd2], ecx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
mov edx, ecx
dec ecx
mov eax, dword [edi + 0x8cde]
test edx, edx
je 0x527967
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x8c08f4]
xor eax, edx
inc ecx
dec esi
jne 0x52793f
pop esi
mov dword [edi + 0x8cde], eax
pop ebx
pop edi
ret
mov dword [edi + 0x8cde], eax
pop edi
ret
Function at 0x537560
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
mov edx, dword [ecx + 0x3e]
mov eax, edx
xor eax, esi
and eax, 0xff
shr edx, 8
mov eax, dword [eax*4 + 0x8c2b70]
xor eax, edx
mov edx, dword [ecx + 0x42]
mov dword [ecx + 0x3e], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 0x46]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 0x42], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x8c2b70]
xor eax, edx
mov dword [ecx + 0x46], eax
ret
Function at 0x538111
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
cmp eax, 1
push edi
mov ebx, eax
jge 0x5380e4
mov ebx, 1
cmp eax, 9
jle 0x5380ee
mov ebx, 9
mov esi, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [esi + 0x56]
mov dword [esi + 0x5e], ebp
cmp eax, ebp
jne 0x53810c
mov dword [esi + 0x5e], 1
mov dword [esi + 0x56], 0x10000
cmp dword [esi + 0x4a], ebp
jne 0x538141
push 2
push 0x8000
call fcn.006489a8
add esp, 8
cmp eax, ebp
mov dword [esi + 0x4a], eax
jne 0x538141
push esi
push ebp
push 0x17c
call fcn.00533cc0
add esp, 8
push eax
push 4
call fcn.0052f370
add esp, 0xc
cmp dword [esi + 0x4e], ebp
jne 0x53818c
push 2
push 0x8000
call fcn.006489a8
push 2
push 0x4000
mov dword [esi + 0x4e], eax
call fcn.006489a8
mov ecx, dword [esi + 0x4e]
add esp, 0x10
cmp ecx, ebp
mov dword [esi + 0x52], eax
je 0x538172
cmp eax, ebp
jne 0x53818c
push esi
push ebp
push 0x186
call fcn.00533cc0
add esp, 8
push eax
push 4
call fcn.0052f370
add esp, 0xc
mov eax, dword [esi + 0x52]
mov ecx, 0x1fff
xor edx, edx
mov word [eax + 0x7ffe], bp
mov edi, dword [esi + 0x52]
xor eax, eax
rep stosd dword es:[edi], eax
xor ecx, ecx
stosw word es:[edi], ax
mov cx, word [ebx*8 + 0x8c28ca]
xor eax, eax
mov dword [esi + 0x7e], ecx
mov dx, word [ebx*8 + 0x8c28c8]
mov dword [esi + 0x82], edx
mov ax, word [ebx*8 + 0x8c28cc]
xor ecx, ecx
mov dword [esi + 0x86], eax
mov cx, word [ebx*8 + 0x8c28ce]
cmp ebx, 1
mov dword [esi + 0x7a], ecx
jne 0x5381ec
mov eax, dword [esp + 0x18]
or byte [eax], 4
jmp 0x5381f8
cmp ebx, 9
jne 0x5381f8
mov eax, dword [esp + 0x18]
or byte [eax], 2
mov edx, dword [esi + 0x4a]
push esi
push 0x8000
push edx
mov dword [esi + 0x6a], ebp
mov dword [esi + 0x5a], ebp
call dword [esi + 0x3f3a]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x76], eax
jne 0x538227
mov dword [esi + 0x72], 1
mov dword [esi + 0x76], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, 0x106
mov dword [esi + 0x72], ebp
cmp eax, edi
jae 0x538248
cmp dword [esi + 0x72], ebp
jne 0x538248
push esi
call fcn.00538420
mov eax, dword [esi + 0x76]
add esp, 4
cmp eax, edi
jb 0x538233
mov ecx, dword [esi + 0x4a]
mov dword [esi + 0x62], ebp
xor eax, eax
mov edi, dword [esi + 0x62]
xor edx, edx
mov dl, byte [ecx + eax]
and edi, 0x1ff
and edx, 0x3fff
shl edi, 5
xor edx, edi
inc eax
cmp eax, 2
mov dword [esi + 0x62], edx
jb 0x538250
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x54c505
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x54c530
call fcn.0053d72d
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x54c553
push eax
push dword [esi + 4]
call fcn.0054c48b
push esi
push eax
mov ecx, 0x8fd304
call fcn.0054c0ad
mov eax, esi
pop esi
pop ebp
ret 0x18