joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401230
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
or edx, 0x92
neg ebx
bswap edi
sub edx, 0x51
and eax, 0xa1
bswap ebx
neg ebx
imul esi
rcr ebx, 0xd8
imul edi
imul edx
inc edi
mov edx, 0xf
not eax
sub edx, 0x95
rol ebx, 0x56
rol edx, 0xc5
imul edx
dec edx
inc ebx
rcr ebx, 4
or eax, 0x42
or edx, 0xc0
rol esi, 0x86
rol eax, 0x8d
mov edi, 0xdc
sub edx, 0x7a
mov edx, 0x42
add esi, 0x8b
mov edx, 0x72
not eax
and edx, 0x7a
dec eax
dec esi
dec eax
dec edx
dec eax
dec ebx
rol edx, 0xb
inc edx
mov ebx, 0xd
imul edi
mov eax, 0xe2
not edi
sbb eax, 0xdb
and edx, 0x68
rcl edx, 0x85
not esi
ror eax, 0xff
bswap eax
xor ecx, ecx
xor edi, edi
imul edi
dec edx
rcl ebx, 0x8d
neg esi
rol esi, 0xa5
mov esi, 0x35
rcr edi, 0x5b
not edi
rcr eax, 0xe5
mov eax, 0xc6
imul edx
mov esi, 0xc2
not eax
not ebx
sbb ebx, 0x62
rol esi, 0x4c
not edx
rcl edi, 0xb1
sbb edx, 0xde
inc ebx
rol edx, 0x69
dec ebx
ror edi, 0x77
mov esi, 0x6e
not ebx
and eax, 0x4f
dec ebx
ror eax, 0xc1
or ebx, 0x89
and edx, 0x79
bswap eax
sub esi, 0x1d
bswap eax
not ebx
dec edx
neg eax
rol ebx, 0x5c
dec ebx
bswap esi
sbb ebx, 0x83
inc edi
inc edx
inc edi
inc ebx
dec edx
sub edi, 0x77
dec esi
ror eax, 0x57
add ebx, 0x3e
imul esi
mov ecx, dword [ebp + 0xc]
neg esi
rcl edx, 0x2f
bswap edi
or eax, 0xb7
sub edi, 0x3c
sbb eax, 0xa6
bswap ebx
not edx
rcl edi, 0x44
ror eax, 0xcd
bswap eax
imul edi
rcr edx, 0x69
or ebx, 0x81
rcl eax, 0x50
neg edi
rcl ebx, 0xcc
mov esi, 0x71
mov ebx, 0x27
sbb edi, 0x77
bswap ebx
or ebx, 0xf
rcl ebx, 0x7b
rcr esi, 0x7d
neg eax
sbb eax, 0x8d
sub edi, 0x57
add ebx, 0x51
not edi
ror edx, 0xb8
or eax, 0x30
sbb edx, 0xd6
imul esi
neg eax
not edx
imul edi
imul edx
add edi, 0xd8
inc eax
or eax, 0xcb
ror esi, 0x3d
rcr edi, 0xb1
ror edx, 0x38
imul eax
not ebx
rcr esi, 0x9a
neg eax
rol eax, 0xd7
neg eax
or esi, 0x7c
mov edi, dword [ebp + 8]
mov ebx, esi
xor esi, esi
xor ebx, eax
not byte [edi]
xor eax, ebx
mov eax, eax
xor ebx, ebx
xor esi, eax
mov eax, esi
mov ebx, esi
xor ebx, eax
xor esi, eax
xor ebx, ebx
add byte [edi], 0x87
mov eax, ebx
xor ebx, ebx
xor esi, eax
xor esi, esi
mov eax, eax
xor eax, ebx
xor eax, esi
xor eax, eax
mov esi, ebx
sub byte [edi], 0x54
xor ebx, eax
xor eax, eax
xor esi, ebx
xor ebx, esi
mov eax, esi
mov eax, ebx
xor eax, eax
mov eax, esi
mov esi, esi
imul byte [edi]
inc edi
loop 0x4013ed
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407815
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410400]
jne 0x40781f
repz ret
jmp fcn.00409bb0
Function at 0x407e85
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406c35
and dword [ebp - 4], 0
cmp dword [0x411590], 0
mov ebx, eax
jne 0x407f36
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407fe7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407fe7
push eax
call fcn.00406bc3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x411590], eax
call esi
push eax
call fcn.00406bc3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x411594], eax
call esi
push eax
call fcn.00406bc3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x411598], eax
call esi
push eax
call fcn.00406bc3
pop ecx
mov dword [0x4115a0], eax
test eax, eax
je 0x407f36
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406bc3
pop ecx
mov dword [0x41159c], eax
mov eax, dword [0x41159c]
cmp eax, ebx
je 0x407f8e
cmp dword [0x4115a0], ebx
je 0x407f8e
push eax
call fcn.00406c3e
push dword [0x4115a0]
mov esi, eax
call fcn.00406c3e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407f8e
test edi, edi
je 0x407f8e
call esi
test eax, eax
je 0x407f85
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407f85
test byte [ebp - 0xc], 1
jne 0x407f8e
or dword [ebp + 0x10], 0x200000
jmp 0x407fc7
mov eax, dword [0x411594]
cmp eax, ebx
je 0x407fc7
push eax
call fcn.00406c3e
pop ecx
test eax, eax
je 0x407fc7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407fc7
mov eax, dword [0x411598]
cmp eax, ebx
je 0x407fc7
push eax
call fcn.00406c3e
pop ecx
test eax, eax
je 0x407fc7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x411590]
call fcn.00406c3e
pop ecx
test eax, eax
je 0x407fe7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407fe9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403200
Capabilities:
Encode data using xor

