joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c67ac
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4c6817
cmp byte [ebx + 0xd3], 0
jne 0x4c6817
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406d9c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4c6804
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4c6824
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406c60
jmp 0x4c6824
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406c60
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4c804c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4c80ba
mov eax, esi
call fcn.0049f514
test al, al
je 0x4c80ba
mov eax, dword [ebx + 0x84]
call fcn.0049f168
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4c80ba
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4c80ae
push 0
mov eax, dword [ebx + 0x84]
call fcn.0049f168
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0049613c
jmp 0x4c80ba
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004c7e84
pop esi
pop ebx
ret

Function at 0x4cb968
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
push 0
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, eax
call fcn.00404200
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4cb9ef
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
cmp eax, dword [ebp - 4]
je 0x4cb9ca
mov ecx, 0x4cba0c
mov dl, 1
mov eax, dword [0x4cb8cc]
call fcn.00418508
call fcn.00405904
mov eax, edi
mov edx, dword [ebp - 8]
call fcn.00406e1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb9f6
mov edx, dword [ebp - 4]
add edx, edx
mov eax, dword [ebp - 8]
call fcn.0040421c
ret
Function at 0x4db5b8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
test dl, dl
je 0x4db5ca
add esp, 0xfffffff0
call fcn.00405360
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00404dfc
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00406880
mov dl, 1
mov eax, dword [0x42c338]
call fcn.00438a54
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
mov word [eax + 0x18], 0
call sub.KERNEL32.DLL_GetUserDefaultLangID
mov edx, dword [ebp - 4]
mov word [edx + 0x1a], ax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x4db653
call fcn.004053b8
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4de630
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
test dl, dl
je 0x4de642
add esp, 0xfffffff0
call fcn.00405360
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00404dfc
mov dl, 1
mov eax, dword [0x4d759c]
call fcn.00404dfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4d97bc]
call fcn.004dd5a8
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4d9e24]
call fcn.004ddb10
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4d8d78]
call fcn.004de45c
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
call sub.KERNEL32.DLL_GetUserDefaultLangID
mov edx, dword [ebp - 4]
mov word [edx + 0x10], ax
mov eax, dword [ebp - 4]
mov dx, word [eax + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.004db594
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x4de6f1
call fcn.004053b8
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret
Function at 0x4e5a38
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x18], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x2c], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov word [eax + 0x36], 0
mov ax, word [0x5102dc]
mov edx, dword [ebp - 4]
mov word [edx + 4], ax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
add eax, 0x10
xor edx, edx
call fcn.00406c60
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.00406880
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x28], edx
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 4]
mov word [eax + 0x34], 0
mov cl, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004e9348
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x3d], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x48], 0xffffffff
mov eax, dword [ebp - 4]
mov byte [eax + 0x4d], 0
pop ecx
pop ebp
ret
Function at 0x4f0720
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
test dl, dl
je 0x4f0733
add esp, 0xfffffff0
call fcn.00405360
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4f07c2
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00404dfc
mov byte [esi + 0x40], 0
mov byte [esi + 0x2c], 1
mov dl, 1
mov eax, dword [0x4ef314]
call fcn.00404dfc
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x4ef138]
call fcn.00404dfc
mov dword [esi + 8], eax
lea eax, [esi + 0xc]
xor edx, edx
call fcn.00406c60
mov eax, dword [0x513c3c]
mov dword [esi + 0x3c], eax
mov byte [esi + 0x34], 1
lea edx, [ebp - 4]
xor eax, eax
call fcn.004045ac
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004f1998
mov byte [esi + 0x2d], 1
lea eax, [esi + 0x30]
xor edx, edx
call fcn.00406c60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f07c9
lea eax, [ebp - 4]
call fcn.00406c50
ret

Function at 0x4f085c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, ecx
mov ebx, edx
push 0xa
lea eax, [esp + 4]
push eax
push 3
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
mov eax, esi
mov edx, esp
mov ecx, 5
call fcn.00406e58
mov eax, ebx
and eax, 0xff
cmp ebx, eax
jne 0x4f089f
push esi
mov eax, dword [esi]
mov ecx, 2
mov edx, 1
call fcn.00407438
add esp, 0xc
pop esi
pop ebx
ret

