joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492d0d
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
cmp dword [ebx], 0xffffffff
je 0x492d84
push 2
push dword [ebx]
call sub.wsock32.dll_shutdown
xor eax, eax
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
push edx
push 0x8004667e
push dword [ebx]
call sub.wsock32.dll_ioctlsocket
mov byte [ebp - 5], 0
push 1
lea ecx, [ebp - 5]
push ecx
push 0xffffff7f
push 0xffff
push dword [ebx]
call sub.wsock32.dll_setsockopt
mov word [ebp - 0xc], 1
mov word [ebp - 0xa], 0
push 4
lea eax, [ebp - 0xc]
push eax
push 0x80
push 0xffff
push dword [ebx]
call sub.wsock32.dll_setsockopt
push dword [ebx]
call sub.wsock32.dll_closesocket
mov dword [ebx], 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x492d89
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x492d9e
xor eax, eax
pop ecx
pop ebp
ret
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov eax, dword [ecx]
mov dword [ebp - 4], eax
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
test esi, esi
je 0x492de4
mov ebx, esi
test ebx, ebx
jle 0x492de4
push 0
push ebx
mov eax, esi
sub eax, ebx
add eax, dword [ebp + 0xc]
push eax
push edi
call sub.wsock32.dll_recv
test eax, eax
jle 0x492de4
sub ebx, eax
test ebx, ebx
jg 0x492dc9
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x492de9
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x10c]
jmp 0x492e04
test edx, edx
jg 0x492e0f
mov eax, 1
jmp 0x492e63
xor ecx, ecx
mov dword [esi], ecx
xor eax, eax
jmp 0x492e1e
cmp ebx, dword [esi + eax*4 + 4]
je 0x492e22
inc eax
cmp eax, dword [esi]
jb 0x492e17
cmp eax, dword [esi]
jne 0x492e31
cmp dword [esi], 0x40
jae 0x492e31
mov dword [esi + eax*4 + 4], ebx
inc dword [esi]
mov dword [ebp - 8], edx
xor edx, edx
mov dword [ebp - 4], edx
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push esi
lea eax, [ebx + 1]
push eax
call sub.wsock32.dll_select
test eax, eax
jle 0x492e63
push esi
push ebx
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
je 0x492e61
mov eax, 1
jmp 0x492e63
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x492ea5
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
movzx eax, di
push eax
push esi
push 0x49df1c
call fcn.00492d08
add esp, 0xc
push 0x10
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.00492abc
add esp, 0xc
mov word [ebp - 0x14], 2
push edi
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
push esi
call sub.wsock32.dll_inet_addr
cmp eax, 0xffffffff
je 0x492eff
push esi
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x10], eax
jmp 0x492f20
push esi
call fcn.00492d89
pop ecx
test eax, eax
je 0x492f1c
push esi
call fcn.00492d89
pop ecx
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x10], eax
jmp 0x492f20
xor eax, eax
jmp 0x492f7f
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebx], eax
cmp dword [ebx], 0xffffffff
jne 0x492f36
xor eax, eax
jmp 0x492f7f
mov dword [ebp - 4], 0x4e20
push 4
lea edx, [ebp - 4]
push edx
push 0x1006
push 0xffff
push dword [ebx]
call sub.wsock32.dll_setsockopt
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push dword [ebx]
call sub.wsock32.dll_connect
inc eax
jne 0x492f7a
push 0x49df39
call fcn.00492d08
pop ecx
mov eax, ebx
call fcn.00492d0d
xor eax, eax
jmp 0x492f7f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x493555
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe70
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push 0x49e187
push 0
push 0
call fcn.00406638
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
mov dword [0x49bef0], eax
lea eax, [ebp - 0x190]
push eax
push 0x202
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x493626
test si, si
jbe 0x4935a6
mov word [0x49bde8], si
cmp dword [ebp + 0x14], 0
jbe 0x4935b5
mov edx, dword [ebp + 0x14]
mov dword [0x49beec], edx
test edi, edi
jbe 0x4935de
push pe_nt_image_headers32
push 0
push 0x49bdea
call fcn.00492abc
add esp, 0xc
push edi
push dword [ebp + 0xc]
push 0x49bdea
call fcn.00492aa8
add esp, 0xc
push 0x49bdea
call sub.kernel32.dll_OutputDebugStringA
call fcn.00493279
cmp eax, 0x3e8
jle 0x493611
add eax, 0xfffffc18
cmp eax, 0x14
jle 0x493603
mov eax, 0x14
imul edx, eax, 0xea60
push edx
call sub.kernel32.dll_Sleep_1
jmp 0x49361b
push 0xea60
call sub.kernel32.dll_Sleep_1
call sub.wsock32.dll_WSACleanup
push ebx
call sub.kernel32.dll_CloseHandle
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
xor esi, esi
test ebx, ebx
jle 0x49365a
push 0
push ebx
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push edi
call sub.wsock32.dll_send
test eax, eax
jle 0x49365c
add esi, eax
sub ebx, eax
test ebx, ebx
jg 0x49363f
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x493661
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x49366a
mov eax, dword [ebp - 4]
add esp, 0xfffffef8
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0x210c]
lea esi, [ebp - 4]
mov edx, dword [eax]
mov dword [esi], edx
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [esi]
push 0x49e193
call fcn.00492d08
add esp, 0xc
push esi
mov esi, 0x49bf1c
lea edi, [ebp - 0x1008]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
mov esi, 0x49cf1c
lea edi, [ebp - 0x2008]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop esi
xor eax, eax
mov dword [ebx], eax
xor eax, eax
jmp 0x4936e1
mov edx, dword [ebx + eax*4 + 4]
cmp edx, dword [esi]
je 0x4936e5
inc eax
cmp eax, dword [ebx]
jb 0x4936d8
cmp eax, dword [ebx]
jne 0x4936f6
cmp dword [ebx], 0x40
jae 0x4936f6
mov ecx, dword [esi]
mov dword [ebx + eax*4 + 4], ecx
inc dword [ebx]
xor eax, eax
jmp 0x493704
mov edx, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 8]
je 0x493708
inc eax
cmp eax, dword [ebx]
jb 0x4936fa
cmp eax, dword [ebx]
jne 0x49371a
cmp dword [ebx], 0x40
jae 0x49371a
mov ecx, dword [ebp - 8]
mov dword [ebx + eax*4 + 4], ecx
inc dword [ebx]
push 0
push 0
push 0
push ebx
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x4937e9
push ebx
push dword [esi]
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
je 0x493788
push 0x1000
push 0
lea eax, [ebp - 0x1008]
push eax
call fcn.00492abc
add esp, 0xc
push 0
push 0x1000
lea edx, [ebp - 0x1008]
push edx
push dword [esi]
call sub.wsock32.dll_recv
mov edi, eax
test edi, edi
jle 0x4937e9
push edi
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 8]
call fcn.0049362d
add esp, 0xc
test eax, eax
jle 0x4937e9
cmp edi, eax
jne 0x4937e9
push ebx
push dword [ebp - 8]
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
je 0x4936d0
push 0x1000
push 0
lea edx, [ebp - 0x1008]
push edx
call fcn.00492abc
add esp, 0xc
push 0
push 0x1000
lea ecx, [ebp - 0x1008]
push ecx
push dword [ebp - 8]
call sub.wsock32.dll_recv
mov edi, eax
test edi, edi
jle 0x4937e9
push edi
lea eax, [ebp - 0x1008]
push eax
push dword [esi]
call fcn.0049362d
add esp, 0xc
test eax, eax
jle 0x4937e9
cmp edi, eax
je 0x4936d0
mov eax, esi
call fcn.00492d0d
lea eax, [ebp - 8]
call fcn.00492d0d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4088fa
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [edx]
mov edi, 0x754e30d2
cmp byte [edx + 0x283aab9b], ah
cli
mov al, byte [ebp - 0x3b8f9a59]
mov bl, 0x87
stosb byte es:[edi], al
xor byte [edx - 0x64], 0x3c
lds esi, [ebx + 0x2e]
rol ch, 1
stosb byte es:[edi], al
inc eax
invalid

Function at 0x415e35
Capabilities:
Encode data using xor

Disassembly:
scasd eax, dword es:[edi]
adc dword [ebx], ebp
sbb dword [ecx - 0x782efefd], 0xfffffff6
pop ds
jne 0x415e49
mov edx, 0xf25889
retf 0x8e5
pushfd
out dx, al
sub eax, 0x4c644e03
dec esp
arpl word [ecx + 0x34e58c51], dx
stc
dec eax
je 0x415e3a
mov eax, dword cs:[0x44f4c80d]
add byte [ecx + 0x1abb0384], 0x13
mov al, 0x8f
je 0x415df2
enter 0x44f4, 0xffffffffffffff80
add dword [ebx + eax - 0x4fece545], 0x2e9b748f
or byte [esi + 6], bl
or byte cs:[esi + 6], bl
or al, 0x67
mov byte [edx - 0x2e], ch
jne 0x415ec1
cmp al, 0x13
or byte [ebx + 0x5e], bh
fcom qword [edi]
js 0x415ec7
add al, 0x33
cmp byte [edi - 0x3ec823bf], 0x98
xchg byte [edx - 0x7f728665], ch
outsd dx, dword [esi]
int1
popfd
xlatb
xlatb
lea ecx, [ebx - 0x6f92233b]
into
daa
mov al, byte [edx - 0x78]
out 0x42, al
inc ebx
push esp
dec ebp
mov dl, 0xb2
push 0xffffffffffffffc3
mov al, byte [0x625d4521]
invalid
dec ebp
mov dl, 0xb5
or al, 0xa
fistp qword [ecx + 0x42]
inc edx
and dword [esi - 0x29c253a5], 0xf6907de0
arpl si, bp
xor esp, dword [ecx - 0x44e1d6b8]
or byte [eax - 0xc], 0x8b
dec eax
sub dword [esi], ebx
mov ebx, 0x8bf44882
hlt
or dl, byte [ebp + 0x4161839e]
and ah, byte [ecx + 0x513b5105]
cmc
jecxz 0x415eb2
in eax, dx
mov bh, 0x7c
jge 0x415eab
sbb dword [edi - 0x26776baf], esp
retf
Function at 0x403548
Capabilities:
Create process on windows

Disassembly:
movzx ecx, word [esp + 4]
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0xc]
add ecx, 0xfffffc18
shr eax, 0x10
cmp ecx, 0xb
ja case.0x403567.1002
jmp dword [ecx*4 + 0x40362c]
mov eax, dword [edi + 0x1e64]
test eax, eax
je case.0x403567.1001
cmp eax, 1
je case.0x403567.1001
cmp eax, 2
jne case.0x403567.1002
mov byte [edi + 0x229b], 1
jmp case.0x403567.1002
mov ecx, edi
call fcn.00403759
jmp case.0x403567.1002
push 2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x403567.1002
call fcn.004037d0
jmp case.0x403567.1002
push 1
xor eax, eax
push eax
push eax
add edi, 0x24a8
push edi
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp case.0x403567.1002
mov dword [edi + 0x1e64], 1
call fcn.004026ff
jmp case.0x403567.1002
mov eax, edi
call fcn.0040377c
jmp case.0x403567.1002
mov esi, edi
call fcn.00403811
jmp case.0x403567.1002
lea esi, [edi + 0x2a18]
lea eax, [edi + 0x2b1c]
push esi
push eax
call sub.MSVCR80.dll_strcpy
pop ecx
pop ecx
push esi
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp case.0x403567.1002
and dword [edi + 0x1e64], 0
jmp 0x4035d3
cmp eax, 0x300
jne case.0x403567.1002
mov esi, edi
call fcn.004039d1
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x40365c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esi + 0x1f74], eax
imul eax, eax, 0x1c
add eax, 0x414f10
push eax
lea ecx, [esi + 0x29dc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 1
lea eax, [esi + 0x29f8]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esi, dword [esi + 0x1f74]
xor ebx, ebx
cmp esi, ebx
jne 0x4036bb
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x403747
cmp esi, 7
jne 0x403747
push edi
mov edi, 0x103
push edi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.MSVCR80.dll_sprintf]
push 1
push 1
push str.http:__www.ff6677.com
lea eax, [ebp - 0x108]
push str._s_Game_GameUninstall.aspx_params_daction_d
push eax
call esi
push edi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call sub.MSVCR80.dll_memset
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.online_log_open___s
push eax
call esi
add esp, 0x38
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x108]
call fcn.0040acc8
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040ba0c
leave
ret 4
Function at 0x4039d1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x200
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x208]
push eax
call sub.MSVCR80.dll_strlen
mov edi, eax
cmp edi, 0x104
pop ecx
jl 0x403a27
lea eax, [esi + 0x2b1c]
push eax
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x403b1a
lea eax, [ebp - 0x208]
call fcn.0040ac28
test eax, eax
jge 0x403a42
mov byte [esi + 0x29d8], 1
jmp 0x403b1a
mov dword [esi + 0x1f7c], eax
mov al, byte [ebp + edi - 0x209]
cmp al, 0x5c
mov byte [esi + 0x29d8], 0
je 0x403a71
cmp al, 0x2f
je 0x403a71
lea eax, [ebp - 0x208]
push 0x40d844
push eax
call sub.MSVCR80.dll_strcat
pop ecx
pop ecx
lea ebx, [esi + 0x229c]
push ebx
lea edi, [ebp - 0x208]
call fcn.0040ac6f
test al, al
pop ecx
jne 0x403ac8
push ebx
call sub.MSVCR80.dll_strlen
mov edi, eax
pop ecx
lea eax, [ebp - 0x208]
push eax
call sub.MSVCR80.dll_strlen
lea eax, [edi + eax + 1]
cmp eax, 0x103
pop ecx
jae 0x403af8
push ebx
lea eax, [ebp - 0x208]
push eax
lea eax, [esi + 0x2b1c]
push str._s_s_
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
jmp 0x403af8
lea eax, [ebp - 0x208]
push eax
call sub.MSVCR80.dll_strlen
cmp eax, 0x103
pop ecx
jae 0x403af8
lea eax, [ebp - 0x208]
push eax
lea eax, [esi + 0x2b1c]
push 0x40d850
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
lea eax, [ebp - 0x218]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040ba0c
leave
ret
Function at 0x403ea6
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2d5c
call fcn.0040c2e0
mov eax, dword [0x411020]
xor eax, esp
mov dword [esp + 0x2d58], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.MutexOnlineDownLoad
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403f09
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push 0x40d930
push 0x40d938
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x403ffb
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x411628
push 0x67
push ebx
call edi
push 0x64
push 0x4115c0
push 0x6d
push ebx
call edi
push ebx
lea eax, [esp + 0x3c]
push eax
call fcn.00401cd1
push 0x40d8e4
lea eax, [esp + 0x2c5c]
push 0x40d950
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x1c7
mov dword [esp + 0x24], 0x145
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
push esi
push esi
lea eax, [esp + 0x14]
push eax
push 0x10cf0000
lea eax, [esp + 0x2c68]
push eax
push eax
lea ecx, [esp + 0x50]
call fcn.00401f40
push 0x6d
push ebx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov ebx, eax
jmp 0x403fc0
lea eax, [esp + 0x1c]
push eax
push ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x403fc0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
call edi
test eax, eax
jne 0x403f96
mov eax, dword [0x414eb8]
cmp eax, esi
je 0x403feb
mov edi, eax
call fcn.00401585
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [0x414eb8], esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x38]
push eax
call fcn.00401e2f
mov eax, esi
mov ecx, dword [esp + 0x2d64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040ba0c
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404114
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
lea edi, [esi + 8]
push edi
mov dword [esi], eax
mov byte [esi + 0x317], 0
call sub.MSVCR80.dll_strcpy
mov ecx, edi
call fcn.0040a499
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x4040fa
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x20
mov dword [esi + 4], eax
pop edi
pop ebp
ret 4
Function at 0x405694
Capabilities:
Create process on windows

Disassembly:
push esi
push 5
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jg 0x40572e
sub eax, 0
push ebx
push edi
mov edi, dword [sym.imp.MSVCR80.dll_sprintf_s]
mov ebx, 0x105
je 0x405702
dec eax
add esi, 0x212
dec eax
je 0x4056f7
dec eax
je 0x4056f0
sub eax, 8
je 0x4056de
push 0x40dd70
push ebx
push esi
call edi
add esp, 0xc
jmp 0x405714
push dword [esp + 0x10]
push 0x40dd3c
push ebx
push esi
call edi
add esp, 0x10
jmp 0x405714
push 0x40dd64
jmp 0x40570d
push dword [esp + 0x10]
push 0x40dd54
jmp 0x4056e7
add esi, 0x212
push 0x40dd2c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x40dd7c
push ebx
push esi
call edi
add esp, 0x14
pop edi
xor al, al
pop ebx
jmp 0x405730
mov al, 1
pop esi
ret 4
Function at 0x407200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40c54c
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebp
push esi
mov eax, dword [0x411020]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov ecx, edi
mov dword [esp + 0x38], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], 1
cmp esi, eax
jbe 0x40725b
call ebp
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x58], 0x10
mov ecx, dword [esp + 0x44]
jae 0x40726a
lea ecx, [esp + 0x44]
cmp byte [ecx + esi], 0x5c
je 0x407279
cmp esi, eax
jae 0x407279
add esi, 1
jmp 0x407251
sub eax, esi
push eax
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
mov ecx, edi
mov byte [esp + 0x3c], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x30
ret
Function at 0x4072d0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x204
mov eax, dword [0x411020]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
push esi
xor ecx, ecx
mov al, 1
push edi
lea esp, [esp]
movzx edx, al
mov byte [esp + edx + 0x10], cl
mov dl, al
and dl, 0x80
mov byte [esp + ecx + 0x110], al
add ecx, 1
neg dl
sbb dl, dl
mov bl, al
add bl, bl
and edx, 0x1b
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x4072f0
mov al, 1
mov ecx, 0x412290
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
add al, al
and edx, 0x1b
xor al, dl
cmp ecx, 0x4122b8
jl 0x407324
mov dword [0x411690], 0x63
mov dword [0x414844], 0
mov edx, 1
movzx eax, byte [esp + edx + 0x10]
lea ecx, [esp + 0x20f]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
movzx eax, al
mov dword [edx*4 + 0x411690], eax
mov dword [eax*4 + 0x4146b8], edx
add edx, 1
cmp edx, 0x100
jl 0x407360
xor ecx, ecx
mov dl, byte [ecx + 0x411690]
mov al, dl
and al, 0x80
neg al
sbb al, al
mov bl, dl
add bl, bl
movzx edx, dl
and eax, 0x1b
xor al, bl
movzx esi, al
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx + 0x4142b8], eax
ror eax, 8
mov dword [ecx + 0x413eb8], eax
ror eax, 8
mov dword [ecx + 0x413ab8], eax
ror eax, 8
mov dword [ecx + 0x4136b8], eax
mov al, byte [ecx + 0x4146b8]
test al, al
je 0x407459
movzx edx, al
movzx esi, byte [esp + edx + 0x10]
movzx eax, byte [esp + 0x1b]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [esp + 0x1d]
add eax, esi
movzx ebp, byte [esp + edx + 0x110]
cdq
idiv edi
movzx eax, byte [esp + 0x19]
add eax, esi
movzx ebx, byte [esp + edx + 0x110]
cdq
idiv edi
movzx eax, byte [esp + 0x1e]
add eax, esi
mov esi, 0xff
movzx edi, byte [esp + edx + 0x110]
cdq
idiv esi
movzx eax, byte [esp + edx + 0x110]
jmp 0x407461
xor ebp, ebp
xor ebx, ebx
xor edi, edi
xor eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, ebp
mov dword [ecx + 0x4132b8], eax
ror eax, 8
mov dword [ecx + 0x412eb8], eax
ror eax, 8
mov dword [ecx + 0x411e90], eax
ror eax, 8
mov dword [ecx + 0x411a90], eax
add ecx, 4
cmp ecx, 0x400
jl 0x4073a2
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ba0c
add esp, 0x204
ret