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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0x1f
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x134]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jne 0x458c01
lea edx, [ecx + 0x1cb4]
push edi
lea edi, [ecx + 0x1eb4]
mov eax, edx
mov dword [edi], edx
cmp edx, edi
jae 0x458ae0
lea eax, [edx + 1]
mov byte [edx], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x458af4
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x458af4
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ecx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x1caa]
push eax
call esi
mov edx, dword [ebp + 8]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x458b60
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x458b60
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x458b60
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x458b60
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x458b60
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x458b60
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [ebp - 4]
mov dword [esi + 0x1eb8], eax
lea ecx, [esi + 0x1cb4]
sub eax, ecx
mov dword [edi], ecx
sub eax, 2
push eax
lea eax, [esi + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.004582d0
add esp, 0x10
lea eax, [esi + 0x1cb4]
push 0
push 3
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x458bbe
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0043fca0
add esp, 0xc
push 4
lea eax, [esi + 0x1cb7]
push eax
push ebx
call fcn.00458980
add esp, 0xc
lea eax, [esi + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x458c00
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0043fca0
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459d50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4c4024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x3d0]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x13c]
lea esi, [edi + 0x148]
push 0
add eax, 4
push eax
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0x459dde
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.0047c1a0
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x130], eax
mov edx, dword [edi + 0x134]
cmp edx, 4
jge 0x459e11
push str.Received_too_short_packet
push ebx
call fcn.0043fca0
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca6a
mov esp, ebp
pop ebp
ret
push esi
call fcn.00459970
movzx eax, ax
add esp, 4
mov dword [edi + 0xc], eax
dec eax
cmp eax, 5
ja case.0x459e2a.1
jmp dword [eax*4 + 0x459f6c]
cmp edx, 4
jle case.0x459e2a.4
push esi
call fcn.00459950
movzx ecx, word [edi + 0x144]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x459e2a.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi]
add eax, 4
push eax
push 1
push ebx
call fcn.0043fbf0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x459e8d
push 5
push edi
call fcn.0045a7d0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca6a
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.0044dbf0
jmp 0x459f35
mov eax, dword [esi]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x148]
push eax
call fcn.00459950
push esi
push dword [ebp - 0x8c]
movzx eax, ax
mov dword [edi + 8], eax
call fcn.0045a900
add esp, 0xc
cmp eax, esi
jae case.0x459e2a.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s
push ebx
call fcn.0043fd60
jmp 0x459f35
lea eax, [edx - 2]
push eax
mov eax, dword [esi]
add eax, 2
push eax
push edi
call fcn.00459b30
add esp, 0xc
test eax, eax
je case.0x459e2a.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca6a
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x4bd274
push ebx
call fcn.0043fca0
add esp, 0xc
push ebx
call fcn.0044df00
add esp, 4
test eax, eax
je 0x459dfe
push 5
push edi
call fcn.0045a7d0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.0042ca6a
mov esp, ebp
pop ebp
ret
Function at 0x45a7d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x45a7e0
jmp dword [edx*4 + 0x45a834]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0045a280
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00459fa0
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0045aa30
push str.TFTP_finished
push 0x4bd274
push ecx
call fcn.0043fd60
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x4bd274
push ecx
call fcn.0043fca0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x4614c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4c4024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
mov ebx, dword [edi + 0xc]
mov esi, dword [ebx + 0x12c]
push esi
mov dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x461536
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x88], eax
jmp 0x46153c
mov eax, dword [ebp - 0x88]
cmp eax, 0xffffffff
jne 0x461565
push str.Error_accept__ing_server_connect
push edi
call fcn.0043fca0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca6a
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server
push edi
call fcn.0043fd60
mov byte [ebx + 0x205], 0
push 1
push dword [ebp - 0x88]
call fcn.0046cb40
lea eax, [ebp - 0x88]
push eax
push 1
push ebx
push edi
call fcn.00440a20
add esp, 0x20
test eax, eax
jne 0x4615f4
cmp dword [edi + 0x1b0], eax
je 0x4615f2
push 1
push edi
call fcn.00431750
mov eax, dword [edi + 0x1b0]
push 1
push dword [ebp - 0x88]
push dword [edi + 0x1b4]
call eax
push 0
push edi
mov esi, eax
call fcn.00431750
add esp, 0x1c
test esi, esi
je 0x4615f2
push ebx
push edi
call fcn.00461a30
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca6a
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ca6a
mov esp, ebp
pop ebp
ret

Function at 0x463a80
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0x463ab2
push str.Couldnt_set_desired_mode
push esi
call fcn.0043fca0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x463ac9
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.0043fd60
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x463ae2
push ebx
push esi
call fcn.00463750
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x463af7
push esi
call fcn.00462720
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x463b0c
push esi
call fcn.00463730
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x463b1c
push esi
call fcn.00463960
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x471f80
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x11
push str.WWW_Authenticate:
push esi
mov dword [ebp - 4], 0
lea ebx, [edi + 0xf0]
call fcn.00444530
add esp, 0xc
test eax, eax
je 0x471fba
mov eax, dword [ebx]
mov dword [ebp + 8], eax
cmp eax, 0x191
je 0x471fda
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.00444530
add esp, 0xc
test eax, eax
je 0x472025
mov eax, dword [ebx]
mov dword [ebp + 8], eax
cmp eax, 0x197
jne 0x472025
push esi
call fcn.00447820
mov esi, eax
add esp, 4
test esi, esi
jne 0x471ff3
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0x197
push esi
sete al
movzx eax, al
push eax
push edi
call fcn.00449330
push esi
mov edi, eax
call dword [0x4c4044]
add esp, 0x10
test edi, edi
je 0x472168
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf
push str.Content_Length:
push esi
call fcn.00444530
add esp, 0xc
test eax, eax
je 0x472080
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x47205e
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.0043fd60
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
add eax, 0x1f8
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.00451e80
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
push str.close
push 0xb
push str.Connection:
push esi
call fcn.00447780
add esp, 0x14
test al, al
jne 0x47215e
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.00444530
add esp, 0xc
test eax, eax
je 0x47211a
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x4720d8
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.0043fd60
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.00447780
add esp, 0x14
test al, al
je 0x472168
push str.CONNECT_responded_chunked
push edi
call fcn.0043fd60
mov eax, dword [ebp + 0xc]
push edi
mov byte [eax + 0x204], 1
call fcn.0046e480
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push esi
call fcn.00447780
add esp, 0x14
test al, al
jne 0x47215e
push ebx
lea eax, [ebp - 4]
push eax
push str.HTTP_1._d__d
push esi
call fcn.00436630
add esp, 0x10
cmp eax, 2
jne 0x472168
mov eax, dword [ebx]
mov dword [edi + 0xd5c], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x205], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x477fc0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x477ff3
push 0x2e
push edi
call fcn.0047c960
add esp, 8
test eax, eax
je 0x477ff1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x479180
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c4024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x479212
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0x208
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x6601
push edi
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x10], 8
call fcn.00479270
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.0047b920
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x479224
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca6a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [esi], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0042ca6a
mov esp, ebp
pop ebp
ret
Function at 0x4794e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4c4040]
mov esi, eax
add esp, 4
test esi, esi
jne 0x47950d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push edi
lea edi, [ebx + 4]
cmp eax, dword [ebx + 0x10]
jbe 0x479558
mov eax, dword [ebx]
push ecx
call eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 0xc]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebx + 0xc]
push dword [esi + 4]
mov dword [ebp - 8], eax
push eax
mov eax, dword [ebx + 8]
call eax
mov eax, dword [ebx + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x47955e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 4]
mov eax, dword [ebx]
call eax
push dword [esi + 8]
mov eax, dword [ebx]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4795b9
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
nop
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x479580
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
cmp ebx, dword [eax + 0x10]
jae 0x4795e9
mov eax, dword [edi]
push 1
push 0x4b21e4
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x4b21e5
push dword [esi + 8]
call eax
mov eax, dword [ebp + 8]
inc ebx
add esp, 0x18
cmp ebx, dword [eax + 0x10]
jb 0x4795c1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x479650
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x479682
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
pop esi
pop ebp
ret

Function at 0x47b920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x47b96d
push ebx
mov ebx, dword [ebp + 8]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x47b932
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x47b9c0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x47b9ff
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret

Function at 0x48ba82
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042da30
mov eax, dword [0x4c4024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00490f36
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x48bac4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x48bc20
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0049fdf0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4c6280]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0048e668
mov ecx, dword [esi*4 + 0x4c6280]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x48bc19
cmp eax, dword [ecx + edi + 0x24]
jne 0x48bc19
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48bc19
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0048e668
add esp, 0x14
test edx, edx
jl 0x48bc19
jg 0x48bb8f
test eax, eax
jb 0x48bc19
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x48bc19
jl 0x48bba9
cmp dword [ebp - 0x1008], eax
ja 0x48bc19
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x48bbc7
test ebx, ebx
je 0x48bc00
cmp ecx, edi
jae 0x48bc00
mov al, byte [ecx]
cmp al, 0xd
jne 0x48bbe1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x48bbed
cmp byte [ecx + 1], 0xa
jne 0x48bbed
inc ecx
jmp 0x48bbed
movzx eax, al
movsx eax, byte [eax + 0x4c47e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x48bbc7
cmp edx, ebx
jne 0x48bbc7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x48bc1e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042ca6a
leave
ret
Function at 0x48d980
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4c4024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4b45a0
push esi
call fcn.0048be23
pop ecx
pop ecx
test eax, eax
jne 0x48d9ae
xor al, al
jmp 0x48da2b
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0048d6b5
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x48d9e8
push dword [ebp - 0x210]
call fcn.0047e30b
xor al, al
jmp 0x48da29
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x48d9ee
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x48da0e
push edx
call fcn.0048d8b7
pop ecx
test al, al
je 0x48d9d9
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x48da1c
mov bl, 1
push dword [ebp - 0x210]
call fcn.0047e30b
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042ca6a
leave
ret

Function at 0x48f122
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b5054
push 0x4b504c
push str.FlsAlloc
push 0x1f
call fcn.0048ef4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48f156
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a5660]
call esi
jmp 0x48f15c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48f1a0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b5064
push 0x4b505c
push str.FlsGetValue
push 0x21
call fcn.0048ef4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48f1d7
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a5660]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x48f1df
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b506c
push 0x4b5064
push str.FlsSetValue
push 0x22
call fcn.0048ef4a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48f219
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4a5660]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4943b8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x494455
push ebx
push esi
call fcn.00494381
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00494315
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x494402
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x494454
push edi
push eax
call fcn.0048ec1d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x494422
call fcn.0048ec6b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x494453
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00494315
add esp, 0x20
test eax, eax
jne 0x494441
push edi
call fcn.0048ec6b
jmp 0x494449
push ebx
call fcn.0048ec6b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x494458
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x494469
pop esi
ret
push ebx
push edi
push esi
call fcn.00494381
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0048ec1d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x494491
push ebx
push esi
push edi
call fcn.0047c1a0
add esp, 0xc
push 0
call fcn.0048ec6b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x494861
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004944a6

Function at 0x4975c6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0048f8f6
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x497635
cmp esi, dword [ebp - 4]
je 0x497630
cmp dword [ebp + 0xc], 0
je 0x497630
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x49760d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00497118
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x497637
xor eax, eax
inc eax
jmp 0x497637
xor eax, eax
pop edi
pop esi
leave
ret