Function at 0x4f1018
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f10db
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404200
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4f10be
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
cmp eax, dword [ebp - 4]
je 0x4f108b
mov ecx, 0x4f10f8
mov dl, 1
mov eax, dword [0x4eeda0]
call fcn.00418508
call fcn.00405904
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.004063d0
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00406e74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f10c5
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0040421c
ret
Function at 0x4ffb4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4ffcb7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x4ffcc8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
mov ebx, eax
test ebx, ebx
je 0x4ffba9
push ebx
push 0x4ffd10
mov ecx, 0x17
mov dl, 1
mov eax, dword [0x4fedc0]
call fcn.00505bdc
call fcn.00405904
mov dl, 1
mov eax, dword [0x42c338]
call fcn.00438a54
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4ffc95
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov dword [ebp - 0x10], pe_nt_image_headers32
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00406fd4
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00406fd4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.00406cec
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00406cec
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumValueW
mov ebx, eax
test ebx, ebx
jne 0x4ffc35
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00406fd4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
jmp 0x4ffc59
cmp ebx, 0x103
je 0x4ffc59
push ebx
push 0x4ffd10
mov ecx, 0x17
mov dl, 1
mov eax, dword [0x4fedc0]
call fcn.00505bdc
call fcn.00405904
test ebx, ebx
je 0x4ffbc8
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0xa0]
mov edx, dword [ebp - 0x1c]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ffc9c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x1c]
call fcn.00404e2c
ret

Function at 0x5018f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x501926
mov ecx, 4
mov dl, 1
mov eax, dword [0x4fedc0]
call fcn.00505ce4
call fcn.00405904
mov eax, dword [esi]
push eax
mov ecx, dword [ebp - 4]
mov edx, edi
xor eax, eax
call fcn.004ffa44
mov eax, dword [esi]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebx + 0x40]
push eax
call sub.KERNEL32.DLL_WriteFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e5
sete al
or al, byte [ebp - 5]
jne 0x501985
call sub.KERNEL32.DLL_GetLastError
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov ecx, 2
mov dl, 1
mov eax, dword [0x4fedc0]
call fcn.00505bdc
call fcn.00405904
mov cl, 1
mov dl, 6
mov eax, ebx
call fcn.005058f4
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x501b94
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x501bc2
mov ecx, 4
mov dl, 1
mov eax, dword [0x4fedc0]
call fcn.00505ce4
call fcn.00405904
mov eax, dword [esi]
mov byte [eax + 0x14], 1
xor eax, eax
mov dword [ebp - 8], eax
mov byte [edi], 0
mov eax, dword [esi]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebx + 0x40]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x501bf9
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e5
je 0x501bf9
xor eax, eax
jmp 0x501bfb
mov al, 1
test al, al
jne 0x501c3c
call sub.KERNEL32.DLL_GetLastError
mov esi, eax
cmp byte [ebx + 0xf8], 0
je 0x501c2c
push esi
mov eax, dword [ebx + 0x5c]
push eax
mov ecx, 3
mov dl, 1
mov eax, dword [0x4fedc0]
call fcn.00505bdc
call fcn.00405904
jmp 0x501c3c
inc dword [ebx + 0xfc]
mov dword [ebx + 0x100], esi
xor eax, eax
jmp 0x501c3f
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x5062c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, edx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
jmp 0x5062d9
mov eax, dword [0x510940]
mov eax, dword [eax]
call fcn.004c6d54
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp esi, eax
jg 0x5062cd
pop esi
pop ebx
ret

Function at 0x5062ec
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, ecx
mov edi, edx
mov ebx, eax
call sub.KERNEL32.DLL_GetTickCount
mov esi, eax
jmp 0x506317
mov eax, dword [ebx + 4]
call fcn.005014c8
cmp ebp, eax
jle 0x506327
mov eax, dword [0x510940]
mov eax, dword [eax]
call fcn.004c6d54
call sub.KERNEL32.DLL_GetTickCount
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
jg 0x5062ff
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5070d4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406c48
xor eax, eax
push ebp
push 0x507203
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00406cec
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeW
mov edi, eax
mov eax, edi
call fcn.00404200
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push edi
push 0
push esi
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x507214
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueW
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 8]
shr eax, 0x10
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.004139ac
push dword [ebx]
push 0x507224
mov eax, dword [esi + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.004139ac
push dword [ebp - 0x18]
mov eax, ebx
mov edx, 3
call fcn.00407210
push dword [ebx]
push 0x507224
mov eax, dword [esi + 0xc]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.004139ac
push dword [ebp - 0x1c]
mov eax, ebx
mov edx, 3
call fcn.00407210
push dword [ebx]
push 0x507224
mov eax, dword [esi + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.004139ac
push dword [ebp - 0x20]
mov eax, ebx
mov edx, 3
call fcn.00407210
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.0040421c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50720a
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00406c58
lea eax, [ebp - 4]
call fcn.00406c50
ret
Function at 0x41e3b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
or ebp, 0xffffffff
jmp 0x41e3d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41e3d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41e3c8
mov eax, 1
add ebx, ebx
jne 0x41e3eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41e3e0
jne 0x41e3fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e3e0
xor ecx, ecx
sub eax, 3
jb 0x41e410
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41e482
mov ebp, eax
add ebx, ebx
jne 0x41e41b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41e428
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41e44c
inc ecx
add ebx, ebx
jne 0x41e438
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41e42d
jne 0x41e449
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41e42d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41e46c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41e45d
jmp 0x41e3ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41e46c
add edi, ecx
jmp 0x41e3ce
pop esi
mov edi, esi
mov ecx, 0x181
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41e48a
cmp byte [edi], 0
jne 0x41e48a
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 eax, ebx
loop 0x41e48f
lea edi, [esi + 0x1c000]
mov eax, dword [edi]
or eax, eax
je 0x41e4fe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e4ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e550]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41e4bc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1e554]
or eax, eax
je 0x41e4f8
mov dword [ebx], eax
add ebx, 4
jmp 0x41e4d9
call dword [esi + 0x1e558]
popal
jmp 0x404370
Function at 0x406631
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4492c4], 0
jne 0x40666f
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406645
mov dword [ecx*4 + 0x4492c0], eax
inc ecx
cmp ecx, 0x100
jl 0x406640
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40669c
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4492c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40667d
not eax
pop ebp
ret 0xc

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

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

Function at 0x5e00f8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x5e014a
test eax, edx
je 0x5e014d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x5e010d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x5e0133
add ecx, 4
js 0x5e0123
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x5e0130
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x5e0159
test edx, edx
jne 0x5e0100
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x5fadc0
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x5fae5a
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + 0x474c10]
mov byte [ebp + edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + 0x474c10]
push edx
pop edx
mov byte [ebp + edi + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + 0x474c10]
push edx
pop edx
mov byte [ebp + edi + 2], dl
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + 0x474c10]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x5faddf
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x5fae70
dec edx
je 0x5faea5
jmp 0x5faef6
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + 0x474c10]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx eax, byte [eax + 0x474c10]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x5faef6
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + 0x474c10]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + 0x474c10]
mov byte [ebp + edi + 1], al
movzx eax, byte [esi + ebx + 1]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
movzx eax, byte [eax + 0x474c10]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5fb9b4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x5fb9d5
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 0x5fb9c2
pop edi
pop esi
pop ebx
ret
Function at 0x5fe47c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x5fe482
ret

Function at 0x60dfc0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
mov eax, edx
dec eax
test eax, eax
jl 0x60dfe7
inc eax
mov edx, ecx
and dl, 0xff
xor dl, byte [esi]
movzx edx, dl
mov edx, dword [edx*4 + 0x4761d8]
shr ecx, 8
xor edx, ecx
mov ecx, edx
inc esi
dec eax
jne 0x60dfcb
not ecx
mov eax, ecx
pop esi
ret

Function at 0x60e028
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x60e098
lea eax, [ebp - 6]
call fcn.0060d93c
test al, al
je 0x60e098
lea eax, [ebp - 6]
or ecx, 0xffffffff
mov edx, 6
call fcn.0060dfc0
mov dword [ebp - 0xc], eax
xor ebx, ebx
lea ecx, [ebp - 6]
mov eax, ebx
mov edi, 5
xor edx, edx
div edi
movzx eax, byte [edx + 0x4765d8]
xor byte [ecx], al
inc ebx
inc ecx
cmp ebx, 6
jne 0x60e05c
lea eax, [ebp - 0xc]
mov ecx, 4
mov edx, esi
call fcn.005f61e4
add esi, 8
lea eax, [ebp - 6]
mov ecx, 6
mov edx, esi
call fcn.005f61e4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4