joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50a878
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x22c], edx
mov esi, eax
lea edi, [ebp - 0x128]
mov ecx, 0x4a
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 8]
add ebx, 0xfffffd90
lea esi, [ebp - 0x128]
xor eax, eax
push ebp
push 0x50aa47
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov word [eax - 0x26a], 0
lea edx, [esi + 0x24]
mov eax, dword [ebp + 8]
add eax, 0xfffffefb
call fcn.00409f70
mov dl, 1
mov eax, dword [0x50a3c0]
call fcn.00403140
mov dword [ebx], eax
mov eax, dword [ebx]
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov eax, dword [ebx]
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov eax, dword [ebx]
mov edx, dword [esi + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebx]
mov edx, dword [esi + 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [ebx]
mov edx, dword [esi + 0x14]
mov dword [eax + 0x14], edx
mov eax, dword [ebx]
mov edx, dword [esi + 0x18]
mov dword [eax + 0x18], edx
mov eax, dword [ebx]
mov edx, dword [esi + 0x1c]
mov dword [eax + 0x1c], edx
mov eax, dword [ebx]
mov edx, dword [esi + 0x20]
mov dword [eax + 0x20], edx
mov eax, dword [ebx]
add eax, 0x24
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00404140
lea ecx, [ebp - 0x22c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x274]
mov edx, dword [esi + 0x1c]
call fcn.0050ab5c
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 0x228]
mov ecx, 0xff
call fcn.0040416c
lea edx, [ebp - 0x228]
mov eax, dword [ebx]
add eax, 0x28
mov cl, 0xc
call fcn.00402c94
push 0x2000
push 0x160
mov eax, dword [ebp + 8]
add eax, 0xfffffd98
push eax
push 0
lea eax, [esi + 0x24]
push eax
call sub.shell32.dll_SHGetFileInfo
mov edx, eax
lea ecx, [ebp - 0x230]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x274]
call fcn.0050ac30
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x228]
mov ecx, 0xff
call fcn.0040416c
lea edx, [ebp - 0x228]
mov eax, dword [ebx]
add eax, 0x35
mov cl, 0xc
call fcn.00402c94
lea eax, [ebp - 0x238]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00404140
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x234]
call fcn.00409c00
mov edx, dword [ebp - 0x234]
mov ecx, dword [ebx]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x274]
mov eax, dword [eax + 0x24]
mov esi, dword [eax]
call dword [esi + 0x38]
xor eax, eax
mov dword [ebx], eax
mov eax, dword [ebx]
call fcn.00403170
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50aa4e
lea eax, [ebp - 0x238]
mov edx, 4
call fcn.00403f34
ret
Function at 0x51876c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x518816
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [ebx + 4], eax
mov dl, 1
mov eax, dword [0x411490]
call fcn.00403140
mov esi, eax
mov dword [ebx + 0xc], esi
mov edx, dword [ebx + 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx]
mov esi, dword [ebx + 0xc]
mov eax, esi
call fcn.00414d68
mov edx, eax
mov eax, esi
call fcn.00414d5c
lea eax, [ebp - 4]
mov edx, 0x51882c
call fcn.00403fa8
mov eax, dword [ebp - 4]
call fcn.00404354
mov edx, eax
mov ecx, 1
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
call dword [esi + 8]
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x1c], eax
mov byte [ebx + 0x34], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51881d
lea eax, [ebp - 4]
call fcn.00403f10
ret

Function at 0x5188b0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x24], eax
fild qword [ebp - 0x28]
fmul qword [ebp + 8]
call fcn.00402c10
push eax
push 0
push 0x400
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
fild qword [ebp - 0x30]
fmul qword [ebp + 8]
call fcn.00402c10
call fcn.00406c49
pop edx
xchg edx, eax
sub eax, edx
cmp eax, 0x10000
jge 0x51890f
mov eax, 0x10000
mov esp, ebp
pop ebp
ret 8

Function at 0x518918
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00403f10
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
mov eax, ebx
call fcn.0040e0b8
mov eax, ebx
call fcn.00408efc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5189eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
call fcn.0040e0b8
mov eax, pe_nt_image_headers32
call fcn.00408efc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5189ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x518a18
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetTempFileNameA
call fcn.0040e0b8
mov eax, dword [ebp - 0xc]
call fcn.00409f08
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00403ff8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5189d5
mov eax, dword [ebp - 8]
call fcn.00402770
ret
Function at 0x519aac
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x519bf4
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x519c0c
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.0051b21c
mov eax, dword [ebp - 4]
call fcn.0051ac18
xor edx, edx
push ebp
push 0x519bd7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x519b76
test si, si
jne 0x519b1c
mov eax, dword [ebp - 8]
call fcn.00409f08
mov esi, eax
cmp esi, 0xffff
jbe 0x519b1c
call fcn.004030b0
movzx ebx, si
push 0
push ebx
movzx eax, si
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10100]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x519b76
cmp eax, 0xffffffff
jle 0x519b4b
sub ebx, eax
jmp 0x519b5a
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0051b150
test ebx, ebx
je 0x519b76
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x519b76
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100ad], 0
je 0x519b1f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x519bc1
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x519c24
mov dl, 1
mov eax, dword [0x518c64]
call fcn.0040cb64
call fcn.00403908
mov eax, dword [ebp - 4]
cmp word [eax + 0x100fa], 0
je 0x519bc1
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x100fc]
call dword [ebx + 0x100f8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519bde
mov eax, dword [ebp - 4]
call fcn.0051ac7c
ret
Function at 0x51a090
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404344
xor eax, eax
push ebp
push 0x51a255
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x51a26c
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0051b21c
push 0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4113b8]
call fcn.00414fd4
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x51a1e5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x51a1a9
mov eax, dword [ebp - 4]
lea edx, [eax + 0x24]
mov ecx, 0x10000
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 4]
mov esi, eax
mov ebx, esi
push 0
push ebx
mov eax, esi
sub eax, ebx
cmp eax, 0x10000
jbe 0x51a125
call fcn.004030b0
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 0x24]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10100]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x51a1a9
cmp eax, 0xffffffff
jle 0x51a17a
sub ebx, eax
mov edx, dword [ebp - 4]
add dword [edx + 0x10084], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ca], 0
je 0x51a170
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x100cc]
call dword [edi + 0x100c8]
mov eax, dword [ebp - 4]
call fcn.0051ac18
jmp 0x51a189
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0051b150
mov eax, dword [0x6454e4]
mov eax, dword [eax]
call fcn.00453db4
test ebx, ebx
je 0x51a1a9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x51a112
mov eax, dword [ebp - 0xc]
call fcn.00414d4c
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.00414d68
cmp ebx, eax
je 0x51a1cf
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x51a0eb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a1ec
mov eax, dword [ebp - 0xc]
call fcn.00403170
ret
Function at 0x51a294
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51a415
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x51a42c
mov dl, 8
mov eax, ebx
call fcn.0051b21c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00414d5c
cmp byte [ebx + 0x10088], 0
jne 0x51a3c1
xor eax, eax
mov dword [ebx + 0x10084], eax
mov eax, dword [ebp - 4]
call fcn.00414d68
mov dword [ebx + 0x100b4], eax
mov eax, dword [ebp - 4]
call fcn.00414d68
push eax
mov eax, dword [ebp - 4]
call fcn.00414d4c
pop edx
xchg edx, eax
sub eax, edx
cmp eax, 0x10000
jle 0x51a310
mov eax, 0x10000
lea edx, [ebx + 0x24]
mov ecx, eax
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 4]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
push 0
push esi
mov eax, dword [ebp - 8]
sub eax, esi
cmp eax, 0x10000
jbe 0x51a337
call fcn.004030b0
lea eax, [ebx + eax + 0x24]
push eax
movzx eax, word [ebx + 0x10100]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x51a3ff
test eax, eax
jle 0x51a377
sub esi, eax
add dword [ebx + 0x10084], eax
cmp word [ebx + 0x100ca], 0
je 0x51a385
mov edx, ebx
mov eax, dword [ebx + 0x100cc]
call dword [ebx + 0x100c8]
jmp 0x51a385
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.0051b150
mov eax, dword [0x6454e4]
mov eax, dword [eax]
call fcn.00453db4
test esi, esi
je 0x51a39e
cmp byte [ebx + 0x10088], 0
je 0x51a323
mov eax, dword [ebp - 4]
call fcn.00414d68
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00414d4c
cmp esi, eax
je 0x51a3c1
cmp byte [ebx + 0x10088], 0
je 0x51a2ef
cmp byte [ebx + 0x10088], 0
je 0x51a3ff
mov byte [ebx + 0x10088], 0
mov ecx, 0x51a440
mov dl, 1
mov eax, dword [0x518c64]
call fcn.0040cb64
call fcn.00403908
cmp word [ebx + 0x100fa], 0
je 0x51a3ff
mov edx, ebx
mov eax, dword [ebx + 0x100fc]
call dword [ebx + 0x100f8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a41c
lea eax, [ebp - 0xc]
call fcn.00403f10
ret
Function at 0x51acb0
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51adb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x51add0
mov dl, 8
mov eax, ebx
call fcn.0051b21c
test byte [ebx + 0x20], 0x10
setne al
xor al, 1
and al, byte [0x647d5c]
je 0x51ada3
xor eax, eax
push ebp
push 0x51ad83
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x51ad19
call fcn.004030b0
mov word [ebx + 0x10100], si
mov word [ebp - 4], 0
mov word [ebp - 2], 0
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xff7f
movzx eax, si
push eax
call sub.wsock32.dll_setsockopt
cmp word [ebx + 0x10100], 0xffff
jne 0x51ad5e
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.0051b150
push 0x3f
push 0x465
mov eax, dword [ebx + 0x10104]
push eax
movzx eax, word [ebx + 0x10100]
push eax
call sub.wsock32.dll_WSAAsyncSelect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51ada3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51adc0
lea eax, [ebp - 8]
call fcn.00403f10
ret

Function at 0x51b09c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov ecx, 0x51b138
mov dl, 4
mov eax, ebx
call fcn.0051b21c
mov byte [ebx + 0x10108], 0
mov ax, word [ebx + 0x10100]
cmp ax, 0xffff
je 0x51b12a
movzx eax, ax
push eax
call sub.wsock32.dll_closesocket
test byte [ebx + 0x20], 8
jne 0x51b0e9
cmp word [ebx + 0x1004a], 0
je 0x51b0e9
mov edx, ebx
mov eax, dword [ebx + 0x1004c]
call dword [ebx + 0x10048]
cmp byte [ebx + 0x10089], 0
jne 0x51b12a
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x51b10c
call fcn.004030b0
mov word [ebx + 0x10100], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x10104]
push eax
movzx eax, si
push eax
call sub.wsock32.dll_WSAAsyncSelect
pop esi
pop ebx
ret
Function at 0x51b2c4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100a8]
cmp dword [eax + 4], 0
setg byte [ebp - 5]
cmp byte [ebp - 5], 0
jne 0x51b388
push 2
push 1
lea eax, [ebp - 6]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10100]
push eax
call sub.wsock32.dll_recv
test eax, eax
jle 0x51b315
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
call fcn.0051b048
jmp 0x51b388
test eax, eax
jne 0x51b388
mov byte [ebp - 5], 1
xor eax, eax
push ebp
push 0x51b351
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10108], 0
je 0x51b347
mov eax, dword [ebp - 4]
call fcn.0051b394
mov eax, dword [ebp - 4]
call fcn.0051b09c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51b35b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10028]
call fcn.004fd3d8
mov eax, dword [ebp - 4]
cmp word [eax + 0x1004a], 0
je 0x51b388
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1004c]
call dword [ebx + 0x10048]
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x51b394
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x51b39b
mov eax, dword [esp + 0x10000]
mov ebx, eax
mov ecx, 0x51b3e8
mov dl, 8
mov eax, ebx
call fcn.0051b21c
push 0
push 0x10000
lea eax, [esp + 8]
push eax
movzx eax, word [ebx + 0x10100]
push eax
call sub.wsock32.dll_recv
add esp, 0x10004
pop ebx
ret
Function at 0x524698
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe2c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x524738
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1d4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x44]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x44]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x524722
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x5246fb
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 4]
call fcn.004040c8
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x5246e9
call sub.wsock32.dll_WSACleanup
cmp dword [ebp - 4], 0
je 0x52471c
mov eax, dword [ebp - 4]
mov edx, 0x524750
call fcn.004042a0
jne 0x524720
xor ebx, ebx
jmp 0x524722
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52473f
lea eax, [ebp - 4]
call fcn.00403f10
ret

Function at 0x52475c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffff0
lea eax, [esp + 0xc]
push eax
push 0x5247c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x5247b9
mov dword [esp], 4
push esp
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x5247f8
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x5247a6
cmp byte [esp + 4], 1
sete bl
jmp 0x5247ad
call fcn.00524698
mov ebx, eax
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x5247c0
call fcn.00524698
mov ebx, eax
mov eax, ebx
add esp, 0x10
pop ebx
ret

Function at 0x524bf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404344
xor eax, eax
push ebp
push 0x524cb1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x524cc8
call fcn.0040447c
test eax, eax
jne 0x524c38
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x524cd4
call fcn.004041dc
test bl, bl
je 0x524c77
lea edx, [ebp - 8]
mov eax, 0x524ce4
call fcn.00524870
cmp dword [ebp - 8], 0
je 0x524c77
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404354
push eax
mov eax, dword [ebp - 8]
call fcn.00404354
push eax
push 0x524cec
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x524c96
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404354
push eax
push 0x524cec
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524cb8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403f34
ret
Function at 0x524cf4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x524daa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x106]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x106]
call fcn.0040a168
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040d784
mov eax, dword [ebx]
call fcn.00524db8
test al, al
jne 0x524d8c
lea edx, [ebp - 0x114]
mov eax, dword [0x6454e4]
mov eax, dword [eax]
call fcn.00454428
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.00409adc
mov eax, dword [ebp - 0x110]
mov edx, ebx
call fcn.0040d784
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524db1
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00403f34
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404354
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x524dd1
test al, 0x10
jne 0x524dd5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x525f00
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
mov eax, esi
call fcn.00404354
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x525fba
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_GetFileTime
fld qword [ebp + 0x18]
fcomp dword [0x525fc4]
fnstsw ax
sahf
je 0x525f64
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
lea eax, [ebp - 8]
call fcn.00525eac
fld qword [ebp + 8]
fcomp dword [0x525fc4]
fnstsw ax
sahf
je 0x525f80
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.00525eac
fld qword [ebp + 0x10]
fcomp dword [0x525fc4]
fnstsw ax
sahf
je 0x525f9c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
call fcn.00525eac
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_SetFileTime
neg eax
sbb ebx, ebx
neg ebx
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x526004
Capabilities:
Get file size

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
push 0
push 0x80
push 3
push 0
push 3
push 0
mov eax, ebx
call fcn.00404354
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x52605f
lea eax, [esp + 8]
push eax
push ebx
call sub.kernel32.dll_GetFileSize
mov edx, eax
mov eax, dword [esp + 8]
call fcn.00525fc8
mov dword [esp], eax
mov dword [esp + 4], edx
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
pop ebx
ret
Function at 0x52606c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
je 0x5260ef
push ecx
push edx
push edi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x5260ef
push ebx
push edi
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x5260ef
push esi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
push esi
call sub.kernel32.dll_FreeResource
cmp dword [ebp - 8], 0
je 0x5260ef
push ebx
push edi
call sub.kernel32.dll_SizeofResource
test eax, eax
je 0x5260ef
xor edx, edx
push ebp
push 0x5260e5
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
mov ecx, eax
mov eax, dword [ebp + 8]
call fcn.00414dd8
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5260ef
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x5267d0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x5267e5
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x5268e8
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov ebx, eax
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, ebx
call fcn.00526854
mov esi, eax
mov eax, ebx
call fcn.00403170
mov eax, esi
pop esi
pop ebx
ret