joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f3ce3
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x639034]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f3cf9
sub ecx, edx
lea eax, [ecx*2 + 2]
call fcn.00547910
mov eax, esp
lea ecx, [ebp - 5]
push dword [ebp + 8]
push eax
call fcn.004f2c5c
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4f3d53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4f3d4b
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4f3d53
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4f3d58
mov eax, dword [0x5fd8d4]
lea esp, [ebp - 0xc]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00546623
leave
ret

Function at 0x4f433e
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
shr eax, 0x10
xor eax, dword [ebp + 8]
imul ecx, eax, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop ebp
ret

Function at 0x4f69ca
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4f6a31
push esi
call fcn.004f6ca9
pop ecx
test al, al
jne 0x4f6a31
push ebx
push edi
lea eax, [ebp + 8]
push eax
push esi
call fcn.004f6c4a
pop ecx
mov esi, eax
mov ebx, 0x1505
pop ecx
mov ecx, dword [ebp + 8]
xor eax, eax
and dword [ebp + 8], 0
add ecx, esi
mov edi, ecx
sub edi, esi
cmp esi, ecx
cmova edi, eax
test edi, edi
je 0x4f6a2a
mov al, byte [esi]
push eax
call fcn.004fbf94
imul ebx, ebx, 0x21
pop ecx
movsx ecx, al
mov eax, dword [ebp + 8]
xor ebx, ecx
inc esi
inc eax
mov dword [ebp + 8], eax
cmp eax, edi
jb 0x4f6a0d
pop edi
movzx eax, bl
pop ebx
jmp 0x4f6a33
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4fb2d4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x639034]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [ebp + 0x10]
push ecx
push eax
mov edx, dword [eax + ecx*4 + 0x158]
push ebx
mov dword [ebp - 0x108], edx
call fcn.004fb681
add esp, 0xc
test eax, eax
je 0x4fb320
mov dword [esi], 0x1b
or eax, 0xffffffff
jmp 0x4fb38e
push 0
push dword [ebp + 0x14]
push edi
push dword [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_send]
and dword [esi], 0
mov edi, eax
cmp edi, 0xffffffff
jne 0x4fb38c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x108], eax
cmp eax, 0x2733
jne 0x4fb359
xor edi, edi
mov dword [esi], 0x51
jmp 0x4fb38c
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.0050c854
push eax
push str.Send_failure:__s
push ebx
call fcn.004fafec
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [ebx + 0x948], eax
mov dword [esi], 0x37
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00546623
leave
ret

Function at 0x4fb681
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
lea esi, [edx + 0x18]
mov eax, dword [ecx + 0x298]
shl esi, 4
add esi, ecx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4fb736
cmp dword [ecx + edx*4 + 0x170], 0x4fb211
jne 0x4fb736
xor eax, eax
cmp dword [esi], eax
je 0x4fb6c2
test edi, edi
je 0x4fb736
mov ebx, dword [ecx + edx*4 + 0x158]
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00501dfa
add esp, 0x14
cmp eax, 0xffffffff
je 0x4fb736
test al, 1
je 0x4fb736
mov ecx, dword [esi]
test ecx, ecx
jne 0x4fb719
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4d8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x638f5c]
pop ecx
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x4fb70a
push 0x1b
pop eax
jmp 0x4fb738
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov edi, dword [esi + 4]
test ecx, ecx
je 0x4fb732
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4fb736
add dword [esi + 8], eax
jmp 0x4fb736
and dword [esi + 4], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4fbb5e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
je 0x4fbc91
push ebx
push edi
push 0x5fe6e8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
mov ebx, eax
push 0x5fe6f8
push edi
mov dword [ebp - 8], ebx
call fcn.00573a6c
pop ecx
pop ecx
test eax, eax
je 0x4fbbb4
test ebx, ebx
je 0x4fbbab
push 8
jmp 0x4fbbcf
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x4fbbd3
test ebx, ebx
je 0x4fbbda
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4fbbda
push 0x800
push esi
push edi
call ebx
mov esi, eax
jmp 0x4fbc8d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x4fbc8d
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4fbbf4
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x638f5c]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4fbc85
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4fbc85
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4fbc2e
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4fbc49
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, edi
add ecx, ebx
movzx eax, word [edi]
mov word [ecx + edi], ax
lea edi, [edi + 2]
test ax, ax
jne 0x4fbc5e
mov eax, dword [ebp - 8]
test eax, eax
je 0x4fbc7c
push 8
push esi
push ebx
call eax
jmp 0x4fbc83
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push ebx
call dword [0x638f60]
pop ecx
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret

Function at 0x4fbc94
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x639034]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x4fbce1
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4fbcc8
push 2
pop eax
jmp 0x4fbd41
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4fbcd9
shr eax, 8
cmp al, 2
je 0x4fbce1
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x4fbcc3
call fcn.0050de13
test eax, eax
jne 0x4fbd41
push str.iphlpapi.dll
call fcn.004fbb5e
mov dword [0x644bfc], eax
pop ecx
test eax, eax
je 0x4fbd1b
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x644bf8]
test eax, eax
cmovne ecx, eax
mov dword [0x644bf8], ecx
push 3
push 2
push 0
push 6
call fcn.0050d1e9
add esp, 0x10
test al, al
setne byte [0x6460dc]
push 0x6460e0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00546623
leave
ret
Function at 0x4fcfae
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4fcfcf
cmp dword [esi + 0x84], 0
je 0x4fcfcf
push 2
push 3
push esi
call fcn.004fc8a9
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004fcc35
pop ecx
test esi, esi
je 0x4fcfef
cmp dword [esi + 0x84], 0
je 0x4fcfef
push 3
push esi
call fcn.004fc8e5
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x504bdf
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.004fc91e
push dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00503f8c
push dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], esi
call fcn.00503f8c
add esp, 0xc
mov ebx, eax
jmp 0x504c56
lea eax, [ebp - 0x24]
push eax
call fcn.004fc91e
sub esp, 0xc
lea esi, [ebp - 0x14]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004fc9ae
add esp, 0x20
test edx, edx
ja 0x504c81
jb 0x504c4b
cmp eax, 0x3e8
ja 0x504c81
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 4]
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x504c16
test esi, esi
je 0x504c6f
push esi
call fcn.005626ab
pop ecx
test ebx, ebx
je 0x504c7a
push ebx
call fcn.005626ab
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x504c8f
push eax
call fcn.005626ab
pop ecx
test ebx, ebx
je 0x504c9a
push ebx
call fcn.005626ab
pop ecx
xor eax, eax
inc eax
jmp 0x504c7c

Function at 0x505bab
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push edi
push 4
pop edi
push esi
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x14], esi
call fcn.0055fb20
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000040
push dword [ebp + 0x18]
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x505c64
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x505c47
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x505c47
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call edi
test eax, eax
je 0x505c47
cmp esi, dword [ebp - 0xc]
jb 0x505c47
push ebx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call edi
cmp dword [ebp - 4], ebx
je 0x505c55
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x505c64
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5116f9
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 [0x639034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push 0xf0000040
inc ebx
mov dword [ebp - 0x1c], 8
push ebx
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x51173b
xor al, al
jmp 0x5117c8
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.005117d7
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.00511f4c
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x51178f
xor bl, bl
jmp 0x5117bb
mov ecx, dword [ebp + 8]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push eax
push esi
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00546623
leave
ret
Function at 0x511b70
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x638f5c]
mov edi, eax
pop ecx
test edi, edi
je 0x511c5d
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 [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x511bdc
push ecx
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
call dword [esi + 8]
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x511be2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push ecx
call dword [esi]
push dword [edi + 8]
call dword [esi]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
pop ecx
pop ecx
test eax, eax
je 0x511c55
mov dword [ebp - 8], eax
mov ebx, eax
mov eax, dword [ebp - 4]
push 1
mov al, byte [eax]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov ecx, dword [ebp - 4]
push 1
mov al, byte [ecx]
xor al, 0x5c
inc ecx
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
mov dword [ebp - 4], ecx
call dword [esi + 4]
add esp, 0x18
sub ebx, 1
jne 0x511bfa
mov ebx, dword [ebp - 8]
jmp 0x511c55
push 1
push 0x604474
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x604475
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x511c37
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

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

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

Function at 0x511f4c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x511f9a
push edi
mov edi, dword [ebp + 8]
mov cl, byte [esi + edi]
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
and dl, 2
movzx ecx, cl
cmp dl, 2
cmovb ecx, eax
mov byte [esi + edi], cl
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x511f5b
pop edi
pop esi
pop ebp
ret
Function at 0x511f9f
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0xf0000040
xor edi, edi
lea eax, [ebp - 0xc]
push 1
push edi
push edi
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x511fd9
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x8002
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push dword [ebp + 0x10]
call fcn.004fb964
pop ecx
push edi
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push edi
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [ebp - 4], 0x10
jne 0x51201d
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [ebp - 8], edi
je 0x51202b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0xc], edi
je 0x51203a
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
leave
ret
Function at 0x549be7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x571200
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00546aa0
mov eax, dword [0x639034]
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.0056e3aa
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x571242
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x57139e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00546750
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 + 0x645bf8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00573e3c
mov ecx, dword [esi*4 + 0x645bf8]
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 0x571397
cmp eax, dword [ecx + edi + 0x24]
jne 0x571397
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 0x571397
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00573e3c
add esp, 0x14
test edx, edx
jl 0x571397
jg 0x57130d
test eax, eax
jb 0x571397
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x571397
jl 0x571327
cmp dword [ebp - 0x1008], eax
ja 0x571397
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x571345
test ebx, ebx
je 0x57137e
cmp ecx, edi
jae 0x57137e
mov al, byte [ecx]
cmp al, 0xd
jne 0x57135f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x57136b
cmp byte [ecx + 1], 0xa
jne 0x57136b
inc ecx
jmp 0x57136b
movzx eax, al
movsx eax, byte [eax + 0x639380]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x571345
cmp edx, ebx
jne 0x571345
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x57139c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00546623
leave
ret

Function at 0x571b23
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x571b62
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x571b62
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x571b62
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x571b62
cmp dword [ecx + 0x74], 0xe
jbe 0x571b62
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x57314a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x639034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x610d80
push esi
call fcn.00573a6c
pop ecx
pop ecx
test eax, eax
jne 0x573178
xor al, al
jmp 0x5731f5
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.00572e4c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5731b2
push dword [ebp - 0x210]
call fcn.005626ab
xor al, al
jmp 0x5731f3
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5731b8
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5731d8
push edx
call fcn.00573081
pop ecx
test al, al
je 0x5731a3
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5731e6
mov bl, 1
push dword [ebp - 0x210]
call fcn.005626ab
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00546623
leave
ret

Function at 0x57bbda
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x61297c
push 0x612974
push str.FlsAlloc
push 0x1f
call fcn.0057ba05
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57bc0e
push dword [ebp + 8]
mov ecx, esi
call dword [0x59e538]
call esi
jmp 0x57bc14
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x57bc58
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x61298c
push 0x612984
push str.FlsGetValue
push 0x21
call fcn.0057ba05
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57bc8f
push dword [ebp + 8]
mov ecx, esi
call dword [0x59e538]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x57bc97
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x612994
push 0x61298c
push str.FlsSetValue
push 0x22
call fcn.0057ba05
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57bcd1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x59e538]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x57d4d1
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 + 0x645bf8]
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 0x57d511
cmp byte [ebx], 0xa
jne 0x57d511
or byte [edi + eax + 0x28], 4
jmp 0x57d516
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 0x57d615
mov dl, byte [eax]
cmp dl, 0x1a
je 0x57d5f8
inc eax
cmp dl, 0xd
je 0x57d542
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x57d568
cmp eax, ecx
jae 0x57d576
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 0x57d52a
jmp 0x57d615
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 0x57d5f3
cmp dword [ebp - 0x10], 0
je 0x57d5f3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x645bf8]
test byte [eax + edi + 0x28], 0x48
je 0x57d5cd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x57d5b8
mov byte [esi], dl
jmp 0x57d5c9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x645bf8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x57d615
cmp byte [ebp - 1], 0xa
jne 0x57d5dc
cmp esi, ebx
jne 0x57d5dc
mov byte [esi], 0xa
jmp 0x57d614
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00573e5a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x57d615
mov byte [esi], 0xd
jmp 0x57d614
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x645bf8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x57d612
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x57d615
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret