joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455420
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.00419f00
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [section..data]
mov esi, eax
add esp, 8
test esi, esi
je 0x4555a2
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x4554a2
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [ebp + 0xc]
add eax, dword [esi + 8]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x455516
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4554d0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x455545
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x493e55
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x493e56
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x455520
push dword [esp + 0x30]
call fcn.00419f00
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebp, dword [esi]
test edi, edi
jne 0x455570
mov edi, dword [ebp + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebp + 8]
push edi
call eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebp + 8]
push edi
call eax
push esi
call dword [0x4a3004]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x455670
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x455696
mov eax, 0x1b
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4556ce
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 4], 0
mov eax, 2
add esp, 0xc
ret
push dword [esp + 0x18]
call fcn.00419f00
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x455725
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x455734
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x455745
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret
Function at 0x456380
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x4563cb
mov cl, byte [ebx + esi]
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 [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x456391
pop edi
pop esi
pop ebx
ret

Function at 0x456600
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00405720
cmp dword [esi + 8], eax
jne 0x4566ef
xor eax, eax
cmp dword [esi + 4], eax
push edi
setne al
push 0
inc eax
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
call fcn.00405720
cmp edi, eax
jne 0x45663c
push str.Failed_to_create_socket
jmp 0x4566da
call fcn.00405720
cmp dword [esi + 8], eax
jne 0x4566ee
push ebx
mov bl, byte [esi + 0xc]
mov dword [esi + 8], edi
mov byte [esp + 0xc], bl
call fcn.00405720
cmp edi, eax
je 0x45666b
push dword [esp + 0xc]
push edi
call fcn.00456e50
add esp, 8
cmp dword [esi + 4], 0
lea ecx, [esp + 0xc]
mov eax, dword [esi + 8]
mov byte [esi + 0xc], bl
pop ebx
push 4
mov dword [esp + 0xc], 1
push ecx
jne 0x4566c2
push 1
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4566ee
push str.all_your_TCP_packets_will_be_buffered
push str.Failed_to_set_socket_option__TCP_NODELAY___
call fcn.00457000
push eax
call fcn.00406290
add esp, 8
push eax
call fcn.00406290
push eax
call fcn.00406540
add esp, 0xc
pop edi
pop esi
pop ecx
ret
push 0x20
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4566ee
push str.Failed_to_enable_broadcast_on_UDP_socket
call fcn.00457000
push eax
call fcn.00406290
push eax
call fcn.00406540
add esp, 0xc
pop edi
pop esi
pop ecx
ret
Function at 0x456870
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x20
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, ecx
push str.255.255.255.255
push esi
mov dword [edi], 0
mov byte [edi + 4], 0
call fcn.00456760
add esp, 8
test al, al
je 0x4568a9
mov dword [edi], 0xffffffff
mov byte [edi + 4], 1
pop edi
pop esi
add esp, 0x20
ret 4
push str.0.0.0.0
push esi
call fcn.00456760
add esp, 8
test al, al
jne 0x456932
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x4568c5
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x4568df
mov dword [edi], eax
mov byte [edi + 4], 1
pop edi
pop esi
add esp, 0x20
ret 4
cmp dword [esi + 0x14], 0xf
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 0xc], 2
movups xmmword [esp + 0x18], xmm0
mov dword [esp + 0x2c], 0
jbe 0x456904
mov esi, dword [esi]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x456936
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x456936
mov eax, dword [ecx + 0x18]
push ecx
mov esi, dword [eax + 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [edi], esi
mov byte [edi + 4], 1
pop edi
pop esi
add esp, 0x20
ret 4
Function at 0x456a00
Capabilities:
Connect socket
Get socket status

Disassembly:
sub esp, 0x150
mov eax, dword [0x4a3480]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
mov ebx, dword [esp + 0x158]
push ebp
movzx ebp, word [esp + 0x160]
push esi
push edi
mov edi, ecx
call fcn.004565d0
lea esi, [edi + 0x18]
mov dword [edi + 0x10], 0
lea eax, [esp + 0x2c]
mov dword [edi + 0x14], 0
cmp esi, eax
je 0x456a62
mov ecx, esi
call fcn.00405c20
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov ecx, edi
call fcn.00456600
push ebp
mov ecx, ebx
call fcn.00456940
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00456db0
push dword [0x4a4504]
push dword [0x4a4500]
movups xmm0, xmmword [eax]
push dword [esp + 0x184]
movups xmmword [esp + 0x50], xmm0
push dword [esp + 0x184]
call fcn.00456f20
add esp, 0x1c
mov ecx, edi
test al, al
je 0x456ace
push 0x10
lea eax, [esp + 0x3c]
push eax
call fcn.00456700
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x456b0a
call fcn.00456df0
jmp 0x456c29
call fcn.00456710
mov bl, al
mov byte [esp + 0x10], bl
test bl, bl
je 0x456ae6
push 0
mov ecx, edi
call fcn.00456720
push 0x10
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.00456700
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x456b11
push dword [esp + 0x10]
mov ecx, edi
call fcn.00456720
xor eax, eax
jmp 0x456c29
call fcn.00456df0
mov esi, eax
test bl, bl
je 0x456c27
cmp esi, 1
jne 0x456c1e
mov ecx, edi
mov dword [esp + 0x58], 0
call fcn.00456700
inc dword [esp + 0x58]
lea ecx, [esp + 0x16c]
mov dword [esp + 0x5c], eax
call fcn.00456f40
push 0
push 0xf4240
push edx
push eax
call fcn.0045be30
lea ecx, [esp + 0x16c]
mov dword [esp + 0x1c], eax
call fcn.00456f40
push 0
push 0xf4240
push edx
push eax
call fcn.0045c3d0
mov dword [esp + 0x20], eax
mov ecx, edi
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x60]
push eax
push 0
call fcn.00456700
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x456c17
mov ecx, edi
call fcn.00456700
mov esi, eax
call fcn.00405720
cmp esi, eax
je 0x456bea
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push eax
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
call fcn.00456700
push eax
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x456bea
push dword [esp + 0x4c]
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
lea ecx, [esp + 0x18]
call fcn.00456820
jmp 0x456bfd
mov eax, dword [0x4a44e0]
mov ecx, dword [0x4a44e4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x14]
push 0x4a44e0
push eax
call fcn.00456840
add esp, 8
test al, al
je 0x456c17
xor esi, esi
jmp 0x456c1e
call fcn.00456df0
mov esi, eax
push 1
mov ecx, edi
call fcn.00456720
mov eax, esi
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045b917
add esp, 0x150
ret 0x10
Function at 0x456c50
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
mov dword [esi], 0
test eax, eax
jne 0x456c85
push str.Cannot_receive_data_from_the_network__the_destination_buffer_is_invalid_
call fcn.00457000
push eax
call fcn.00406290
push eax
call fcn.00406540
add esp, 0xc
mov eax, 4
pop esi
ret 0xc
push 0
push dword [esp + 0x10]
push eax
call fcn.00456700
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x456ca4
mov dword [esi], eax
xor eax, eax
pop esi
ret 0xc
jne 0x456caf
mov eax, 3
pop esi
ret 0xc
call fcn.00456df0
pop esi
ret 0xc

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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x14]
test ebx, ebx
je 0x456d6e
test esi, esi
je 0x456d6e
push edi
mov edi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [edi], 0
push 0
mov eax, esi
sub eax, ecx
push eax
lea eax, [ecx + ebx]
mov ecx, ebp
push eax
call fcn.00456700
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x456d52
mov ecx, dword [edi]
add ecx, eax
mov dword [edi], ecx
cmp ecx, esi
jb 0x456d22
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
call fcn.00456df0
cmp eax, 1
jne 0x456d4b
cmp dword [edi], 0
mov ecx, 2
pop edi
pop esi
pop ebp
cmovne eax, ecx
pop ebx
ret 0xc
push str.Cannot_send_data_over_the_network__no_data_to_send_
call fcn.00457000
push eax
call fcn.00406290
push eax
call fcn.00406540
add esp, 0xc
mov eax, 4
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x456e50
Capabilities:
Set socket configuration

Disassembly:
movzx eax, byte [esp + 8]
xor eax, 1
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0x8004667e
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
ret
Function at 0x45ace4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], esi
test eax, eax
jg 0x45ad09
jl 0x45ad00
test ebx, ebx
jne 0x45ad09
xor eax, eax
xor edx, edx
jmp 0x45adc6
cmp dword [esi + 0x38], 0
je 0x45ad1e
push eax
push ebx
push dword [ebp + 8]
call fcn.00405610
jmp 0x45adc6
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x45ad61
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x45ad61
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call fcn.0045d6b0
mov ecx, dword [ebp - 8]
sub edi, esi
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x45ad67
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [esi + 0x4c], 0
je 0x45adbb
mov ecx, esi
call fcn.0045a642
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x45ada6
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.00465cdd
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x45adbb
jmp 0x45ad79
test edx, edx
je 0x45adbb
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.00465cdd
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x45b95a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x45b98f
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x45b98c
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x45b998
add edx, 0x28
cmp edx, esi
jne 0x45b97a
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x45b995

Function at 0x45cba7
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0045c000
mov eax, dword [0x4a3480]
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.0047666b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x466f5e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4670ba
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0045be30
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 + 0x4a50b8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0046f018
mov ecx, dword [esi*4 + 0x4a50b8]
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 0x4670b3
cmp eax, dword [ecx + edi + 0x24]
jne 0x4670b3
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 0x4670b3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046f018
add esp, 0x14
test edx, edx
jl 0x4670b3
jg 0x467029
test eax, eax
jb 0x4670b3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4670b3
jl 0x467043
cmp dword [ebp - 0x1008], eax
ja 0x4670b3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x467061
test ebx, ebx
je 0x46709a
cmp ecx, edi
jae 0x46709a
mov al, byte [ecx]
cmp al, 0xd
jne 0x46707b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x467087
cmp byte [ecx + 1], 0xa
jne 0x467087
inc ecx
jmp 0x467087
movzx eax, al
movsx eax, byte [eax + 0x4a3660]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x467061
cmp edx, ebx
jne 0x467061
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4670b8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045b917
leave
ret
Function at 0x46e330
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a3480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x499f70
push esi
call fcn.00467ea8
pop ecx
pop ecx
test eax, eax
jne 0x46e35e
xor al, al
jmp 0x46e3db
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.0046e065
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x46e398
push dword [ebp - 0x210]
call fcn.004657e3
xor al, al
jmp 0x46e3d9
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x46e39e
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x46e3be
push edx
call fcn.0046e267
pop ecx
test al, al
je 0x46e389
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x46e3cc
mov bl, 1
push dword [ebp - 0x210]
call fcn.004657e3
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045b917
leave
ret
Function at 0x474b35
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 + 0x4a50b8]
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 0x474b75
cmp byte [ebx], 0xa
jne 0x474b75
or byte [edi + eax + 0x28], 4
jmp 0x474b7a
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 0x474c79
mov dl, byte [eax]
cmp dl, 0x1a
je 0x474c5c
inc eax
cmp dl, 0xd
je 0x474ba6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x474bcc
cmp eax, ecx
jae 0x474bda
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 0x474b8e
jmp 0x474c79
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 0x474c57
cmp dword [ebp - 0x10], 0
je 0x474c57
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4a50b8]
test byte [eax + edi + 0x28], 0x48
je 0x474c31
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x474c1c
mov byte [esi], dl
jmp 0x474c2d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4a50b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x474c79
cmp byte [ebp - 1], 0xa
jne 0x474c40
cmp esi, ebx
jne 0x474c40
mov byte [esi], 0xa
jmp 0x474c78
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046f036
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x474c79
mov byte [esi], 0xd
jmp 0x474c78
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4a50b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x474c76
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x474c79
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x474c82
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 + 0x4a50b8]
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 0x474cc8
cmp word [ebx], dx
jne 0x474cc8
or byte [eax + edi + 0x28], 4
jmp 0x474ccd
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 0x474e30
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 0x474e10
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x474d0e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x474d44
cmp eax, edx
jae 0x474d52
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 0x474ce9
jmp 0x474e30
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 0x474e0b
cmp dword [ebp - 0x18], 0
je 0x474e0b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4a50b8]
test byte [eax + edi + 0x28], 0x48
je 0x474de1
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 0x474da5
mov word [esi], cx
jmp 0x474ddc
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4a50b8]
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 + 0x4a50b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4a50b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x474e30
pop eax
cmp word [ebp - 4], ax
jne 0x474df1
cmp esi, ebx
jne 0x474df1
mov word [esi], ax
jmp 0x474e2d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046f036
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x474e30
push 0xd
pop eax
jmp 0x474dec
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4a50b8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x474e2a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x474e30
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 0x477025
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49b6f4
push 0x49b6ec
push str.FlsAlloc
push 0x1f
call fcn.00476e50
mov esi, eax
add esp, 0x10
test esi, esi
je 0x477059
push dword [ebp + 8]
mov ecx, esi
call dword [0x4862dc]
call esi
jmp 0x47705f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4770a3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49b704
push 0x49b6fc
push str.FlsGetValue
push 0x21
call fcn.00476e50
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4770da
push dword [ebp + 8]
mov ecx, esi
call dword [0x4862dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4770e2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49b70c
push 0x49b704
push str.FlsSetValue
push 0x22
call fcn.00476e50
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47711c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4862dc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]