joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7390
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5a9840]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 4
push eax
push 1
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4b73f2
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00476c40
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.0048ca40
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ef253
mov esp, ebp
pop ebp
ret
Function at 0x4c3520
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4c3545
mov eax, 0x1b
pop esi
pop ebp
ret
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4c3575
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
mov eax, 2
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4c3710
Capabilities:
Get hostname

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

Function at 0x4c3dc0
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 [0x5a9840]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4c3e52
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.004c3eb0
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.004c5610
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4c3e64
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ef253
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [esi], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004ef253
mov esp, ebp
pop ebp
ret
Function at 0x4c4f90
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4c4fb5
mov eax, 0x1b
pop esi
pop ebp
ret
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4c4fe5
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
mov eax, 2
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4c5110
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x5a934c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c513d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push edi
lea edi, [ebx + 4]
cmp eax, dword [ebx + 0x10]
jbe 0x4c5188
mov eax, dword [ebx]
push ecx
call eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 0xc]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebx + 0xc]
push dword [esi + 4]
mov dword [ebp - 8], eax
push eax
mov eax, dword [ebx + 8]
call eax
mov eax, dword [ebx + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x4c518e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 4]
mov eax, dword [ebx]
call eax
push dword [esi + 8]
mov eax, dword [ebx]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4c51f1
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
nop
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4c51b0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
lea edi, [eax + 4]
jmp 0x4c51f4
mov eax, dword [ebp + 8]
cmp ebx, dword [eax + 0x10]
jae 0x4c5228
nop dword [eax]
mov eax, dword [edi]
push 1
push 0x57cfb8
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x57cfb9
push dword [esi + 8]
call eax
mov eax, dword [ebp + 8]
inc ebx
add esp, 0x18
cmp ebx, dword [eax + 0x10]
jb 0x4c5200
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c5610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x4c565d
push ebx
mov ebx, dword [ebp + 8]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x4c5622
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x4c5720
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

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

Function at 0x4d6286
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4d62ad
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4d62b0
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004d6262
pop esi
leave
ret 8

Function at 0x4de934
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x4de957
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x4de945
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4ee8ad
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00537334
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4ee8f0
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4ee8f0
sub eax, 1
je 0x4ee8eb
sub eax, 1
je 0x4ee8e7
xor eax, eax
leave
ret
push 3
jmp 0x4ee8f2
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x4f1102
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5a9840]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x58e2b8
push esi
call fcn.0052ca6e
pop ecx
pop ecx
test eax, eax
jne 0x51e527
xor al, al
jmp 0x51e5a4
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.0051e13b
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x51e561
push dword [ebp - 0x210]
call fcn.0051a236
xor al, al
jmp 0x51e5a2
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x51e567
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x51e587
push edx
call fcn.0051e430
pop ecx
test al, al
je 0x51e552
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x51e595
mov bl, 1
push dword [ebp - 0x210]
call fcn.0051a236
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ef253
leave
ret

Function at 0x53c8f6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x53c935
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x53c935
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x53c935
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x53c935
cmp dword [ecx + 0x74], 0xe
jbe 0x53c935
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x53f463
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 + 0x5ae0a0]
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 0x53f4a3
cmp byte [ebx], 0xa
jne 0x53f4a3
or byte [edi + eax + 0x28], 4
jmp 0x53f4a8
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 0x53f5a7
mov dl, byte [eax]
cmp dl, 0x1a
je 0x53f58a
inc eax
cmp dl, 0xd
je 0x53f4d4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x53f4fa
cmp eax, ecx
jae 0x53f508
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 0x53f4bc
jmp 0x53f5a7
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 0x53f585
cmp dword [ebp - 0x10], 0
je 0x53f585
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5ae0a0]
test byte [eax + edi + 0x28], 0x48
je 0x53f55f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x53f54a
mov byte [esi], dl
jmp 0x53f55b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5ae0a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x53f5a7
cmp byte [ebp - 1], 0xa
jne 0x53f56e
cmp esi, ebx
jne 0x53f56e
mov byte [esi], 0xa
jmp 0x53f5a6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005370d2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x53f5a7
mov byte [esi], 0xd
jmp 0x53f5a6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5ae0a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x53f5a4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x53f5a7
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x53f5b0
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 + 0x5ae0a0]
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 0x53f5f6
cmp word [ebx], dx
jne 0x53f5f6
or byte [eax + edi + 0x28], 4
jmp 0x53f5fb
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 0x53f75e
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 0x53f73e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x53f63c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x53f672
cmp eax, edx
jae 0x53f680
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 0x53f617
jmp 0x53f75e
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 0x53f739
cmp dword [ebp - 0x18], 0
je 0x53f739
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5ae0a0]
test byte [eax + edi + 0x28], 0x48
je 0x53f70f
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 0x53f6d3
mov word [esi], cx
jmp 0x53f70a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5ae0a0]
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 + 0x5ae0a0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5ae0a0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x53f75e
pop eax
cmp word [ebp - 4], ax
jne 0x53f71f
cmp esi, ebx
jne 0x53f71f
mov word [esi], ax
jmp 0x53f75b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005370d2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x53f75e
push 0xd
pop eax
jmp 0x53f71a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5ae0a0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x53f758
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x53f75e
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 0x5442bd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x591034
push 0x59102c
push str.FlsAlloc
push 0x1f
call fcn.00543f8b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5442f1
push dword [ebp + 8]
mov ecx, esi
call dword [0x564704]
call esi
jmp 0x5442f7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x54433b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x591044
push 0x59103c
push str.FlsGetValue
push 0x21
call fcn.00543f8b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x544372
push dword [ebp + 8]
mov ecx, esi
call dword [0x564704]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x54437a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.SunMonTueWedThuFriSat
push 0x591044
push str.FlsSetValue
push 0x22
call fcn.00543f8b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5443b4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x564704]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x54887e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004f0580
mov eax, dword [0x5a9840]
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.00541290
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5488c0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x548a1c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004ef270
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 + 0x5ae0a0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005370b4
mov ecx, dword [esi*4 + 0x5ae0a0]
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 0x548a15
cmp eax, dword [ecx + edi + 0x24]
jne 0x548a15
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 0x548a15
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005370b4
add esp, 0x14
test edx, edx
jl 0x548a15
jg 0x54898b
test eax, eax
jb 0x548a15
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x548a15
jl 0x5489a5
cmp dword [ebp - 0x1008], eax
ja 0x548a15
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5489c3
test ebx, ebx
je 0x5489fc
cmp ecx, edi
jae 0x5489fc
mov al, byte [ecx]
cmp al, 0xd
jne 0x5489dd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5489e9
cmp byte [ecx + 1], 0xa
jne 0x5489e9
inc ecx
jmp 0x5489e9
movzx eax, al
movsx eax, byte [eax + 0x5a9a20]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5489c3
cmp edx, ebx
jne 0x5489c3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x548a1a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004ef253
leave
ret
Function at 0x549edb
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00549cff
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x54a04a
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x54a04a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x549fff
jg 0x549f37
test eax, eax
je 0x549ff5
push 1
push 0x1000
call fcn.005438f1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x549f5a
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x549fec
push 0x8000
push ebx
call fcn.0053cc1f
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x549f83
jg 0x549f7e
cmp ecx, 0x1000
jb 0x549f83
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0054078f
add esp, 0x10
cmp eax, 0xffffffff
je 0x549fc8
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x549f7e
jl 0x549faf
test ecx, ecx
jne 0x549f70
push dword [ebp - 0xc]
push ebx
call fcn.0053cc1f
push esi
call fcn.005421be
add esp, 0xc
xor ebx, ebx
jmp 0x54a058
cmp byte [edi + 0x24], 0
je 0x549fdf
cmp dword [edi + 0x20], 5
jne 0x549fdf
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x549fea
mov ebx, dword [edi + 0x18]
jmp 0x549fec
xor ebx, ebx
push esi
call fcn.005421be
pop ecx
jmp 0x54a058
test ecx, ecx
jg 0x549fc1
jl 0x549fff
test eax, eax
jae 0x549fc1
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005370d2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x54a01f
cmp byte [edi + 0x1c], 0
je 0x549fc1
jmp 0x54a050
push ebx
call fcn.00546007
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x549fc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x54a058
cmp byte [edi + 0x1c], 0
je 0x54a055
mov ebx, dword [edi + 0x18]
jmp 0x54a058
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005370d2
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x54bafb
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0054b9cf
Function at 0x54c338
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5a9840]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x54c383
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0054c70a
test al, al
jne 0x54c37d
sub edx, 2
cmp edx, edi
jne 0x54c363
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x54c3a5
lea eax, [edi + 2]
cmp edx, eax
je 0x54c3a5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0054bfff
add esp, 0x10
jmp 0x54c49f
push esi
lea ecx, [ebp - 0x255]
call fcn.0054c70a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x54c3e8
push dword [ebp - 0x25c]
jmp 0x54c395
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x54c425
cmp word [ebp - 0x226], 0
je 0x54c446
cmp word [ebp - 0x226], ax
jne 0x54c425
cmp word [ebp - 0x224], 0
je 0x54c446
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0054bfff
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x54c492
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x54c3ff
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x54c47a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x54c49f
push 0x54bb1e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0052c510
add esp, 0x10
jmp 0x54c46f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ef253
leave
ret