joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dfa38
Capabilities:
Create directory

Disassembly:
mov eax, 0x53f654
call fcn.0050ad90
sub esp, 0xcc
mov eax, dword [0x5842c0]
push ebx
push esi
push edi
mov edx, ecx
push 0x1f
mov dword [ebp - 0x98], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
mov ecx, edx
push eax
call fcn.004dfa02
mov eax, dword [eax]
and dword [ebp - 4], 0
lea ecx, [ebp - 0xd8]
push 0xa
push ecx
push eax
call fcn.0047c414
pop ecx
push 0
push eax
call dword [sym.imp.MSVCRT.dll__i64toa]
add esp, 0x10
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00402732
mov esi, dword [sym.imp.MSVCRT.dll__mkdir]
lea eax, [ebp - 0x98]
push eax
call esi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
pop ecx
mov ebx, 0x594960
lea eax, [ebp - 0x98]
push ebx
push str.LOG__s
push eax
call edi
lea eax, [ebp - 0x98]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0xd8]
push eax
push ebx
lea eax, [ebp - 0x98]
push str.LOG__s__s
push eax
call edi
lea eax, [ebp - 0x98]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0xd8]
push eax
push ebx
lea eax, [ebp - 0x98]
push str.LOG__s__s_CHAT
push eax
call edi
lea eax, [ebp - 0x98]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x98]
push str.LOG__s
push eax
call edi
lea eax, [ebp - 0x98]
push eax
call esi
add esp, 0x10
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4e05ab
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x53f6e0
call fcn.0050ad90
sub esp, 0x384
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.004dfe20
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.004dfa02
mov eax, dword [eax]
lea ecx, [ebp - 0x7c]
push 0xa
xor ebx, ebx
push ecx
push eax
mov dword [ebp - 4], ebx
call fcn.0047c414
pop ecx
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__i64toa]
add esp, 0x10
mov eax, dword [ebp - 0x24]
push 1
sub eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], ebx
pop edi
mov dword [ebp - 4], edi
je 0x4e060d
push eax
push dword [ebp - 0x2c]
call fcn.0040279c
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x7c]
push str.leavewordsystem.log
mov esi, 0x594960
push eax
push esi
lea eax, [ebp - 0x390]
push str.LOG_s_sCHAT_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x390]
push 0x5811d4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x1c
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x4e0776
lea eax, [ebp - 0x3c]
push 0x5901c8
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0xc
cmp eax, edi
mov dword [ebp - 0x18], eax
jg 0x4e067a
mov dword [ebp - 0x18], 2
push esi
call sub.MSVCRT.dll_strlen
pop ecx
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28c]
push 1
push 0x210
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4e075f
xor ecx, ecx
mov ebx, dword [ebp - 0x18]
mov eax, ecx
cdq
dec ebx
lea edi, [ecx + 1]
idiv ebx
lea esi, [ebp + ecx - 0x27c]
mov eax, ecx
mov ecx, dword [ebp - 0x20]
dec ecx
mov ebx, edx
cdq
idiv ecx
mov cl, byte [ebp + ebx - 0x3c]
mov eax, 0x5baacfb
mov ebx, 0x100
add cl, byte [edx + 0x594960]
cdq
idiv edi
cdq
idiv ebx
add cl, dl
xor byte [esi], cl
mov ecx, edi
cmp ecx, 0x200
jl 0x4e06a9
push 0x210
call sub.MFC42.DLL_operatornew
xor ebx, ebx
pop ecx
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x4e071a
push str.D:CQ2ClientCn_15.3.7_10183DRoleChatLog.cpp
push 0x1e3
push 0x5842c4
call fcn.00507881
add esp, 0xc
lea eax, [ebp - 0x28c]
mov byte [ebp - 0x27d], bl
push eax
mov byte [ebp - 0x7d], bl
push dword [ebp - 0x14]
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x27c]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x120]
call fcn.00499511
jmp 0x4e0684
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
push 0x421
call fcn.004b8ddf
add esp, 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4e27d4
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x53f926
call fcn.0050ad90
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.0040288b
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
call fcn.0040288b
or dword [esi + 0x18], 0xffffffff
or dword [esi + 0x30], 0xffffffff
mov edi, 0x58db80
mov byte [ebp - 4], 1
push edi
mov dword [esi], 0x5537e0
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov byte [esi + 6], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x40]
call fcn.00402538
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x34]
call fcn.00402538
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4e27e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x53f926
call fcn.0050ad90
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.0040288b
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
call fcn.0040288b
or dword [esi + 0x18], 0xffffffff
or dword [esi + 0x30], 0xffffffff
mov edi, 0x58db80
mov byte [ebp - 4], 1
push edi
mov dword [esi], 0x5537e0
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov byte [esi + 6], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x40]
call fcn.00402538
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x34]
call fcn.00402538
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4e5b91
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov edx, ecx
push ebx
push esi
push edi
lea eax, [edx + 4]
push 0x2b
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], eax
mov dword [eax], 0xb7e15163
pop esi
lea ecx, [eax + 4]
mov eax, dword [eax]
sub eax, 0x61c88647
dec esi
mov dword [ecx], eax
mov eax, ecx
jne 0x4e5bae
mov eax, dword [ebp + 0xc]
shr eax, 5
je 0x4e5bd1
mov esi, dword [ebp + 8]
mov ecx, eax
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
dec eax
xor ebx, ebx
cmp eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jbe 0x4e5bdf
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
xor edi, edi
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], 0x84
jmp 0x4e5bf3
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push 3
inc eax
mov dword [ebp - 0x14], eax
lea eax, [edx + eax*4]
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
add eax, edi
add eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll__rotl
lea esi, [ebp + ebx*4 - 0x38]
mov dword [ebp + 0xc], eax
add edi, eax
mov eax, dword [esi]
push edi
add eax, edi
push eax
call sub.MSVCRT.dll__rotl
mov ecx, dword [ebp - 0x10]
mov edi, eax
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov dword [ecx], eax
mov eax, dword [ebp + 8]
sub eax, 0x2b
mov dword [esi], edi
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov eax, ebx
sub eax, dword [ebp - 4]
inc ebx
neg eax
sbb eax, eax
and ebx, eax
dec dword [ebp - 8]
jne 0x4e5bf0
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4f7fd4
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x540e68
call fcn.0050ad90
sub esp, 0x1c
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4f8058
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4f8058
lea ecx, [ebp - 0x28]
call fcn.0040288b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040288b
and dword [ebp - 0x10], 0
push edi
mov dword [ebp - 4], 1
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00402538
push esi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402538
lea eax, [ebp - 0x28]
push eax
push 0x4f7f17
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004f8068
mov eax, esi
jmp 0x4f805a
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4fc4fa
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x10
push dword [ebp + 8]
mov ebx, ecx
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebx + 0x10], 0xb7e15163
lea eax, [ebx + 0x14]
push 0x19
pop ecx
mov edx, dword [eax - 4]
sub edx, 0x61c88647
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x4fc51f
xor edi, edi
xor esi, esi
mov dword [ebp + 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], 0x4e
mov eax, dword [ebx + esi*4 + 0x10]
push 3
add eax, dword [ebp + 8]
add eax, dword [ebp - 4]
push eax
call fcn.004fc623
mov dword [ebx + esi*4 + 0x10], eax
mov ecx, eax
lea eax, [esi + 1]
push 0x1a
cdq
pop esi
mov dword [ebp - 4], ecx
idiv esi
mov eax, dword [ebp + 8]
mov esi, edx
lea edx, [eax + ecx]
push edx
mov edx, dword [ebx + edi*4]
add edx, eax
add edx, ecx
push edx
call fcn.004fc623
add esp, 0x10
mov dword [ebx + edi*4], eax
mov dword [ebp + 8], eax
lea eax, [edi + 1]
push 4
cdq
pop ecx
idiv ecx
dec dword [ebp - 8]
mov edi, edx
jne 0x4fc541
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4fc59b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
push 8
mov dword [ebp - 8], ecx
cdq
pop esi
idiv esi
shl eax, 3
test eax, eax
jle 0x4fc61e
cdq
idiv esi
test eax, eax
jle 0x4fc61e
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
jmp 0x4fc5c8
mov ecx, dword [ebp - 8]
mov esi, dword [ebx]
mov edi, dword [ecx + 0x14]
add esi, dword [ecx + 0x10]
add edi, dword [ebx + 4]
add ecx, 0x1c
mov dword [ebp + 8], 0xc
mov dword [ebp + 0xc], ecx
mov eax, edi
push edi
xor eax, esi
push eax
call fcn.004fc623
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx - 4]
mov esi, eax
xor edi, esi
push esi
push edi
call fcn.004fc623
mov ecx, dword [ebp + 0xc]
add dword [ebp + 0xc], 8
add esp, 0x10
add eax, dword [ecx]
dec dword [ebp + 8]
mov edi, eax
jne 0x4fc5e0
mov dword [ebx], esi
mov dword [ebx + 4], edi
add ebx, 8
dec dword [ebp - 4]
jne 0x4fc5c5
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x4ff423
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edx, esi
mov edi, 0xfffffef8
imul edx, esi
lea eax, [ecx + 0x108]
sub edi, ecx
xor dword [eax - 0x100], esi
xor dword [eax], edx
add eax, 4
lea ecx, [edi + eax]
cmp ecx, 0x100
jl 0x4ff43b
pop edi
pop esi
ret 4

Function at 0x507881
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x5079d6
mov al, byte [0x58db80]
mov ecx, 0xff
mov byte [ebp - 0x504], al
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x504]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
mov esi, 0x594f28
add esp, 0xc
mov edi, esi
lea eax, [ebp - 0x504]
push eax
push edi
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x5078f5
add edi, 0x400
inc ebx
cmp edi, 0x595b28
jl 0x5078d3
cmp ebx, 3
jl 0x5079d6
mov eax, dword [0x595b28]
lea ecx, [ebp - 0x504]
shl eax, 0xa
add eax, esi
inc dword [0x595b28]
push ecx
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [0x595b28]
push 3
xor edx, edx
pop ecx
div ecx
lea eax, [ebp - 4]
push eax
mov dword [0x595b28], edx
call dword [sym.imp.MSVCRT.dll_time]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
mov esi, str.debug.log
lea edi, [ebp - 0x104]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x3d
mov ebx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0xfa]
push str.debug
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll__mkdir]
mov eax, dword [ebx + 0x10]
add esp, 0x14
push dword [ebx + 0xc]
inc eax
push eax
mov eax, dword [ebx + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x104]
push str.._debug__u__u__u.log
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x104]
push 0x58554c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x5079d6
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_ctime]
pop ecx
push eax
lea eax, [ebp - 0x504]
push eax
push str._s_____s
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5079db
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
lea eax, [ebp - 0x400]
push 0x57fc98
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x14
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret
Function at 0x50a3f6
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
push edi
mov esi, ecx
je 0x50a45c
call fcn.0050a47b
push 0x5811d4
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x50a45c
push edi
call dword [sym.imp.MSVCRT.dll__fileno]
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
push eax
mov dword [esi + 8], eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 0xc
mov dword [esi + 4], eax
test eax, eax
push edi
je 0x50a455
push 1
push dword [esi + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
push edi
je 0x50a460
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor al, al
jmp 0x50a476
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push dword [esi + 8]
mov ecx, esi
push dword [esi + 4]
call fcn.0050a50d
mov al, 1
pop edi
pop esi
ret 4

Function at 0x50a50d
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, ecx
je 0x50a556
cmp dword [ebp + 0xc], esi
jle 0x50a556
push ebx
mov eax, esi
mov ecx, 0x80
cdq
idiv ecx
mov eax, dword [ebp + 8]
push 8
pop ecx
mov bl, byte [edx + edi + 0x10]
xor bl, byte [esi + eax]
mov eax, esi
cdq
idiv ecx
mov al, bl
sub ecx, edx
shl al, cl
mov cl, dl
shr bl, cl
mov ecx, dword [ebp + 8]
add al, bl
mov byte [esi + ecx], al
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x50a521
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x50bdb0
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 8
call fcn.0050b030
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov ecx, 0x412
mov esi, 0x554158
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x48
jle 0x50bddd
mov ecx, 0x48
mov edi, dword [esp + 0x20]
push ebp
mov eax, edi
mov ebp, ebx
lea esi, [ecx + edi]
mov dword [esp + 0x1c], 0x12
xor ecx, ecx
mov cl, byte [eax]
inc eax
cmp eax, esi
jb 0x50bdfc
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x50be0c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x50be1c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x50be2c
mov eax, edi
mov edx, dword [ebp]
add ebp, 4
xor edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebp - 4], edx
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x50bdf1
xor eax, eax
mov esi, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edi, 9
pop ebp
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.0050f9e0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 8
add esi, 8
dec edi
jne 0x50be54
lea esi, [ebx + 0x48]
mov edi, 0x200
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.0050f9e0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 8
add esi, 8
dec edi
jne 0x50be7d
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x50ef50
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.0050b030
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x50ef9f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x50ef9f
mov edx, dword [sym.imp.MSVCRT.dll__iob]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
add edx, 0x40
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vfprintf]
add esp, 0xc
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x104]
push 0xff
push edx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x50f0a3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x50f05e
lea eax, [ebp - 4]
push eax
push 0
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
jne 0x50f05e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x50f05e
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x50f05e
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.0050b030
lea ecx, [ebp - 4]
mov edi, esp
push ecx
push esi
push edi
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x50f05e
mov edx, dword [ebp - 4]
push str.Service_0x
push edi
lea eax, [edx + 1]
and al, 0xfe
mov dword [ebp - 4], eax
shr eax, 1
mov word [edi + eax*2], 0
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x50f0a3
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
lea ecx, [ebp - 4]
push 0
push ecx
push 0
push 1
push 0
push 0
mov esi, eax
push 0
lea eax, [ebp - 0x104]
push 1
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
lea edx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10d2370
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 0x10d238e
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 0x10fb074
push ecx
mov edi, eax
call fcn.010e6198
mov esi, eax
add esp, 8
test esi, esi
jne 0x10d23cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.010e602e
push esi
call fcn.010e5fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x10d5850
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 0x10d58ae
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 0x1100720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x10d58ba
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.010e61e1
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 0x10d58ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x1100720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x10d592a
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.010e7082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x10d5957
mov word [eax], si
add eax, 2
push eax
call fcn.010e7030
add esp, 4
jmp 0x10d5959
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 0x10d58ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x10d58b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x10d5ff0
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 0x10d6080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x10d60c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x10fb458
push ecx
call fcn.010e61e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.010e61e1
add esp, 0x10
jmp 0x10d60d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.010e620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.010e5dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.010d6050
mov eax, dword [0x1100728]
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 0x10d613b
push esi
call fcn.010d5fb0
add esp, 4
mov dword [0x1100728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x10d614c
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.010d5ff0
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 0x10d9440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x10d94b7
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 0x10d948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10d9471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x10d947e
add edx, ecx
cmp ebx, edx
jb 0x10d948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10d9467
xor ecx, ecx
jmp 0x10d94a2
test eax, eax
jne 0x10d9492
xor ecx, ecx
jmp 0x10d94a2
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.010d93c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret