joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458d20
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [eax], ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x458eb1
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x458e9c
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x458d7e
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x458d70
sub eax, edx
lea ecx, [eax + 1]
jmp 0x458d80
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x458d91
lea ebp, [eax + 0xe]
jmp 0x458d9d
cmp eax, 0x17
jne 0x458e3e
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x458e3e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x458e3e
cmp eax, ebp
jb 0x458e3e
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [0x4c206c]
mov edi, eax
add esp, 4
test edi, edi
je 0x458e8d
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.00473a90
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x458e2a
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.00473a90
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x458e3a
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x458d62
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x458e5e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x458e98
test ebx, ebx
je 0x458e7d
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x4c2070]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x458e66
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x458e4d
test ebx, ebx
jne 0x458ea8
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x45f3a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x4c20f4]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov edi, dword [esp + 0x4c]
push 6
push 1
push 2
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x45f592
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x24], xmm0
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
xor eax, eax
push 4
mov word [esp + 0x1e], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x45f580
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x45f580
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x45f580
cmp dword [esp + 8], 0x10
jl 0x45f580
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x45f580
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x45f580
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x45f580
push 1
push esi
call fcn.0045f750
add esp, 8
test eax, eax
js 0x45f580
push 0
push 0x2710
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push 1
push eax
mov dword [esp + 0x24], 0x300
call fcn.00439e70
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x45f580
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x45f580
cmp dword [esp + 8], 0x10
jl 0x45f580
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x45f580
cmp dword [esp + 8], 0x10
jl 0x45f580
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x45f580
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x45f580
mov ax, word [esp + 0x1a]
cmp ax, word [esp + 0x2a]
jne 0x45f580
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00471b4b
add esp, 0x34
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.00471b4b
add esp, 0x34
ret
Function at 0x461680
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x4c20f4]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.00423d50
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4616ff
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00439620
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.004243b0
push esi
call dword [0x4c2070]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x46185f
push 0
push 0x80
push 3
push 0
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x461759
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00439620
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.004243b0
push 0
mov esi, 0x4d
call dword [0x4c2070]
add esp, 0x20
jmp 0x461851
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x461799
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00439620
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.004243b0
add esp, 0x1c
mov esi, 0x4d
jmp 0x46183d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x4617c7
jg 0x4617ad
cmp edi, 0x100000
jbe 0x4617c7
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.004243b0
add esp, 0xc
mov esi, 0x4d
jmp 0x46183d
lea eax, [edi + 1]
push eax
call dword [0x4c206c]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4617df
lea esi, [eax + 0x1b]
jmp 0x46183d
test edi, edi
je 0x461824
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46187c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x461878
add esi, eax
cmp esi, edi
jb 0x4617f0
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.00461480
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x4c2070]
add esp, 4
push dword [esp + 0x20]
call fcn.0047b48d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00471b4b
add esp, 0x120
ret
mov edi, esi
jmp 0x461824
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00439620
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.004243b0
add esp, 0x1c
mov esi, 0x4d
jmp 0x46183d
Function at 0x46d0c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4c206c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x46d0e7
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x46d132
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ebx
jmp 0x46d136
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x46d196
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x46d155
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x46d1c7
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x4abcfe
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4abcff
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x46d1a0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x46d1d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x20]
call fcn.00424110
mov esi, dword [esp + 0x1c]
mov ebx, eax
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x4c206c]
mov edi, eax
add esp, 8
test edi, edi
je 0x46d338
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x46d24c
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push ebp
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x18]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x46d2b1
mov dword [esp + 0x18], eax
mov ebx, eax
nop dword [eax + eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x28], al
lea eax, [esp + 0x28]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x46d270
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esi + 0x10]
jae 0x46d2dd
mov eax, dword [esi + 4]
push 1
push 0x4abcfe
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4abcff
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x46d2b6
push dword [esp + 0x28]
call fcn.00424110
mov ecx, dword [edi]
push eax
push dword [esp + 0x2c]
push dword [edi + 4]
mov eax, dword [ecx + 4]
call eax
mov esi, dword [esp + 0x3c]
add esp, 0x10
mov ebx, dword [edi]
test esi, esi
jne 0x46d308
mov esi, dword [ebx + 0xc]
add esi, dword [edi + 8]
push dword [edi + 4]
mov eax, dword [ebx + 8]
push esi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push esi
push dword [edi + 8]
call eax
push dword [edi + 8]
mov eax, dword [ebx + 8]
push esi
call eax
push edi
call dword [0x4c2070]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
pop ecx
ret
Function at 0x47ab0f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4c20f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x47ab52
call fcn.00482fcb
mov dword [eax], 0xf
call fcn.00482fde
mov dword [eax], 0xd
call fcn.0047ca92
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471b4b
leave
ret
test eax, eax
jne 0x47ab59
inc eax
jmp 0x47ab46
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x47ab44
xor eax, eax
cmp ecx, 1
setne al
jmp 0x47ab46

Function at 0x47d331
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47d370
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47d370
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47d370
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x47d370
cmp dword [ecx + 0x74], 0xe
jbe 0x47d370
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x47d93a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00472180
mov eax, dword [0x4c20f4]
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.0048c5ee
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x47d97c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x47dad8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00472390
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 + 0x4c4628]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004856c8
mov ecx, dword [esi*4 + 0x4c4628]
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 0x47dad1
cmp eax, dword [ecx + edi + 0x24]
jne 0x47dad1
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 0x47dad1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004856c8
add esp, 0x14
test edx, edx
jl 0x47dad1
jg 0x47da47
test eax, eax
jb 0x47dad1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x47dad1
jl 0x47da61
cmp dword [ebp - 0x1008], eax
ja 0x47dad1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x47da7f
test ebx, ebx
je 0x47dab8
cmp ecx, edi
jae 0x47dab8
mov al, byte [ecx]
cmp al, 0xd
jne 0x47da99
lea eax, [edi - 1]
cmp ecx, eax
jae 0x47daa5
cmp byte [ecx + 1], 0xa
jne 0x47daa5
inc ecx
jmp 0x47daa5
movzx eax, al
movsx eax, byte [eax + 0x4c2278]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x47da7f
cmp edx, ebx
jne 0x47da7f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x47dad6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00471b4b
leave
ret
Function at 0x484656
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4c20f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4b1f9c
push esi
call fcn.00484f3e
pop ecx
pop ecx
test eax, eax
jne 0x484684
xor al, al
jmp 0x484701
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.0048438b
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4846be
push dword [ebp - 0x210]
call fcn.0047b48d
xor al, al
jmp 0x4846ff
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4846c4
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4846e4
push edx
call fcn.0048458d
pop ecx
test al, al
je 0x4846af
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4846f2
mov bl, 1
push dword [ebp - 0x210]
call fcn.0047b48d
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00471b4b
leave
ret
Function at 0x48a7b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4c4628]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48a7f5
cmp byte [ebx], 0xa
jne 0x48a7f5
or byte [edi + eax + 0x28], 4
jmp 0x48a7fa
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x48a8f9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x48a8dc
inc eax
cmp dl, 0xd
je 0x48a826
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x48a84c
cmp eax, ecx
jae 0x48a85a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x48a80e
jmp 0x48a8f9
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48a8d7
cmp dword [ebp - 0x10], 0
je 0x48a8d7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4c4628]
test byte [eax + edi + 0x28], 0x48
je 0x48a8b1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48a89c
mov byte [esi], dl
jmp 0x48a8ad
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c4628]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48a8f9
cmp byte [ebp - 1], 0xa
jne 0x48a8c0
cmp esi, ebx
jne 0x48a8c0
mov byte [esi], 0xa
jmp 0x48a8f8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004856e6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48a8f9
mov byte [esi], 0xd
jmp 0x48a8f8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4c4628]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48a8f6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48a8f9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48a902
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4c4628]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48a948
cmp word [ebx], dx
jne 0x48a948
or byte [eax + edi + 0x28], 4
jmp 0x48a94d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x48aab0
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x48aa90
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x48a98e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48a9c4
cmp eax, edx
jae 0x48a9d2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x48a969
jmp 0x48aab0
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48aa8b
cmp dword [ebp - 0x18], 0
je 0x48aa8b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4c4628]
test byte [eax + edi + 0x28], 0x48
je 0x48aa61
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x48aa25
mov word [esi], cx
jmp 0x48aa5c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4c4628]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4c4628]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4c4628]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x48aab0
pop eax
cmp word [ebp - 4], ax
jne 0x48aa71
cmp esi, ebx
jne 0x48aa71
mov word [esi], ax
jmp 0x48aaad
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004856e6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x48aab0
push 0xd
pop eax
jmp 0x48aa6c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4c4628]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x48aaaa
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x48aab0
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48d59a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b3afc
push 0x4b3af4
push str.FlsAlloc
push 0x1f
call fcn.0048d3c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48d5ce
push dword [ebp + 8]
mov ecx, esi
call dword [0x49f31c]
call esi
jmp 0x48d5d4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48d618
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b3b0c
push 0x4b3b04
push str.FlsGetValue
push 0x21
call fcn.0048d3c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48d64f
push dword [ebp + 8]
mov ecx, esi
call dword [0x49f31c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x48d657
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b3b14
push 0x4b3b0c
push str.FlsSetValue
push 0x22
call fcn.0048d3c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48d691
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x49f31c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]