joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dde29
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Send data
Send data on socket
Set socket configuration
Terminate process

Disassembly:
mov eax, 0x573934
call fcn.0051f140
sub esp, 0x3b8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
cmp dword [esi + 0x2008], ebx
mov dword [ebp - 0x10], esp
je 0x4dde53
call fcn.004de764
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x4de04c
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
cmp eax, 0xf
pop ecx
ja 0x4de04c
lea eax, [ebp - 0x3c4]
mov edi, 0x101
push eax
push edi
mov dword [ebp - 4], ebx
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x4ddfff
cmp word [ebp - 0x3c4], di
jne 0x4ddffa
push ebx
push 1
pop edi
push edi
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x2004], eax
jne 0x4ddebd
call sub.WS2_32.dll_WSAGetLastError
jmp 0x4ddffa
cmp dword [ebp + 0x10], ebx
je 0x4ddee6
lea ecx, [ebp + 0x10]
push 4
push ecx
push 8
push 0xffff
push eax
mov dword [ebp + 0x10], edi
call sub.WS2_32.dll_setsockopt
test eax, eax
je 0x4ddee6
call sub.WS2_32.dll_WSAGetLastError
jmp 0x4ddfef
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push 0x8004667e
push dword [esi + 0x2004]
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x4ddedc
push dword [ebp + 8]
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4ddfef
lea ecx, [esi + 0x12430]
call fcn.0050ea99
cmp al, bl
jne 0x4ddf40
push 0xd8
push str.E:CQ2ClientRelease_17.1.93DRoleNetwork_socket.h
push str.ERROR:_CGameSocket::ReceiveMsg___ClientSecurity_Init_failed_at__s___d
call fcn.005185c3
add esp, 0xc
jmp 0x4ddfff
push ebx
lea eax, [ebp - 0x2c]
push 0x10
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x2c], 2
push dword [ebp + 0xc]
call sub.WS2_32.dll_htons
mov word [ebp - 0x2a], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push 0x10
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4de012
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4ddfef
mov eax, dword [esi + 0x2004]
mov dword [ebp - 0x1c], 0x1e
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x234]
push eax
push ebx
push 0x40
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x130], edi
call sub.WS2_32.dll_select
cmp eax, ebx
je 0x4ddfef
jl 0x4ddedc
lea eax, [ebp - 0x130]
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4de012
push dword [esi + 0x2004]
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
mov dword [esi + 0x1200c], ebx
mov dword [esi + 0x12010], ebx
mov dword [esi + 0x2000], ebx
mov dword [esi + 0x2008], edi
lea eax, [esi + 0x12014]
add esi, 0x1221c
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov eax, edi
jmp 0x4de001
push 5
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x4de054
Capabilities:
Send data
Send data on socket
Terminate process

Disassembly:
mov eax, 0x573940
call fcn.0051f140
push ecx
mov eax, 0x2000
call fcn.0051f470
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 0x4de240
mov ebx, dword [ebp + 0xc]
cmp ebx, edx
jle 0x4de240
mov ecx, 0x400
cmp ebx, ecx
jg 0x4de240
cmp dword [esi + 0x2008], edx
je 0x4de110
cmp dword [esi + 0x12428], 2
mov byte [ebp - 4], 1
jne 0x4de0ba
cmp byte [esi + 0x12424], dl
je 0x4de0ba
mov eax, ebx
jmp 0x4de0bd
movzx eax, word [eax]
cmp eax, edx
jle 0x4de221
cmp eax, ecx
jg 0x4de221
cmp eax, ebx
je 0x4de0e0
mov ecx, esi
call fcn.004de764
push 5
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [esi + 0x2000]
mov edi, 0x2000
mov dword [ebp - 4], edx
lea ecx, [eax + ebx]
cmp ecx, edi
jle 0x4de123
mov ecx, esi
call fcn.004de672
mov eax, dword [esi + 0x2000]
lea ecx, [eax + ebx]
cmp ecx, edi
jle 0x4de123
mov ecx, esi
call fcn.004de764
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push ebx
add eax, esi
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x12428]
add esp, 0xc
dec eax
je 0x4de1fc
dec eax
jne 0x4de213
cmp byte [esi + 0x12424], 0
jne 0x4de213
and byte [ebp - 0x2010], 0
mov ecx, 0x7ff
xor eax, eax
lea edi, [ebp - 0x200f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2010]
push ebx
push eax
lea edi, [esi + 0x12430]
push dword [ebp + 8]
mov ecx, edi
call fcn.0050f128
lea eax, [ebp - 0x2010]
push ebx
push eax
mov eax, dword [esi + 0x2000]
add eax, esi
push eax
call sub.MSVCRT.dll_memcpy
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
call fcn.0050f2a4
mov dword [ebp + 8], eax
call fcn.0050f298
push dword [ebp + 8]
lea ecx, [ebp - 0x2010]
push ecx
push eax
mov ecx, edi
call fcn.0050f128
call fcn.0050f2a4
push eax
lea eax, [ebp - 0x2010]
push eax
mov eax, dword [esi + 0x2000]
add eax, ebx
add eax, esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
call fcn.0050f2a4
add dword [esi + 0x2000], eax
jmp 0x4de213
mov eax, dword [esi + 0x2000]
push 1
add eax, esi
push ebx
push eax
lea ecx, [esi + 0x12014]
call fcn.004de84c
add dword [esi + 0x2000], ebx
push 1
pop eax
jmp 0x4de112
mov ecx, esi
call fcn.004de764
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 0x4de672
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x573958
call fcn.0051f140
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 0x4de6c8
push 0
push eax
push esi
push dword [esi + 0x2004]
call sub.WS2_32.dll_send
mov edi, eax
test edi, edi
jle 0x4de6da
mov eax, dword [esi + 0x2000]
sub eax, edi
test eax, eax
jle 0x4de6c2
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 0x4de6c8
mov ecx, esi
call fcn.004de764
xor eax, eax
jmp 0x4de6cb

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

Disassembly:
mov eax, 0x573964
call fcn.0051f140
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 0x4de746
push 2
lea eax, [ebp - 0x11]
push 1
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll_recv
test eax, eax
je 0x4de73f
jge 0x4de75f
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4de75f
mov ecx, esi
call fcn.004de764
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 0x4de748
Function at 0x4de8d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.0051f470
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x2008], 0
je 0x4dea7e
mov edx, dword [esi + 0x1200c]
mov ebx, 0x10000
cmp edx, ebx
jge 0x4dea7e
mov ecx, dword [esi + 0x12010]
lea eax, [ecx + edx]
cmp eax, ebx
jge 0x4de91a
mov edi, ebx
sub edi, ecx
sub edi, edx
mov dword [ebp - 8], edi
jmp 0x4de923
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 0x4dea8a
mov eax, dword [esi + 0x12428]
cmp eax, 1
jne 0x4de96b
push eax
push ecx
push dword [ebp - 0xc]
lea ecx, [esi + 0x1221c]
call fcn.004de84c
jmp 0x4de9c2
cmp eax, 2
jne 0x4de9c2
cmp byte [esi + 0x12424], 0
jne 0x4de9c2
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.0050f16e
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 0x4dea7e
cmp eax, ebx
jge 0x4dea7e
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 0x4dea86
mov eax, dword [esi + 0x12428]
dec eax
je 0x4dea69
dec eax
jne 0x4dea78
cmp byte [esi + 0x12424], 0
jne 0x4dea78
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.0050f16e
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 0x4dea78
push 1
push edi
push ebx
lea ecx, [esi + 0x1221c]
call fcn.004de84c
add dword [esi + 0x1200c], edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
jne 0x4dea8c
jmp 0x4dea98
je 0x4dea98
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4dea7e
mov ecx, esi
call fcn.004de764
xor eax, eax
jmp 0x4dea81
Function at 0x4ec34d
Capabilities:
Create directory

Disassembly:
mov eax, 0x5745ac
call fcn.0051f140
sub esp, 0xcc
mov eax, dword [0x5cce60]
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.004ec317
mov eax, dword [eax]
and dword [ebp - 4], 0
lea ecx, [ebp - 0xd8]
push 0xa
push ecx
push eax
call fcn.00483e3c
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.00402751
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, 0x5def58
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 0x4ecec0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x574638
call fcn.0051f140
sub esp, 0x384
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.004ec735
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.004ec317
mov eax, dword [eax]
lea ecx, [ebp - 0x7c]
push 0xa
xor ebx, ebx
push ecx
push eax
mov dword [ebp - 4], ebx
call fcn.00483e3c
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 0x4ecf22
push eax
push dword [ebp - 0x2c]
call fcn.004027a2
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x7c]
push str.leavewordsystem.log
mov esi, 0x5def58
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 0x5c987c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x1c
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x4ed08b
lea eax, [ebp - 0x3c]
push 0x5dac58
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 0x4ecf8f
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 0x4ed074
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 + 0x5def58]
cdq
idiv edi
cdq
idiv ebx
add cl, dl
xor byte [esi], cl
mov ecx, edi
cmp ecx, 0x200
jl 0x4ecfbe
push 0x210
call sub.MFC42.DLL_operatornew
xor ebx, ebx
pop ecx
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x4ed02f
push str.E:CQ2ClientRelease_17.1.93DRoleChatLog.cpp
push 0x1e3
push 0x5cce64
call fcn.005185c3
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.004a5cc9
jmp 0x4ecf99
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
push 0x421
call fcn.004c2498
add esp, 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4f2058
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x574d62
call fcn.0051f140
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.00402891
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
call fcn.00402891
or dword [esi + 0x18], 0xffffffff
or dword [esi + 0x30], 0xffffffff
mov edi, 0x5d8050
mov byte [ebp - 4], 1
push edi
mov dword [esi], 0x58a458
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.00402557
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x34]
call fcn.00402557
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
mov eax, 0x574d62
call fcn.0051f140
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.00402891
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
call fcn.00402891
or dword [esi + 0x18], 0xffffffff
or dword [esi + 0x30], 0xffffffff
mov edi, 0x5d8050
mov byte [ebp - 4], 1
push edi
mov dword [esi], 0x58a458
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.00402557
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x34]
call fcn.00402557
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x507d1c
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x57645c
call fcn.0051f140
sub esp, 0x1c
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x507da0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x507da0
lea ecx, [ebp - 0x28]
call fcn.00402891
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402891
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.00402557
push esi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402557
lea eax, [ebp - 0x28]
push eax
push 0x507c5f
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00507db0
mov eax, esi
jmp 0x507da2
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x508bac
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 0x508bc9
mov eax, dword [ebp + 0xc]
shr eax, 5
je 0x508bec
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 0x508bfa
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
xor edi, edi
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], 0x84
jmp 0x508c0e
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 0x508c0b
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x50d0f2
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 0x50d117
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.0050d21b
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.0050d21b
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 0x50d139
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x50d193
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 0x50d216
cdq
idiv esi
test eax, eax
jle 0x50d216
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
jmp 0x50d1c0
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.0050d21b
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx - 4]
mov esi, eax
xor edi, esi
push esi
push edi
call fcn.0050d21b
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 0x50d1d8
mov dword [ebx], esi
mov dword [ebx + 4], edi
add ebx, 8
dec dword [ebp - 4]
jne 0x50d1bd
pop edi
pop ebx
pop esi
leave
ret 8

Function at 0x50fe9e
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 0x50feb6
pop edi
pop esi
ret 4
Function at 0x5185c3
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 0x518718
mov al, byte [0x5d8050]
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, 0x5df5f0
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 0x518637
add edi, 0x400
inc ebx
cmp edi, 0x5e01f0
jl 0x518615
cmp ebx, 3
jl 0x518718
mov eax, dword [0x5e01f0]
lea ecx, [ebp - 0x504]
shl eax, 0xa
add eax, esi
inc dword [0x5e01f0]
push ecx
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [0x5e01f0]
push 3
xor edx, edx
pop ecx
div ecx
lea eax, [ebp - 4]
push eax
mov dword [0x5e01f0], 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 0x5ce3b8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x518718
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 0x51871d
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 0x5c8218
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