joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a1760
Capabilities:
Encode data using base64

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
sub esp, 8
push ebx
xor ebx, ebx
cmp edx, ebx
je 0x100a1891
cmp ecx, ebx
jl 0x100a1891
cmp eax, ebx
je 0x100a1891
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
xor esi, esi
mov byte [esp + 0x12], bl
mov byte [esp + 0x11], bl
mov byte [esp + 0x10], bl
xor edx, edx
cmp esi, ecx
jge 0x100a17b3
mov bl, byte [esi + eax]
mov byte [esp + edx + 0x10], bl
inc edx
inc esi
cmp edx, 3
jl 0x100a17a1
xor ebx, ebx
cmp edx, ebx
jle 0x100a1874
movzx eax, byte [esp + 0x10]
mov ecx, eax
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789ABCDEF]
mov byte [esp + 0x14], cl
movzx ecx, byte [esp + 0x11]
and eax, 3
mov ebx, ecx
shl eax, 4
shr ebx, 4
or ebx, eax
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789ABCDEF]
mov byte [esp + 0x15], al
movzx eax, byte [esp + 0x12]
mov ebx, eax
and ecx, 0xf
shl ecx, 2
shr ebx, 6
or ebx, ecx
mov cl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789ABCDEF]
and eax, 0x3f
cmp edx, 3
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789ABCDEF]
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], al
jge 0x100a182a
cmp edx, 2
mov al, 0x3d
mov byte [esp + 0x17], al
jge 0x100a182a
mov byte [esp + 0x16], al
cmp edi, 0x48
jl 0x100a184c
mov ecx, dword [esp + 0x1c]
push 0x100c66a0
push 2
push ecx
call sym.libxml2.dll_xmlOutputBufferWrite
add esp, 0xc
cmp eax, 0xffffffff
je 0x100a1886
add ebp, eax
xor edi, edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push 4
push eax
call sym.libxml2.dll_xmlOutputBufferWrite
add esp, 0xc
cmp eax, 0xffffffff
je 0x100a1886
mov ecx, dword [esp + 0x20]
add ebp, eax
mov eax, dword [esp + 0x24]
add edi, 4
xor ebx, ebx
cmp esi, ecx
jl 0x100a1793
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x402340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x402371
mov eax, dword [0x40ffa4]
cmp eax, 1
jl 0x40236c
cmp eax, 2
mov ebx, 1
jle 0x402371
cmp eax, 3
mov ebx, 4
je 0x402371
mov ebx, 3
fld dword [0x40602c]
fld qword [ebp + 8]
fucompp
fnstsw ax
sahf
je 0x40243c
cmp ebx, 2
je 0x402453
jle 0x402402
cmp ebx, 4
je 0x402489
fld qword [ebp + 8]
mov edx, 0x402540
mov dword [0x4051b4], edx
mov edx, 1
fnstcw word [ebp - 0xa]
movzx eax, word [ebp - 0xa]
or ax, 0xc00
mov word [ebp - 0xc], ax
fldcw word [ebp - 0xc]
fistp qword [ebp - 0x18]
fldcw word [ebp - 0xa]
mov eax, dword [ebp - 0x18]
mov dword [0x407050], eax
lea esi, [esi]
imul eax, dword [edx*4 + 0x40704c], 0x19660d
add eax, 0x3c6ef35f
mov dword [edx*4 + 0x407050], eax
inc edx
cmp edx, 0x26f
jle 0x4023d0
mov eax, 0x407a10
mov dword [0x407030], eax
add esp, 0x24
pop ebx
pop ebp
ret 0xc
dec ebx
jne 0x402399
fld qword [ebp + 8]
mov eax, 0x402250
mov dword [0x4051b4], eax
fnstcw word [ebp - 0xa]
movzx eax, word [ebp - 0xa]
or ax, 0xc00
mov word [ebp - 0xc], ax
fldcw word [ebp - 0xc]
fistp dword [esp]
fldcw word [ebp - 0xa]
call sub.MSVCRT.DLL_srand
call sub.MSVCRT.DLL_rand
add esp, 0x24
pop ebx
pop ebp
ret 0xc
jp 0x402385
call fcn.004021a0
cmp ebx, 2
fstp qword [ebp + 8]
jne 0x40238e
fld qword [ebp + 8]
mov ebx, 0x402290
mov dword [0x4051b4], ebx
fnstcw word [ebp - 0xa]
movzx eax, word [ebp - 0xa]
or ax, 0xc00
mov word [ebp - 0xc], ax
fldcw word [ebp - 0xc]
fistp qword [ebp - 0x18]
fldcw word [ebp - 0xa]
mov eax, dword [ebp - 0x18]
mov dword [0x4051b0], eax
add esp, 0x24
pop ebx
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
mov ecx, 0x4022d0
mov dword [0x4051b4], ecx
mov eax, edx
shr edx, 0x10
xor eax, edx
and eax, 0xffff
shl eax, 8
movzx edx, byte [0x4051b0]
or eax, edx
jmp 0x40247c
Function at 0x403430
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
xor esi, esi
push ebx
sub esp, 0x1c
mov edx, dword [ebp + 0x14]
movzx eax, word [ebp + 0x10]
movzx ecx, byte [ebp + 8]
movzx ebx, word [ebp + 0xc]
mov dword [ebp - 0x10], eax
xor eax, eax
test cl, cl
sete al
shr edx, 8
test eax, eax
mov dword [ebp - 0x14], eax
setne al
movzx eax, al
test eax, edx
je 0x4034b0
mov esi, dword [ebp + 0x14]
xor ecx, ecx
mov eax, 0x406332
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x14]
and esi, 3
and edi, 0xc
and edx, 0x10
jmp 0x403490
cmp word [eax - 2], bx
je 0x40359e
inc ecx
add eax, 0xa
cmp ecx, 0xc
jne 0x403490
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, cl
cmp bx, 0x58
mov dword [ebp - 0x18], ecx
jbe 0x4034f3
mov eax, edi
or eax, dword [ebp + 0x18]
jne 0x4034d0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403596
mov esi, esi
test edi, edi
je 0x4034a3
cmp esi, 0xff
jle 0x4034e9
mov eax, esi
and eax, 0xff00
lea esi, [eax + 0xff]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 2
lea edi, [ebx*8 + 0x406050]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.USER32.dll_MapVirtualKeyA
movzx ebx, ax
mov eax, dword [sym.imp.MSVCRT.DLL___mb_cur_max]
sub esp, 8
cmp dword [eax], 1
jne 0x4035c7
mov eax, dword [sym.imp.MSVCRT.DLL__pctype]
mov eax, dword [eax]
movzx eax, word [eax + ebx*2]
and eax, 1
test eax, eax
jne 0x403617
mov eax, dword [sym.imp.MSVCRT.DLL___mb_cur_max]
cmp dword [eax], 1
jne 0x4035f2
mov eax, dword [sym.imp.MSVCRT.DLL__pctype]
mov eax, dword [eax]
movzx eax, word [eax + ebx*2]
and eax, 2
test eax, eax
mov edx, ebx
jne 0x403626
test byte [ebp + 0x14], 3
je 0x4035dd
movzx esi, word [edi + 6]
xor edi, edi
cmp esi, 0xff
jle 0x4034bc
cmp dword [ebp - 0x18], ebx
sete al
cmp dword [ebp - 0x18], edx
sete dl
or eax, edx
test al, 1
je 0x4034bc
mov edi, 1
jmp 0x4034bc
mov esi, dword [ebp - 0x18]
jmp 0x4034d4
test esi, esi
jne 0x4035b6
test edi, edi
jne 0x403608
test edx, edx
jne 0x403635
movzx esi, word [eax]
jmp 0x4034d4
movzx esi, word [eax + 6]
test esi, esi
setne al
movzx edi, al
jmp 0x4034d0
mov dword [esp], ebx
mov eax, 1
mov dword [esp + 4], eax
call sub.MSVCRT.DLL__isctype
jmp 0x403530
test byte [ebp + 0x14], 0xc
jne 0x40360e
test byte [ebp + 0x14], 0x10
je 0x40363e
movzx esi, word [edi + 2]
jmp 0x403568
mov dword [esp], ebx
mov eax, 2
mov dword [esp + 4], eax
call sub.MSVCRT.DLL__isctype
jmp 0x403554
movzx esi, word [eax + 4]
jmp 0x4035ba
movzx esi, word [edi + 4]
jmp 0x403568
mov dword [esp], ebx
call sub.MSVCRT.DLL_tolower
mov edx, eax
jmp 0x40355e
mov dword [esp], ebx
call sub.MSVCRT.DLL_toupper
mov edx, eax
jmp 0x40355e
movzx esi, word [eax + 2]
jmp 0x4035ba
mov eax, dword [ebp - 0x18]
mov esi, ebx
test eax, eax
jne 0x403568
movzx esi, word [edi]
jmp 0x403568
Function at 0x10002b68
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10002b77
pop dword [ebp - 0x20]
mov eax, 0x7892f67d
add eax, 0x976d34fa
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xa15ff224
sub dword [ebp - 0x30], 0x530dacd9
mov dword [ebp - 0x2c], 0x77d4a6f2
add dword [ebp - 0x2c], 0xba5ea553
mov dword [ebp - 0x28], 0x84ec6a06
sub dword [ebp - 0x28], 0x38a025d8
mov dword [ebp - 0x24], 0x1f8f66aa
add dword [ebp - 0x24], 0xe0709956
lea eax, [ebp - 0x30]
push eax
mov eax, 0x8a2b4ae4
sub eax, 0x7a29ca30
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x8235df88
add dword [ebp - 0x30], 0xf23c89ce
mov dword [ebp - 0x2c], 0xb748ef3
sub dword [ebp - 0x2c], 0xca082d7e
mov dword [ebp - 0x28], 0x268d54bc
sub dword [ebp - 0x28], 0xc31de850
mov dword [ebp - 0x24], 0x5d8b3195
add dword [ebp - 0x24], 0xa274ce6b
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xef358c88
add eax, 0x20cbf3d8
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3d43c
push 0
call eax
mov ecx, 0xf7089e90
sub ecx, 0xf708504c
xor esi, esi
add esi, eax
mov edi, 0x10027200
add edi, dword [ebp - 0x20]
mov ebx, 0x54326081
add ebx, 0x1ad9193e
mov edx, dword [edi]
xor dword [ebp - 8], ebx
xor edx, ebx
add dword [ebp - 0x14], 0x4b4737ee
mov dword [esi], edx
xor dword [ebp - 0xc], eax
add esi, 0xe79cdb43
sub esi, 0xe79cdb3f
add edi, 0x8ec90c0
add edi, 0xf7136f44
loop 0x10002c95
add eax, 0x12be3
xor ebx, ebx
add ebx, eax
add eax, 0x4f19a4ba
add eax, 0xb0e65b4b
mov ecx, 0x13371486
add ecx, 0xfcc8eb7a
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40633c
pop dword [ebp - 0x20]
mov eax, 0xf8c1bdd7
add eax, 0x77ea565
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x57594995
add dword [ebp - 0x30], 0xf6f8fbb6
mov dword [ebp - 0x2c], 0x2dceabee
add dword [ebp - 0x2c], 0x464a057
mov dword [ebp - 0x28], 0x3166072e
add dword [ebp - 0x28], 0x1ae63d00
mov dword [ebp - 0x24], 0x25adef76
sub dword [ebp - 0x24], 0x25adef76
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xda5e11a8
sub dword [ebp - 0x30], 0x65eba852
mov dword [ebp - 0x2c], 0x9dc9aaf2
add dword [ebp - 0x2c], 0xa3a2b683
mov dword [ebp - 0x28], 0x6372c7e
add dword [ebp - 0x28], 0x5d383fee
mov dword [ebp - 0x24], 0x60928ef
sub dword [ebp - 0x24], 0x60928ef
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x760fd1dd
sub eax, 0x75cf60dd
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x38459
push 0
call eax
mov ecx, 0xc26ae637
sub ecx, 0xc26a979a
mov esi, eax
mov edi, 0x410000
add edi, dword [ebp - 0x20]
mov ebx, 0xc18c7581
add ebx, 0x794ca8eb
xor dword [ebp - 0x10], eax
mov edx, dword [edi]
add dword [ebp - 0x18], esi
xor edx, ebx
add dword [ebp - 0x10], 0xea8353e0
mov dword [esi], edx
add dword [ebp - 0x10], ebx
add esi, 4
add edi, 0x6cc7186
sub edi, 0x6cc7182
loop 0x406453
add eax, 0x759334cd
add eax, 0x8a6df87a
mov ebx, eax
add eax, 5
mov ecx, 0x7507df6
add ecx, 0xf8ef820a
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x93b370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x93b38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x964074
push ecx
mov edi, eax
call fcn.0094f198
mov esi, eax
add esp, 8
test esi, esi
jne 0x93b3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0094f02e
push esi
call fcn.0094efb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x93e850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x93e8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x969720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x93e8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.0094f1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x93e8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x969720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x93e92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00950082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x93e957
mov word [eax], si
add eax, 2
push eax
call fcn.00950030
add esp, 4
jmp 0x93e959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x93e8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x93e8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x93eff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x93f080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x93f0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x964458
push ecx
call fcn.0094f1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0094f1e1
add esp, 0x10
jmp 0x93f0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0094f20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0094edff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0093f050
mov eax, dword [0x969728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x93f13b
push esi
call fcn.0093efb0
add esp, 4
mov dword [0x969728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x93f14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.0093eff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x942440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9424b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x94248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x942471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x94247e
add edx, ecx
cmp ebx, edx
jb 0x94248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x942467
xor ecx, ecx
jmp 0x9424a2
test eax, eax
jne 0x942492
xor ecx, ecx
jmp 0x9424a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.009423c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x9428f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x942921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x942946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x94296e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x942993
push ecx
push esi
call fcn.009424c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x943c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x943c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x943c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x943c38
add edx, eax
cmp ebx, edx
jb 0x943c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x943c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x943c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x943c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x943cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x943c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x943ca8
add edx, ecx
cmp ebx, edx
jb 0x943cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x943c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x943f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00950145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x943ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x943fdd
lea eax, [esp + 0x18]
push eax
jmp 0x943fe2
push 0x969720
call fcn.0094ffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x943fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x943f40
push 4
push ecx
push eax
call fcn.0095043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x944310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00950145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x9443ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x94438d
lea eax, [esp + 0x18]
push eax
jmp 0x944392
push 0x969720
call fcn.0094ffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x944360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x943f40
push 4
push ecx
push eax
call fcn.0095043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x945f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0x945fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x945fcf
push ebx
push edi
push 0x969770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x945fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x969770
push esi
call ebx
test eax, eax
je 0x945fae
mov ebp, 3
cmp dword [0x969774], ebp
jne 0x945faa
push 0x3e8
call edi
push 0x969770
push esi
call ebx
test eax, eax
jne 0x945f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x945fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x945fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret
Function at 0x949e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x95f8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x949ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.009467a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x949e61
mov edx, dword [eax]
jmp 0x949e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00948050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x949ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x949ebf
cmp esi, edi
je 0x949ebf
mov ecx, esi
call fcn.00941a00
push esi
call fcn.0094f1c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00946990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x949ef5
mov eax, dword [eax]
jmp 0x949ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00945640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x949f25
mov eax, dword [eax]
jmp 0x949f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x949f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x949f76
cmp esi, edi
je 0x949f76
mov eax, dword [esi]
cmp eax, edi
je 0x949f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x949f6d
push eax
call fcn.0094f1c8
add esp, 4
push esi
call fcn.0094f1c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret