joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f59a8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
test dl, dl
je 0x4f59c8
add esp, 0xfffffff0
call fcn.0040542c
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f5b3b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00404ed0
mov eax, dword [ebp - 4]
add eax, 4
xor ecx, ecx
mov edx, 0x114
call fcn.004048c4
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x114
mov eax, dword [ebp - 4]
add eax, 4
push eax
call sub.kernel32.dll_GetVersionExW
mov dword [ebp - 0xc], 0x43
xor eax, eax
push ebp
push 0x4f5b09
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
movzx edx, word [ebp - 0xc]
call fcn.00406b70
lea eax, [ebp - 0x10]
mov edx, 0x4f5b70
call fcn.00406e18
mov eax, dword [ebp - 0x10]
call fcn.00406a90
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 3
jne 0x4f5aff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
call fcn.0040814c
add eax, 2
push eax
mov eax, dword [ebp - 4]
add eax, 0x118
mov ecx, 1
mov edx, dword [0x4f552c]
call fcn.0040830c
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
call fcn.0040814c
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x118]
lea eax, [edx + eax*8]
push eax
lea eax, [ebp - 0x14]
movzx edx, word [ebp - 0xc]
call fcn.00406b70
mov edx, dword [ebp - 0x14]
mov ecx, 0x4f5b70
pop eax
call fcn.00406ed8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
call fcn.0040814c
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x118]
lea eax, [edx + eax*8 + 4]
push eax
lea eax, [ebp - 0x18]
movzx edx, word [ebp - 0xc]
call fcn.00406b70
lea eax, [ebp - 0x18]
mov edx, 0x4f5b70
call fcn.00406e18
mov eax, dword [ebp - 0x18]
call fcn.00406a90
push eax
call sub.kernel32.dll_GetDriveTypeW
pop edx
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f5b13
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x5b
jne 0x4f5a15
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5b42
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004069fc
ret
Function at 0x4f6c68
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40c2f8]
call fcn.0040768c
xor eax, eax
push ebp
push 0x4f6db2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x534d54], 0
jne 0x4f6cbc
mov ecx, dword [0x535a5c]
mov dl, 1
mov eax, dword [0x40de9c]
call fcn.0041791c
call fcn.004059d0
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.004048c4
mov eax, ebx
call fcn.00406888
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4f6dc0
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00409744
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4f6d03
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4f6d58
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4f6d51
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.00406c6c
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.00406c04
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.00411de8
test eax, eax
jne 0x4f6d51
mov ebx, 0x15
jmp 0x4f6d5d
mov ebx, 0x10
jmp 0x4f6d5d
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x534d54]
call fcn.004f6ad4
mov eax, dword [ebp - 4]
call fcn.004f6ad4
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040975c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6db9
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004069fc
lea eax, [ebp - 0xc]
mov edx, dword [0x40c2f8]
call fcn.00407764
ret

Function at 0x4fb9a4
Capabilities:
Hide graphical window

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
mov eax, ebx
call fcn.004fb3dc
test byte [ebx + 0x2a5], 4
jne 0x4fba39
mov edx, esp
mov eax, ebx
call fcn.00484a8c
push esp
mov eax, ebx
call fcn.0048dad8
push eax
push 0
mov eax, ebx
test eax, eax
je 0x4fb9d9
sub eax, 0xfffffd14
push eax
push 0
push 0xfffffffffffffffb
mov eax, dword [ebx + 0x280]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
cmp dword [ebx + 0x294], 0
jne 0x4fba0a
mov ecx, dword [0x535d88]
mov dl, 1
mov eax, dword [0x4f64e0]
call fcn.0041791c
call fcn.004059d0
mov eax, ebx
call fcn.004fbfc0
cmp byte [ebx + 0x59], 0
jne 0x4fba40
mov eax, ebx
call fcn.0048dd3c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4fba40
push 0
mov eax, ebx
call fcn.0048dd3c
push eax
call sub.user32.dll_ShowWindow
jmp 0x4fba40
mov eax, ebx
call fcn.00489bec
add esp, 0x10
pop ebx
ret
Function at 0x501630
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x501697
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
call sub.user32.dll_GetWindowTextLengthW
mov ebx, eax
lea edi, [ebx + 1]
mov edx, edi
lea eax, [ebp - 4]
call fcn.00406d80
push edi
mov eax, dword [ebp - 4]
call fcn.00406a90
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406a04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50169e
lea eax, [ebp - 4]
call fcn.004069f4
ret

Function at 0x5068a8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
push 0x40
push 0x1000
push pe_nt_image_headers32
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x506932
xor edx, edx
push ebp
push 0x506913
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov dword [eax], 0x448b5050
mov dword [eax + 4], 0x44890824
mov dword [eax + 8], 0x58b0424
lea edx, [ebx + 4]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0x8244489
mov dword [eax + 0x14], 0x25ff9058
mov dword [eax + 0x18], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x506932
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x50b0dc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x50b10a
mov eax, ebx
call fcn.0050bb90
cmp dword [ebx + 0x40], 0
je 0x50b103
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x50b17b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x50b16d
cmp dword [ebx + 8], 0
je 0x50b12c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x50b13e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x50b16d
cmp dword [ebx + 8], 0
je 0x50b11f
cmp eax, 3
je 0x50b151
dec eax
jne 0x50b11f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x50b11f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x50b11f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x50b199
cmp dword [ebx + 0x14], 0xcc
je 0x50b199
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0050b1a4
pop ebx
ret

Function at 0x51b91c
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004069ec
mov eax, dword [ebp - 8]
call fcn.004069ec
mov eax, dword [ebp - 0xc]
call fcn.004069ec
xor eax, eax
push ebp
push 0x51ba4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.00406a90
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 3
mov eax, dword [ebp - 0xc]
call fcn.00406a90
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
call fcn.0046c35c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00406a90
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x51ba30
xor eax, eax
push ebp
push 0x51ba29
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
push 0
call sub.wininet.dll_InternetSetOptionW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x51ba09
push 0
push 0
push 0x25
push 0
call sub.wininet.dll_InternetSetOptionW
test eax, eax
jne 0x51ba0d
xor eax, eax
jmp 0x51ba0f
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ba30
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ba52
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004069fc
ret
Function at 0x51ba5c
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004069ec
mov eax, dword [ebp - 8]
call fcn.004069ec
mov eax, dword [ebp - 0xc]
call fcn.004069ec
mov eax, dword [ebp + 0xc]
call fcn.004069ec
xor eax, eax
push ebp
push 0x51bbc6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.00406a90
mov esi, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], 3
mov eax, 0x51bbdc
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00406a90
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x51bba3
xor edx, edx
push ebp
push 0x51bb9c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 3
mov eax, dword [ebp + 0xc]
call fcn.00406a90
push eax
mov eax, dword [ebp - 0xc]
call fcn.00406a90
push eax
movzx eax, word [ebp + 8]
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetConnectW
test eax, eax
je 0x51bb85
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x51bb7c
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionW
test eax, eax
jne 0x51bb80
xor eax, eax
jmp 0x51bb82
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51bba3
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51bbcd
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004069fc
lea eax, [ebp + 0xc]
call fcn.004069f4
ret
Function at 0x51bbec
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov byte [ebp - 1], 0
mov ebx, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, 0x51bcb4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x51bcb8
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
push 0x51bcb4
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x51bcab
xor eax, eax
push ebp
push 0x51bca4
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x4b
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionW
push 0
push 0
push 0x25
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionW
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51bcab
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
movzx eax, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51bff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
xor edx, edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x51c21a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x24], 0x105
mov eax, dword [ebp - 0x24]
call fcn.00404280
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x51c071
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
test eax, eax
je 0x51c05b
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00406bb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51c078
mov eax, dword [ebp - 0x14]
call fcn.0040429c
ret

Function at 0x51d848
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov bl, 2
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0x14
call fcn.004048c4
push 0x14
lea eax, [ebp - 0x14]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
je 0x51d883
cmp word [ebp - 0x14], 0x31
jne 0x51d881
mov bl, 1
jmp 0x51d883
xor ebx, ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51f114
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.0048e0bc
test al, al
je 0x51f1d3
mov byte [ebp - 9], 0
xor ebx, ebx
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 8], eax
jmp 0x51f1b1
cmp word [esi + 0x67a], 0
je 0x51f165
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [esi + 0x67c]
call dword [esi + 0x678]
movzx eax, byte [esi + 0x670]
or al, byte [ebp - 9]
jne 0x51f188
cmp dword [ebp - 4], 0
jbe 0x51f184
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
ja 0x51f188
xor ebx, ebx
jmp 0x51f18a
mov bl, 1
test bl, bl
jne 0x51f1d3
mov eax, dword [0x535f5c]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
jne 0x51f1d3
mov eax, dword [0x535f5c]
mov eax, dword [eax]
call fcn.004b2438
push 1
call sub.kernel32.dll_Sleep_2
test esi, esi
je 0x51f1d3
cmp byte [esi + 0x610], 0
jne 0x51f1d3
mov edx, 0xfffffdf3
mov eax, esi
call fcn.004fbdc4
cmp eax, 4
jne 0x51f142
mov byte [esi + 0x670], 0
test bl, bl
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52062c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004069ec
xor eax, eax
push ebp
push 0x520752
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406a58
push 0xa
mov eax, dword [ebp - 8]
call fcn.00406a90
push eax
mov eax, dword [0x539c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
je 0x52072f
push ebx
mov eax, dword [0x539c40]
push eax
call sub.kernel32.dll_SizeofResource
mov edi, eax
push ebx
mov eax, dword [0x539c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
xor edx, edx
push ebp
push 0x520712
push dword fs:[edx]
mov dword fs:[edx], esp
test ebx, ebx
je 0x520708
push edi
push 0
call sub.kernel32.dll_GlobalAlloc
mov esi, eax
push esi
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
mov ecx, edi
call fcn.00404438
lea eax, [ebp - 0xc]
call fcn.00409744
push eax
push 0
push esi
call sub.ole32.dll_CreateStreamOnHGlobal
push 0
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4b46a0]
call fcn.004b4934
mov dword [ebp - 0x10], eax
push esi
call sub.kernel32.dll_GlobalUnlock
lea eax, [ebp - 0xc]
call fcn.00409744
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52072f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520759
lea eax, [ebp - 0xc]
call fcn.00409744
lea eax, [ebp - 8]
mov edx, 2
call fcn.004069fc
ret
Function at 0x520764
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x214], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x52081b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5207f6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x1c
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x20e]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x20e]
mov ecx, 0x105
call fcn.00406c04
push dword [ebp - 0x214]
push 0x520838
push 0x520848
push 0x520838
mov eax, ebx
mov edx, 4
call fcn.00406fbc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x520802
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520822
lea eax, [ebp - 0x214]
call fcn.004069f4
ret

Function at 0x522234
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004069ec
lea edi, [ebp - 0x234]
xor eax, eax
push ebp
push 0x5223d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5223a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor edx, edx
mov eax, 2
call fcn.004f6458
mov esi, eax
mov dword [edi], 0x22c
mov edx, edi
mov eax, esi
call fcn.004f6478
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x52238b
lea eax, [ebp - 0x240]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00406c04
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x23c]
call fcn.00413178
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x238]
call fcn.00411834
mov eax, dword [ebp - 0x238]
push eax
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 4]
call fcn.00411834
mov edx, dword [ebp - 0x244]
pop eax
call fcn.004070dc
je 0x522364
lea eax, [ebp - 0x24c]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00406c04
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.00411834
mov eax, dword [ebp - 0x248]
push eax
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 4]
call fcn.00411834
mov edx, dword [ebp - 0x250]
pop eax
call fcn.004070dc
jne 0x52237c
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov byte [ebp - 5], al
mov edx, edi
mov eax, esi
call fcn.004f6498
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x5222c5
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5223ad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5223da
lea eax, [ebp - 0x250]
mov edx, 7
call fcn.004069fc
lea eax, [ebp - 4]
call fcn.004069f4
ret
Function at 0x401440
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x4b3c40]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00407960
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00407a00
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.004453a3
add esp, 0x68
ret

Function at 0x4014b0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x4b3c40]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00407960
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00407a00
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.004453a3
add esp, 0x68
ret
Function at 0x401640
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0x20119
xor edi, edi
push edi
push 0x4a6b30
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4017d1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esi + 0x10], eax
push ebx
mov dword [esi + 0x14], eax
lea edx, [esp + 0x1c]
push edx
mov dword [esi + 0x18], eax
push eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x28]
push str.Operator
mov edi, 0x400
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4016d3
cmp dword [esp + 0x14], 1
jne 0x4017b8
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi], ebx
lea ebx, [eax + ebx]
je 0x4017b8
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.IssueDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x401718
cmp dword [esp + 0x14], 1
jne 0x4017b8
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x4017b8
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.ExpirationDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x40174f
cmp dword [esp + 0x14], 1
jne 0x4017b8
mov eax, dword [esp + 0x10]
mov dword [esi + 8], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x4017b8
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.SignData
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x4017b8
cmp dword [esp + 0x14], 3
jne 0x4017b8
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
je 0x4017b8
lea eax, [esi + 0xc]
call fcn.00401520
test eax, eax
je 0x4017b8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, 0x400
sub ecx, edi
push eax
mov dword [edx], ecx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret