joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008b7c
Capabilities:
Create tcp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [ebp + 0xc]
push 0x18e
and dword [eax], 0
xor eax, eax
push eax
mov word [ebp - 0x1b4], ax
lea eax, [ebp - 0x1b2]
push eax
call fcn.100103f0
add esp, 0xc
lea eax, [ebp - 0x1b4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10008bca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10008c90
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
xor esi, esi
push 6
push 1
push 0x17
pop eax
push eax
mov dword [ebp - 4], esi
call edi
mov ebx, eax
push 2
pop eax
cmp ebx, 0xffffffff
je 0x10008c0f
and dword [ebp - 8], esi
lea eax, [ebp - 8]
push 4
push eax
push 0x1b
push 0x29
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x10008c1d
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 2
pop eax
xor esi, esi
inc esi
push 6
push esi
push eax
mov dword [ebp - 4], esi
call edi
mov ebx, eax
xor eax, eax
lea edi, [ebp - 0x22]
mov word [ebp - 0x24], ax
push 6
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
je 0x10008c4f
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0
call esi
movzx eax, ax
push 2
mov dword [ebp - 0x20], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x24], ax
call esi
jmp 0x10008c6b
mov esi, 0x1002163c
lea edi, [ebp - 0x1c]
push 0x17
pop eax
push dword [ebp + 8]
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 word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0xc]
cmp dword [ebp - 4], 0
push 0x1c
mov word [ebp - 0x22], ax
pop eax
push 0x10
pop ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.10008b23
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a4f6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1000a505
xor eax, eax
jmp 0x1000a57a
push esi
push 0x1c
call fcn.1000fa60
mov esi, eax
pop ecx
test esi, esi
je 0x1000a573
push 0x1c
push 0
push esi
call fcn.100103f0
add esp, 0xc
call fcn.1000a38e
mov dword [esi + 8], eax
push esi
test eax, eax
jne 0x1000a535
call fcn.1000fa28
jmp 0x1000a572
mov eax, dword [ebp + 0xc]
push 4
push esi
push 0x1000a63b
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [esi + 0x18], eax
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x1000a577
push dword [esi + 8]
call fcn.1000a3ce
push esi
call fcn.1000fa28
pop ecx
pop ecx
xor eax, eax
jmp 0x1000a579
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x1000a59f
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1000a5ab
pop ebp
ret
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
pop ebp
ret

Function at 0x1000a5d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1000a5dc
pop ebp
ret
push 0xffffffffffffffff
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
neg eax
sbb eax, eax
neg eax
pop ebp
ret
Function at 0x1000bed0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x24]
mov esi, dword [edi + 0x34]
mov ecx, dword [edi + 0x64]
sub esi, ecx
sub esi, dword [edi + 0x6c]
mov dword [ebp - 8], esi
jne 0x1000befe
test ecx, ecx
jne 0x1000bf08
cmp dword [edi + 0x6c], ecx
jne 0x1000bf08
mov esi, ebx
jmp 0x1000bf85
cmp esi, 0xffffffff
jne 0x1000bf08
push 0xfffffffffffffffe
pop esi
jmp 0x1000bf85
mov eax, dword [edi + 0x24]
add eax, 0xfffffefa
add eax, ebx
cmp ecx, eax
jb 0x1000bf85
mov ecx, dword [edi + 0x30]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.1000fb00
mov ecx, dword [edi + 0x44]
add esp, 0xc
mov eax, dword [edi + 0x3c]
mov esi, ecx
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
sub dword [edi + 0x54], ebx
mov dword [ebp - 4], ecx
lea edi, [eax + ecx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx edx, word [edi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
dec esi
jne 0x1000bf3e
mov edi, dword [ebp + 8]
mov esi, ebx
mov eax, dword [edi + 0x38]
lea edi, [eax + ebx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx edx, word [edi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
dec esi
jne 0x1000bf63
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
add esi, ebx
mov ecx, dword [edi]
cmp dword [ecx + 4], 0
je 0x1000bfde
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x64]
add eax, dword [edi + 0x30]
push esi
push eax
push ecx
call fcn.1000c715
add dword [edi + 0x6c], eax
add esp, 0xc
cmp dword [edi + 0x6c], 3
jb 0x1000bfc9
mov edx, dword [edi + 0x64]
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x50]
movzx esi, byte [edx + eax]
mov dword [edi + 0x40], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x4c]
mov dword [edi + 0x40], esi
cmp dword [edi + 0x6c], 0x106
jae 0x1000bfde
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x1000bede
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a4004]
jne 0x40100a
repz ret
jmp fcn.0040151b

Function at 0x4067a7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a4004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403d19
and dword [ebp - 0x14], 0
cmp dword [0x4a8f40], 0
mov dword [ebp - 0x18], eax
jne 0x40685a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406902
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406902
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a8f40], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a8f44], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a8f48], eax
call edi
push eax
call esi
mov dword [0x4a8f50], eax
test eax, eax
je 0x40685a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a8f4c], eax
mov eax, dword [0x4a8f4c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4068b3
cmp dword [0x4a8f50], ecx
je 0x4068b3
push eax
call esi
push dword [0x4a8f50]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4068b3
test ebx, ebx
je 0x4068b3
call edi
test eax, eax
je 0x4068aa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4068aa
test byte [ebp - 8], 1
jne 0x4068b3
or dword [ebp + 0x10], 0x200000
jmp 0x4068e6
mov eax, dword [0x4a8f44]
cmp eax, dword [ebp - 0x18]
je 0x4068e6
push eax
call esi
test eax, eax
je 0x4068e6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4068e6
mov eax, dword [0x4a8f48]
cmp eax, dword [ebp - 0x18]
je 0x4068e6
push eax
call esi
test eax, eax
je 0x4068e6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a8f40]
call esi
test eax, eax
je 0x406902
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406904
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x49c070
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x408
mov eax, dword [0x4a4004]
xor eax, esp
mov dword [esp + 0x404], eax
cmp dword [0x1f7b684], 0xfc7
jne 0x49c09f
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x4a9464]
imul eax, eax, 0x343fd
cmp dword [0x1f7b684], 0x139e
mov dword [0x4a9464], eax
jne 0x49c0ce
mov ecx, dword [esp]
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [0x4a9464]
add eax, 0x269ec3
push esi
mov dword [0x4a9464], eax
movzx esi, word [0x4a9466]
and esi, 0x7fff
cmp dword [0x1f7b684], 0x8e7
jne 0x49c103
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, dword [esp + 0x408]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401000
add esp, 0x408
ret

Function at 0x49c1d0
Capabilities:
Create pipe

Disassembly:
mov eax, dword [0x4a4ec0]
sub esp, 0x14
push ebx
mov ebx, dword [0x1f7b0f0]
push edi
mov edi, dword [0x1f7b684]
call fcn.0049c120
cmp dword [0x1f7b684], 0x2f
jne 0x49c22a
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0049c150
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x49c4f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4a4004]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x49c515
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cdq
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x80c], edx
cmp dword [ebp - 0x80c], 7
jg 0x49c5b6
jl 0x49c540
cmp dword [ebp - 0x810], 0x6f004e72
jae 0x49c5b6
cmp dword [0x1f7b684], 0xa5f
jne 0x49c556
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], 0x845275
jne 0x49c57f
mov ecx, dword [0x4a7db0]
mov dword [0x1f7b684], ecx
mov edx, dword [0x1f7b684]
add edx, 0xa231
mov dword [0x1f7b684], edx
jmp 0x49c5b6
cmp dword [0x1f7b684], 0x141
jne 0x49c5b1
push 0x4a2a90
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x4a9468], 0xec58acac
mov dword [0x4a946c], 0xffffffff
jmp 0x49c50c
call fcn.0049c240
jmp dword [0x1f7b0f0]
Function at 0x401ce1
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x4bc390
call fcn.0047e54a
mov esi, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x21c], edi
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x220], esi
call fcn.0047e610
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4fc7ec
mov ecx, esi
call fcn.0040145d
push str.cfg.ini
push dword [0x4fe85c]
lea eax, [ebp - 0x218]
push eax
push 0x4cd88c
push esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x21c], 1
call fcn.00401a85
add esp, 0x14
mov eax, esi
call fcn.0047e5cd
ret 4
Function at 0x401d8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x38
mov eax, 0x4bc3f3
call fcn.0047e54a
mov edi, ecx
lea ecx, [edi + 4]
push 0x4fc7ec
mov dword [ebp - 0x3c], edi
mov dword [edi], vtable.CustResLoader.0
call fcn.0040145d
push str.CUSTDEF
xor ebx, ebx
push 0xd4
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x401f4f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x401f4f
push dword [ebp - 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x401f4f
lea eax, [ebp - 0x2d]
push eax
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.004018d4
push esi
push dword [ebp - 0x38]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebp - 0x20]
push eax
push edi
call fcn.0047d670
add esp, 0xc
push 8
push edi
lea ecx, [ebp - 0x40]
call fcn.0040179b
push 8
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00401636
push 0x4cd8dc
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00401331
mov ecx, dword [ebp - 0x34]
test eax, eax
setne byte [ebp - 0x2d]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.004011af
cmp byte [ebp - 0x2d], bl
jne 0x401ebb
add esi, 0xfffffff6
push esi
add edi, 0xa
push edi
lea ecx, [ebp - 0x34]
call fcn.0040179b
mov esi, dword [ebp - 0x3c]
push eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 4
call fcn.0040195e
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.004011af
mov eax, 0x4cd8d8
push eax
push eax
lea ecx, [esi + 4]
call fcn.004019fa
mov ecx, eax
call fcn.00401811
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.004011af
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.0040167d
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x44]
call fcn.00413de0
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00401ce1
mov esi, eax
mov eax, dword [edi + 4]
push str.TQSRNL
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00414320
cmp dword [eax + 0x14], 8
mov esi, dword [esi]
jb 0x401f19
mov eax, dword [eax]
push esi
push eax
push str.EncodeParam
push str.User_Configuration
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004015dc
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.004011af
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00413df0
mov edi, dword [ebp - 0x3c]
mov eax, edi
call fcn.0047e5cd
ret
Function at 0x402256
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc4ed
mov eax, dword fs:[0]
push eax
mov eax, 0x2010
call fcn.0047e8f0
mov eax, dword [0x4fca20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], eax
call fcn.004021fe
test eax, eax
je 0x402329
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x2010], ax
lea eax, [ebp - 0x200e]
push eax
call fcn.0047e610
lea eax, [ebp - 0x2014]
push eax
call fcn.00402154
add esp, 0x10
push dword [eax]
lea eax, [ebp - 0x2010]
push 0xfff
push eax
push edi
push dword [ebp - 0x201c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x2014]
add ecx, 0xfffffff0
call fcn.004011af
lea eax, [ebp - 0x2010]
push eax
lea ecx, [ebp - 0x2018]
call fcn.00402008
and dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.0040195e
mov ecx, dword [ebp - 0x2018]
add ecx, 0xfffffff0
call fcn.004011af
jmp 0x402331
push edi
mov ecx, esi
call fcn.004019ae
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047e4d2
leave
ret
Function at 0x402c1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4fca20]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x4fe9d8]
push 0xf0
push eax
push esi
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x402d9c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402d9c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402d9c
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x402d9a
mov ecx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x114], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x402d0f
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.00402851
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x110]
push 0
push 0x143
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x402cef
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x402d87
push dword [ebp - 0x108]
call fcn.0047e9af
pop ecx
jmp 0x402d87
mov ecx, 0x1234
cmp cx, ax
jne 0x402d87
or dword [ebp - 0x134], 0xffffffff
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x108], eax
call fcn.00402851
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x130], eax
cmp eax, ecx
je 0x402d61
push eax
call fcn.0047e9af
pop ecx
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x110]
push 0
push 0x40b
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x402d87
and dword [ebp - 0x10c], 0
add esi, dword [ebp - 0x114]
cmp dword [ebp - 0x10c], 0
jne 0x402c86
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
xor ecx, ebp
pop esi
call fcn.0047e4d2
leave
ret 4
Function at 0x403595
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0x220
mov eax, 0x4bc75a
call fcn.0047e54a
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x228]
push 0x4cdb34
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004033f1
push str.___autorun
push eax
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 1
call fcn.0040338d
lea ecx, [ebp + 0x14]
push ecx
push eax
lea eax, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 2
call fcn.00403336
add esp, 0x24
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004011af
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.004011af
lea eax, [ebp - 0x220]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.DSOUND.dll_DirectSoundCreate
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4036b9
cmp dword [ebp + 0x10], edi
je 0x40369f
mov eax, dword [esi]
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push edi
push edi
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403672
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040282d
test eax, eax
je 0x4036ad
mov eax, dword [ebp - 0x21c]
mov ebx, dword [eax - 0xc]
push edi
lea ecx, [ebp - 0x21c]
call fcn.004015a3
lea ecx, [ebx + ebx]
push ecx
push eax
push 1
push edi
push dword [esi]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4036ad
push dword [esi]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.004011af
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.004011af
call fcn.0047e5cd
ret 0x10

Function at 0x4050dc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4fca20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.00404b24
mov ebx, eax
cmp ebx, esi
je 0x40514d
lea ecx, [ebp - 0x214]
call fcn.00404aa1
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047e4d2
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40516b
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.004050dc
cmp eax, esi
jne 0x4051b2
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
je 0x405155
lea ecx, [ebp - 0x214]
call fcn.00404aa1
push dword [ebp - 0x218]
mov ecx, edi
call fcn.00404a31
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00404aa1
mov eax, esi
jmp 0x40513c
Function at 0x40ac7d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4bcd12
call fcn.0047e580
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x40acd6
call fcn.00404842
mov esi, eax
jmp 0x40adac
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x40acef
call fcn.00404842
jmp 0x40ad9e
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x40ace5
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x40ad29
mov esi, 0x8007000e
jmp 0x40ada0
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004057d3
mov dword [ebp - 4], 1
jmp 0x40ad57
cmp dword [ebp - 0x418], esi
je 0x40ad22
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40ace5
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00406a93
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40adc5
lea ecx, [ebp - 0x418]
call fcn.004050aa
mov eax, esi
call fcn.0047e5dc
ret 0x10
Function at 0x410540
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push eax
mov esi, ecx
push 0
push 0
mov dword [esi], vtable.SingletonMutex.0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x410582
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x4109a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, dword [esi + 4]
push edi
mov edi, dword [ebp + 0xc]
test edx, edx
je 0x4109e6
mov eax, edi
push ebx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4109b7
mov ecx, dword [ebp + 8]
sub eax, ebx
sar eax, 1
add eax, eax
push eax
push edi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
test eax, eax
je 0x4109e6
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
jle 0x410a03
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
push eax
push edi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x4109de
pop edi
mov eax, 1
pop esi
pop ebp
ret 8

Function at 0x410a10
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 8
test eax, eax
je 0x410a5d
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0xc], ecx
lea edx, [ebp - 4]
push edx
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push 0
push ecx
push eax
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp + 0x10]
neg eax
sbb eax, eax
inc eax
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 8]
cmp dword [eax - 0xc], 0
jle 0x410a54
mov edx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
push eax
mov eax, dword [ebp + 0xc]
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esp, ebp
pop ebp
ret 0xc