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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x445edc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004066e0
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, edi
call fcn.00406f24
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x445dc2
push 0
lea edx, [ebp - 0x420]
mov eax, esi
mov ecx, ebx
call fcn.00406818
jmp 0x445de4
mov edx, ebx
dec edx
mov eax, esi
xor ecx, ecx
call fcn.00407208
push ebx
mov eax, dword [esi]
call fcn.00406f24
push eax
mov eax, edi
call fcn.00406f24
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
test ebx, ebx
jne 0x445eb1
lea eax, [ebp - 0x424]
mov edx, edi
call fcn.004078a0
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 4]
call fcn.00411870
mov eax, dword [ebp - 4]
mov edx, 0x445ef8
call fcn.00407d5c
jne 0x445e46
call fcn.00415068
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov edx, dword [0x529ad0]
mov edx, dword [edx]
lea eax, [ebp - 8]
call fcn.00415d88
mov eax, esi
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.004078c8
jmp 0x445eb1
mov eax, dword [ebp - 4]
mov edx, 0x445f10
call fcn.00407d5c
jne 0x445e85
call fcn.00415094
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov edx, dword [0x529c44]
mov edx, dword [edx]
lea eax, [ebp - 0xc]
call fcn.00415d88
mov eax, esi
mov edx, dword [ebp - 0xc]
mov ecx, 0
call fcn.004078c8
jmp 0x445eb1
mov eax, dword [ebp - 4]
mov edx, 0x445f28
call fcn.00407d5c
jne 0x445eb1
lea eax, [ebp - 0x428]
call fcn.00413224
mov edx, dword [ebp - 0x428]
mov eax, esi
mov ecx, 0
call fcn.004078c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445ee3
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.0040766c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040766c
ret