Disassembly:
xor edi, dword [edx]
pop esi
movsb byte es:[edi], byte [esi]
call 0x55d0c291
push ebp
push ebp
mov esi, dword [edx + 0x4840ec83]
mov al, byte [0x8b00410b]
or eax, 0x320b55
push ebx
push 0x410b0060
sbb ch, byte [ecx + 0x57]
cmp dword [esp + eax*8 + 0x2b00410b], eax
inc eax
sbb ecx, edi
wait
adc eax, 0x4117e8
mov dword [esi - 0xf], ebx
mov dword [ebp - 0x34], ecx
fild qword [ebp - 0x38]
mov esi, dword [sym.imp.MSVCRT.dll_printf]
push edx
push 0xdea3e7ec
fmul qword [0x1ac274]
fstp qword [ebp - 0x2d]
call esi
mov eax, dword [0x4117f0]
push 0x4113e0
push eax
loope 0x4031f8
test al, 0xb
inc ecx
add byte [eax + 0x34e79df0], al
add byte [edi], ah
add ecx, dword [ebx + 0x4818000d]
imul esp, dword [ecx + 0x4117f0], 0xba8158b
inc ecx
add byte [ecx + 0x50], dl
and dl, byte [edx - 0x11]
push eax
out 0x40, eax
add bh, bh
salc
mov edx, dword [eax - 0x58]
or eax, dword [edx]
add byte [edi - 0xb5e9940], bl
pop ss
inc ecx
add byte [eax - 0x5f], dl
invalid
Function at 0x4063f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42da2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4042f4
call fcn.004075db
push 4
mov dword [esp + 0x18], 0
call fcn.004085c8
mov edi, eax
add esp, 4
test edi, edi
je 0x406464
push ebx
call fcn.004073d6
mov dword [edi], eax
call fcn.00407195
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0040759c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406458
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004075c4
pop ebx
jmp 0x406466
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40919b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431354]
jne 0x4091a5
repz ret
jmp fcn.0040d42c
Function at 0x411742
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431354]
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.0040b99f
and dword [ebp - 0x14], 0
cmp dword [0x436aa0], 0
mov dword [ebp - 0x18], eax
jne 0x4117f5
push 0x403e68
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41189d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e5c
push ebx
call edi
test eax, eax
je 0x41189d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e4c
push ebx
mov dword [0x436aa0], eax
call edi
push eax
call esi
push 0x403e38
push ebx
mov dword [0x436aa4], eax
call edi
push eax
call esi
push 0x403e1c
push ebx
mov dword [0x436aa8], eax
call edi
push eax
call esi
mov dword [0x436ab0], eax
test eax, eax
je 0x4117f5
push 0x403e04
push ebx
call edi
push eax
call esi
mov dword [0x436aac], eax
mov eax, dword [0x436aac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41184e
cmp dword [0x436ab0], ecx
je 0x41184e
push eax
call esi
push dword [0x436ab0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41184e
test ebx, ebx
je 0x41184e
call edi
test eax, eax
je 0x411845
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411845
test byte [ebp - 8], 1
jne 0x41184e
or dword [ebp + 0x10], 0x200000
jmp 0x411881
mov eax, dword [0x436aa4]
cmp eax, dword [ebp - 0x18]
je 0x411881
push eax
call esi
test eax, eax
je 0x411881
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411881
mov eax, dword [0x436aa8]
cmp eax, dword [ebp - 0x18]
je 0x411881
push eax
call esi
test eax, eax
je 0x411881
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x436aa0]
call esi
test eax, eax
je 0x41189d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41189f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040919b
leave
ret
Function at 0x4286e0
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7ba804]
sub esp, 0x97c
push ebx
push ebp
push esi
shr eax, 3
xor ebx, ebx
push edi
mov edi, dword [0x7ba76c]
cmp eax, ebx
jbe 0x4288de
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
jmp 0x428716
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0x7ba804], 0x1c
jne 0x42872d
lea eax, [esp + 0x40]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x4322d0]
mov eax, dword [0x4322d4]
mov esi, dword [edi]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x4322d8]
mov dword [esp + 0x28], edx
mov edx, dword [0x4322dc]
mov edi, 0xc6ef3720
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov ebp, 0x20
jmp 0x428772
xor ebx, ebx
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x30]
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x2c]
lea edx, [edi + esi]
xor ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov dword [0x7ba770], ebx
mov eax, dword [esp + 0x18]
add dword [0x7ba770], eax
mov eax, dword [0x7ba770]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, eax
shl ecx, 4
add ecx, dword [esp + 0x28]
cmp dword [0x7ba804], 0x1be
mov dword [esp + 0x10], ecx
lea ebx, [edi + eax]
jne 0x428847
push 0
lea edx, [esp + 0x18c]
push edx
push 0
push 0x403f08
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
xor eax, eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
shr eax, 5
add eax, dword [esp + 0x34]
xor ecx, ebx
mov dword [0x7ba778], 0xff6b3619
mov dword [0x7ba77c], 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
sub esi, dword [esp + 0x10]
add edi, 0x61c88647
dec ebp
jne 0x428770
cmp dword [0x7ba804], 0x8d4
jne 0x428897
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], edx
cmp dword [0x7ba804], 0x17
jne 0x4288cd
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0x48]
push eax
push 0x403f68
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add edi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x1c], edi
jne 0x428710
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x97c
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4102f4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x410f58
call fcn.004105b8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x410354
cmp eax, 0xffffffff
je 0x410354
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41034d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41034d
cmp edx, 0x10000000
jae 0x41034d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41034a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4103c0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4103fe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4103f6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x410400
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4103e6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4104d0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x410501
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x410501
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x410501
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x65101045
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, eax
push dword [edi]
call sub.MSVCR80.dll__byteswap_ulong
push dword [edi + 4]
mov esi, eax
call sub.MSVCR80.dll__byteswap_ulong
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
mov edi, eax
pop ecx
lea eax, [ebp - 0x14]
pop ecx
sub ebx, eax
mov eax, dword [ebp - 4]
lea eax, [ebx + eax*4]
push dword [ebp + eax - 0x14]
call sub.MSVCR80.dll__byteswap_ulong
pop ecx
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x14], eax
jl 0x65101071
push 0x10
xor eax, eax
pop ecx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x10]
mov ebx, edi
shl ebx, 4
add ebx, dword [ebp - 0x14]
sub eax, 0x61c88647
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
shr edx, 5
add edx, dword [ebp - 8]
mov ebx, esi
shl ebx, 4
add ebx, dword [ebp - 0xc]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
dec ecx
jne 0x65101096
push esi
call sub.MSVCR80.dll__byteswap_ulong
mov esi, dword [ebp + 0xc]
push edi
mov dword [esi], eax
call sub.MSVCR80.dll__byteswap_ulong
pop ecx
pop ecx
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
leave
ret
Function at 0x65102840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x6510285b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x65102894
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x65102890
jmp 0x65102880
cmp esi, eax
jae 0x65102894
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x65102880
cmp esi, eax
jb 0x6510289b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x65102a00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov dword [ebp - 4], ecx
jne 0x65102a1b
push 0x80004005
call fcn.65101ba0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edi, edi
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x65102a23
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x65103b40
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x6516c6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea edx, [ebp - 0x210]
push edx
push 0x2001f
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
push 0
push ecx
push eax
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x208]
mov esi, eax
test esi, esi
jne 0x65103bbb
test ecx, ecx
je 0x65103ba9
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [ebp - 0x210]
mov esi, eax
mov dword [ebp - 0x208], ecx
je 0x65103bc9
test ecx, ecx
je 0x65103c90
push ecx
jmp 0x65103c8a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x204]
push eax
push 0
push ecx
mov dword [ebp - 0x20c], 0x100
call esi
test eax, eax
jne 0x65103c52
lea ecx, [ecx]
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x208]
call fcn.65103b40
mov edi, eax
test edi, edi
jne 0x65103ca4
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x208]
push eax
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
push edx
mov dword [ebp - 0x20c], 0x100
call esi
test eax, eax
je 0x65103c00
mov edi, dword [ebp - 0x214]
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x65103c6d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x208], 0
mov eax, dword [ebp - 0x218]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x65103c90
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.6514af96
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x65103cb5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.6514af96
mov esp, ebp
pop ebp
ret 4
Function at 0x65103d20
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6d4
mov eax, dword [0x6516c6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
call dword [0x6516c6b0]
mov edi, dword [0x6516cb74]
push 0x104
lea eax, [ebp - 0x418]
push eax
push edi
mov dword [ebp - 0x6d0], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x65103d79
call fcn.65102930
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.6514af96
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jne 0x65103da0
lea ecx, [ebp - 0x6d0]
call fcn.65103080
pop edi
mov eax, 0x8007007a
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.6514af96
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x65103db8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp edi, eax
je 0x65103db8
lea edx, [ebp - 0x418]
jmp 0x65103e0b
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x20e]
push 0x105
mov edi, 0x22
push edx
mov word [ebp - 0x210], di
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
push eax
call fcn.65102750
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [ebp + eax*2 - 0x210], di
mov word [ebp + eax*2 - 0x20e], 0
lea edx, [ebp - 0x210]
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
push edx
push str.Module
push esi
call eax
mov edi, eax
test edi, edi
jl 0x65103ee4
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
lea edx, [ebp - 0x418]
push edx
push str.Module_Raw
push esi
call eax
mov edi, eax
test edi, edi
jl 0x65103ee4
lea ecx, [ebp - 0x6d4]
push ecx
push 0x6516cfb0
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edi, eax
test edi, edi
jl 0x65103ee4
mov eax, dword [ebp - 0x6d4]
mov edx, dword [esi]
mov ecx, dword [edx + 0xc]
push eax
push str.MODULEGUID
push esi
call ecx
mov edx, dword [ebp - 0x6d4]
push edx
mov edi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
jl 0x65103ee4
push 0x2000
push 0x2b4
lea eax, [ebp - 0x6cc]
push eax
push 0
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x65103ebc
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push str.InprocServer32
push str.MODULETYPE
push esi
call eax
jmp 0x65103ece
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push str.LocalServer32
push str.MODULETYPE
push esi
call edx
mov edi, eax
test edi, edi
jl 0x65103ee4
mov ecx, dword [0x6516cfac]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push esi
call edx
mov edi, eax
lea ecx, [ebp - 0x6d0]
call fcn.65103080
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.6514af96
mov esp, ebp
pop ebp
ret
Function at 0x6510b320
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6514c1cb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6516c6d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], 0x65155624
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov byte [esi + 0x2c], al
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0xc], 0x651554d0
mov dword [esi + 0x10], ecx
mov ecx, dword [0x6516cfac]
mov edx, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4