joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a9a14
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00409150
xor eax, eax
push ebp
push 0x5a9b53
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x5a9b26
xor edx, edx
push ebp
push 0x5a9b1f
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebp - 4]
mov eax, esi
test eax, eax
je 0x5a9a61
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x5a9af4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x5a9ae3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
test eax, eax
je 0x5a9aa6
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.00409cd0
lea ecx, [esi + 2]
mov edx, ebx
call fcn.004065c0
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a9aea
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x5c8ab0]
mov dl, 1
mov eax, dword [0x41c024]
call fcn.0042786c
call fcn.00408768
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a9b5a
lea eax, [ebp - 4]
call fcn.0040906c
ret

Function at 0x5acc30
Capabilities:
Hash data with md5

Disassembly:
push ebx
add esp, 0xffffffa8
mov ebx, eax
mov edx, esp
mov eax, ebx
mov ecx, 0x58
call fcn.004065c0
xor eax, eax
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], 0x67452301
mov dword [esp + 0xc], 0xefcdab89
mov dword [esp + 0x10], 0x98badcfe
mov dword [esp + 0x14], 0x10325476
mov edx, ebx
mov eax, esp
mov ecx, 0x58
call fcn.004065c0
add esp, 0x58
pop ebx
ret
Function at 0x5ad82c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
add eax, 0xc
mov eax, dword [eax]
mov dword [edx + 0xc], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0xc]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
movzx ebx, cl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
mov esi, dword [ebx*4 + str.cwko0]
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + str.cwko0]
mov dword [esp + 8], ebx
shr ecx, 0x18
movzx ecx, cl
mov ecx, dword [ecx*4 + str.cwko0]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x5c76d4]
mov dword [edx + eax*4 + 0x10], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x14], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x18], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x1c], ecx
add eax, 4
cmp eax, 0x28
jl 0x5ad857
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x5b0c40
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x5b0cc8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5cf364
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x5b0cb2
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.004267d4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x5b0ce0
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, 0x5af2a0
mov dl, 1
mov eax, dword [0x5af2d8]
call fcn.0042793c
call fcn.00408768
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b0ccf
lea eax, [ebp - 0x1c]
call fcn.0040906c
ret

Function at 0x5b12e0
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x5b133c]
cmp al, byte [ebx + 0x28]
je 0x5b1304
mov esi, 0x401
mov eax, ebx
call fcn.005b144c
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x5b133c]
cmp al, byte [ebx + 0x28]
jne 0x5b1334
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5b13d4
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.005b12e0
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00407774
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x5b143c
call fcn.005b0b88
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x5b142a
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00407774
pop esi
pop ebx
ret

Function at 0x5b18c4
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
push edx
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00406e84
test ebx, ebx
je 0x5b190a
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [esp + 4], cl
movzx ecx, byte [edx + 1]
mov byte [esp + 5], cl
movzx ecx, byte [edx + 2]
mov byte [esp + 6], cl
movzx eax, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x5b1adc
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x5b1b0c
mov ecx, 0x5af2c8
mov dl, 1
mov eax, dword [0x5af2d8]
call fcn.0042786c
call fcn.00408768
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x5b1b38
mov ecx, 0x5af2c0
mov dl, 1
mov eax, dword [0x5af2d8]
call fcn.0042786c
call fcn.00408768
xor eax, eax
push ebp
push 0x5b1bb4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00407774
cmp byte [ebp + 8], 0
je 0x5b1b90
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.005b1944
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.005b13d4
jmp 0x5b1baa
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.005b0e90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b1bd1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5b1de0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.005b1184
xor eax, eax
push ebp
push 0x5b1f53
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x5b1f3d
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x5b1e2c
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x5b1e36
call fcn.0040885c
jmp 0x5b1f5a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004ad628
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x5b1f32
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b1ee5
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x5b1ed2
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00407774
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.005b1d98
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x5b1f68]
cmp dl, byte [eax + 0x28]
je 0x5b1f39
call fcn.0042770c
jmp 0x5b1f39
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004ad648
jmp 0x5b1f39
cmp edi, ebx
jge 0x5b1f01
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004ad648
jmp 0x5b1e36
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004ad628
cmp edx, dword [esp + 4]
jne 0x5b1f21
cmp eax, dword [esp]
pop edx
pop eax
jne 0x5b1e36
push ebp
call fcn.005b1d98
pop ecx
jmp 0x5b1f39
push ebp
call fcn.005b1d98
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b1f5a
mov eax, dword [ebp - 4]
call fcn.005b118c
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b1f9c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5b20bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005b1184
xor eax, eax
push ebp
push 0x5b20a0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x5b1fec
call fcn.0040885c
jmp 0x5b20a7
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x5b208a
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x5b208a
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00407774
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 0x5b208a
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004267d4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x5b20dc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, 0x5af2a0
mov dl, 1
mov eax, dword [0x5af2d8]
call fcn.0042793c
call fcn.00408768
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b20a7
mov eax, dword [ebp - 4]
call fcn.005b118c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b20c4
lea eax, [ebp - 0x28]
call fcn.0040906c
ret
Function at 0x5b212c
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 0x5b2275
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005b1184
xor eax, eax
push ebp
push 0x5b2258
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x5b2191
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x5b2191
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 0x5b2242
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x5b21a4
call fcn.0040885c
jmp 0x5b225f
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 0x5b2242
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x5b2242
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00407774
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 0x5b2242
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004267d4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x5b2294
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, 0x5af2a0
mov dl, 1
mov eax, dword [0x5af2d8]
call fcn.0042793c
call fcn.00408768
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b225f
mov eax, dword [ebp - 4]
call fcn.005b118c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b227c
lea eax, [ebp - 0x28]
call fcn.0040906c
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x46c
mov ecx, 0x40cdd4
push 1
push str.Aqua_Real_Demo_Settings
push 0
call fcn.00401360
test eax, eax
je 0x401028
xor eax, eax
add esp, 0x46c
ret 0x10
push 1
push str.Aqua_Real_Demo
push str.Aqua_Real_Class
mov ecx, 0x40cdd4
call fcn.00401360
test eax, eax
jne 0x401058
push 1
push str.Aqua_Real_Desktop
push eax
mov ecx, 0x40cdd4
call fcn.00401360
test eax, eax
je 0x40106d
mov eax, dword [0x40ce18]
push 0
push 0
push 0x8005
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x54]
call fcn.00401140
lea ecx, [esp + 0x54]
call fcn.004011a0
push 0x40a0a0
lea ecx, [esp + 0x58]
call fcn.004011b0
push str.AquaReal.scr
lea ecx, [esp + 0x58]
call fcn.004011b0
lea ecx, [esp + 0x54]
call fcn.00401200
test eax, eax
jne 0x4010bb
push 0x30
push str.Launch_Aqua_Real_setting_dialog
push str.Cant_find_Aqua_Real.scr_in_window_directory___n
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
lea ecx, [esp + 0x264]
call fcn.00401140
push str.Launch
lea ecx, [esp + 0x268]
push str.__c__s
push ecx
call fcn.00401180
xor edx, edx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x10], edx
add esp, 0xc
rep stosd dword es:[edi], eax
mov dword [esp + 8], edx
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], edx
push eax
push ecx
push edx
push edx
push 0x240
push edx
push edx
mov dword [esp + 0x2c], edx
push edx
lea edx, [esp + 0x284]
lea eax, [esp + 0x78]
push edx
push eax
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
pop edi
add esp, 0x46c
ret 0x10
Function at 0x402a9d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a1c8
cmp edx, dword [eax]
je 0x402abf
add eax, 8
inc ecx
cmp eax, 0x40a258
jl 0x402ab0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a1c8]
jne 0x402bed
mov eax, dword [0x40ce2c]
cmp eax, 1
je 0x402bc7
test eax, eax
jne 0x402af0
cmp dword [0x40a0f8], 1
je 0x402bc7
cmp edx, 0xfc
je 0x402bed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402b27
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004048f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404450
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402b6a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404450
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40941c
push edi
call fcn.00401520
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004048f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404900
lea eax, [ebp - 0xa0]
push 0x4093fc
push eax
call fcn.00404900
push dword [esi + 0x40a1cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404900
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405ee4
add esp, 0x2c
pop edi
jmp 0x402bed
lea eax, [ebp + 8]
lea esi, [esi + 0x40a1cc]
push 0
push eax
push dword [esi]
call fcn.00404450
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1002adc
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
mov ebx, ecx
mov edi, 0x2000
push edi
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x1002b0c
mov eax, 0x8007000e
jmp 0x1002c75
push eax
mov ecx, ebx
call fcn.010029e3
test eax, eax
jge 0x1002b1f
mov edi, eax
jmp 0x1002c65
lea eax, [ebp - 2]
push eax
push dword [ebp - 0x10]
call fcn.01002859
test eax, eax
jne 0x1002b39
mov edi, 0x80020009
jmp 0x1002c65
push edi
call esi
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0xc], esi
jne 0x1002b50
mov edi, 0x8007000e
jmp 0x1002c65
mov ecx, ebx
call fcn.010029ba
push esi
mov ecx, ebx
call fcn.010029e3
test eax, eax
jl 0x1002c5b
movzx eax, word [ebp - 2]
sub eax, 8
je 0x1002c40
sub eax, 9
je 0x1002ba3
dec eax
dec eax
jne 0x1002c4c
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push esi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.01002595
jmp 0x1002c4c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 8], eax
je 0x1002bbb
mov edi, 0x80004005
jmp 0x1002c5d
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.0100a6d0
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, esp
mov dword [ebp - 4], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp esp, edi
je 0x1002bb1
cmp dword [ebp - 8], edi
jle 0x1002c27
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
push eax
call fcn.010028e3
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x1002bf1
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 4]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1002c4c
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
call fcn.010025b8
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.010029e3
test eax, eax
jge 0x1002c73
mov edi, eax
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, edi
jmp 0x1002c75
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10037f9
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [edi + 0x88], eax
jne 0x100381d
xor al, al
jmp 0x1003836
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x10037e1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret
Function at 0x1003849
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x100bf5e
call fcn.0100a788
sub esp, 0x218
mov eax, dword [0x100e170]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x214], esi
push 0x2001f
push eax
push dword [ebx]
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], esi
call fcn.01002559
cmp eax, esi
jne 0x10038f2
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10038a9
lea eax, [ebp - 0x210]
push eax
call fcn.01003849
cmp eax, esi
jne 0x10038f1
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x1003899
call fcn.010024e6
push dword [ebp - 0x21c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.010024e6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0100a2d1
leave
ret 4
Function at 0x1004949
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x100499b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1004986
call esi
mov esi, eax
jmp 0x1004a61
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1004a61
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x10049bc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x10049e1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10049cf
call esi
jmp 0x1004a56
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1004a58
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x1004a20
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0100a6d0
mov ecx, edi
mov edx, ecx
mov eax, esp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], eax
mov byte [eax + ebx], 0
mov edi, esp
test edi, edi
jne 0x1004a28
xor eax, eax
jmp 0x1004a4a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0100a6d0
mov eax, esp
push esi
push edi
push eax
call fcn.01002309
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.01004569
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10