joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2fe2
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.0050bd60
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x2008], 0
je 0x4d3190
mov edx, dword [esi + 0x1200c]
mov ebx, 0x10000
cmp edx, ebx
jge 0x4d3190
mov ecx, dword [esi + 0x12010]
lea eax, [ecx + edx]
cmp eax, ebx
jge 0x4d302c
mov edi, ebx
sub edi, ecx
sub edi, edx
mov dword [ebp - 8], edi
jmp 0x4d3035
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 8], ecx
mov edi, ecx
cdq
mov ecx, ebx
push 0
idiv ecx
push edi
lea eax, [edx + esi + 0x200c]
push eax
mov dword [ebp - 0xc], eax
push dword [esi + 0x2004]
call sub.WS2_32.dll_recv
mov ecx, eax
test ecx, ecx
mov dword [ebp - 4], ecx
jle 0x4d319c
mov eax, dword [esi + 0x12428]
cmp eax, 1
jne 0x4d307d
push eax
push ecx
push dword [ebp - 0xc]
lea ecx, [esi + 0x1221c]
call fcn.004d2f5e
jmp 0x4d30d4
cmp eax, 2
jne 0x4d30d4
cmp byte [esi + 0x12424], 0
jne 0x4d30d4
and byte [ebp - 0x1000c], 0
mov ecx, 0x3fff
xor eax, eax
lea edi, [ebp - 0x1000b]
rep stosd dword es:[edi], eax
push dword [ebp - 4]
lea ecx, [esi + 0x12430]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1000c]
push eax
push dword [ebp - 0xc]
call fcn.004fe6e5
push dword [ebp - 4]
lea eax, [ebp - 0x1000c]
push eax
push dword [ebp - 0xc]
call sub.MSVCRT.dll_memcpy
mov edi, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 4]
add dword [esi + 0x1200c], ecx
mov eax, dword [esi + 0x1200c]
cmp ecx, edi
jne 0x4d3190
cmp eax, ebx
jge 0x4d3190
mov ecx, ebx
push 0
sub ecx, eax
add eax, dword [esi + 0x12010]
push ecx
cdq
idiv ebx
lea ebx, [edx + esi + 0x200c]
push ebx
push dword [esi + 0x2004]
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
jle 0x4d3198
mov eax, dword [esi + 0x12428]
dec eax
je 0x4d317b
dec eax
jne 0x4d318a
cmp byte [esi + 0x12424], 0
jne 0x4d318a
and byte [ebp - 0x1000c], 0
mov ecx, 0x3fff
xor eax, eax
lea edi, [ebp - 0x1000b]
rep stosd dword es:[edi], eax
push dword [ebp - 4]
lea ecx, [esi + 0x12430]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1000c]
push eax
push ebx
call fcn.004fe6e5
push dword [ebp - 4]
lea eax, [ebp - 0x1000c]
push eax
push ebx
call sub.MSVCRT.dll_memcpy
mov edi, dword [ebp - 4]
add esp, 0xc
jmp 0x4d318a
push 1
push edi
push ebx
lea ecx, [esi + 0x1221c]
call fcn.004d2f5e
add dword [esi + 0x1200c], edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
jne 0x4d319e
jmp 0x4d31aa
je 0x4d31aa
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4d3190
mov ecx, esi
call fcn.004d2e76
xor eax, eax
jmp 0x4d3193
Function at 0x4dfc1a
Capabilities:
Create directory

