joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52413a
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], 0x64
mov eax, ebx
cdq
idiv dword [ebp - 4]
push esi
push edi
mov edi, ecx
xor esi, esi
mov ecx, dword [edi]
cmp eax, 2
je 0x52416e
push str.Couldnt_set_desired_mode
push ecx
call fcn.00510cc2
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x5241c3
cmp ebx, 0xc8
je 0x524185
push ebx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.00510c4e
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x524196
mov ecx, edi
call fcn.00523401
jmp 0x5241bf
cmp eax, 0x14
jne 0x5241a4
mov ecx, edi
call fcn.00523447
jmp 0x5241bf
cmp eax, 0x15
jne 0x5241ad
push 0xd
jmp 0x5241b4
cmp eax, 0x16
jne 0x5241c1
push 0xe
xor edx, edx
mov ecx, edi
inc edx
call fcn.00523808
pop ecx
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5265fa
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x526605
jmp dword [eax*4 + 0x52665e]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, cl
ret

Function at 0x526776
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x5267b0
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.00510cc2
add esp, 0xc
jmp 0x5267d8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x5267cb
shr eax, 8
test al, al
jne 0x5267cb
xor eax, eax
jmp 0x5267db
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.00510cc2
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055daac
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov esi, ecx
mov byte [ebp - 2], al
push 3
lea eax, [ebp - 4]
mov byte [ebp - 4], 0xff
push eax
push dword [esi + 0x130]
mov edi, dword [esi]
mov ebx, edx
mov byte [ebp - 3], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x526a19
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00510cc2
add esp, 0xc
push dword [ebp + 8]
mov ecx, dword [esi]
mov edx, str.SENT
push ebx
call fcn.005268e9
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5271b8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x914
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
push esi
mov dword [ebp - 0x90c], eax
push edi
mov esi, dword [eax]
mov ecx, esi
mov dword [ebp - 0x910], esi
mov ebx, dword [esi + 0x8684]
mov eax, dword [ebx + 0x1eb4]
sub eax, dword [ebx + 0x1eb0]
add eax, 2
push eax
lea eax, [ebx + 0x1cb0]
push eax
push 0x3c
pop edx
call fcn.00526cb5
mov eax, dword [ebx + 0x1eb0]
pop ecx
pop ecx
movzx ecx, byte [eax]
inc eax
mov dword [ebx + 0x1eb0], eax
cmp ecx, 0x18
je 0x52732b
cmp ecx, 0x23
je 0x527307
cmp ecx, 0x27
jne 0x5273bd
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x908]
push 0x800
push eax
call fcn.0051b484
mov ebx, dword [ebx + 0x1cac]
add esp, 0x1c
push 4
pop edi
test ebx, ebx
je 0x5272da
mov ecx, dword [ebx]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52726a
sub ecx, edx
lea esi, [edi + 1]
add esi, ecx
cmp esi, 0x7fa
jae 0x5272cd
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x108]
push eax
push str._127_____127s
push dword [ebx]
call dword [sym.imp.MSVCR120.dll_sscanf]
lea eax, [ebp - 0x88]
push eax
push 1
lea eax, [ebp - 0x108]
push eax
push 0
mov eax, 0x800
sub eax, edi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x908]
add eax, edi
push eax
call fcn.0051b484
add esp, 0x2c
mov edi, esi
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x527265
mov esi, dword [ebp - 0x910]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, edi
push 0x59e46c
push eax
lea eax, [ebp - 0x908]
add eax, edi
push eax
call fcn.0051b484
add esp, 0x14
add edi, 2
jmp 0x527371
add ebx, 0x1c28
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x527312
push 0xf0
mov eax, 0xff
push eax
push ebx
push 0
push 0x23
jmp 0x52734d
add ebx, 0x1c08
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x527336
push 0xf0
mov eax, 0xff
push eax
push ebx
push 0
push 0x18
push 0xfa
push eax
push str._c_c_c_c_s_c_c
sub ecx, edx
lea eax, [ebp - 0x908]
push 0x800
push eax
lea edi, [ecx + 6]
call fcn.0051b484
add esp, 0x28
push 0
push edi
lea eax, [ebp - 0x908]
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5273a6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00510cc2
add esp, 0xc
lea eax, [edi - 2]
mov ecx, esi
push eax
lea eax, [ebp - 0x906]
push eax
push 0x3e
pop edx
call fcn.00526cb5
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055daac
mov esp, ebp
pop ebp
ret
Function at 0x5273ce
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
mov dword [ebp - 0xc], eax
push ebx
push esi
mov eax, dword [eax]
mov dword [ebp - 8], eax
push edi
mov ebx, dword [eax + 0x8684]
cmp edx, 0x1f
jne 0x52751a
lea eax, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], eax
cmp eax, edi
jae 0x527407
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x527412
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x52741d
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp - 4], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [ebp - 4]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x52744d
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x527457
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x527461
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x52746b
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x527476
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x527481
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
lea esi, [ebx + 0x1cb0]
mov dword [ebx + 0x1eb4], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
mov edi, dword [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
pop edx
call fcn.00526cb5
pop ecx
pop ecx
push 0
push 3
push esi
mov esi, dword [ebp - 0xc]
push dword [esi + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5274da
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00510cc2
add esp, 0xc
push 4
lea edx, [ebx + 0x1cb3]
mov ecx, esi
call fcn.005278a1
pop ecx
push 0
push 2
lea eax, [ebx + 0x1cb7]
push eax
push dword [esi + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x52751a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00510cc2
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5293e7
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
and dword [ebp - 0xc], edi
and dword [eax], edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], edi
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x52954c
push esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x529538
push ebx
cmp dword [esi + 4], 2
jne 0x5294d8
cmp dword [esi + 0x18], 0
je 0x5294d8
cmp dword [esi + 0x10], 0
jbe 0x5294d8
cmp dword [esi + 0x10], 0x10
jb 0x5294d8
push 0x20
call dword [0x5c5b5c]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x52952c
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
and dword [ebx + 0x18], 0
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push 0x10
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0x10
call dword [0x5c5b5c]
mov dword [ebx + 0x18], eax
pop ecx
test eax, eax
je 0x529520
mov esi, dword [esi + 0x18]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x14], 0
je 0x5294c0
push dword [esi + 0x14]
call dword [0x5c643c]
mov dword [ebx + 0x14], eax
pop ecx
test eax, eax
je 0x529509
mov edi, dword [ebp - 4]
test edi, edi
mov eax, dword [ebp - 0xc]
cmove edi, ebx
mov dword [ebp - 4], edi
test eax, eax
je 0x5294d5
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x529425
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 8], 0
pop ebx
je 0x5294f9
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x529531
mov ecx, dword [ebp - 4]
call fcn.005293ab
xor edi, edi
jmp 0x529544
push 8
pop esi
push dword [ebx + 0x18]
call dword [0x5c6c40]
push ebx
call dword [0x5c6c40]
pop ecx
pop ecx
jmp 0x5294e9
push 8
pop esi
push ebx
call dword [0x5c6c40]
jmp 0x52951d
push 8
pop esi
jmp 0x5294e9
mov edi, dword [ebp - 4]
test edi, edi
jne 0x529544
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x52d195
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x52d1be
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x52d1b1
xor eax, eax
jmp 0x52d212
push dword [eax + 8]
push dword [ebp + 8]
push 1
push edi
call ecx
jmp 0x52d1ef
cmp dword [esi + 8], 0
jne 0x52d1e0
push 0x5a07fc
push dword [eax + 8]
call dword [sym.imp.MSVCR120.dll_fopen]
mov dword [esi + 8], eax
pop ecx
pop ecx
test eax, eax
jne 0x52d1e0
or eax, 0xffffffff
jmp 0x52d212
push dword [esi + 8]
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.MSVCR120.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x52d210
cmp dword [esi + 8], eax
je 0x52d20a
push dword [esi + 8]
call dword [sym.imp.MSVCR120.dll_fclose]
and dword [esi + 8], edi
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x52e073
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [ecx + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a8]
test esi, esi
jne 0x52e088
mov esi, dword [ecx + 0x28]
push dword [ecx + 0x24]
push dword [ecx + 0x20]
call fcn.00519343
push edx
push eax
call fcn.00519359
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x52e0d2
push dword [ebx + 0x124]
push dword [ebx + 0x120]
call fcn.00519343
push edx
push eax
call fcn.00519359
mov ecx, dword [edi + 0x19c]
add esp, 0x10
sub ecx, eax
cmp esi, ecx
cmovl ecx, esi
mov esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x52f979
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0xd4
mov dword [ebp - 8], edx
call dword [0x5c5b5c]
mov esi, eax
pop ecx
test esi, esi
je 0x52fa74
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [esi + 0xc]
push edi
push 0x40
pop edi
mov dword [esi], 0x58bef0
lea eax, [ecx + 0x5c]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
cmp ebx, edi
jbe 0x52f9e7
push ecx
call dword [0x58bef0]
push ebx
push dword [ebp - 8]
push dword [esi + 4]
call dword [0x58bef4]
mov eax, dword [esi + 8]
push dword [esi + 4]
add eax, 0x5c
push eax
mov dword [ebp - 8], eax
call dword [0x58bef8]
add esp, 0x18
push 0x10
pop ebx
mov dword [ebp + 8], ebx
push dword [esi + 4]
call dword [0x58bef0]
push dword [esi + 8]
call dword [0x58bef0]
pop ecx
xor eax, eax
pop ecx
test ebx, ebx
je 0x52fa48
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov al, byte [edi]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
call dword [0x58bef4]
mov al, byte [edi]
xor al, 0x5c
inc edi
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
call dword [0x58bef4]
add esp, 0x18
dec ebx
jne 0x52fa0a
push 0x40
pop edi
cmp dword [ebp + 8], edi
jae 0x52fa70
mov eax, dword [ebp - 0x10]
sub edi, eax
push 1
push 0x58362e
push dword [esi + 4]
call dword [0x58bef4]
push 1
push 0x58362f
push dword [esi + 8]
call dword [0x58bef4]
add esp, 0x18
dec edi
jne 0x52fa4a
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x530c1f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
or edx, 0xffffffff
push edi
mov edi, ecx
test esi, esi
jle 0x530c42
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x58c170]
inc edi
dec esi
jne 0x530c2c
pop edi
mov eax, edx
pop esi
ret

Function at 0x53255b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x1c]
push edi
push 0xfde9
lea edi, [esi + 8]
mov edx, edi
call fcn.0045420a
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0x20]
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push ebx
cmovae eax, dword [ebp - 0x1c]
push ecx
push dword [ebp - 0xc]
mov dword [ebp - 0x20], ebx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x5325af
mov edi, dword [edi]
push ebx
xor eax, eax
lea ecx, [ebp - 0x1c]
push 1
mov word [edi], ax
call fcn.00401d3f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055daac
mov esp, ebp
pop ebp
ret

Function at 0x532a96
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
or edx, 0xffffffff
push edi
mov edi, ecx
test esi, esi
jle 0x532ab9
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x5c6c60]
inc edi
dec esi
jne 0x532aa3
pop edi
mov eax, edx
pop esi
ret
Function at 0x532b6c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
call fcn.00532a96
xor edi, edi
mov edx, eax
test ebx, ebx
jle 0x532b97
lea ecx, [edi + edx]
and ecx, 0x3ff
mov al, byte [ecx + 0x5c6c60]
xor byte [esi], al
inc esi
inc edi
cmp edi, ebx
jl 0x532b80
pop edi
pop esi
mov eax, edx
pop ebx
ret

Function at 0x532b9d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, ecx
test edx, edx
jle 0x532bc4
lea eax, [edi + ebx]
and eax, 0x3ff
mov al, byte [eax + 0x5c6c60]
xor byte [esi], al
inc esi
inc edi
cmp edi, edx
jl 0x532bae
call fcn.00532a96
sub eax, ebx
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret

Function at 0x532bd5
Capabilities:
Create pipe
Create process on windows
Create reverse shell
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x1c]
xor esi, esi
mov dword [ebp - 0x1c], 0xc
push esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esi
push eax
mov ebx, ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 1
push dword [ebp - 4]
call esi
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call edi
push 0
push 1
push dword [ebp - 8]
call esi
push 0x40
xor esi, esi
lea eax, [ebp - 0x74]
push esi
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [ebp - 0xc]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x38], eax
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x2c], esi
stosd dword es:[edi], eax
or dword [ebp - 0x4c], 0x100
mov dword [ebp - 0x78], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push 0x8000000
push 1
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x532cb5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x28]
call esi
mov al, 1
jmp 0x532cb7
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x533397
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x5333a4
mov eax, dword [esi]
jmp 0x5333a6
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5333bc
shr eax, 4
not eax
and eax, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x5333e0
cmp eax, 3
je 0x5333e0
cmp eax, 0x7b
je 0x5333e0
mov ecx, esi
call fcn.00533321
test al, al
je 0x5333e0
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x5333e4
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x5c
mov eax, 0x579cb5
call fcn.00561213
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x5333fc
mov eax, dword [esi]
jmp 0x5333fe
mov eax, esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x533412
mov al, 1
jmp 0x533572
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.00407797
xor edi, edi
mov byte [ebp - 4], 1
push edi
mov edx, esi
lea ecx, [ebp - 0x5c]
call fcn.00532daf
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x533540
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x53346c
lea eax, [ecx - 1]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0043c67f
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x5334f9
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
call fcn.0040a660
test al, al
jne 0x5334f9
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
test eax, eax
jne 0x5334f9
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x68]
call fcn.004079a0
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.00532fc4
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.0040a660
test al, al
jne 0x5334ea
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401f92
push edi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401d84
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x53344a
jmp 0x5334f9
push edi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00401d84
mov edi, dword [ebp - 0x64]
jmp 0x53353b
lea eax, [edi - 0x18]
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x533512
push 0xffffffffffffffff
push 0
push eax
call fcn.00401f92
push 0
add edi, 0xffffffe8
push 1
mov ecx, edi
call fcn.00401d84
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x64], edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x533578
cmp dword [ebp - 0x68], edi
jne 0x5334fe
cmp dword [esi + 0x14], 8
jb 0x533548
mov esi, dword [esi]
push esi
call ebx
test eax, eax
setne bl
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.00401d84
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401d84
lea ecx, [ebp - 0x68]
call fcn.00409074
mov al, bl
call fcn.005611c2
ret
xor bl, bl
jmp 0x533550

Function at 0x53390a
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov eax, ecx
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x536152
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x10]
push 0x78
call fcn.0046ee45
mov edx, dword [ebp - 8]
mov edi, str.91__
mov esi, dword [ebp + 0xc]
sub edi, edx
push 0x38
pop ebx
movzx ecx, byte [edi + edx]
dec ecx
mov eax, ecx
and ecx, 7
sar eax, 3
mov al, byte [eax + esi]
test byte [ecx*4 + 0x58d2a0], al
setne al
mov byte [edx], al
inc edx
dec ebx
jne 0x536178
mov esi, dword [ebp - 8]
xor edi, edi
mov edx, edi
push 0x1c
mov dword [ebp + 0xc], edx
pop eax
movzx edx, byte [edx + 0x58d260]
mov ebx, edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
lea edi, [edx - 0x1c]
cmp ebx, eax
push 0x38
pop ecx
cmovl ecx, eax
mov eax, edi
cmp edx, ecx
push 0x1c
cmovl eax, edx
mov al, byte [eax + esi]
mov byte [ebx + esi + 0x38], al
inc ebx
inc edx
inc edi
pop eax
cmp ebx, 0x38
jl 0x5361b7
xor edi, edi
mov ebx, edi
movzx eax, byte [ebx + 0x58d270]
cmp byte [eax + esi + 0x37], 0
je 0x536200
mov eax, ebx
push 6
pop ecx
cdq
idiv ecx
mov ecx, dword [edx*4 + 0x58d2a0]
sar ecx, 2
or byte [eax + esi + 0x70], cl
inc ebx
cmp ebx, 0x30
jl 0x5361dc
movzx ecx, byte [esi + 0x70]
movzx eax, byte [esi + 0x72]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x74]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x76]
shl ecx, 8
or ecx, eax
mov eax, dword [ebx + 0x8c]
push 0x1c
mov dword [eax + edx*8], ecx
movzx ecx, byte [esi + 0x71]
movzx eax, byte [esi + 0x73]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x75]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x77]
shl ecx, 8
or ecx, eax
mov eax, dword [ebx + 0x8c]
mov dword [eax + edx*8 + 4], ecx
inc edx
mov dword [ebp + 0xc], edx
pop eax
cmp edx, 0x10
jl 0x5361a5
cmp dword [ebp + 8], 1
jne 0x5362af
mov esi, dword [ebp - 4]
push 0x7c
pop ebx
mov edx, dword [esi + 0x8c]
mov ecx, dword [edi + edx]
mov eax, dword [ebx + edx - 4]
mov dword [edi + edx], eax
lea edi, [edi + 8]
mov dword [ebx + edx - 4], ecx
mov edx, dword [esi + 0x8c]
mov ecx, dword [edi + edx - 4]
mov eax, dword [ebx + edx]
mov dword [edi + edx - 4], eax
mov dword [ebx + edx], ecx
sub ebx, 8
cmp ebx, 0x3c
jg 0x536279
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor al, al
mov edi, esi
rep stosb byte es:[edi], al
push esi
call dword [sym.imp.MSVCR120.dll_free]
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8