joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480038
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fdc
xor eax, eax
push ebp
push 0x480093
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404fec
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x480074
test byte [ebp - 0xc], 0x10
jne 0x480078
xor eax, eax
jmp 0x48007a
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48009a
lea eax, [ebp - 4]
call fcn.00404b20
ret

Function at 0x489510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
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.00404fdc
mov eax, dword [ebp - 8]
call fcn.00404fdc
xor eax, eax
push ebp
push 0x489614
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404b20
cmp dword [ebp - 4], 0
je 0x489568
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x489568
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040508c
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00404fec
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4895f9
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404fec
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4895e9
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00405178
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.00404fec
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
push ebx
mov eax, dword [ebx]
call fcn.00404df4
mov ecx, eax
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.0040504c
jmp 0x4895f0
mov eax, ebx
call fcn.00404b20
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 0x48961b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b44
ret

Function at 0x489820
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
push esi
mov esi, 0x489878
lea edi, [ebp - 0x400]
mov ecx, pe_nt_image_headers32
rep movsd dword es:[edi], dword [esi]
pop esi
push 0x400
lea eax, [ebp - 0x400]
push eax
mov eax, ebx
call fcn.00404fec
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov eax, esi
lea edx, [ebp - 0x400]
mov ecx, 0x400
call fcn.00404d88
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404fec
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x489cd5
test al, 0x10
jne 0x489cd9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x48a26c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404fdc
xor eax, eax
push ebp
push 0x48a356
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404df4
dec eax
jle 0x48a2d5
mov edx, dword [ebp - 4]
mov eax, 0x48a36c
call fcn.00405130
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404df4
dec eax
cmp ebx, eax
jne 0x48a2d5
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.00404df4
mov ecx, eax
sub ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040504c
mov eax, dword [ebp - 4]
call fcn.00404df4
mov ebx, eax
test ebx, ebx
jle 0x48a30c
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
call fcn.00405044
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov cl, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 8]
dec ebx
jne 0x48a2ea
mov eax, dword [ebp - 4]
call fcn.00404df4
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
mov ecx, 4
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 8], 0
jle 0x48a340
lea eax, [ebp - 4]
call fcn.00405044
mov edx, eax
mov ecx, dword [ebp - 8]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a35d
lea eax, [ebp - 4]
call fcn.00404b20
ret

Function at 0x48a838
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
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 + 8]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405178
cmp dword [ebp - 4], 0
jle 0x48a875
mov eax, ebx
call fcn.00405044
mov edx, eax
mov ecx, dword [ebp - 4]
mov eax, esi
mov esi, dword [eax]
call dword [esi + 8]
mov eax, dword [ebx]
call fcn.00404df4
mov esi, eax
test esi, esi
jle 0x48a8a9
mov dword [ebp - 4], 1
mov eax, ebx
call fcn.00405044
mov edx, dword [ebp - 4]
mov ecx, dword [ebx]
mov edi, dword [ebp - 4]
mov cl, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 4]
dec esi
jne 0x48a889
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x48ba20
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 4]
mov dword [edi], 0x10
push edi
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, esi
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404d88
mov eax, dword [esi]
call fcn.00404df4
mov ebx, eax
test ebx, ebx
jbe 0x48ba92
mov dword [edi], 1
mov eax, dword [esi]
mov edx, dword [edi]
mov al, byte [eax + edx - 1]
and eax, 0xff
bt dword [0x58b45c], eax
jae 0x48ba8d
mov eax, esi
call fcn.00405044
mov edx, dword [edi]
mov byte [eax + edx - 1], 0x5f
inc dword [edi]
dec ebx
jne 0x48ba69
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48c1a4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov esi, ecx
mov ebx, edx
shl ebx, 2
add ebx, eax
mov eax, ebx
call fcn.004064a0
test eax, eax
je 0x48c1e4
push esp
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
mov dword [ebx], esi
push esp
mov eax, dword [esp + 4]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
push 4
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
pop esi
pop ebx
ret