Disassembly:
mov eax, 0x540390
call fcn.0050bac0
sub esp, 0xcc
mov eax, dword [0x5851c4]
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.004dfbe4
mov eax, dword [eax]
and dword [ebp - 4], 0
lea ecx, [ebp - 0xd8]
push 0xa
push ecx
push eax
call fcn.004dfab4
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.00402735
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, 0x595820
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 0x4e078d
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x54041c
call fcn.0050bac0
sub esp, 0x384
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.004e0002
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.004dfbe4
mov eax, dword [eax]
lea ecx, [ebp - 0x7c]
push 0xa
xor ebx, ebx
push ecx
push eax
mov dword [ebp - 4], ebx
call fcn.004dfab4
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 0x4e07ef
push eax
push dword [ebp - 0x2c]
call fcn.004027b7
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x7c]
push str.leavewordsystem.log
mov esi, 0x595820
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 0x5821a8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x1c
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x4e0958
lea eax, [ebp - 0x3c]
push 0x591088
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 0x4e085c
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 0x4e0941
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 + 0x595820]
cdq
idiv edi
cdq
idiv ebx
add cl, dl
xor byte [esi], cl
mov ecx, edi
cmp ecx, 0x200
jl 0x4e088b
push 0x210
call sub.MFC42.DLL_operatornew
xor ebx, ebx
pop ecx
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x4e08fc
push str.D:CQ2ClientCn_15.3.53DRoleChatLog.cpp
push 0x1e3
push 0x5851c8
call fcn.005079e3
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.00434588
jmp 0x4e0866
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
push 0x421
call fcn.004b8e8e
add esp, 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4e29f6
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x540662
call fcn.0050bac0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.004028a6
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
call fcn.004028a6
or dword [esi + 0x18], 0xffffffff
or dword [esi + 0x30], 0xffffffff
mov edi, 0x58ea40
mov byte [ebp - 4], 1
push edi
mov dword [esi], 0x5547e0
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.0040253b
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x34]
call fcn.0040253b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
mov eax, 0x540662
call fcn.0050bac0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.004028a6
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
call fcn.004028a6
or dword [esi + 0x18], 0xffffffff
or dword [esi + 0x30], 0xffffffff
mov edi, 0x58ea40
mov byte [ebp - 4], 1
push edi
mov dword [esi], 0x5547e0
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.0040253b
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x34]
call fcn.0040253b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4e5de5
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 0x4e5e02
mov eax, dword [ebp + 0xc]
shr eax, 5
je 0x4e5e25
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 0x4e5e33
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
xor edi, edi
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], 0x84
jmp 0x4e5e47
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 0x4e5e44
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4f8165
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x541ba4
call fcn.0050bac0
sub esp, 0x1c
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4f81e9
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4f81e9
lea ecx, [ebp - 0x28]
call fcn.004028a6
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004028a6
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.0040253b
push esi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040253b
lea eax, [ebp - 0x28]
push eax
push 0x4f80a8
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004f81f9
mov eax, esi
jmp 0x4f81eb
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4fc65c
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 0x4fc681
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.004fc785
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.004fc785
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 0x4fc6a3
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4fc6fd
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 0x4fc780
cdq
idiv esi
test eax, eax
jle 0x4fc780
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
jmp 0x4fc72a
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.004fc785
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx - 4]
mov esi, eax
xor edi, esi
push esi
push edi
call fcn.004fc785
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 0x4fc742
mov dword [ebx], esi
mov dword [ebx + 4], edi
add ebx, 8
dec dword [ebp - 4]
jne 0x4fc727
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x4ff585
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 0x4ff59d
pop edi
pop esi
ret 4

Function at 0x5079e3
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 0x507b38
mov al, byte [0x58ea40]
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, 0x595de8
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 0x507a57
add edi, 0x400
inc ebx
cmp edi, 0x5969e8
jl 0x507a35
cmp ebx, 3
jl 0x507b38
mov eax, dword [0x5969e8]
lea ecx, [ebp - 0x504]
shl eax, 0xa
add eax, esi
inc dword [0x5969e8]
push ecx
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [0x5969e8]
push 3
xor edx, edx
pop ecx
div ecx
lea eax, [ebp - 4]
push eax
mov dword [0x5969e8], 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 0x5863c0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x507b38
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 0x507b3d
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 0x580c78
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 0x50a530
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
push edi
mov esi, ecx
je 0x50a596
call fcn.0050a5b5
push 0x5821a8
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x50a596
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 0x50a58f
push 1
push dword [esi + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
push edi
je 0x50a59a
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor al, al
jmp 0x50a5b0
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push dword [esi + 8]
mov ecx, esi
push dword [esi + 4]
call fcn.0050a647
mov al, 1
pop edi
pop esi
ret 4

Function at 0x50a647
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 0x50a690
cmp dword [ebp + 0xc], esi
jle 0x50a690
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 0x50a65b
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x50b07a
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 4]
mov dword [esi], 0x5550c4
push eax
call sub.MSVCRT.dll_memset
and dword [esi + 0x48], 0
and dword [esi + 0x44], 0
add esp, 0xc
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret
Function at 0x50cae0
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 8
call fcn.0050bd60
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov ecx, 0x412
mov esi, 0x555160
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x48
jle 0x50cb0d
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 0x50cb2c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x50cb3c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x50cb4c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x50cb5c
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 0x50cb21
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.00510710
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 0x50cb84
lea esi, [ebx + 0x48]
mov edi, 0x200
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00510710
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 0x50cbad
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x50fc80
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.0050bd60
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x50fccf
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x50fccf
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 0x50fdd3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x50fd8e
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 0x50fd8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x50fd8e
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x50fd8e
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.0050bd60
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 0x50fd8e
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 0x50fdd3
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