joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f898
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 0x46f9e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0046eec0
xor eax, eax
push ebp
push 0x46f9c5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x46f8fd
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x46f8fd
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 0x46f9af
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x46f910
call fcn.0040436c
jmp 0x46f9cc
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 0x46f9af
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x46f9af
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403cf0
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 0x46f9af
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c3a4
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, 0x46f9fc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4df9dc]
mov dl, 1
mov eax, dword [0x46e208]
call fcn.0040cd00
call fcn.004042c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f9cc
mov eax, dword [ebp - 4]
call fcn.0046eecc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f9e9
lea eax, [ebp - 0x28]
call fcn.004048e4
ret

Function at 0x470044
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ecx, edx
mov ebx, eax
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.0046dd3c
lea edx, [esp + 8]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
call fcn.0046dd2c
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
add esp, 0x10c
pop esi
pop ebx
ret
Function at 0x47333c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x47336a
mov eax, ebx
call fcn.00473df4
cmp dword [ebx + 0x3c], 0
je 0x473363
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4733db
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4733cd
cmp dword [ebx + 8], 0
je 0x47338c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x47339e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4733cd
cmp dword [ebx + 8], 0
je 0x47337f
cmp eax, 3
je 0x4733b1
dec eax
jne 0x47337f
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 0x47337f
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x47337f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4733f9
cmp dword [ebx + 0x10], 0xcc
je 0x4733f9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00473404
pop ebx
ret

Function at 0x495a74
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x495b4c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e0f2c], 0
jne 0x495b30
lea eax, [ebp - 4]
mov edx, 0x495b64
call fcn.0040497c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d94
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x495b30
mov eax, ebx
call fcn.004027b8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x495b29
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x495b13
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x495b74
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x495b13
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4e0f2c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495b30
mov eax, dword [ebp - 0xc]
call fcn.004027d8
ret
mov ebx, dword [0x4e0f2c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495b53
lea eax, [ebp - 4]
call fcn.004048e4
ret

Function at 0x4aa39c
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4e0f50], 0
jne 0x4aa3bf
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4aa310
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4e0f50], eax
ret
Function at 0x4af038
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4af298
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4af09b
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004aeb00
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d4f4
cmp al, 1
jne 0x4af09b
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004aee18
test al, al
je 0x4af227
cmp dword [ebp - 8], 0
jge 0x4af0b9
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004aeb00
mov eax, dword [ebp - 0x210]
call fcn.00404b9c
cmp ebx, eax
jge 0x4af103
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004aeb00
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4dfaf0]
and eax, 0xff
bt dword [edx], eax
jae 0x4af103
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4af117
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004af014
cmp ebx, dword [ebp - 8]
je 0x4af219
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4af143
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403cf0
and eax, 0x7f
movzx eax, word [eax*2 + 0x4def0c]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4af206
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403cf0
and eax, 0x7f
movzx eax, word [eax*2 + 0x4def0c]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044fc20
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403cf0
and eax, 0x7f
movzx eax, word [eax*2 + 0x4def0c]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044fc20
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af20d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4af27a
cmp dword [ebp - 8], 0
jge 0x4af232
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004aeb00
mov eax, dword [ebp - 0x218]
call fcn.00404b9c
cmp eax, dword [ebp - 8]
jg 0x4af26c
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004aeb00
mov eax, dword [ebp - 0x21c]
call fcn.00404b9c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004af014
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af29f
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404908
ret
Function at 0x4b7f68
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b8089
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion
mov edx, dword [0x4df9c0]
mov dword [edx], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4df9c0]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x4b80a0
call fcn.0040a140
mov eax, dword [ebp - 4]
call fcn.004cea7c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x4df774]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, dword [0x4df980]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x4b80bc
call fcn.0040a140
mov eax, dword [ebp - 0x10]
call fcn.004cea7c
call sub.kernel32.dll_GetCurrentThreadId_1
mov esi, eax
push esi
push 0
push 0x4b7b9c
push 5
call sub.user32.dll_SetWindowsHookExA
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x4b80dc
call fcn.0040a140
mov eax, dword [ebp - 0x24]
call fcn.004cea7c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x4b80f4
call fcn.0040a140
mov eax, dword [ebp - 0x28]
call fcn.004cea7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8090
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404908
lea eax, [ebp - 0x10]
call fcn.004048e4
lea eax, [ebp - 4]
call fcn.004048e4
ret

Function at 0x4bfbfc
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 0x4bfc32
jmp 0x4bfcd8
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 0x4bfc76
mov edx, dword [ebx + 0x4c]
cmp dword [edx + 0x144], 0
je 0x4bfc76
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0x144]
mov eax, dword [eax + 0x14]
jmp 0x4bfc86
mov edx, dword [ebx + 0x4c]
mov edx, dword [edx + 0x140]
test edx, edx
je 0x4bfc86
mov eax, dword [edx + 0x14]
test eax, eax
je 0x4bfc9f
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.004bd468
jmp 0x4bfcd8
mov dl, 1
mov eax, dword [0x427330]
call fcn.004292d4
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.00429a78
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xac]
mov eax, dword [esi + 0x10]
call fcn.00428e64
mov edx, esp
mov eax, esi
call fcn.004296e0
mov eax, esi
call fcn.00403af4
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4c1898
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.0044fc20
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x264], 0
pop ebx
ret
Function at 0x4c5120
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov esi, edx
mov ebp, eax
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0046138c
mov ebx, eax
mov dx, word [esi + 4]
mov eax, ebp
call fcn.004c4e48
mov edi, eax
test edi, edi
je 0x4c516d
mov al, byte [0x4c51b0]
cmp al, bl
jne 0x4c516d
mov edx, edi
mov eax, ebp
call fcn.004c4df0
mov dword [esi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x4c51a3
cmp byte [ebp + 0x165], 2
jne 0x4c5196
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x4dfa4c]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c]
mov edx, 0xb006
call fcn.0044a570
test eax, eax
jne 0x4c51a3
xor eax, eax
mov dword [esi + 0xc], eax
mov edx, esi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c8864
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 0x4c891e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405000
mov eax, dword [0x4df688]
cmp byte [eax], 0
je 0x4c88d3
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405310
mov eax, dword [ebx]
call fcn.0040518c
push eax
mov eax, dword [ebx]
call fcn.0040517c
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.0040518c
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405310
jmp 0x4c8905
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.00409bc4
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.0040516c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8925
lea eax, [ebp - 0x3f0]
call fcn.004048e4
ret

