joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ea880
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov cl, byte [ebx]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test cl, cl
je 0x4ea9b4
lea esp, [esp]
mov al, byte [esi]
test al, al
je 0x4ea9b4
test edi, edi
je 0x4ea9b8
movsx edx, cl
add edx, 0xffffff9f
cmp edx, 0x19
ja case.default.0x4ea8bd
jmp dword [edx*4 + 0x4ea9e8]
mov cl, 0x41
jmp case.default.0x4ea8bd
mov cl, 0x42
jmp case.default.0x4ea8bd
mov cl, 0x43
jmp case.default.0x4ea8bd
mov cl, 0x44
jmp case.default.0x4ea8bd
mov cl, 0x45
jmp case.default.0x4ea8bd
mov cl, 0x46
jmp case.default.0x4ea8bd
mov cl, 0x47
jmp case.default.0x4ea8bd
mov cl, 0x48
jmp case.default.0x4ea8bd
mov cl, 0x49
jmp case.default.0x4ea8bd
mov cl, 0x4a
jmp case.default.0x4ea8bd
mov cl, 0x4b
jmp case.default.0x4ea8bd
mov cl, 0x4c
jmp case.default.0x4ea8bd
mov cl, 0x4d
jmp case.default.0x4ea8bd
mov cl, 0x4e
jmp case.default.0x4ea8bd
mov cl, 0x4f
jmp case.default.0x4ea8bd
mov cl, 0x50
jmp case.default.0x4ea8bd
mov cl, 0x51
jmp case.default.0x4ea8bd
mov cl, 0x52
jmp case.default.0x4ea8bd
mov cl, 0x53
jmp case.default.0x4ea8bd
mov cl, 0x54
jmp case.default.0x4ea8bd
mov cl, 0x55
jmp case.default.0x4ea8bd
mov cl, 0x56
jmp case.default.0x4ea8bd
mov cl, 0x57
jmp case.default.0x4ea8bd
mov cl, 0x58
jmp case.default.0x4ea8bd
mov cl, 0x59
jmp case.default.0x4ea8bd
mov cl, 0x5a
movsx edx, al
add edx, 0xffffff9f
cmp edx, 0x19
ja case.default.0x4ea935
jmp dword [edx*4 + 0x4eaa50]
mov al, 0x41
jmp case.default.0x4ea935
mov al, 0x42
jmp case.default.0x4ea935
mov al, 0x43
jmp case.default.0x4ea935
mov al, 0x44
jmp case.default.0x4ea935
mov al, 0x45
jmp case.default.0x4ea935
mov al, 0x46
jmp case.default.0x4ea935
mov al, 0x47
jmp case.default.0x4ea935
mov al, 0x48
jmp case.default.0x4ea935
mov al, 0x49
jmp case.default.0x4ea935
mov al, 0x4a
jmp case.default.0x4ea935
mov al, 0x4b
jmp case.default.0x4ea935
mov al, 0x4c
jmp case.default.0x4ea935
mov al, 0x4d
jmp case.default.0x4ea935
mov al, 0x4e
jmp case.default.0x4ea935
mov al, 0x4f
jmp case.default.0x4ea935
mov al, 0x50
jmp case.default.0x4ea935
mov al, 0x51
jmp case.default.0x4ea935
mov al, 0x52
jmp case.default.0x4ea935
mov al, 0x53
jmp case.default.0x4ea935
mov al, 0x54
jmp case.default.0x4ea935
mov al, 0x55
jmp case.default.0x4ea935
mov al, 0x56
jmp case.default.0x4ea935
mov al, 0x57
jmp case.default.0x4ea935
mov al, 0x58
jmp case.default.0x4ea935
mov al, 0x59
jmp case.default.0x4ea935
mov al, 0x5a
cmp cl, al
jne 0x4ea9b4
mov cl, byte [ebx + 1]
inc ebx
dec edi
inc esi
test cl, cl
jne 0x4ea8a0
test edi, edi
jne 0x4ea9c1
pop edi
pop esi
mov eax, 1
pop ebx
ret
movzx eax, byte [ebx]
push eax
call fcn.004ea590
mov dl, al
movzx eax, byte [esi]
push eax
call fcn.004ea590
add esp, 8
xor ecx, ecx
cmp dl, al
sete cl
pop edi
pop esi
pop ebx
mov eax, ecx
ret
Function at 0x4eaac0
Capabilities:
Parse pe header

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp edi, 1
jb 0x4eab6c
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
sub esi, edx
lea esp, [esp]
mov al, byte [edx]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4eaaed
jmp dword [ecx*4 + 0x4eab70]
mov al, 0x41
jmp case.default.0x4eaaed
mov al, 0x42
jmp case.default.0x4eaaed
mov al, 0x43
jmp case.default.0x4eaaed
mov al, 0x44
jmp case.default.0x4eaaed
mov al, 0x45
jmp case.default.0x4eaaed
mov al, 0x46
jmp case.default.0x4eaaed
mov al, 0x47
jmp case.default.0x4eaaed
mov al, 0x48
jmp case.default.0x4eaaed
mov al, 0x49
jmp case.default.0x4eaaed
mov al, 0x4a
jmp case.default.0x4eaaed
mov al, 0x4b
jmp case.default.0x4eaaed
mov al, 0x4c
jmp case.default.0x4eaaed
mov al, 0x4d
jmp case.default.0x4eaaed
mov al, 0x4e
jmp case.default.0x4eaaed
mov al, 0x4f
jmp case.default.0x4eaaed
mov al, 0x50
jmp case.default.0x4eaaed
mov al, 0x51
jmp case.default.0x4eaaed
mov al, 0x52
jmp case.default.0x4eaaed
mov al, 0x53
jmp case.default.0x4eaaed
mov al, 0x54
jmp case.default.0x4eaaed
mov al, 0x55
jmp case.default.0x4eaaed
mov al, 0x56
jmp case.default.0x4eaaed
mov al, 0x57
jmp case.default.0x4eaaed
mov al, 0x58
jmp case.default.0x4eaaed
mov al, 0x59
jmp case.default.0x4eaaed
mov al, 0x5a
mov byte [esi + edx], al
mov al, byte [edx]
inc edx
test al, al
je 0x4eab6b
dec edi
jne 0x4eaae0
pop esi
pop edi
ret
Function at 0x4ec060
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4ec0a8
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
test eax, eax
jne 0x4ec0af
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ecx
ret
Function at 0x4f6b70
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x57d7e4
push ecx
call fcn.004e4180
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004f5d20
test eax, eax
jne 0x4f6ba0
mov eax, esi
jmp fcn.004f6150
ret
Function at 0x4f6fc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [ebp + 0x518]
push edi
mov edi, dword [ebp]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4f7049
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.00530190
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov ecx, dword [esi + 0x14c]
cmp ecx, 4
jge 0x4f7084
push str.Received_too_short_packet
push edi
call fcn.004e4210
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052b755
add esp, 0x88
ret
mov edx, dword [esi + 0x15c]
movzx eax, byte [edx]
movzx edx, byte [edx + 1]
shl ax, 8
movzx eax, ax
or eax, edx
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4f70a9
jmp dword [eax*4 + 0x4f71c0]
cmp ecx, 4
jle case.0x4f70a9.4
mov eax, dword [esi + 0x15c]
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl dx, 8
movzx edx, dx
or edx, eax
movzx eax, word [esi + 0x40]
inc eax
and eax, 0xffff
cmp eax, edx
jne case.0x4f70a9.4
add ecx, 0xfffffffc
push ecx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
push 1
push ebp
call fcn.004e4650
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4f7114
mov ecx, 5
mov eax, esi
call fcn.004f6f40
mov eax, ebx
jmp 0x4f706b
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
mov eax, dword [edi + 0x70]
adc dword [edi + 0x74], edx
mov edx, dword [edi + 0x74]
push edx
push eax
push edi
call fcn.004ec7e0
jmp 0x4f7195
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl cx, 8
movzx edx, cx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
or edx, eax
push 0x57d7e4
push edi
mov dword [esi + 8], edx
call fcn.004e4180
jmp 0x4f7195
mov edx, dword [esi + 0x15c]
add ecx, 0xfffffffe
push ecx
add edx, 2
push edx
push esi
call fcn.004f5e90
add esp, 0xc
test eax, eax
je case.0x4f70a9.4
jmp 0x4f706b
push str.Internal_error:_Unexpected_packet
push 0x597a20
push edi
call fcn.004e4210
add esp, 0xc
push ebp
call fcn.004ec8c0
add esp, 4
test eax, eax
je 0x4f7069
mov ecx, 5
mov eax, esi
call fcn.004f6f40
mov eax, 0x2a
jmp 0x4f706b
Function at 0x4f89a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4f89d5
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.004e4210
add esp, 0xc
jmp 0x4f8a0e
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp]
cmp al, 2
jne 0x4f8a00
shr eax, 8
test al, al
jne 0x4f8a00
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0052b755
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.004e4210
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.0052b755
add esp, 0x194
ret

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

Disassembly:
push ecx
mov edx, dword [edi + 0x154]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4f8be4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004e4210
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004f8aa0
add esp, 4
pop esi
pop ecx
ret
Function at 0x4f98f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x128]
mov dword [esp + 4], eax
jne 0x4f9a58
push ebp
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea ebp, [ebx + 0x1eb0]
mov dword [ebp], edi
cmp edi, ebp
jae 0x4f9929
mov byte [edi], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4f9936
mov byte [eax], 0xfa
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4f9943
mov byte [eax], 0x1f
inc dword [ebp]
movzx ecx, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4f9977
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4f9987
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4f9993
mov byte [eax], cl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4f999f
mov byte [eax], ch
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4f99ac
mov byte [eax], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4f99b9
mov byte [eax], 0xf0
inc dword [ebp]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, edi
sub eax, 2
push eax
lea edx, [ebx + 0x1cb2]
push edx
push 0x3e
mov dword [ebp], edi
call fcn.004f8df0
mov ebp, dword [sym.imp.WS2_32.dll_send]
add esp, 0xc
push 0
push 3
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x154]
push eax
call ebp
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4f9a17
call esi
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.004e4210
add esp, 0xc
lea edx, [ebx + 0x1cb3]
push 4
push edx
call fcn.004f96d0
mov eax, dword [edi + 0x154]
add esp, 8
push 0
push 2
add ebx, 0x1cb7
push ebx
push eax
call ebp
test eax, eax
jns 0x4f9a55
call esi
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.004e4210
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4fa600
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esi + 0x158]
push ebp
mov ebp, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4fa65a
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.004e6d50
add esp, 8
cmp edi, 0xffffffff
jne 0x4fa694
push str.Error_accept__ing_server_connect
push ebp
call fcn.004e4210
add esp, 8
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0052b755
add esp, 0x88
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.004e4180
push 1
push edi
mov dword [esi + 0x158], edi
call fcn.00509190
mov dword [esi + 0x168], 1
mov eax, dword [ebp + 0x1b0]
add esp, 0x10
test eax, eax
je 0x4fa708
mov ecx, dword [ebp + 0x1b4]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x4fa708
push edi
push esi
call fcn.004e6d50
add esp, 8
pop edi
pop ebp
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0052b755
add esp, 0x88
ret
mov ecx, dword [esp + 0x90]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0052b755
add esp, 0x88
ret
Function at 0x4fe150
Capabilities:
Check http status code

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, eax
mov ebx, dword [edi]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
xor esi, esi
cmp eax, 2
je 0x4fe18a
push str.Couldnt_set_desired_mode
push ebx
call fcn.004e4210
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x4fe1a1
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.004e4180
add esp, 0xc
cmp ebp, 0x13
jne 0x4fe1b6
push edi
call fcn.004fe0d0
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x4fe1cb
push edi
call fcn.004fb120
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x4fe1e3
push 0xd
push 1
call fcn.004fd4a0
add esp, 8
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x4fe1f6
push 0xe
push 1
call fcn.004fd4a0
add esp, 8
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x504f20
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.005323e6
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x504f85
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x504f85
lea edx, [esp]
push edx
call dword [0x5ba028]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0052b755
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0052b755
add esp, 0x108
ret
Function at 0x5091c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x5091d9
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.004e3d20
push edx
push eax
call fcn.004e3d50
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x509226
mov eax, dword [ebx + 0x148]
mov ecx, dword [ebx + 0x144]
push eax
push ecx
call fcn.004e3d20
push edx
push eax
call fcn.004e3d50
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
mov eax, ecx
cmp esi, ecx
jge 0x509228
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x50a790
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x50a7c2
push 0x2e
push esi
call fcn.00530640
add esp, 8
test eax, eax
je 0x50a7c0
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x50a8a0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x50a8d6
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push esi
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50a8e0
sub eax, edx
push eax
call fcn.004e7710
add esp, 4
push 0
push eax
mov eax, dword [esp + 0x14]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 2
push edx
mov dword [esp + 0x18], 0
call esi
cmp dword [esp + 4], 0x10
jne 0x50a93d
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push eax
push ecx
push 2
push edx
call esi
mov eax, dword [esp + 0xc]
pop esi
test eax, eax
je 0x50a94d
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x50a95e
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret

Function at 0x50c450
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x50c472
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x50c466
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x50c4a2
cmp dword [esi + 8], 0
jne 0x50c495
mov ecx, dword [eax + 8]
push 0x585424
push ecx
call fcn.0053143b
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x50c495
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.00530ba4
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x50c4c4
mov eax, dword [esi + 8]
test eax, eax
je 0x50c4be
push eax
call fcn.0052f0ec
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x50e480
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x5ba01c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x50e4a5
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x50e4ec
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x50e4f0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x50e54c
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
dec ebp
jne 0x50e513
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x50e588
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push str.6_blank
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x585a77
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x50e557
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x510a90
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x56beeb
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bafe0]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x29c]
mov ecx, dword [esp + 0x2a8]
mov ebx, dword [esp + 0x2a0]
mov esi, dword [esp + 0x2ac]
mov ebp, dword [esp + 0x2b0]
push 0xffffffffffffffff
xor edi, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2a8]
push edi
mov dword [esp + 0x20], ecx
xor edx, edx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
mov word [esp + 0x28], dx
call fcn.00402440
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x294], edi
cmp eax, edi
je 0x510b74
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov edx, ecx
cmp edi, 8
jae 0x510b41
lea edx, [esp + 0x1c]
cmp word [edx + eax*2 - 2], 0x5c
je 0x510b6d
mov edx, ecx
cmp edi, 8
jae 0x510b54
lea edx, [esp + 0x1c]
cmp word [edx + eax*2 - 2], 0x2f
je 0x510b6d
cmp edi, 8
jae 0x510b65
lea ecx, [esp + 0x1c]
cmp word [ecx + eax*2 - 2], 0x3a
jne 0x510b74
mov edx, 0x59b064
jmp 0x510b79
mov edx, 0x585d74
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x510b80
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00406420
mov eax, dword [esp + 0x1c]
mov edi, 8
cmp dword [esp + 0x30], edi
jae 0x510bad
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x510c0b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], 0
call edi
cmp eax, 2
je 0x510be0
call edi
cmp eax, 0x12
je 0x510be0
call edi
mov esi, eax
jmp 0x510be2
xor esi, esi
call fcn.00513f00
cmp dword [esp + 0x30], 8
mov edi, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
jb 0x510c04
mov edx, dword [esp + 0x1c]
push edx
call fcn.0052b74a
add esp, 4
mov eax, edi
jmp 0x510c91
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x510c12
mov ecx, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00402850
mov eax, dword [esp + 0x38]
test eax, 0x400
je 0x510c4a
mov dword [esi], 0
mov dword [ebp], 0
jmp 0x510c6a
test al, 0x10
je 0x510c5d
mov dword [esi], 3
mov dword [ebp], 3
jmp 0x510c6a
mov dword [esi], 2
mov dword [ebp], 2
mov esi, dword [esp + 0x14]
mov dword [esi], 0
call fcn.00513f00
mov dword [esi + 4], eax
cmp dword [esp + 0x30], edi
jb 0x510c8f
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0052b74a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.0052b755
add esp, 0x284
ret