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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x62fff4]
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 0x4ee3c6
sub ecx, edx
lea eax, [ecx*2 + 2]
call fcn.00541d90
mov eax, esp
lea ecx, [ebp - 5]
push dword [ebp + 8]
push eax
call fcn.004ed329
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4ee420
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4ee418
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4ee420
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4ee425
mov eax, dword [0x5f5eec]
lea esp, [ebp - 0xc]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540aaa
leave
ret

Function at 0x4eea0b
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 0x4f1095
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 0x4f10fc
push esi
call fcn.004f1374
pop ecx
test al, al
jne 0x4f10fc
push ebx
push edi
lea eax, [ebp + 8]
push eax
push esi
call fcn.004f1315
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 0x4f10f5
mov al, byte [esi]
push eax
call fcn.004f662b
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 0x4f10d8
pop edi
movzx eax, bl
pop ebx
jmp 0x4f10fe
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4f596b
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x62fff4]
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.004f5d18
add esp, 0xc
test eax, eax
je 0x4f59b7
mov dword [esi], 0x1b
or eax, 0xffffffff
jmp 0x4f5a25
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 0x4f5a23
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x108], eax
cmp eax, 0x2733
jne 0x4f59f0
xor edi, edi
mov dword [esi], 0x51
jmp 0x4f5a23
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.00506c2e
push eax
push str.Send_failure:__s
push ebx
call fcn.004f5683
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.00540aaa
leave
ret

Function at 0x4f5d18
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 0x4f5dcd
cmp dword [ecx + edx*4 + 0x170], 0x4f58a8
jne 0x4f5dcd
xor eax, eax
cmp dword [esi], eax
je 0x4f5d59
test edi, edi
je 0x4f5dcd
mov ebx, dword [ecx + edx*4 + 0x158]
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004fc492
add esp, 0x14
cmp eax, 0xffffffff
je 0x4f5dcd
test al, 1
je 0x4f5dcd
mov ecx, dword [esi]
test ecx, ecx
jne 0x4f5db0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4d8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x62ff18]
pop ecx
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x4f5da1
push 0x1b
pop eax
jmp 0x4f5dcf
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov edi, dword [esi + 4]
test ecx, ecx
je 0x4f5dc9
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 0x4f5dcd
add dword [esi + 8], eax
jmp 0x4f5dcd
and dword [esi + 4], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4f61f5
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 0x4f6328
push ebx
push edi
push 0x5f6d00
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
mov ebx, eax
push 0x5f6d10
push edi
mov dword [ebp - 8], ebx
call fcn.0056deec
pop ecx
pop ecx
test eax, eax
je 0x4f624b
test ebx, ebx
je 0x4f6242
push 8
jmp 0x4f6266
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x4f626a
test ebx, ebx
je 0x4f6271
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f6271
push 0x800
push esi
push edi
call ebx
mov esi, eax
jmp 0x4f6324
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x4f6324
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4f628b
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x62ff18]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4f631c
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4f631c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4f62c5
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 0x4f62e0
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 0x4f62f5
mov eax, dword [ebp - 8]
test eax, eax
je 0x4f6313
push 8
push esi
push ebx
call eax
jmp 0x4f631a
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push ebx
call dword [0x62ff1c]
pop ecx
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret

Function at 0x4f632b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x62fff4]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x4f6378
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4f635f
push 2
pop eax
jmp 0x4f63d8
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4f6370
shr eax, 8
cmp al, 2
je 0x4f6378
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x4f635a
call fcn.005082ca
test eax, eax
jne 0x4f63d8
push str.iphlpapi.dll
call fcn.004f61f5
mov dword [0x63b77c], eax
pop ecx
test eax, eax
je 0x4f63b2
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x63b778]
test eax, eax
cmovne ecx, eax
mov dword [0x63b778], ecx
push 3
push 2
push 0
push 6
call fcn.005075c3
add esp, 0x10
test al, al
setne byte [0x63cc5c]
push 0x63cc60
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540aaa
leave
ret
Function at 0x4f7646
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4f7667
cmp dword [esi + 0x84], 0
je 0x4f7667
push 2
push 3
push esi
call fcn.004f6f40
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004f72cd
pop ecx
test esi, esi
je 0x4f7687
cmp dword [esi + 0x84], 0
je 0x4f7687
push 3
push esi
call fcn.004f6f7c
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x4ff0cf
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.004f6fb6
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.004fe624
push dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], esi
call fcn.004fe624
add esp, 0xc
mov ebx, eax
jmp 0x4ff146
lea eax, [ebp - 0x24]
push eax
call fcn.004f6fb6
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.004f7046
add esp, 0x20
test edx, edx
ja 0x4ff171
jb 0x4ff13b
cmp eax, 0x3e8
ja 0x4ff171
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 0x4ff106
test esi, esi
je 0x4ff15f
push esi
call fcn.0055cb2b
pop ecx
test ebx, ebx
je 0x4ff16a
push ebx
call fcn.0055cb2b
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x4ff17f
push eax
call fcn.0055cb2b
pop ecx
test ebx, ebx
je 0x4ff18a
push ebx
call fcn.0055cb2b
pop ecx
xor eax, eax
inc eax
jmp 0x4ff16c

Function at 0x50009b
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.00559fa0
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 0x500154
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 0x500137
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 0x500137
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 0x500137
cmp esi, dword [ebp - 0xc]
jb 0x500137
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 0x500145
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x500154
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50bbb0
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 [0x62fff4]
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 0x50bbf2
xor al, al
jmp 0x50bc7f
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.0050bc8e
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.0050c3d6
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 0x50bc46
xor bl, bl
jmp 0x50bc72
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.00540aaa
leave
ret
Function at 0x50c027
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 [0x62ff18]
mov edi, eax
pop ecx
test edi, edi
je 0x50c114
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 0x50c093
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 0x50c099
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 0x50c10c
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 0x50c0b1
mov ebx, dword [ebp - 8]
jmp 0x50c10c
push 1
push 0x5fca6c
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x5fca6d
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x50c0ee
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x50c17c
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 0x50c1ad
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 0x50c3d6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x50c424
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 0x50c3e5
pop edi
pop esi
pop ebp
ret
Function at 0x50c427
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 0x50c461
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.004f5ffb
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 0x50c4a5
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 0x50c4b3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0xc], edi
je 0x50c4c2
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
leave
ret
Function at 0x544067
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 0x56b680
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00540f20
mov eax, dword [0x62fff4]
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.0056882a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x56b6c2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x56b81e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00540bd0
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 + 0x63c778]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0056e2bc
mov ecx, dword [esi*4 + 0x63c778]
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 0x56b817
cmp eax, dword [ecx + edi + 0x24]
jne 0x56b817
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 0x56b817
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0056e2bc
add esp, 0x14
test edx, edx
jl 0x56b817
jg 0x56b78d
test eax, eax
jb 0x56b817
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x56b817
jl 0x56b7a7
cmp dword [ebp - 0x1008], eax
ja 0x56b817
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x56b7c5
test ebx, ebx
je 0x56b7fe
cmp ecx, edi
jae 0x56b7fe
mov al, byte [ecx]
cmp al, 0xd
jne 0x56b7df
lea eax, [edi - 1]
cmp ecx, eax
jae 0x56b7eb
cmp byte [ecx + 1], 0xa
jne 0x56b7eb
inc ecx
jmp 0x56b7eb
movzx eax, al
movsx eax, byte [eax + 0x630228]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x56b7c5
cmp edx, ebx
jne 0x56b7c5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x56b81c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00540aaa
leave
ret

Function at 0x56bfa3
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x62fff4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x609380
push esi
call fcn.0056deec
pop ecx
pop ecx
test eax, eax
jne 0x56d5f8
xor al, al
jmp 0x56d675
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.0056d2cc
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x56d632
push dword [ebp - 0x210]
call fcn.0055cb2b
xor al, al
jmp 0x56d673
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x56d638
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x56d658
push edx
call fcn.0056d501
pop ecx
test al, al
je 0x56d623
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x56d666
mov bl, 1
push dword [ebp - 0x210]
call fcn.0055cb2b
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00540aaa
leave
ret
Function at 0x573743
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 + 0x63c778]
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 0x573783
cmp byte [ebx], 0xa
jne 0x573783
or byte [edi + eax + 0x28], 4
jmp 0x573788
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 0x573887
mov dl, byte [eax]
cmp dl, 0x1a
je 0x57386a
inc eax
cmp dl, 0xd
je 0x5737b4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5737da
cmp eax, ecx
jae 0x5737e8
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 0x57379c
jmp 0x573887
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 0x573865
cmp dword [ebp - 0x10], 0
je 0x573865
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x63c778]
test byte [eax + edi + 0x28], 0x48
je 0x57383f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x57382a
mov byte [esi], dl
jmp 0x57383b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x63c778]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x573887
cmp byte [ebp - 1], 0xa
jne 0x57384e
cmp esi, ebx
jne 0x57384e
mov byte [esi], 0xa
jmp 0x573886
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0056e2da
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x573887
mov byte [esi], 0xd
jmp 0x573886
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x63c778]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x573884
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x573887
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret