joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481218
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov dword [esp], edx
mov ebx, dword [0x53ab2c]
cmp dword [esp], 0x20
jge 0x481257
mov edx, dword [esp]
dec edx
test edx, edx
jl 0x481296
inc edx
xor esi, esi
mov edi, ebx
shr edi, 0x18
mov edi, dword [edi*4 + 0x53a72c]
shl ebx, 8
xor edi, ebx
movzx ebx, byte [eax + esi]
xor edi, ebx
mov ebx, edi
inc esi
dec edx
jne 0x481238
jmp 0x481296
mov edx, dword [esp]
test edx, edx
jns 0x481261
add edx, 0x1f
sar edx, 5
inc edx
xor esi, esi
mov edi, dword [esp]
dec edi
mov dword [esp + 4], edi
cmp esi, dword [esp + 4]
jge 0x481296
mov edi, ebx
shr edi, 0x18
mov edi, dword [edi*4 + 0x53a72c]
shl ebx, 8
xor edi, ebx
movzx ebx, byte [eax + esi]
xor edi, ebx
mov ebx, edi
add esi, edx
cmp esi, dword [esp + 4]
jl 0x481275
mov esi, 4
mov eax, ebx
shr eax, 0x18
mov eax, dword [eax*4 + 0x53a72c]
shl ebx, 8
xor eax, ebx
mov edx, ecx
shr edx, 0x18
xor eax, edx
mov ebx, eax
shl ecx, 8
dec esi
jne 0x48129b
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4829b4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x482a3d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x54aff4
push 0x202
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x482a27
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00411114
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x482a54
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x543790]
mov dl, 1
mov eax, dword [0x481964]
call fcn.00411a44
call fcn.00404fa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482a44
lea eax, [ebp - 0x1c]
call fcn.00405638
ret

Function at 0x483114
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x483170]
cmp al, byte [ebx + 0x28]
je 0x483138
mov esi, 0x401
mov eax, ebx
call fcn.00483280
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x483170]
cmp al, byte [ebx + 0x28]
jne 0x483168
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4831fc
Capabilities:
Connect socket

Disassembly:
push esi
push edi
mov edi, eax
mov eax, edi
call fcn.00483114
mov cl, 1
mov edx, edi
mov eax, edi
mov si, 0xffff
call fcn.004048f0
mov edx, dword [0x54b18c]
mov eax, 0x54b1a0
mov ecx, 5
call fcn.00403534
push 0x10
lea eax, [edi + 0x18]
push eax
mov eax, dword [edi + 4]
push eax
call sub.wsock32.dll_connect
mov edx, eax
mov ecx, 0x483278
mov eax, edi
call fcn.004828f8
mov byte [edi + 0x29], 0
test byte [edi + 0x28], 0x10
jne 0x48326b
cmp dword [edi + 4], 0xffffffff
setne al
mov byte [edi + 8], al
mov cl, 2
mov edx, edi
mov eax, edi
mov si, 0xffff
call fcn.004048f0
pop edi
pop esi
ret

Function at 0x48329c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00482f74
xor eax, eax
push ebp
push 0x483317
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x4832d2
call fcn.00405054
jmp 0x48331e
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x483301
movzx eax, word [ebp - 0x1a]
push eax
call sub.wsock32.dll_ntohs
movzx eax, ax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48331e
mov eax, dword [ebp - 4]
call fcn.00482f80
ret
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x48347c
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00405ad8
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403de0
test ebx, ebx
je 0x4834cb
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [esp + 4], cl
movzx ecx, byte [edx + 1]
mov byte [esp + 5], cl
movzx ecx, byte [edx + 2]
mov byte [esp + 6], cl
movzx eax, 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 0x4835a8
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4835d9
mov ecx, dword [0x54396c]
mov dl, 1
mov eax, dword [0x481964]
call fcn.00411a08
call fcn.00404fa8
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x483606
mov ecx, dword [0x543500]
mov dl, 1
mov eax, dword [0x481964]
call fcn.00411a08
call fcn.00404fa8
xor eax, eax
push ebp
push 0x483697
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00482c3c
mov eax, dword [ebp - 4]
call fcn.00482c78
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004048f0
cmp byte [ebp + 8], 0
je 0x483671
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00483510
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00483174
jmp 0x48368d
mov eax, dword [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00482cac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4836b4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4836c0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4836f1
mov ecx, dword [0x5435d0]
mov dl, 1
mov eax, dword [0x481964]
call fcn.00411a08
call fcn.00404fa8
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x48371e
mov ecx, dword [0x543500]
mov dl, 1
mov eax, dword [0x481964]
call fcn.00411a08
call fcn.00404fa8
xor eax, eax
push ebp
push 0x4837aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00482c3c
mov eax, dword [ebp - 4]
call fcn.00482c78
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004048f0
cmp byte [ebp + 8], 0
je 0x483786
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00483510
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.004831fc
jmp 0x4837a0
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00482cac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4837c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4839a8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00482f74
xor eax, eax
push ebp
push 0x483b30
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x483b1a
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4839f4
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4839fe
call fcn.00405054
jmp 0x483b37
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0042475c
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x483b0f
mov edx, dword [0x54b184]
mov eax, 0x54b190
mov ecx, 5
call fcn.00403534
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x483ac2
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x483aaf
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004048f0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.00483960
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x483b44]
cmp dl, byte [eax + 0x28]
je 0x483b16
call fcn.0041192c
jmp 0x483b16
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0042477c
jmp 0x483b16
cmp edi, ebx
jge 0x483ade
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0042477c
jmp 0x4839fe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0042475c
cmp edx, dword [esp + 4]
jne 0x483afe
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4839fe
push ebp
call fcn.00483960
pop ecx
jmp 0x483b16
push ebp
call fcn.00483960
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483b37
mov eax, dword [ebp - 4]
call fcn.00482f80
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483b48
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x483c7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00482f74
xor eax, eax
push ebp
push 0x483c62
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x483b98
call fcn.00405054
jmp 0x483c69
mov edx, dword [0x54b184]
mov eax, 0x54b190
mov ecx, 5
call fcn.00403534
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x483c4c
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x483c4c
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004048f0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x483c4c
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00411114
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x483c98
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x543790]
mov dl, 1
mov eax, dword [0x481964]
call fcn.00411a44
call fcn.00404fa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483c69
mov eax, dword [ebp - 4]
call fcn.00482f80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483c86
lea eax, [ebp - 0x28]
call fcn.00405638
ret
Function at 0x483ce8
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x483e47
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00482f74
xor eax, eax
push ebp
push 0x483e2a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x483d4d
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x483d4d
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x483e14
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x483d60
call fcn.00405054
jmp 0x483e31
mov edx, dword [0x54b188]
mov eax, 0x54b198
mov ecx, 5
call fcn.00403534
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x483e14
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x483e14
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004048f0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x483e14
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00411114
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x483e60
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x543790]
mov dl, 1
mov eax, dword [0x481964]
call fcn.00411a44
call fcn.00404fa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483e31
mov eax, dword [ebp - 4]
call fcn.00482f80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483e4e
lea eax, [ebp - 0x28]
call fcn.00405638
ret
Function at 0x485868
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push 0x485934
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x485931
push 0x485940
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54b188], eax
push 0x54b1b0
push 0x40
push 8
mov eax, dword [0x54b188]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4858b9
mov edx, 0x54b198
mov eax, dword [0x54b188]
mov ecx, 5
call fcn.00403534
push 0x485948
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54b184], eax
push 0x54b1a8
push 0x40
push 8
mov eax, dword [0x54b184]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4858f5
mov edx, 0x54b190
mov eax, dword [0x54b184]
mov ecx, 5
call fcn.00403534
push 0x485950
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54b18c], eax
push 0x54b1b8
push 0x40
push 8
mov eax, dword [0x54b18c]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x485931
mov edx, 0x54b1a0
mov eax, dword [0x54b18c]
mov ecx, 5
call fcn.00403534
pop ebx
ret

Function at 0x4873c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x4873f5
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x487474
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00485be0
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x487442
mov cx, word [esp]
sub cx, si
jmp 0x487444
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x48742b
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x48746a
mov cx, word [esp]
sub cx, si
jmp 0x48746c
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x487453
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4874d1
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.0048709c
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x4874bc
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x4874d1
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4873d2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a4e1c
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403de0
ret

Function at 0x4a7f4c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405ac8
xor eax, eax
push ebp
push 0x4a7faa
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.004a80cc
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x4a7f92
lea eax, [ebp - 4]
call fcn.004a80cc
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4a7f94
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7fb1
lea eax, [ebp - 4]
call fcn.00405638
ret

Function at 0x4a7fb8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405ac8
xor eax, eax
push ebp
push 0x4a801c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.004a80cc
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040de84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8023
lea eax, [ebp - 4]
call fcn.00405638
ret

Function at 0x4a8028
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405ac8
xor eax, eax
push ebp
push 0x4a808c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0
push 0x4a8098
lea eax, [ebp - 4]
call fcn.004a80cc
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004a7e10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8093
lea eax, [ebp - 4]
call fcn.00405638
ret
Function at 0x4a8a00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405ac8
xor eax, eax
push ebp
push 0x4a8af9
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [esi + 4]
mov word [ebx + 4], ax
movzx eax, word [esi + 6]
mov word [ebx + 6], ax
movzx eax, word [esi + 8]
mov word [ebx + 8], ax
movzx eax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.004a7854
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x22], ax
movzx eax, word [esi + 0x22]
mov word [ebx + 0x24], ax
movzx eax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040d93c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004a9c10
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040d7fc
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004a9c88
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8b00
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040565c
ret
Function at 0x4a8b08
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405ac8
xor eax, eax
push ebp
push 0x4a8c11
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
movzx eax, word [esi + 4]
mov word [ebx + 6], ax
movzx eax, word [esi + 6]
mov word [ebx + 8], ax
movzx eax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.004a7854
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x4a8bd7
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040d93c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004a9c10
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040d7fc
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004a9c88
jmp 0x4a8be9
xor edx, edx
mov eax, ebx
call fcn.004a9c10
xor edx, edx
mov eax, ebx
call fcn.004a9c88
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8c18
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040565c
ret