Function at 0x4c892c
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.00409bc4
add esp, 0x3ec
pop ebx
ret
Function at 0x4c9dbc
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 [ebx + 0xf8]
mov eax, dword [eax + 0x34]
call fcn.0045b21c
mov edi, eax
dec edi
test edi, edi
jl 0x4c9e6f
inc edi
xor esi, esi
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0045b22c
mov eax, dword [eax + 0xc]
sub eax, 1
jb 0x4c9e06
je 0x4c9e27
dec eax
je 0x4c9e48
jmp 0x4c9e67
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0045b22c
cmp byte [ebx + 0x168], 0
setne dl
call fcn.0045b148
jmp 0x4c9e67
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0045b22c
cmp byte [ebx + 0x168], 1
setne dl
call fcn.0045b148
jmp 0x4c9e67
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0045b22c
cmp byte [ebx + 0x168], 2
setne dl
call fcn.0045b148
inc esi
dec edi
jne 0x4c9de7
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x88]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x8c]
cdq
cmp edx, dword [esp + 4]
jne 0x4c9e94
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4c9f03
jmp 0x4c9e98
pop edx
pop eax
jge 0x4c9f03
mov eax, dword [0x4dfa4c]
mov eax, dword [eax]
mov dword [eax + 0x40], 2
mov esi, 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x88], eax
mov eax, dword [ebx + 0x13c]
test byte [eax + 0x4c], 4
je 0x4c9edf
cmp byte [ebx + 0x165], 2
je 0x4c9edf
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [ebx + 0xf8]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x4c9f28
push 0
mov eax, dword [ebx + 0x130]
push eax
push 0
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push esi
mov eax, dword [ebx + 0x108]
push eax
call sub.user32.dll_TrackPopupMenu
jmp 0x4c9f28
cmp dword [ebx + 0x120], 0
je 0x4c9f28
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.00440588
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x130]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4d3c74
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 0x4d3de5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x8c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4d3dca
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.00409bc4
mov dl, 1
mov eax, dword [0x4ac904]
call fcn.004ac95c
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ad14]
call fcn.00403ac4
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.004ac9d8
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4d3dc7
mov dl, 1
mov eax, dword [0x4ad3bc]
call fcn.004ad424
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 + 0x84]
mov edx, 0x4d3dfc
call fcn.004acd24
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404be8
xor eax, eax
push ebp
push 0x4d3dc0
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 + 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.004ad724
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004d3e04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3dc7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00403af4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403af4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403af4
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3dec
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404908
ret

Function at 0x4d9a68
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, edx
push esp
push 0xff
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.00409bc4
add esp, 0x100
pop ebx
ret

Function at 0x4d9cb4
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
mov dword [esp], 7
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
pop edx
ret
Function at 0x4dbe70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc98
push ebx
xor ecx, ecx
mov dword [ebp - 0x368], ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d84
xor eax, eax
push ebp
push 0x4dbfbf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20d]
mov edx, dword [ebp - 4]
call fcn.00409a64
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.004029a0
lea eax, [ebp - 0x30d]
mov edx, dword [ebp - 0xc]
call fcn.00409a64
lea eax, [ebp - 0x354]
xor ecx, ecx
mov edx, 0x44
call fcn.00403244
mov dword [ebp - 0x354], 0x44
mov dword [ebp - 0x328], 1
mov word [ebp - 0x324], bx
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x30d]
push eax
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x20d]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4dbf60
mov dword [ebp - 8], 0xffffffff
push 0
push 0x4dbfd0
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x368]
call fcn.0040c3a4
mov eax, dword [ebp - 0x368]
call fcn.00404d94
push eax
mov eax, dword [0x4df920]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x4dbf96
push 0xffffffffffffffff
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x360]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dbfc6
lea eax, [ebp - 0x368]
call fcn.004048e4
lea eax, [ebp - 0xc]
call fcn.004048e4
lea eax, [ebp - 4]
call fcn.004048e4
ret
Function at 0x409ed0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4699db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045e3e1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409f52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045c160
mov eax, dword [eax]
push 0x49c1f0
push eax
call fcn.0044ed94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045e66c
test bl, bl
je 0x409f52
push 0x49c1f0
lea ecx, [esp + 0xc]
call fcn.0045e9fc
push 0x49fd6c
lea ecx, [esp + 0xc]
call fcn.0045e9fc
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x409f8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045e66c
jmp 0x40a059
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40a012
lea edx, [esp + 0x7c]
push 0x49fd68
push edx
call fcn.0044ed94
add esp, 8
test eax, eax
je 0x40a012
lea eax, [esp + 0x7c]
push 0x49fd64
push eax
call fcn.0044ed94
add esp, 8
test eax, eax
je 0x40a012
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409fa2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045e66c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40a850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40a8b2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc