joyce8/EMBER2024-capa huggingface dataset:
Function at 0x525e34
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 0x525e68
push str.Couldnt_set_desired_mode
push ecx
call fcn.005129bc
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x525ebd
cmp ebx, 0xc8
je 0x525e7f
push ebx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.00512948
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x525e90
mov ecx, edi
call fcn.005250fb
jmp 0x525eb9
cmp eax, 0x14
jne 0x525e9e
mov ecx, edi
call fcn.00525141
jmp 0x525eb9
cmp eax, 0x15
jne 0x525ea7
push 0xd
jmp 0x525eae
cmp eax, 0x16
jne 0x525ebb
push 0xe
xor edx, edx
mov ecx, edi
inc edx
call fcn.00525502
pop ecx
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5282f4
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x5282ff
jmp dword [eax*4 + 0x528358]
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 0x528470
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x5ca1c8]
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 0x5284aa
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.005129bc
add esp, 0xc
jmp 0x5284d2
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x5284c5
shr eax, 8
test al, al
jne 0x5284c5
xor eax, eax
jmp 0x5284d5
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.005129bc
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055fedc
mov esp, ebp
pop ebp
ret

Function at 0x5286cb
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 0x528713
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.005129bc
add esp, 0xc
push dword [ebp + 8]
mov ecx, dword [esi]
mov edx, str.SENT
push ebx
call fcn.005285e3
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x528eb2
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x914
mov eax, dword [0x5ca1c8]
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.005289af
mov eax, dword [ebx + 0x1eb0]
pop ecx
pop ecx
movzx ecx, byte [eax]
inc eax
mov dword [ebx + 0x1eb0], eax
cmp ecx, 0x18
je 0x529025
cmp ecx, 0x23
je 0x529001
cmp ecx, 0x27
jne 0x5290b7
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x908]
push 0x800
push eax
call fcn.0051d17e
mov ebx, dword [ebx + 0x1cac]
add esp, 0x1c
push 4
pop edi
test ebx, ebx
je 0x528fd4
mov ecx, dword [ebx]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x528f64
sub ecx, edx
lea esi, [edi + 1]
add esi, ecx
cmp esi, 0x7fa
jae 0x528fc7
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.0051d17e
add esp, 0x2c
mov edi, esi
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x528f5f
mov esi, dword [ebp - 0x910]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, edi
push 0x5a1bd4
push eax
lea eax, [ebp - 0x908]
add eax, edi
push eax
call fcn.0051d17e
add esp, 0x14
add edi, 2
jmp 0x52906b
add ebx, 0x1c28
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52900c
push 0xf0
mov eax, 0xff
push eax
push ebx
push 0
push 0x23
jmp 0x529047
add ebx, 0x1c08
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x529030
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.0051d17e
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 0x5290a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.005129bc
add esp, 0xc
lea eax, [edi - 2]
mov ecx, esi
push eax
lea eax, [ebp - 0x906]
push eax
push 0x3e
pop edx
call fcn.005289af
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fedc
mov esp, ebp
pop ebp
ret
Function at 0x5290c8
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 0x529214
lea eax, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], eax
cmp eax, edi
jae 0x529101
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x52910c
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x529117
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 0x529147
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x529151
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x52915b
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x529165
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x529170
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x52917b
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.005289af
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 0x5291d4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.005129bc
add esp, 0xc
push 4
lea edx, [ebx + 0x1cb3]
mov ecx, esi
call fcn.0052959b
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 0x529214
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.005129bc
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52b0e1
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 0x52b246
push esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x52b232
push ebx
cmp dword [esi + 4], 2
jne 0x52b1d2
cmp dword [esi + 0x18], 0
je 0x52b1d2
cmp dword [esi + 0x10], 0
jbe 0x52b1d2
cmp dword [esi + 0x10], 0x10
jb 0x52b1d2
push 0x20
call dword [0x5ccf5c]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x52b226
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 [0x5ccf5c]
mov dword [ebx + 0x18], eax
pop ecx
test eax, eax
je 0x52b21a
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 0x52b1ba
push dword [esi + 0x14]
call dword [0x5cd43c]
mov dword [ebx + 0x14], eax
pop ecx
test eax, eax
je 0x52b203
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 0x52b1cf
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x52b11f
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 8], 0
pop ebx
je 0x52b1f3
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x52b22b
mov ecx, dword [ebp - 4]
call fcn.0052b0a5
xor edi, edi
jmp 0x52b23e
push 8
pop esi
push dword [ebx + 0x18]
call dword [0x5cdc40]
push ebx
call dword [0x5cdc40]
pop ecx
pop ecx
jmp 0x52b1e3
push 8
pop esi
push ebx
call dword [0x5cdc40]
jmp 0x52b217
push 8
pop esi
jmp 0x52b1e3
mov edi, dword [ebp - 4]
test edi, edi
jne 0x52b23e
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 0x52ee67
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 0x52ee90
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x52ee83
xor eax, eax
jmp 0x52eee4
push dword [eax + 8]
push dword [ebp + 8]
push 1
push edi
call ecx
jmp 0x52eec1
cmp dword [esi + 8], 0
jne 0x52eeb2
push 0x5a3fc8
push dword [eax + 8]
call dword [sym.imp.MSVCR120.dll_fopen]
mov dword [esi + 8], eax
pop ecx
pop ecx
test eax, eax
jne 0x52eeb2
or eax, 0xffffffff
jmp 0x52eee4
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 0x52eee2
cmp dword [esi + 8], eax
je 0x52eedc
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 0x52fd45
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 0x52fd5a
mov esi, dword [ecx + 0x28]
push dword [ecx + 0x24]
push dword [ecx + 0x20]
call fcn.0051b03d
push edx
push eax
call fcn.0051b053
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x52fda4
push dword [ebx + 0x124]
push dword [ebx + 0x120]
call fcn.0051b03d
push edx
push eax
call fcn.0051b053
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 0x53164b
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 [0x5ccf5c]
mov esi, eax
pop ecx
test esi, esi
je 0x531746
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [esi + 0xc]
push edi
push 0x40
pop edi
mov dword [esi], 0x58f6a0
lea eax, [ecx + 0x5c]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
cmp ebx, edi
jbe 0x5316b9
push ecx
call dword [0x58f6a0]
push ebx
push dword [ebp - 8]
push dword [esi + 4]
call dword [0x58f6a4]
mov eax, dword [esi + 8]
push dword [esi + 4]
add eax, 0x5c
push eax
mov dword [ebp - 8], eax
call dword [0x58f6a8]
add esp, 0x18
push 0x10
pop ebx
mov dword [ebp + 8], ebx
push dword [esi + 4]
call dword [0x58f6a0]
push dword [esi + 8]
call dword [0x58f6a0]
pop ecx
xor eax, eax
pop ecx
test ebx, ebx
je 0x53171a
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 [0x58f6a4]
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 [0x58f6a4]
add esp, 0x18
dec ebx
jne 0x5316dc
push 0x40
pop edi
cmp dword [ebp + 8], edi
jae 0x531742
mov eax, dword [ebp - 0x10]
sub edi, eax
push 1
push 0x58721e
push dword [esi + 4]
call dword [0x58f6a4]
push 1
push 0x58721f
push dword [esi + 8]
call dword [0x58f6a4]
add esp, 0x18
dec edi
jne 0x53171c
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5328f1
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 0x532914
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x58f960]
inc edi
dec esi
jne 0x5328fe
pop edi
mov eax, edx
pop esi
ret

Function at 0x534c1a
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 0x534c3d
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x5cdc60]
inc edi
dec esi
jne 0x534c27
pop edi
mov eax, edx
pop esi
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
call fcn.00534c1a
xor edi, edi
mov edx, eax
test ebx, ebx
jle 0x534d1b
lea ecx, [edi + edx]
and ecx, 0x3ff
mov al, byte [ecx + 0x5cdc60]
xor byte [esi], al
inc esi
inc edi
cmp edi, ebx
jl 0x534d04
pop edi
pop esi
mov eax, edx
pop ebx
ret

Function at 0x534d21
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 0x534d48
lea eax, [edi + ebx]
and eax, 0x3ff
mov al, byte [eax + 0x5cdc60]
xor byte [esi], al
inc esi
inc edi
cmp edi, edx
jl 0x534d32
call fcn.00534c1a
sub eax, ebx
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret
Function at 0x534d59
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 0x534e39
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 0x534e3b
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

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

Disassembly:
push 0x5c
mov eax, 0x57e3b3
call fcn.005635af
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x5355e2
mov eax, dword [esi]
jmp 0x5355e4
mov eax, esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x5355f8
mov al, 1
jmp 0x535763
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2c]
push esi
call fcn.00407617
mov byte [ebp - 4], 1
xor edi, edi
push edi
mov edx, esi
lea ecx, [ebp - 0x5c]
call fcn.00534f37
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x535725
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x535652
lea eax, [ecx - 1]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0043b904
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x5356df
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
call fcn.0040a539
test al, al
jne 0x5356df
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
test eax, eax
jne 0x5356df
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x68]
call fcn.00407820
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.00535172
mov byte [ebp - 4], 3
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.0040a539
test al, al
jne 0x5356d0
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401f12
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
push edi
push 1
call fcn.00401d04
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x535630
jmp 0x5356df
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
push edi
push 1
call fcn.00401d04
mov edi, dword [ebp - 0x64]
jmp 0x535720
add edi, 0xffffffe8
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x5356fa
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00401f12
push 0
push 1
mov ecx, edi
call fcn.00401d04
mov dword [ebp - 0x64], edi
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x535769
cmp dword [ebp - 0x68], edi
jne 0x5356e4
cmp dword [esi + 0x14], 8
jb 0x53572d
mov esi, dword [esi]
push esi
call ebx
test eax, eax
setne bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
push 0
push 1
call fcn.00401d04
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.00401d04
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00408f16
mov al, bl
call fcn.0056355e
ret
xor bl, bl
jmp 0x535735

Function at 0x535caf
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 0x5384f7
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.0046e062
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 + 0x590a00], al
setne al
mov byte [edx], al
inc edx
dec ebx
jne 0x53851d
mov esi, dword [ebp - 8]
xor edi, edi
mov edx, edi
push 0x1c
mov dword [ebp + 0xc], edx
pop eax
movzx edx, byte [edx + 0x590a60]
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 0x53855c
xor edi, edi
mov ebx, edi
movzx eax, byte [ebx + 0x5909d0]
cmp byte [eax + esi + 0x37], 0
je 0x5385a5
mov eax, ebx
push 6
pop ecx
cdq
idiv ecx
mov ecx, dword [edx*4 + 0x590a00]
sar ecx, 2
or byte [eax + esi + 0x70], cl
inc ebx
cmp ebx, 0x30
jl 0x538581
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 0x53854a
cmp dword [ebp + 8], 1
jne 0x538654
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 0x53861e
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
Function at 0x53866e
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebx]
mov ebx, dword [ecx + 0x8c]
add ebx, 8
mov dword [ebp - 4], 8
mov edi, dword [edi]
mov edx, edi
ror edx, 4
xor edx, dword [ebx - 8]
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x590e00]
xor ecx, dword [eax*4 + 0x591000]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
xor ecx, dword [eax*4 + 0x591200]
xor ecx, dword [edx*4 + 0x591400]
mov edx, dword [ebx - 4]
xor esi, ecx
xor edx, edi
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x590f00]
xor ecx, dword [eax*4 + 0x591100]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
xor ecx, dword [eax*4 + 0x591300]
xor ecx, dword [edx*4 + 0x591500]
xor esi, ecx
mov edx, esi
ror edx, 4
xor edx, dword [ebx]
lea ebx, [ebx + 0x10]
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x590e00]
xor ecx, dword [eax*4 + 0x591000]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
xor ecx, dword [eax*4 + 0x591200]
xor ecx, dword [edx*4 + 0x591400]
mov edx, dword [ebx - 0xc]
xor edi, ecx
xor edx, esi
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x590f00]
xor ecx, dword [eax*4 + 0x591100]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
xor ecx, dword [eax*4 + 0x591300]
xor ecx, dword [edx*4 + 0x591500]
xor edi, ecx
dec dword [ebp - 4]
jne 0x53868f
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ebx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8