joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49bea2
Capabilities:
Send data
Send data on socket
Terminate process

Disassembly:
mov eax, 0x4d7918
call fcn.004ca3a0
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor edx, edx
push edi
cmp eax, edx
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], edx
je 0x49bfa2
mov edi, dword [ebp + 0xc]
cmp edi, edx
jle 0x49bfa2
mov ecx, 0x400
cmp edi, ecx
jg 0x49bfa2
cmp dword [esi + 0x2008], edx
je 0x49bf3f
movzx eax, word [eax]
cmp eax, edx
mov byte [ebp - 4], 1
jle 0x49bf83
cmp eax, ecx
jg 0x49bf83
cmp eax, edi
je 0x49bf0f
mov ecx, esi
call fcn.0049c1f0
push 5
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [esi + 0x2000]
mov ebx, 0x2000
mov dword [ebp - 4], edx
lea ecx, [eax + edi]
cmp ecx, ebx
jle 0x49bf52
mov ecx, esi
call fcn.0049c0fe
mov eax, dword [esi + 0x2000]
lea ecx, [eax + edi]
cmp ecx, ebx
jle 0x49bf52
mov ecx, esi
call fcn.0049c1f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push edi
add eax, esi
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x2000]
add esp, 0xc
add eax, esi
lea ecx, [esi + 0x12014]
push 1
push edi
push eax
call fcn.0049c291
add dword [esi + 0x2000], edi
push 1
pop eax
jmp 0x49bf41
mov ecx, esi
call fcn.0049c1f0
push 5
call dword [sym.imp.MSVCRT.dll_exit]
push 5
call dword [sym.imp.MSVCRT.dll_exit]
push 5
call dword [sym.imp.MSVCRT.dll_exit]
push 5
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x49bfaa
Capabilities:
Send data
Send data on socket
Terminate process

Disassembly:
mov eax, 0x4d7924
call fcn.004ca3a0
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], edi
jne 0x49bfcf
push 5
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [esi + 0x1200c]
mov dword [ebp - 4], edi
cmp eax, 2
jge 0x49bff1
mov ecx, esi
call fcn.0049c315
cmp eax, edi
je 0x49c048
cmp dword [esi + 0x1200c], 2
jl 0x49c048
mov ecx, dword [esi + 0x12010]
mov ebx, 0x10000
mov edi, ebx
lea eax, [ecx + 1]
cdq
idiv edi
movzx eax, byte [ecx + esi + 0x200c]
movzx edi, byte [edx + esi + 0x200c]
shl edi, 8
add edi, eax
test edi, edi
jle 0x49c0d9
cmp edi, 0x400
jg 0x49c0d9
cmp edi, dword [esi + 0x1200c]
jle 0x49c05b
mov ecx, esi
call fcn.0049c315
test eax, eax
je 0x49c048
cmp edi, dword [esi + 0x1200c]
jle 0x49c05b
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
mov eax, dword [esi + 0x12010]
lea ecx, [eax + edi]
cmp ecx, ebx
jle 0x49c0a1
sub ebx, eax
lea eax, [eax + esi + 0x200c]
push ebx
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
mov eax, edi
sub eax, ebx
push eax
lea eax, [esi + 0x200c]
push eax
mov eax, dword [ebp + 8]
add ebx, eax
push ebx
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0xc]
add esp, 0x18
mov ebx, 0x10000
mov dword [eax], edi
jmp 0x49c0ba
lea eax, [eax + esi + 0x200c]
push edi
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [eax], edi
mov eax, dword [esi + 0x12010]
push 1
add eax, edi
cdq
idiv ebx
sub dword [esi + 0x1200c], edi
pop eax
mov dword [esi + 0x12010], edx
jmp 0x49c04a
and dword [esi + 0x1200c], 0
and dword [esi + 0x12010], 0
mov ecx, esi
call fcn.0049c1f0
push 5
call dword [sym.imp.MSVCRT.dll_exit]
push 5
call dword [sym.imp.MSVCRT.dll_exit]

Function at 0x49c0fe
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x4d7930
call fcn.004ca3a0
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x2000]
mov dword [ebp - 0x10], esp
test eax, eax
jle 0x49c154
push 0
push eax
push esi
push dword [esi + 0x2004]
call sub.WS2_32.dll_send
mov edi, eax
test edi, edi
jle 0x49c166
mov eax, dword [esi + 0x2000]
sub eax, edi
test eax, eax
jle 0x49c14e
push eax
lea eax, [edi + esi]
push eax
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0x2000], edi
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x49c154
mov ecx, esi
call fcn.0049c1f0
xor eax, eax
jmp 0x49c157
Function at 0x49c185
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x4d793c
call fcn.004ca3a0
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x2008], 0
mov dword [ebp - 0x10], esp
je 0x49c1d2
push 2
lea eax, [ebp - 0x11]
push 1
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll_recv
test eax, eax
je 0x49c1cb
jge 0x49c1eb
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x49c1eb
mov ecx, esi
call fcn.0049c1f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
push 1
pop eax
jmp 0x49c1d4

Function at 0x49c315
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x2008], 0
je 0x49c3d8
mov ecx, dword [esi + 0x1200c]
mov edi, 0x10000
cmp ecx, edi
jge 0x49c3d8
mov edx, dword [esi + 0x12010]
mov ebx, edi
lea eax, [edx + ecx]
cmp eax, edi
jge 0x49c34d
sub ebx, edx
sub ebx, ecx
mov ecx, edi
cdq
idiv ecx
push 0
push ebx
lea eax, [edx + esi + 0x200c]
push eax
mov dword [esp + 0x1c], eax
push dword [esi + 0x2004]
call sub.WS2_32.dll_recv
mov ebp, eax
test ebp, ebp
jle 0x49c3e5
push 1
push ebp
push dword [esp + 0x18]
lea ecx, [esi + 0x1221c]
call fcn.0049c291
add dword [esi + 0x1200c], ebp
mov eax, dword [esi + 0x1200c]
cmp ebp, ebx
jne 0x49c3d8
cmp eax, edi
jge 0x49c3d8
mov ecx, edi
push 0
sub ecx, eax
add eax, dword [esi + 0x12010]
push ecx
cdq
idiv edi
lea ebx, [edx + esi + 0x200c]
push ebx
push dword [esi + 0x2004]
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
jle 0x49c3e1
push 1
push edi
push ebx
lea ecx, [esi + 0x1221c]
call fcn.0049c291
add dword [esi + 0x1200c], edi
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
jne 0x49c3e7
jmp 0x49c3f3
je 0x49c3f3
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x49c3d8
mov ecx, esi
call fcn.0049c1f0
xor eax, eax
jmp 0x49c3db
Function at 0x4a2de0
Capabilities:
Create directory

Disassembly:
mov eax, 0x4d7fe8
call fcn.004ca3a0
sub esp, 0xcc
mov eax, dword [0x5074e8]
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.004a2daa
mov eax, dword [eax]
and dword [ebp - 4], 0
lea ecx, [ebp - 0xd8]
push 0xa
push ecx
push eax
call fcn.00451305
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.00406376
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, 0x50f2f4
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
mov ecx, dword [ebp - 0xc]
add esp, 0x14
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a3932
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x4d8074
call fcn.004ca3a0
sub esp, 0x384
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.004a31a7
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.004a2daa
mov eax, dword [eax]
lea ecx, [ebp - 0x7c]
push 0xa
xor ebx, ebx
push ecx
push eax
mov dword [ebp - 4], ebx
call fcn.00451305
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 0x4a3994
push eax
push dword [ebp - 0x2c]
call fcn.00407aab
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x7c]
push str.leavewordsystem.log
mov esi, 0x50f2f4
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 0x504a90
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x1c
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x4a3afd
lea eax, [ebp - 0x3c]
push 0x50ae54
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 0x4a3a01
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 0x4a3ae6
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 + 0x50f2f4]
cdq
idiv edi
cdq
idiv ebx
add cl, dl
xor byte [esi], cl
mov ecx, edi
cmp ecx, 0x200
jl 0x4a3a30
push 0x210
call sub.MFC42.DLL_operatornew
xor ebx, ebx
pop ecx
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x4a3aa1
push str.D:CQ2ClientRelease_6.2.83DRoleChatLog.cpp
push 0x1e2
push 0x5074ec
call fcn.004c655d
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.00468646
jmp 0x4a3a0b
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
push 0x421
call fcn.0048869b
add esp, 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4a91aa
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 0x4a91c7
mov eax, dword [ebp + 0xc]
shr eax, 5
je 0x4a91ea
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 0x4a91f8
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
xor edi, edi
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], 0x84
jmp 0x4a920c
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 0x4a9209
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4af791
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edi
push dword [esi + 8]
lea edi, [esi + 0xc]
push 1
push 4
push edi
call ebx
mov eax, dword [edi]
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
add esp, 0x14
mov dword [esi + 4], eax
test eax, eax
jne 0x4af7d2
push str.D:CQ2ClientRelease_6.2.83DRoleMagicData.cpp
push 0x23
push 0x507b78
call fcn.004c655d
add esp, 0xc
push dword [esi + 8]
push dword [edi]
push 4
push dword [esi + 4]
call ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4af805
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [eax + eax*4]
lea ebx, [esi + 0x10]
push edi
lea eax, [ecx + eax*2]
mov ecx, ebx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.004865c5
cmp eax, dword [ebx]
je 0x4af84d
add eax, 0x14
push 0x630
push eax
push dword [ebp + 0x10]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x4af8e0
mov edx, dword [esi + 4]
test edx, edx
je 0x4af872
mov ecx, dword [esi + 0xc]
xor eax, eax
test ecx, ecx
jbe 0x4af872
mov edi, dword [edx]
cmp edi, dword [ebp + 8]
je 0x4af86e
inc eax
add edx, 4
cmp eax, ecx
jb 0x4af85d
jmp 0x4af872
test eax, eax
jge 0x4af876
xor eax, eax
jmp 0x4af8e3
imul eax, eax, 0x18c
add eax, ecx
push 0
lea eax, [eax*4 + 4]
push eax
push dword [esi + 8]
call dword [sym.imp.MSVCRT.dll_fseek]
push dword [esi + 8]
mov esi, dword [ebp + 0x10]
push 1
push 0x630
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push 0x20
lea eax, [esi + 0xd4]
push 0x7e
push eax
call fcn.004c6c38
mov eax, dword [ebp + 8]
add esp, 0x28
mov dword [ebp - 0x63c], eax
lea eax, [ebp - 0x63c]
mov ecx, 0x18c
lea edi, [ebp - 0x638]
push eax
lea eax, [ebp - 8]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebx
call fcn.004af9e2
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4b9a47
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x4d93d8
call fcn.004ca3a0
sub esp, 0x1c
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4b9acb
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4b9acb
lea ecx, [ebp - 0x28]
call fcn.00407b77
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00407b77
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.00407829
push esi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00407829
lea eax, [ebp - 0x28]
push eax
push 0x4b998a
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004b9adb
mov eax, esi
jmp 0x4b9acd
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4bdf4f
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 0x4bdf74
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.004be078
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.004be078
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 0x4bdf96
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4bdff0
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 0x4be073
cdq
idiv esi
test eax, eax
jle 0x4be073
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
jmp 0x4be01d
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.004be078
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx - 4]
mov esi, eax
xor edi, esi
push esi
push edi
call fcn.004be078
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 0x4be035
mov dword [ebx], esi
mov dword [ebx + 4], edi
add ebx, 8
dec dword [ebp - 4]
jne 0x4be01a
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x4c25ab
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 0x4c25c3
pop edi
pop esi
ret 4

Function at 0x4c655d
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 0x4c66b2
mov al, byte [0x508900]
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, 0x50f948
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 0x4c65d1
add edi, 0x400
inc ebx
cmp edi, 0x510548
jl 0x4c65af
cmp ebx, 3
jl 0x4c66b2
mov eax, dword [0x510548]
lea ecx, [ebp - 0x504]
shl eax, 0xa
add eax, esi
inc dword [0x510548]
push ecx
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [0x510548]
push 3
xor edx, edx
pop ecx
div ecx
lea eax, [ebp - 4]
push eax
mov dword [0x510548], 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 0x508694
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4c66b2
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 0x4c66b7
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 0x503e3c
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 0x4c8faf
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
push edi
mov esi, ecx
je 0x4c9015
call fcn.004c9034
push 0x504a90
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x4c9015
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 0x4c900e
push 1
push dword [esi + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
push edi
je 0x4c9019
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor al, al
jmp 0x4c902f
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push dword [esi + 8]
mov ecx, esi
push dword [esi + 4]
call fcn.004c90c6
mov al, 1
pop edi
pop esi
ret 4

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

Function at 0x4c9af9
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 4]
mov dword [esi], 0x4e8b98
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 0x401100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x42b314]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call fcn.00401680
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
lea ecx, [ebp + 8]
call fcn.00401a60
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x401158
mov dword [ebp - 0x38], 0
jmp 0x4011a5
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x40117a
mov dword [ebp - 0x3c], 0
jmp 0x40119f
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.0040fef0
mov dword [ebp - 0x40], esp
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00401690
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x38]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4011f1
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401a00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00401a00
mov eax, dword [ebp - 0x30]
jmp 0x401296
lea ecx, [ebp + 0x24]
call fcn.00401a60
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40120b
mov dword [ebp - 0x44], 0
jmp 0x401258
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x40122d
mov dword [ebp - 0x48], 0
jmp 0x401252
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.0040fef0
mov dword [ebp - 0x4c], esp
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00401690
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x44], edx
lea eax, [ebp - 0x20]
push eax
push 0
lea ecx, [ebp + 0x40]
push ecx
push 0
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401a00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00401a00
mov eax, dword [ebp - 0x34]
lea esp, [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fee0
mov esp, ebp
pop ebp
ret