Function at 0x48c3dc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
push esp
push 0x40
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
mov edx, ebx
mov eax, edi
mov ecx, esi
call fcn.00402af4
push esp
mov eax, dword [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x48c9e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 4], edx
mov dword [esp], eax
lea ebp, [esp + 0x10]
mov eax, dword [0x590da8]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x48ca2b
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x590da8]
call fcn.0041defc
mov ebx, eax
mov eax, dword [esp]
cmp eax, dword [ebx]
jne 0x48ca27
mov eax, dword [ebx + 4]
jmp 0x48caf1
inc edi
dec esi
jne 0x48ca0a
mov edi, dword [esp]
mov ebx, edi
xor esi, esi
mov edx, ebp
mov eax, ebx
call fcn.0048c5d4
test al, al
jne 0x48ca43
mov byte [ebp], 1
xor eax, eax
mov al, byte [ebp]
add esi, eax
xor eax, eax
mov al, byte [ebp]
add ebx, eax
cmp esi, 5
jb 0x48ca32
mov edx, esi
mov eax, edi
call fcn.0048c7c8
add eax, 5
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
call fcn.00402764
mov ebp, eax
mov eax, 0x14
call fcn.00402764
mov ebx, eax
mov eax, dword [esp]
mov dword [ebx], eax
mov dword [ebx + 4], ebp
mov eax, dword [esp + 8]
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], esi
mov eax, esi
call fcn.00402764
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 0xc]
mov eax, edi
mov ecx, esi
call fcn.00402af4
mov edx, ebx
mov eax, dword [0x590da8]
call fcn.0041dda0
lea eax, [esp + 0xc]
push eax
push 0x40
mov eax, dword [esp + 0x10]
push eax
push ebp
call sub.kernel32.dll_VirtualProtect
mov edx, ebp
mov eax, edi
mov ecx, esi
call fcn.00402af4
mov ecx, esi
mov edx, edi
mov eax, ebp
call fcn.0048c864
lea edx, [esi + edi]
lea eax, [esi + ebp]
call fcn.0048c41c
mov edx, dword [esp + 4]
mov eax, edi
call fcn.0048c41c
mov eax, ebp
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48cd50
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
mov edx, 0x40
mov eax, ebx
call fcn.00488f24
test al, al
je 0x48cd94
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x48cd94
cmp dword [eax + 0x3c], 0
je 0x48cd94
mov esi, dword [eax + 0x3c]
add esi, ebx
mov edx, 0xf8
mov eax, esi
call fcn.00488f24
test al, al
je 0x48cd92
cmp dword [esi], 0x4550
je 0x48cd94
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x48d3a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x48d436
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x48d444]
mov dword [ebp - 7], eax
mov ax, word [0x48d448]
mov word [ebp - 3], ax
mov al, byte [0x48d44a]
mov byte [ebp - 1], al
push 6
lea eax, [ebp - 7]
push eax
push 0x1004
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x2c]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404d88
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004097e8
push 2
lea edx, [ebp - 0x27]
push edx
push eax
call sub.gdi32.dll_TranslateCharsetInfo
mov ebx, dword [ebp - 0x27]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d43d
lea eax, [ebp - 0x2c]
call fcn.00404b20
ret

Function at 0x48d5d0
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
sete al
add esp, 0x190
ret

Function at 0x48d5fc
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404fec
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403324
test ebx, ebx
je 0x48d647
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x48d8b8
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48da25
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x24], 0
jne 0x48da0a
push 0
mov eax, dword [ebx + 0x1c]
push eax
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x28], esi
inc esi
jne 0x48d922
push 0
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x10]
call fcn.0040d824
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x48da3c
mov eax, ebx
call fcn.0048d658
mov word [ebx + 4], 2
mov edx, dword [ebx + 0x14]
mov eax, ebx
call fcn.0048d5fc
mov dword [ebx + 8], eax
mov ax, word [ebx + 0x18]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 6], ax
push 0
push 0
push 0
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_WSAAsyncSelect
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [ebx + 4]
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_connect
test eax, eax
je 0x48d9a4
push 0
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x14]
call fcn.0040d824
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x48da5c
mov eax, ebx
call fcn.0048d658
cmp dword [ebx + 0x28], 0xffffffff
setne al
mov byte [ebx + 0x24], al
lea eax, [ebp - 0x18]
push eax
xor eax, eax
mov al, byte [ebx + 8]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
xor eax, eax
mov al, byte [ebx + 9]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebx + 0xa]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebx + 0xb]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
movzx eax, word [ebx + 0x18]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x40]
mov ecx, 4
mov eax, 0x48da7c
call fcn.0040ace8
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x2c]
call fcn.00404b74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48da2c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404b44
ret
Function at 0x48daa0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x48db35
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
cmp byte [ebx + 0x24], 0
je 0x48db1f
push 0
mov eax, dword [ebp - 4]
push eax
push edx
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jne 0x48db1f
call sub.wsock32.dll_WSAGetLastError
mov edi, eax
cmp edi, 0x2733
je 0x48db1f
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
test edi, edi
je 0x48db1f
push 0
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.0040d824
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x48db50
mov eax, ebx
call fcn.0048d658
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48db3c
lea eax, [ebp - 0x10]
call fcn.00404b20
ret

Function at 0x48dc20
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48dcd7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, 0xffffffff
jne 0x48dc66
cmp byte [ebx + 0x24], 0
je 0x48dc66
lea eax, [ebp - 4]
push eax
push 0x4004667f
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x48dcc1
cmp byte [ebx + 0x24], 0
je 0x48dcc1
push 0
push esi
push edi
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x48dcc1
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
cmp esi, 0x2733
je 0x48dcc1
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 4]
test esi, esi
je 0x48dcc1
push 0
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0040d824
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x48dcf0
mov eax, ebx
call fcn.0048d658
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48dcde
lea eax, [ebp - 0x10]
call fcn.00404b20
ret
Function at 0x48dd08
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x48ddd0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404b20
or ecx, 0xffffffff
xor edx, edx
mov eax, esi
call fcn.0048dc20
mov ebx, eax
test ebx, ebx
jbe 0x48ddb2
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00405178
mov eax, dword [ebp - 8]
call fcn.00404df4
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0048dc20
mov edx, eax
lea eax, [ebp - 8]
call fcn.00405178
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404dfc
mov eax, dword [ebp - 4]
lea eax, [esi + 0x2c]
mov edx, dword [ebp - 8]
call fcn.00404dfc
call sub.kernel32.dll_GetTickCount
mov edi, eax
or ecx, 0xffffffff
xor edx, edx
mov eax, esi
call fcn.0048dc20
mov ebx, eax
push 1
call sub.kernel32.dll_Sleep
test ebx, ebx
ja 0x48ddb2
call sub.kernel32.dll_GetTickCount
sub eax, edi
cmp eax, 0x3e8
jbe 0x48dd8b
test ebx, ebx
jne 0x48dd31
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ddd7
lea eax, [ebp - 8]
call fcn.00404b20
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov edi, eax
mov edx, ebx
mov eax, esi
call fcn.0048dd08
cmp dword [ebx], 0
jne 0x48de03
push 1
call sub.kernel32.dll_Sleep
cmp dword [ebx], 0
jne 0x48de14
call sub.kernel32.dll_GetTickCount
sub eax, edi
cmp eax, dword [esi + 0x20]
jb 0x48ddee
pop edi
pop esi
pop ebx
ret

Function at 0x49404c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x49406c
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x49405a
pop edi
pop esi
pop ebx
ret
Function at 0x494960
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
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.00403324
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x10
call fcn.00403324
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
shl eax, 3
add dword [ebp - 0x60], eax
cmp eax, dword [ebp - 0x60]
jbe 0x4949d0
inc dword [ebp - 0x5c]
test ebx, ebx
jbe 0x494a1e
mov eax, 0x40
sub eax, dword [ebp - 0x54]
cmp eax, ebx
ja 0x494a05
mov ecx, eax
mov eax, dword [ebp - 0x54]
lea edx, [ebp + eax - 0x40]
mov eax, esi
call fcn.00402af4
mov eax, 0x40
sub eax, dword [ebp - 0x54]
sub ebx, eax
add esi, eax
push ebp
call fcn.004940a4
pop ecx
jmp 0x494a1a
mov eax, dword [ebp - 0x54]
lea edx, [ebp + eax - 0x40]
mov eax, esi
mov ecx, ebx
call fcn.00402af4
add dword [ebp - 0x54], ebx
xor ebx, ebx
test ebx, ebx
ja 0x4949d4
mov eax, dword [ebp - 0x54]
mov byte [ebp + eax - 0x40], 0x80
cmp dword [ebp - 0x54], 0x38
jb 0x494a33
push ebp
call fcn.004940a4
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.004940a4
pop ecx
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x50]
mov ecx, 0x10
call fcn.00402af4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x494a60
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.00494070
mov ebx, eax
add esi, 4
mov eax, dword [esi]
call fcn.00494070
mov esi, eax
xor eax, eax
mov ecx, dword [0x591658]
mov edx, dword [0x59165c]
mov dword [esp + 4], edx
mov edx, dword [0x591660]
mov dword [esp + 8], edx
mov edx, dword [0x591664]
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 0x494aac
mov eax, ebx
call fcn.00494070
mov edx, dword [esp]
mov dword [edx], eax
mov eax, esi
call fcn.00494070
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 0x494b10
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.00494070
mov ebx, eax
add esi, 4
mov eax, dword [esi]
call fcn.00494070
mov esi, eax
mov eax, 0xc6ef3720
mov ecx, dword [0x591658]
mov edx, dword [0x59165c]
mov dword [esp + 4], edx
mov edx, dword [0x591660]
mov dword [esp + 8], edx
mov edx, dword [0x591664]
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 0x494b5f
mov eax, ebx
call fcn.00494070
mov edx, dword [esp]
mov dword [edx], eax
mov eax, esi
call fcn.00494070
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 0x494dc0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov esi, dword [eax]
mov edi, dword [ecx]
mov eax, ebx
mov ecx, 3
xor edx, edx
div ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
lea ecx, [0x58c3f8]
xor eax, eax
xor ebx, ebx
xor edx, edx
cmp dword [ebp - 4], 0
je 0x494e27
lodsw ax, word [esi]
mov bl, al
shr bl, 2
mov dl, byte [ebx + ecx]
mov bh, ah
and bh, 0xf
rol ax, 4
and ax, 0x3f
mov dh, byte [eax + ecx]
mov ax, dx
stosw word es:[edi], ax
lodsb al, byte [esi]
mov bl, al
shr bx, 6
mov dl, byte [ebx + ecx]
and al, 0x3f
xor ah, ah
mov dh, byte [eax + ecx]
mov ax, dx
stosw word es:[edi], ax
dec dword [ebp - 4]
jne 0x494ded
cmp dword [ebp - 8], 0
je 0x494e77
xor eax, eax
xor ebx, ebx
xor edx, edx
lodsb al, byte [esi]
shl ax, 6
mov bl, ah
mov dl, byte [ebx + ecx]
dec dword [ebp - 8]
je 0x494e62
shl ax, 2
and ah, 3
lodsb al, byte [esi]
shl ax, 4
mov bl, ah
mov dh, byte [ebx + ecx]
shl edx, 0x10
shr al, 2
mov bl, al
mov dl, byte [ebx + ecx]
mov dh, 0x3d
jmp 0x494e71
shr al, 2
mov bl, al
mov dh, byte [ebx + ecx]
shl edx, 0x10
mov dh, 0x3d
mov dl, 0x3d
mov eax, edx
ror eax, 0x10
stosd dword es:[edi], eax
pop ecx
pop ecx
pop ebp
ret

Function at 0x495120
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x49512f
xor eax, eax
pop esi
pop ebx
ret
cmp byte [0x58c4b8], 0
jne 0x49513d
call fcn.004950c4
or eax, 0xffffffff
xor edx, edx
mov dl, byte [ebx]
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x591670]
shr eax, 8
xor edx, eax
mov eax, edx
inc ebx
dec esi
test esi, esi
jne 0x495140
xor eax, 0xffffffff
pop esi
pop ebx
ret

Function at 0x49d780
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00404d88
add esp, 0x104
pop ebx
ret