joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414fa3
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00414c47
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x414fed
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00407ab7
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00406030
jmp 0x414ff8
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004104b7
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x414ffe
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00415154
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x41503b
call fcn.00414c47
mov dword [esi + 0xc], 1
jmp 0x415040
call fcn.00414c47
cmp dword [esi], 0
je 0x415089
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x415061
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00407ab7
jmp 0x415073
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004039b0
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00406030
jmp 0x4150ad
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4150ad
push dword [esi]
push dword [ebp + 8]
call fcn.004104b7
pop esi
pop ebp
ret 0xc

Function at 0x41548a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x519056
call fcn.004fbe83
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4154af
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x415501
call fcn.004076a6
push eax
lea ecx, [ebp - 0x10]
call fcn.004037b0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004fb9d2
push eax
call fcn.00403470
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403ca0
mov eax, esi
call fcn.004fbf5b
ret 8
Function at 0x41be32
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41be79
call fcn.0040a231
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41be79
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41be95
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041b932
mov esi, eax
test edi, edi
je 0x41be93
test ebx, ebx
je 0x41be93
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x45ce82
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call [ebp + edi*8 + 0x59]
salc
lea eax, [ebp - 0x58]
push eax
call fcn.0045cbef
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0045cba4
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x45cecd
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
inc ebp
invalid
popal
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0045cbdf
out dx, eax
std
pop ebx
sub al, 0x8d
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x45cf43
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sbb ah, byte [edi + 0x66]
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0045cbef
push eax
push esi
push dword [ebp + 8]
call fcn.0045cba4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
inc ebp
movsd dword es:[edi], dword [esi]
xor eax, 0x41a645c6

Function at 0x45cfdf
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
movsd dword es:[edi], dword [esi]
xor eax, 0x41a645c6
call fcn.0045cbef
push eax
push esi
push dword [ebp + 8]
call fcn.0045cba4
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
push edx
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0045cbef
push eax
push esi
push dword [ebp + 8]
invalid
push ebp
Function at 0x45d8b2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add dword [ebx - 0x39743], eax
inc dword [eax]
je 0x45d8d3
cmp dword [ebp - 0x398], 0
je 0x45da9d
cmp dword [ebp + 0xc], 1
je 0x45da9d
cmp dword [ebp + 0xc], 8
jne 0x45da65
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.0045cbef
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0045cba4
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x698], eax
call fcn.0045cbdf
outsd dx, dword [esi]
xor ah, byte [edi + 0x68b5ff8f]
stc
invalid
call fcn.0045cbdf
sti
add eax, 0xbca5801e
cli
invalid
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0045cbbd
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
add dh, al
test dword [esi - 0x55000004], edx

Function at 0x45db15
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add dh, al
test dword [esi - 0x55000004], edx
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
invalid
invalid
Function at 0x46d5f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0040a231
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46d632
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0046d236
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x46d690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x46d6b4
cmp dword [edi + 0x74], 0
jne 0x46d6b4
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0040a231
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0046d651
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x473a89
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x473aa3
call fcn.0040a231
mov esi, dword [eax + 0xc]
push dword [0x56f76c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x473ac1
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x473ab9
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x473aee
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x473abb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004739b7
mov esi, eax
jmp 0x473ae0

Function at 0x4d1a75
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0041a3c5
call fcn.00408a30
cmp eax, esi
pop esi
jne 0x4d1a91
mov ecx, 0x56bc80
jmp fcn.0040e1a1
ret
Function at 0x4d538b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4d53a3
mov edi, dword [esi + 0xc]
jmp 0x4d53e3
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4d53bc
call fcn.0040f36e
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d53d1
call fcn.0040f36e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d53e3
call fcn.0040f36e
call fcn.0040a231
cmp dword [eax + 0x3c], 0
je 0x4d53f8
push edi
mov ecx, ebx
call fcn.004d423f
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d52a5
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4d5416
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d5422
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4fa0b9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x56a5dc]
jne 0x4fa0c3
repz ret
jmp fcn.00500cf4
Function at 0x50df60
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56a5dc]
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.00500dfa
and dword [ebp - 0x14], 0
cmp dword [0x572044], 0
mov dword [ebp - 0x18], eax
jne 0x50e013
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x50e0bb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x54b318
push ebx
call edi
test eax, eax
je 0x50e0bb
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x54b308
push ebx
mov dword [0x572044], eax
call edi
push eax
call esi
push 0x54b2f4
push ebx
mov dword [0x572048], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x57204c], eax
call edi
push eax
call esi
mov dword [0x572054], eax
test eax, eax
je 0x50e013
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x572050], eax
mov eax, dword [0x572050]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x50e06c
cmp dword [0x572054], ecx
je 0x50e06c
push eax
call esi
push dword [0x572054]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x50e06c
test ebx, ebx
je 0x50e06c
call edi
test eax, eax
je 0x50e063
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x50e063
test byte [ebp - 8], 1
jne 0x50e06c
or dword [ebp + 0x10], 0x200000
jmp 0x50e09f
mov eax, dword [0x572048]
cmp eax, dword [ebp - 0x18]
je 0x50e09f
push eax
call esi
test eax, eax
je 0x50e09f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x50e09f
mov eax, dword [0x57204c]
cmp eax, dword [ebp - 0x18]
je 0x50e09f
push eax
call esi
test eax, eax
je 0x50e09f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x572044]
call esi
test eax, eax
je 0x50e0bb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x50e0bd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fa0b9
leave
ret
Function at 0x4028e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402939
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 8], 4
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
test esi, esi
pop esi
je 0x40293c
mov eax, dword [ebp + 0x14]
leave
ret

Function at 0x40293e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp + 0xc]
xor esi, esi
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402983
lea eax, [ebp + 0x14]
push 4
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret

Function at 0x402f62
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x10]
lea edi, [eax + eax*2]
shl edi, 3
call fcn.00401be8
mov ebx, dword [eax + edi + 0x10]
call fcn.00401be8
mov ecx, dword [esi + 0x84]
mov eax, dword [eax + edi + 0x14]
cmp ecx, ebx
jae 0x402fe0
sub ebx, ecx
cmp ebx, dword [esi + 0x80]
jge 0x402f9e
mov dword [esi + 0x80], ebx
add ecx, eax
lea eax, [esi + 0x88]
xor edi, edi
push eax
push edi
mov dword [esi + 0x98], edi
push dword [esi + 0x80]
mov dword [esi + 0x94], edi
mov dword [esi + 0x90], ecx
push dword [esi + 0x7c]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x402e40
push edi
push esi
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x402fed
mov esi, dword [esi + 0x1c]
push 0
push 1
push esi
mov eax, dword [esi]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret
Function at 0x402ed0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5350c4], 0
push ebx
push esi
push edi
je 0x4030e8
cmp word [0x5363c8], 0
je 0x4030e8
call fcn.00405510
call fcn.004017a0
mov esi, dword [0x5350c0]
mov eax, 0x40
movzx ecx, word [0x5363c8]
mov edi, 2
mov word [0x5363cc], ax
push 4
lea eax, [esi + esi*4]
cdq
sub eax, edx
sar eax, 1
cdq
idiv ecx
xor ecx, ecx
mov dword [0x5356e8], eax
mov eax, 0x51eb851f
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [0x5365e8], eax
mov eax, dword [0x533714]
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416e71
add esp, 8
mov dword [0x53365c], eax
test eax, eax
je 0x4030e8
mov ebx, dword [0x533714]
mov esi, dword [0x5350c0]
mov dword [0x533658], 0
mov dword [0x533694], 0xffff
mov dword [0x5336b4], 0xffff
mov dword [0x5336d4], 0xffff
mov dword [0x5336f4], 0xffff
call fcn.004012f0
push 0x30000
mov eax, 4
mov dword [0x533660], ebx
mov word [ebp - 0x10], ax
lea eax, [esi*4]
push 0
push 0x4012d0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push 0x533708
mov dword [ebp - 0xe], 0x10
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0x20001
call dword [sym.imp.WINMM.dll_waveOutOpen]
test eax, eax
jne 0x4030e3
push eax
push 4
push 3
push eax
call dword [sym.imp.KERNEL32.DLL_CreateSemaphoreW]
mov dword [0x533668], eax
test eax, eax
je 0x4030e3
mov esi, 0x533670
movzx eax, word [ebp - 0x10]
push eax
push ebx
call fcn.00416e71
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x4030e3
add esi, 4
cmp esi, 0x533680
jl 0x403023
push 0x80
push 0
push 0x533688
call fcn.00414f00
add esp, 0xc
mov esi, 0x533688
mov edi, 0x533670
mov eax, dword [edi]
mov dword [esi], eax
movzx eax, word [ebp - 0x10]
push 0x20
imul eax, ebx
push esi
push dword [0x533708]
mov dword [esi + 0x10], 1
mov dword [esi + 4], eax
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
test eax, eax
jne 0x4030e3
add edi, 4
add esi, 0x20
cmp edi, 0x533680
jl 0x403064
mov byte [0x533680], al
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4010d0
push 0
push 0
mov dword [0x533664], 1
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x533710], eax
test eax, eax
je 0x4030e3
pop edi
pop esi
mov byte [0x5356ec], 0
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413dc9
mov esp, ebp
pop ebp
ret
call fcn.004012f0
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413dc9
mov esp, ebp
pop ebp
ret
Function at 0x405590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
test byte [ecx + 8], 8
push ebx
push esi
push edi
mov ebx, edx
jne 0x405658
mov edx, dword [ecx + 0xc]
or edx, dword [ecx + 0x10]
cmp byte [0x5365e4], 0
je 0x4055b9
mov eax, dword [ecx + 0x18]
or eax, dword [ecx + 0x14]
or edx, eax
test edx, edx
jne 0x405612
movzx edi, word [ecx + 0x3e]
mov eax, ebx
mul dword [ecx + 0x40]
movzx esi, ax
add esi, edi
mov edi, esi
movzx ebx, si
mov esi, dword [ecx + 0x28]
shr edi, 0x10
shrd eax, edx, 0x10
add edi, eax
add edi, dword [ecx + 0x34]
cmp edi, esi
jl 0x4055fb
mov al, byte [ecx + 8]
test al, 3
je 0x405609
mov edx, dword [ecx + 0x30]
nop dword [eax]
sub edi, edx
xor al, 4
cmp edi, esi
jge 0x4055f0
mov byte [ecx + 8], al
shl ebx, 0x10
mov dword [ecx + 0x3c], ebx
mov dword [ecx + 0x34], edi
pop edi
pop esi
pop ebx
pop ebp
ret
mov byte [ecx + 8], 8
pop edi
pop esi
pop ebx
pop ebp
ret
cmp byte [0x5365e4], 0
je 0x405636
mov eax, dword [ecx + 0x14]
cmp eax, dword [ecx + 0x18]
jne 0x405632
mov eax, dword [ecx + 0x1c]
cmp eax, dword [ecx + 0x20]
jne 0x405632
mov edx, 1
jmp 0x405641
xor edx, edx
jmp 0x405641
mov eax, dword [ecx + 0xc]
xor edx, edx
cmp eax, dword [ecx + 0x10]
sete dl
mov eax, dword [ecx + 0x38]
push dword [ebp + 8]
push ebx
lea eax, [eax + edx*8]
mov eax, dword [eax*4 + 0x465fc8]
push ecx
call eax
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4093e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x10], eax
mov esi, dword [eax]
inc esi
mov dword [ebp - 0xc], ebx
push edi
mov eax, dword [ebx]
mov edi, dword [ebp + 8]
add eax, esi
xor esi, esi
test eax, eax
cmovns esi, eax
mov eax, dword [edi + 0xc]
cmp esi, dword [edi + 4]
jge 0x40941e
push esi
push 0
push eax
mov dword [edi], esi
call fcn.00414f00
add esp, 0xc
mov esi, edi
jmp 0x409441
push eax
call fcn.00416e4b
push esi
mov dword [edi + 4], esi
mov dword [edi], esi
call fcn.00416e66
mov esi, edi
push dword [esi]
mov dword [esi + 0xc], eax
push 0
push eax
call fcn.00414f00
add esp, 0x14
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [eax]
add eax, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], eax
cmp edx, eax
jae 0x4094fa
nop
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx]
xor ebx, ebx
add eax, edi
mov dword [ebp - 0x14], eax
cmp edi, eax
jae 0x4094e3
mov esi, dword [esi + 0xc]
movzx eax, byte [edx]
add esi, ebx
add esi, ecx
movzx ecx, byte [edi]
imul ecx, eax
movzx eax, byte [esi]
movzx edx, cx
movzx ecx, dl
add cx, ax
movzx eax, cx
mov ecx, 0x100
cmp ax, cx
mov byte [esi], al
movzx eax, byte [esi + 1]
sbb ecx, ecx
shr dx, 8
inc ecx
add cx, dx
mov edx, 0x100
add cx, ax
movzx eax, cx
mov byte [esi + 1], al
cmp ax, dx
jb 0x4094d3
lea eax, [esi + 2]
nop dword [eax]
movzx ecx, byte [eax]
lea eax, [eax + 1]
inc cx
movzx ecx, cx
mov byte [eax - 1], cl
cmp cx, dx
jae 0x4094c0
mov edx, dword [ebp - 4]
inc edi
mov esi, dword [ebp + 8]
inc ebx
mov ecx, dword [ebp - 8]
cmp edi, dword [ebp - 0x14]
jb 0x409470
mov esi, dword [ebp + 8]
inc edx
mov ebx, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
cmp edx, dword [ebp - 0x18]
jb 0x409460
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov eax, dword [eax + 8]
xor eax, dword [ebx + 8]
mov ecx, dword [edi + 0xc]
mov dword [edi + 8], eax
mov eax, dword [edi]
dec eax
add eax, ecx
cmp eax, ecx
jbe 0x40951f
cmp byte [eax], 0
jne 0x40951f
dec eax
cmp eax, ecx
ja 0x409515
sub eax, ecx
add eax, 1
mov dword [edi], eax
je 0x409532
cmp eax, 1
jne 0x409539
cmp byte [ecx], 0
jne 0x409539
mov dword [edi + 8], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret