joyce8/EMBER2024-capa huggingface dataset:
Function at 0x601070
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0x1a8]
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
jge 0x6010b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.005ef690
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.00600f70
add esp, 4
pop esi
pop ecx
ret
Function at 0x6019e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x90c
mov eax, dword [0x6b278c]
xor eax, esp
mov dword [esp + 0x908], eax
push ebx
push ebp
push esi
push edi
push 0x7f
lea eax, [esp + 0x9d]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0xa4], 0
call fcn.005b4de0
push 0x7f
lea ecx, [esp + 0x29]
push 0
push ecx
mov byte [esp + 0x30], 0
call fcn.005b4de0
mov ebp, dword [ebx]
mov edi, dword [ebp + 0x164]
mov edx, dword [edi + 0x1eb4]
sub edx, dword [edi + 0x1eb0]
lea eax, [edi + 0x1cb0]
add edx, 2
push edx
push 0x3c
mov esi, ebp
mov dword [esp + 0x30], ebp
call fcn.00601400
mov eax, dword [edi + 0x1eb0]
movzx ecx, byte [eax]
inc eax
add esp, 0x20
mov dword [edi + 0x1eb0], eax
cmp ecx, 0x18
je 0x601bc8
cmp ecx, 0x23
je 0x601ba2
cmp ecx, 0x27
jne 0x601c5a
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [esp + 0x12c]
push 0x800
push eax
call fcn.005f6250
mov esi, dword [edi + 0x1cac]
add esp, 0x1c
mov ebp, 4
test esi, esi
je 0x601b36
lea esp, [esp]
mov ebx, dword [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x601ac7
sub eax, edx
lea edi, [eax + ebp + 1]
cmp edi, 0x7fa
jae 0x601b2b
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x9c]
push edx
push str._127_____127s
push ebx
call fcn.005b982e
add esp, 0x10
test eax, eax
je 0x601b2b
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0xa0]
push ecx
push 0
mov edx, 0x800
push str._c_s_c_s
sub edx, ebp
push edx
lea eax, [esp + ebp + 0x130]
push eax
call fcn.005f6250
add esp, 0x1c
mov ebp, edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x601ac0
mov ebx, dword [esp + 0x14]
push 0xf0
push 0xff
mov ecx, 0x800
push 0x66c59c
sub ecx, ebp
push ecx
lea edx, [esp + ebp + 0x128]
push edx
call fcn.005f6250
mov ecx, dword [ebx + 0x1a8]
add esp, 0x14
push 0
add ebp, 2
push ebp
lea eax, [esp + 0x120]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x601b95
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push edx
call fcn.005ef690
add esp, 0xc
mov esi, dword [esp + 0x10]
add ebp, 0xfffffffe
push ebp
jmp 0x601c49
lea ecx, [edi + 0x1c28]
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x601bb0
push 0xf0
push 0xff
push ecx
push 0
push 0x23
jmp 0x601be9
lea ecx, [edi + 0x1c08]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x601bd3
push 0xf0
push 0xff
push ecx
push 0
push 0x18
push 0xfa
push 0xff
sub eax, esi
push str._c_c_c_c_s_c_c
lea edi, [eax + 6]
lea eax, [esp + 0x138]
push 0x800
push eax
call fcn.005f6250
mov edx, dword [ebx + 0x1a8]
add esp, 0x28
push 0
push edi
lea ecx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x601c43
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.005ef690
add esp, 0xc
add edi, 0xfffffffe
mov esi, ebp
push edi
push 0x3e
lea eax, [esp + 0x122]
call fcn.00601400
add esp, 8
mov ecx, dword [esp + 0x918]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b4b30
add esp, 0x90c
ret
Function at 0x601e40
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 ebp
mov ebp, dword [eax + 0x164]
mov dword [esp + 4], eax
jne 0x601f99
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x601e77
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x601e82
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x601e8d
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebp + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x601ebf
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x601ecd
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x601ed7
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x601ee1
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x601eec
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x601ef7
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, ebx
sub ecx, 2
push ecx
mov dword [ebp + 0x1eb4], eax
lea eax, [ebp + 0x1cb2]
push 0x3e
mov dword [edi], ebx
call fcn.00601400
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 0x1a8]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edx
call ebx
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jge 0x601f54
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.005ef690
add esp, 0xc
lea ecx, [ebp + 0x1cb3]
push ecx
push edi
mov eax, 4
call fcn.00601c80
mov edx, dword [edi + 0x1a8]
add esp, 8
push 0
push 2
add ebp, 0x1cb7
push ebp
push edx
call ebx
test eax, eax
jge 0x601f96
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.005ef690
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x602a50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x6b278c]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, dword [esi + 0x1ac]
mov edi, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
or ebx, 0xffffffff
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x602aa7
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push ebp
push esi
call fcn.005f4320
add esp, 8
cmp ebx, 0xffffffff
jne 0x602adc
push str.Error_accept__ing_server_connect
push edi
call fcn.005ef690
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005b4b30
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push edi
call fcn.005ef600
push 1
push ebx
mov dword [esi + 0x2b0], 0
mov dword [esi + 0x1ac], ebx
call fcn.00614490
add esp, 0x10
mov dword [esi + 0x1bc], 1
cmp dword [edi + 0x1e8], 0
je 0x602b5d
push 1
push edi
call fcn.005ed6c0
mov ecx, dword [edi + 0x1ec]
mov edx, dword [edi + 0x1e8]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.005ed6c0
add esp, 0x1c
test ebx, ebx
je 0x602b5d
call fcn.00602980
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005b4b30
add esp, 0x18
ret
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.005b4b30
add esp, 0x18
ret
Function at 0x606120
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebp
mov ebp, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
push edi
mov edi, dword [ebx]
cmp eax, 2
je 0x60615a
push str.Couldnt_set_desired_mode
push edi
call fcn.005ef690
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x606171
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.005ef600
add esp, 0xc
cmp ebp, 0x13
jne 0x606186
push ebx
call fcn.006060b0
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x606197
call fcn.00603540
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x6061aa
mov eax, ebx
call fcn.00606100
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x6061b8
mov eax, ebx
call fcn.00606110
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x60df70
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x6b278c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.005d583b
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x60dfd5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x60dfd5
lea edx, [esp]
push edx
call dword [0x6b3f8c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005b4b30
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.005b4b30
add esp, 0x108
ret
jmp 0x60df70

Function at 0x60dff0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x6b278c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.005d583b
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x60dfd5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x60dfd5
lea edx, [esp]
push edx
call dword [0x6b3f8c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005b4b30
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.005b4b30
add esp, 0x108
ret
jmp 0x60df70
Function at 0x614340
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push str.kernel32
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x61435a
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x66fbd4
push ebx
mov dword [esp + 0x18], edi
call fcn.005cfacf
add esp, 8
test eax, eax
je 0x6143a6
test edi, edi
je 0x614397
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x6143cc
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x6143cc
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x614480
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6143e5
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x6b3f80]
mov esi, eax
add esp, 4
test esi, esi
je 0x614476
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x614476
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x614413
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x614430
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x614440
mov eax, dword [esp + 0x10]
test eax, eax
je 0x61446d
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x6b3f84]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x6b3f84]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x614960
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov ebp, dword [esi + 0x34]
mov ebx, dword [ebp]
push edi
mov edi, dword [ebx + 0x228]
test edi, edi
jne 0x61497e
mov edi, dword [esi + 0x30]
lea eax, [esp + 0x10]
push eax
call fcn.005eefc0
lea ecx, [esi + 0x20]
mov esi, dword [ecx]
sub esp, 0xc
mov edx, esp
mov dword [edx], esi
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov esi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], esi
mov dword [edx + 0xc], ecx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.005ef000
mov ecx, eax
mov eax, edx
mov dword [esp + 0x44], eax
mov eax, edi
cdq
add esp, 0x20
mov edi, eax
sub edi, ecx
mov ecx, dword [esp + 0x24]
mov esi, edx
sbb esi, ecx
cmp dword [ebx + 0x218], 0
je 0x614a50
lea edx, [esp + 0x10]
push edx
call fcn.005eefc0
lea ecx, [ebp + 0x188]
mov ebp, dword [ecx]
sub esp, 0xc
mov edx, esp
mov dword [edx], ebp
mov ebp, dword [ecx + 4]
mov dword [edx + 4], ebp
mov ebp, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ecx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.005ef000
mov ecx, eax
mov eax, dword [ebx + 0x218]
mov ebp, edx
cdq
add esp, 0x20
sub eax, ecx
sbb edx, ebp
cmp esi, edx
jl 0x614a50
jg 0x614a54
cmp edi, eax
jae 0x614a54
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x615bb0
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 0x615be2
push 0x2e
push esi
call fcn.005bcc60
add esp, 8
test eax, eax
je 0x615be0
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x615d50
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x6b278c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x615dfa
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov eax, ebp
mov byte [esp + 0x14], 8
mov byte [esp + 0x15], 2
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.00615cc0
mov ecx, esi
push 8
push ecx
call fcn.00618d10
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x615e0c
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005b4b30
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.005b4b30
add esp, 0x24
ret
Function at 0x615f90
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x615fa0
sub eax, edx
mov esi, eax
je 0x615fb9
lea eax, [esi + esi]
push eax
call dword [0x6b3f80]
jmp 0x615fc4
push 0x640e16
call dword [0x6b3f8c]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x615fd7
pop edi
pop esi
lea eax, [ebx + 0x1b]
pop ebx
add esp, 0xc
ret
mov ecx, ebx
call fcn.00617a70
push 0xf0000000
push 1
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov edi, dword [esp + 0x24]
test eax, eax
je 0x616060
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0x8002
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x616053
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esi + esi]
push ecx
push ebx
push edx
mov dword [esp + 0x24], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [edi + 0x10], eax
push ebx
mov byte [edi + 0x14], al
call dword [0x6b3f84]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x6163a1
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
ret

Function at 0x6163b0
Capabilities:
Hash data via wincrypt

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
ret
Function at 0x618620
Capabilities:
Hash data using sha256

Disassembly:
xor ecx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
ret

Function at 0x618d60
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 [0x6b3f80]
mov edi, eax
add esp, 4
test edi, edi
jne 0x618d85
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 0x618dcc
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 0x618dd0
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
jbe 0x618e2e
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
sub ebp, 1
jne 0x618df3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x618e71
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x6702e4
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x6702e5
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 0x618e40
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x619860
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], 0x34567890
movzx ecx, byte [esi]
test cl, cl
je 0x6198c5
mov edi, edi
mov eax, dword [edx]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [edi + ecx*4]
shr eax, 8
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [edi + eax*4]
add esi, 1
mov dword [edx + 8], ecx
mov cl, byte [esi]
test cl, cl
jne 0x619880
pop esi
ret
Function at 0x61b220
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
xor ebx, ebx
cmp dword [esi + 0x100ac], ebx
push edi
mov dword [esp + 8], ebx
je 0x61b2d9
cmp dword [esi + 0x7c], ebx
jbe 0x61b2d9
mov ebx, 0xffffff5c
lea edi, [esi + 0xa4]
sub ebx, esi
push ebp
lea esp, [esp]
movzx ecx, byte [edi]
mov eax, dword [esi + 0x100d0]
mov ebp, dword [esi + 0x100dc]
xor ecx, eax
mov edx, dword [esi + 0x100d8]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebp + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x100d4]
mov dword [esi + 0x100d0], ecx
mov ecx, dword [esi + 0x100d8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [esi + 0x100d4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
and edx, 0xfffd
shr ecx, 8
xor ecx, dword [ebp + eax*4]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x100d8], ecx
shr eax, 8
xor byte [edi], al
add edi, 1
lea ecx, [ebx + edi]
cmp ecx, dword [esi + 0x7c]
jb 0x61b250
xor ebx, ebx
pop ebp
mov edi, dword [esi + 0x7c]
mov ecx, dword [esi + 0x2c]
mov edx, edi
push edx
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0xa4]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, edi
je 0x61b302
mov dword [esp + 8], 0xffffffff
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, dword [esp + 8]
adc dword [esi + 0x100c4], ebx
add dword [esi + 0x100c8], ecx
pop edi
mov dword [esi + 0x48], ebx
adc dword [esi + 0x100cc], ebx
mov dword [esi + 0x7c], ebx
pop ebx
pop ecx
ret