Function at 0x446200
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
mov eax, pe_nt_image_headers32
push eax
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
push 0
call fcn.00406a58
add esp, 0x100
pop ebx
ret
Function at 0x4462bc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7ec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x814], ebx
mov dword [ebp - 0x80c], ebx
mov dword [ebp - 0x810], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00406f14
xor eax, eax
push ebp
push 0x4463dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, ebx
call fcn.00406734
lea eax, [ebp - 0x810]
mov edx, dword [ebp - 4]
call fcn.004078a0
mov eax, dword [ebp - 0x810]
lea edx, [ebp - 0x80c]
call fcn.00412b30
cmp dword [ebp - 0x80c], 0
jne 0x446357
lea eax, [ebp - 0x814]
call fcn.0044629c
push dword [ebp - 0x814]
push 0x4463f8
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00406cc0
lea eax, [ebp - 4]
xor ecx, ecx
xor edx, edx
call fcn.004474a8
test al, al
je 0x4463ab
push 0
mov eax, dword [ebp - 4]
call fcn.00406f24
push eax
push 0x800
lea eax, [ebp - 0x808]
push eax
mov eax, ebx
call fcn.00406f24
push eax
mov eax, dword [ebp - 8]
call fcn.00406f24
push eax
mov eax, edi
call fcn.00406f24
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x808]
mov eax, esi
call fcn.00406818
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4463e3
lea eax, [ebp - 0x814]
call fcn.004066e0
lea eax, [ebp - 0x810]
mov edx, 2
call fcn.0040766c
lea eax, [ebp - 4]
call fcn.004066e0
ret
Function at 0x446e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00406f14
mov eax, dword [ebp - 8]
call fcn.00406f14
xor eax, eax
push ebp
push 0x446f40
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004066e0
cmp dword [ebp - 4], 0
je 0x446e88
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x446e88
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00407008
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00406f24
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x446f25
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00406f24
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x446f15
mov eax, ebx
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00407208
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.00406f24
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x446f03
sub esi, 4
mov esi, dword [esi]
push ebx
mov ecx, esi
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.00406fa4
jmp 0x446f1c
mov eax, ebx
call fcn.004066e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446f47
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406704
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406f24
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x44723d
test al, 0x10
jne 0x447241
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4473b4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x44744e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
mov edx, esi
call fcn.004078a0
mov eax, dword [ebp - 8]
call fcn.00412824
mov byte [ebp - 1], al
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
mov eax, esi
call fcn.00406f24
mov edi, eax
push edi
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x447433
mov bl, 1
push eax
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp - 1], 0
jne 0x447433
mov edx, edi
lea eax, [ebp - 0xc]
call fcn.00407800
mov eax, dword [ebp - 0xc]
call fcn.00407700
push eax
call sub.kernel32.dll_DeleteFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447455
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040766c
ret
Function at 0x447e38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00406f14
xor eax, eax
push ebp
push 0x448004
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x447e80
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x447e80
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004068fc
test eax, eax
je 0x447e89
sub eax, 4
mov eax, dword [eax]
dec eax
jle 0x447f17
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.004078a0
mov edx, dword [ebp - 0x10]
mov eax, 0x448020
call fcn.004080d4
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x447ec9
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x447ec9
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004068fc
test eax, eax
je 0x447ed2
sub eax, 4
mov eax, dword [eax]
dec eax
cmp ebx, eax
jne 0x447f17
mov eax, dword [ebp - 4]
test eax, eax
je 0x447ef6
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x447ef6
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004068fc
mov ebx, eax
test ebx, ebx
je 0x447f01
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
mov ecx, ebx
sub ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00406fa4
mov eax, dword [ebp - 4]
test eax, eax
je 0x447f36
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x447f36
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004068fc
test eax, eax
je 0x447f3f
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x447f6f
mov dword [ebp - 0xc], 1
lea eax, [ebp - 4]
call fcn.00406f9c
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
movzx ecx, byte [ecx + esi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 0xc]
dec ebx
jne 0x447f4c
mov eax, dword [ebp - 4]
test eax, eax
je 0x447f8e
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x447f8e
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004068fc
test eax, eax
je 0x447f97
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 0xc], 0
jle 0x447fe6
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x447fd1
mov eax, ebx
sub eax, 0xa
cmp word [eax], 1
je 0x447fd1
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004068fc
mov ebx, eax
lea eax, [ebp - 4]
call fcn.00406f9c
mov edx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44800b
lea eax, [ebp - 0x10]
call fcn.00407664
lea eax, [ebp - 4]
call fcn.004066e0
ret
Function at 0x448c34
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edx, [ebp - 4]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, ebx
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00407208
cmp dword [ebp - 4], 0
jle 0x448c75
mov eax, ebx
call fcn.00406f9c
mov edx, eax
mov ecx, dword [ebp - 4]
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x448c86
sub eax, 4
mov eax, dword [eax]
mov esi, eax
test esi, esi
jle 0x448cb4
mov dword [ebp - 4], 1
mov eax, ebx
call fcn.00406f9c
mov edx, dword [ebp - 4]
mov ecx, dword [ebx]
mov edi, dword [ebp - 4]
movzx ecx, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 4]
dec esi
jne 0x448c93
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x44a7cc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
mov esi, eax
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, esi
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
push 0
call fcn.00406a58
mov eax, dword [esi]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x44a81b
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jbe 0x44a853
mov dword [ebp - 4], 1
mov eax, dword [esi]
mov edx, dword [ebp - 4]
movzx eax, byte [eax + edx - 1]
movzx eax, al
bt dword [0x522940], eax
jae 0x44a84d
mov eax, esi
call fcn.00406f9c
mov edx, dword [ebp - 4]
mov byte [eax + edx - 1], 0x5f
inc dword [ebp - 4]
dec ebx
jne 0x44a828
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44fb40
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x44fb7f
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x44fb7f
cmp dword [eax + 0x3c], 0
je 0x44fb7f
mov esi, dword [eax + 0x3c]
add esi, ebx
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x44fb7d
cmp dword [esi], 0x4550
je 0x44fb7f
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x45cd18
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x45cd27
xor eax, eax
pop esi
pop ebx
ret
cmp byte [0x523e98], 0
jne 0x45cd35
call fcn.0045ccbc
or eax, 0xffffffff
movzx edx, byte [ebx]
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x52f004]
shr eax, 8
xor edx, eax
mov eax, edx
inc ebx
dec esi
test esi, esi
jne 0x45cd38
xor eax, 0xffffffff
pop esi
pop ebx
ret
Function at 0x45cd60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406f14
xor eax, eax
push ebp
push 0x45cdf7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x45cda0
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x45cda0
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004068fc
test eax, eax
je 0x45cda9
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x45cde1
mov edx, 1
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx - 1]
movzx esi, bx
shr esi, 8
xor ecx, esi
and ecx, 0xff
movzx ecx, word [ecx*2 + 0x523c98]
shl ebx, 8
and bx, 0xffff
xor cx, bx
mov ebx, ecx
inc edx
dec eax
jne 0x45cdb2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cdfe
lea eax, [ebp - 4]
call fcn.004066e0
ret

Function at 0x45d6dc
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x40
call fcn.00404bdc
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x10
call fcn.00404bdc
mov dword [ebp - 0x50], 0x67452301
mov dword [ebp - 0x4c], 0xefcdab89
mov dword [ebp - 0x48], 0x98badcfe
mov dword [ebp - 0x44], 0x10325476
mov eax, ebx
shr eax, 0x1d
add dword [ebp - 0x5c], eax
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
add dword [ebp - 0x60], eax
cmp eax, dword [ebp - 0x60]
jbe 0x45d750
inc dword [ebp - 0x5c]
test ebx, ebx
jbe 0x45d7a6
mov edi, 0x40
sub edi, dword [ebp - 0x54]
cmp ebx, edi
jb 0x45d78d
mov ecx, edi
mov eax, dword [ebp - 0x54]
lea edx, [ebp + eax - 0x40]
mov eax, esi
call fcn.00404500
mov eax, 0x40
sub eax, dword [ebp - 0x54]
sub ebx, eax
mov eax, 0x40
sub eax, dword [ebp - 0x54]
add esi, eax
push ebp
call fcn.0045ce20
pop ecx
jmp 0x45d7a2
mov eax, dword [ebp - 0x54]
lea edx, [ebp + eax - 0x40]
mov eax, esi
mov ecx, ebx
call fcn.00404500
add dword [ebp - 0x54], ebx
xor ebx, ebx
test ebx, ebx
ja 0x45d754
mov eax, dword [ebp - 0x54]
mov byte [ebp + eax - 0x40], 0x80
cmp dword [ebp - 0x54], 0x38
jb 0x45d7bb
push ebp
call fcn.0045ce20
pop ecx
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x60]
mov dword [eax], edx
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x5c]
mov dword [eax], edx
push ebp
call fcn.0045ce20
pop ecx
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x50]
mov ecx, 0x10
call fcn.00404500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45f0b8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x45f0d9
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
movzx ebx, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x45f0c6
pop edi
pop esi
pop ebx
ret
Function at 0x45f114
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], edx
mov esi, eax
mov eax, dword [esi]
call fcn.0045f0e0
mov ebx, eax
add esi, 4
mov eax, dword [esi]
call fcn.0045f0e0
mov esi, eax
xor eax, eax
mov ecx, dword [0x52f40c]
mov edx, dword [0x52f410]
mov dword [esp + 4], edx
mov edx, dword [0x52f414]
mov dword [esp + 8], edx
mov edx, dword [0x52f418]
mov dword [esp + 0xc], edx
mov edx, 0x20
add eax, 0x9e3779b9
mov edi, esi
shl edi, 4
mov ebp, esi
xor ebp, ecx
add edi, ebp
mov ebp, esi
shr ebp, 5
xor ebp, eax
add edi, ebp
add edi, dword [esp + 4]
add ebx, edi
mov edi, ebx
shl edi, 4
mov ebp, dword [esp + 8]
xor ebp, ebx
add edi, ebp
mov ebp, ebx
shr ebp, 5
xor ebp, eax
add edi, ebp
add edi, dword [esp + 0xc]
add esi, edi
dec edx
jne 0x45f160
mov eax, ebx
call fcn.0045f0e0
mov edx, dword [esp]
mov dword [edx], eax
mov eax, esi
call fcn.0045f0e0
mov edx, dword [esp]
add edx, 4
mov dword [edx], eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x45f1c4
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], edx
mov esi, eax
mov eax, dword [esi]
call fcn.0045f0e0
mov ebx, eax
add esi, 4
mov eax, dword [esi]
call fcn.0045f0e0
mov esi, eax
mov eax, 0xc6ef3720
mov ecx, dword [0x52f40c]
mov edx, dword [0x52f410]
mov dword [esp + 4], edx
mov edx, dword [0x52f414]
mov dword [esp + 8], edx
mov edx, dword [0x52f418]
mov dword [esp + 0xc], edx
mov edx, 0x20
mov edi, ebx
shl edi, 4
mov ebp, dword [esp + 8]
xor ebp, ebx
add edi, ebp
mov ebp, ebx
shr ebp, 5
xor ebp, eax
add edi, ebp
add edi, dword [esp + 0xc]
sub esi, edi
mov edi, esi
shl edi, 4
mov ebp, esi
xor ebp, ecx
add edi, ebp
mov ebp, esi
shr ebp, 5
xor ebp, eax
add edi, ebp
add edi, dword [esp + 4]
sub ebx, edi
sub eax, 0x9e3779b9
dec edx
jne 0x45f213
mov eax, ebx
call fcn.0045f0e0
mov edx, dword [esp]
mov dword [edx], eax
mov eax, esi
call fcn.0045f0e0
mov edx, dword [esp]
add edx, 4
mov dword [edx], eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x471634
Capabilities:
Generate random numbers using the delphi lcg

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
cmp dword [ebp - 0xc], 0xc
jge 0x4716dd
xor eax, eax
jmp 0x47180e
inc dword [0x52750c]
mov edx, dword [0x52750c]
cmp edx, 1
jne 0x471702
push 0
call fcn.00471010
pop ecx
xor eax, 0xbb40e64e
push eax
call fcn.00471028
pop ecx
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00471680
xor ebx, ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.0047101c
sar eax, 7
and eax, 0xff
mov dword [ebp - 0x14], eax
mov edx, edi
mov eax, esi
call fcn.00471614
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
mov edx, edi
mov eax, esi
call fcn.00471634
mov dl, byte [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
xor dl, byte [ebp - 0x14]
mov byte [ecx], dl
inc ebx
inc dword [ebp - 0x24]
cmp ebx, 0xa
jl 0x471716
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00471680
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x20]
mov edx, eax
xor ebx, ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov edx, edi
mov eax, esi
call fcn.00471614
mov dword [ebp - 0x10], eax
mov eax, esi
mov ecx, dword [ebp - 0x28]
mov edx, edi
movzx ecx, byte [ecx]
call fcn.00471634
mov al, byte [ebp - 0x10]
mov edx, dword [ebp - 0x28]
xor al, byte [edx]
mov ecx, dword [ebp - 0x2c]
mov byte [ecx], al
inc ebx
inc dword [ebp - 0x2c]
inc dword [ebp - 0x28]
cmp ebx, 0xa
jl 0x47176e
mov edx, edi
mov eax, esi
call fcn.00471614
mov dword [ebp - 0x10], eax
mov eax, esi
mov ecx, dword [ebp + 8]
mov edx, edi
shr ecx, 0x10
and ecx, 0xff
call fcn.00471634
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
shr eax, 0x10
mov cl, byte [ebp - 0x10]
and al, 0xff
xor cl, al
mov eax, esi
mov byte [edx + ebx], cl
mov edx, edi
inc ebx
call fcn.00471614
mov dword [ebp - 0x10], eax
mov eax, esi
mov ecx, dword [ebp + 8]
mov edx, edi
shr ecx, 0x18
and ecx, 0xff
call fcn.00471634
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
shr eax, 0x18
mov cl, byte [ebp - 0x10]
and al, 0xff
xor cl, al
mov byte [edx + ebx], cl
inc ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x472770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
xor esi, esi
test eax, eax
mov dword [esp + 4], ecx
mov dword [esp], edx
jne 0x47278d
mov eax, 0xffffff9a
jmp 0x472955
mov ebx, eax
cmp dword [ebx + 0x2c], 0
jne 0x47279f
mov eax, 0xffffff9a
jmp 0x472955
xor edx, edx
mov dword [ebx + 0x34], edx
cmp dword [ebx + 0x80], 8
jne 0x4727f6
cmp dword [ebx + 0x84], 0
jne 0x4727f6
test esi, esi
jne 0x4727f6
cmp dword [ebx + 0x40], 0
jne 0x4727d8
mov eax, ebx
call fcn.004725fc
mov dword [ebx + 0x40], 0x10000
lea edx, [ebx + 0x88]
inc eax
mov dword [ebx + 0x3c], edx
mov edi, dword [ebx + 0x44]
lea eax, [ebx + 0x30]
mov edx, 4
call fcn.00473f78
mov esi, eax
mov eax, dword [ebx + 0x44]
sub eax, edi
add dword [ebx + 0x6c], eax
test esi, esi
je 0x4727ba
cmp esi, 1
jne 0x4727fd
xor esi, esi
cmp dword [ebx + 0x6c], 0
jbe 0x472814
test esi, esi
jne 0x472814
mov eax, ebx
call fcn.004725fc
inc eax
jne 0x472814
or esi, 0xffffffff
cmp dword [ebx + 0x80], 8
jne 0x472835
cmp dword [ebx + 0x84], 0
jne 0x472835
lea eax, [ebx + 0x30]
call fcn.0047423c
mov esi, eax
xor eax, eax
mov dword [ebx + 0x68], eax
cmp dword [ebx + 0x84], 0
jne 0x47284e
mov edx, dword [ebx + 0x1008c]
mov dword [esp + 4], edx
mov ecx, dword [ebx + 0x38]
mov dword [esp], ecx
mov edi, dword [ebx + 0x44]
add edi, dword [ebx + 0x100a4]
mov eax, dword [ebx + 0x74]
add eax, 0x10
mov ecx, 4
mov edx, dword [esp + 4]
call fcn.00471998
mov eax, dword [ebx + 0x74]
add eax, 0x14
mov ecx, 4
mov edx, edi
call fcn.00471998
cmp dword [ebx + 0x5c], 1
jne 0x472898
mov eax, dword [ebx + 0x74]
add eax, 0x24
mov ecx, 2
mov edx, 1
call fcn.00471998
mov eax, dword [ebx + 0x74]
add eax, 0x18
mov ecx, 4
mov edx, dword [esp]
call fcn.00471998
test esi, esi
jne 0x4728bf
lea eax, [ebx + 0x24]
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x74]
call fcn.00471870
mov esi, eax
mov eax, dword [ebx + 0x74]
push eax
call fcn.00471000
pop ecx
test esi, esi
jne 0x472948
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0xc]
mov dword [esp + 8], eax
push 0
mov ecx, dword [ebx + 0x70]
mov edx, dword [ebx + 0x20]
add ecx, 0xe
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x10]
test eax, eax
je 0x4728f2
or esi, 0xffffffff
test esi, esi
jne 0x472908
push 4
mov ecx, dword [esp + 8]
mov edx, dword [ebx + 0x20]
mov eax, ebx
call fcn.0047192c
mov esi, eax
test esi, esi
jne 0x47291c
push 4
mov ecx, edi
mov edx, dword [ebx + 0x20]
mov eax, ebx
call fcn.0047192c
mov esi, eax
test esi, esi
jne 0x472932
push 4
mov ecx, dword [esp + 4]
mov edx, dword [ebx + 0x20]
mov eax, ebx
call fcn.0047192c
mov esi, eax
push 0
mov ecx, dword [esp + 0xc]
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x10]
test eax, eax
je 0x472948
or esi, 0xffffffff
inc dword [ebx + 0x100b0]
xor eax, eax
mov dword [ebx + 0x2c], eax
mov eax, esi
add esp, 0xc
pop edi
pop esi
pop ebx
ret