joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462c70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
mov dword [ecx + 0x8c], 0
test edi, edi
je 0x462d91
cmp byte [0x53eccb], 0
push ebx
push esi
jne 0x462cb9
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
mov byte [0x53eccb], 1
push 0
push 0
push esi
push 0x462b00
push 0
push 0
call ebx
inc esi
cmp esi, 4
jl 0x462ca3
mov eax, dword [ebp + 8]
mov ecx, 4
mov dword [0x53ecd8], eax
mov eax, dword [ebp + 0x14]
test eax, eax
js 0x462cd2
cmp eax, ecx
cmovl ecx, eax
cmp ecx, edi
mov dword [0x53ec34], ecx
mov edx, 1
cmovl edi, ecx
mov eax, edx
shl eax, cl
mov ecx, edi
shl edx, cl
dec eax
dec edx
mov dword [0x53ecd4], eax
cmp edx, eax
mov dword [0x53ecd0], edx
setne byte [0x53ecca]
xor esi, esi
test edi, edi
jle 0x462d24
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [eax]
push dword [esi*4 + 0x53ec98]
call ebx
inc esi
cmp esi, edi
jl 0x462d10
mov edx, dword [0x53ecd0]
cmp byte [ebp + 0x10], 0
je 0x462d8f
test edx, edx
je 0x462d48
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [0x53ec84]
call esi
mov edx, dword [0x53ecd0]
test edx, edx
jne 0x462d34
mov dword [0x53ecd4], 0
mov dword [0x53ecd8], 0
mov byte [0x53ecca], 0
test edx, edx
je 0x462d8f
push edx
push str.Bad_thread_stop__d_n
call fcn.00434010
add esp, 8
cmp byte [0x53ee00], 0
jne 0x462d8f
mov byte [0x53ee00], 1
mov dword [0], 0
pop esi
pop ebx
pop edi
pop ebp
ret 0x10
Function at 0x463490
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 4], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x4635ed
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.004633c0
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x4635c0
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 8], edx
cmp edi, esi
jne 0x463543
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x4635b3
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x46357d
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x463575
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 0xc]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x4635b0
cmp edi, edx
je 0x46358d
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x4635c9
cmp edi, edx
jne 0x463581
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 4]
mov eax, ecx
cmp ecx, esi
jne 0x4634f2
nop dword [eax]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x4635b0
push str.invalid_hash_bucket_count
call fcn.004a5e78
int3
Function at 0x463600
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 4], ebx
mov eax, esi
shl eax, cl
mov ecx, dword [ebp + 8]
push edi
cmp ecx, eax
ja 0x463755
lea eax, [ecx - 1]
or eax, esi
lea edi, [ebx + 0xc]
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
lea ecx, [ecx + 1]
shl esi, cl
mov ecx, edi
lea eax, [esi + esi]
push eax
call fcn.004633c0
mov ecx, dword [ebx + 4]
lea eax, [esi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov ecx, dword [ecx]
cmp ecx, dword [ebp - 8]
je 0x463730
mov eax, ecx
nop dword [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
movzx edx, byte [eax + 0xa]
imul esi, esi, 0x1000193
xor esi, edx
movzx edx, byte [eax + 0xb]
imul esi, esi, 0x1000193
xor esi, edx
mov edx, dword [edi]
imul esi, esi, 0x1000193
and esi, dword [ebx + 0x18]
lea edx, [edx + esi*8]
mov esi, dword [edx]
mov dword [ebp - 0xc], edx
cmp esi, dword [ebp - 8]
jne 0x4636bf
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x463723
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x4636f0
mov ebx, dword [edx]
cmp ebx, eax
je 0x4636e8
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x46371d
cmp esi, edx
je 0x463700
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x463739
cmp esi, edx
jne 0x4636f4
mov ebx, dword [eax + 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], eax
mov dword [edx + 4], edi
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], esi
mov dword [edx], eax
mov ebx, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov eax, ecx
cmp ecx, dword [ebp - 8]
jne 0x463670
nop
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [eax + 4]
mov ebx, dword [edx]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x46371d
push str.invalid_hash_bucket_count
call fcn.004a5e78
int3
Function at 0x464770
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push esi
push 0
push 0
push eax
call fcn.00404b70
mov esi, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [0x53ee38]
test eax, eax
je 0x46480e
push ebx
mov ebx, 1
cmp eax, ebx
jle 0x464806
push edi
mov eax, dword [0x53ee3c]
mov edx, dword [eax + ebx*4]
mov eax, edx
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4647b0
mov esi, dword [esi]
sub eax, edi
push eax
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.004682d0
mov edx, dword [esi + 8]
add esp, 0xc
mov dword [ebp - 4], edx
lea edi, [edx + 1]
cmp edi, edx
jle 0x4647e9
cmp edi, dword [esi + 0xc]
jle 0x4647e6
push edi
mov ecx, esi
call fcn.0043f040
mov edx, dword [ebp - 4]
mov dword [esi + 8], edi
mov eax, dword [esi + 0x10]
inc ebx
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov dword [eax + edx*8], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + edx*8 + 4], ecx
cmp ebx, dword [0x53ee38]
jl 0x4647a2
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push esi
push eax
call fcn.00464420
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x467320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d1296
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x53ecb8]
push ebx
mov ecx, dword fs:[eax]
push esi
push edi
mov edi, dword [ecx + 4]
lea ebx, [edi + 0x1c]
cmp ebx, dword [ecx + 8]
jg 0x46738a
mov esi, dword [ecx + 0x10]
mov edx, edi
mov eax, dword [ecx + 0xc]
add esi, edi
sar edx, 7
and edi, 0x7f
mov dword [ecx + 4], ebx
lea ecx, [eax + edx*4]
mov eax, dword [edi*4 + 0x53ea20]
or dword [ecx], eax
lea eax, [ebx + 0x7f]
sar eax, 7
lea ecx, [esi + 4]
sub eax, edx
or eax, dword [0x536a28]
or eax, 0x600
mov dword [esi], eax
jmp 0x467398
mov eax, dword [ecx]
push 0x800000
push 0x18
call dword [eax + 4]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x4673ca
mov dword [ecx + 4], 4
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], vtable.hx::Hash_struct_hx::TNonGcStringSet_.0
mov dword [ecx + 0x14], 0
jmp 0x4673cc
xor ecx, ecx
push 0x540bf0
mov dword [ebp - 4], 0xffffffff
mov dword [0x540bf0], ecx
call fcn.00460010
add esp, 4
xor ecx, ecx
nop dword [eax + eax]
lea eax, [ecx - 0x21]
cmp eax, 0x5d
setbe al
mov byte [ecx + 0x540bf8], al
inc ecx
cmp ecx, 0x100
jl 0x4673f0
mov dword [ebp - 0x34], 0x2c2b2624
xor ecx, ecx
mov dword [ebp - 0x30], 0x3d3b3a2f
mov dword [ebp - 0x2c], 0x3c22403f
mov dword [ebp - 0x28], 0x7b25233e
mov dword [ebp - 0x24], 0x5e5c7c7d
mov dword [ebp - 0x20], 0x605d5b7e
nop dword [eax]
nop dword [eax + eax]
movzx eax, byte [ebp + ecx - 0x34]
inc ecx
mov byte [eax + 0x540bf8], 0
cmp ecx, 0x18
jb 0x467440
xor ebx, ebx
mov esi, 0x53eee8
nop dword [eax]
cmp ebx, 0x7f
jle 0x46749d
xor eax, eax
mov word [ebp - 0x44], bx
push 1
mov word [ebp - 0x42], ax
lea eax, [ebp - 0x44]
push 4
push eax
mov dword [esi], 1
call fcn.00460a80
mov edi, eax
add esp, 0xc
mov ecx, esi
or dword [edi - 4], 0x200000
mov dword [esi + 4], edi
call fcn.00467f80
mov dword [edi - 8], eax
jmp 0x4674ca
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00465fe0
push 1
lea eax, [ebp - 0x30]
mov byte [ebp - 0x2f], 0
push 2
push eax
call fcn.00460a80
add esp, 0x14
mov dword [esi + 4], eax
mov dword [esi], 1
add esi, 8
inc ebx
cmp esi, 0x53f6e8
jl 0x467460
push 0
push 0xc
push 0
call fcn.00460a80
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x467505
mov ecx, dword [0x5397c4]
mov edx, dword [0x5397c8]
mov dword [eax], vtable.hx::StringData.0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
jmp 0x467507
xor eax, eax
push 0
push 0
push 0
push 0
push 0x465f50
push 0x465f40
push 0x53b7d0
push 0x53b7c0
mov dword [0x53f6e8], eax
lea eax, [ebp - 0x1c]
push 0x4653e0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 6
push eax
mov dword [ebp - 0x18], str.String
call fcn.00453ef0
mov ecx, dword [ebp - 0xc]
add esp, 0x2c
mov eax, dword [eax]
pop edi
pop esi
mov dword [0x53f6ec], eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a5110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 1
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.004a5590
mov edi, dword [ebp + 0x10]
add esp, 8
mov ebx, dword [ebp + 0x14]
mov esi, ebx
mov dword [ebp - 4], eax
test edi, edi
js 0x4a5204
test ebx, ebx
js 0x4a5204
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
mov ecx, dword [eax + 8]
cmp edi, ecx
jg 0x4a5204
lea eax, [edi + ebx]
cmp eax, ecx
jg 0x4a5204
call fcn.0045fbc0
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
cmp dword [ecx + 8], 0
jg 0x4a5190
cmp dword [eax + 0xc], 1
jge 0x4a5189
push 1
mov ecx, eax
call fcn.0043f040
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], 1
mov ecx, dword [eax + 0x10]
mov dword [ebp + 0x14], ecx
test ebx, ebx
jle 0x4a51f6
nop word [eax + eax]
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
lea eax, [ecx + edi]
push esi
push 1
push eax
call fcn.004b13c8
add esp, 0x10
test eax, eax
jle 0x4a51d2
mov ecx, dword [ebp + 0x14]
sub esi, eax
add edi, eax
test esi, esi
jg 0x4a51a0
call fcn.0045fcd0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub ebx, esi
jne 0x4a51f6
mov eax, dword [ebp - 4]
sub esp, 8
mov edx, esp
mov ecx, dword [eax + 4]
mov dword [edx], ecx
mov ecx, dword [eax + 8]
push str.file_read
mov dword [edx + 4], ecx
call fcn.004a54b0
add esp, 0xc
call fcn.0045fcd0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a5210
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
push 1
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.004a5590
mov esi, eax
mov byte [ebp - 1], 0
call fcn.0045fbc0
push dword [esi + 0xc]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.004b13c8
add esp, 0x18
cmp eax, 1
je 0x4a5264
mov eax, dword [esi + 4]
sub esp, 8
mov ecx, esp
push str.file_read_char
mov dword [ecx], eax
mov eax, dword [esi + 8]
mov dword [ecx + 4], eax
call fcn.004a54b0
add esp, 0xc
call fcn.0045fcd0
movzx eax, byte [ebp - 1]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a5620
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4a5653
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5660
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
movzx eax, word [ebp + ecx - 0x20e]
cmp eax, 0x2f
je 0x4a568f
cmp eax, 0x5c
je 0x4a568f
mov dword [ebp + ecx - 0x20c], 0x2f
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.00468390
mov eax, dword [ebp + 8]
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x4a56b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
lea ecx, [ebp + 8]
call fcn.0046a070
mov esi, eax
call fcn.0045fbc0
push esi
call fcn.004b710c
add esp, 4
mov esi, eax
call fcn.0045fcd0
test esi, esi
pop esi
sete al
pop ebp
ret

Function at 0x4a56e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0
lea ecx, [ebp + 8]
call fcn.0046a070
mov esi, eax
call fcn.0045fbc0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
call fcn.0045fcd0
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x4a58c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
lea eax, [ebp - 4]
push ebx
push esi
push 0
push 0
push eax
call fcn.00404b70
add esp, 0xc
lea ecx, [ebp + 0xc]
push 0
call fcn.0046a070
mov ebx, eax
mov esi, ebx
lea eax, [esi + 2]
nop dword [eax]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x4a58f0
sub esi, eax
sar esi, 1
cmp esi, 0x104
jbe 0x4a5916
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword [eax], 0
mov esp, ebp
pop ebp
ret
push edi
lea edi, [esi + esi]
push edi
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004a77d0
add esp, 0xc
test esi, esi
je 0x4a594c
movzx eax, word [edi + ebx - 2]
cmp eax, 0x2f
je 0x4a594c
cmp eax, 0x5c
je 0x4a594c
mov eax, 0x2f
inc esi
mov word [ebp + edi - 0x21c], ax
mov dword [ebp + esi*2 - 0x21c], 0x2e002a
mov dword [ebp + esi*2 - 0x218], 0x2a
call fcn.0045fbc0
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, 0xffffffff
jne 0x4a599a
call fcn.0045fcd0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
nop dword [eax]
cmp word [ebp - 0x440], 0x2e
jne 0x4a59c6
mov ax, word [ebp - 0x43e]
test ax, ax
je 0x4a5a13
cmp ax, 0x2e
jne 0x4a59c6
cmp word [ebp - 0x43c], 0
je 0x4a5a13
call fcn.0045fcd0
push 0xffffffffffffffff
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00468390
mov ebx, dword [esi + 8]
add esp, 0xc
lea edi, [ebx + 1]
cmp edi, ebx
jle 0x4a59fa
cmp edi, dword [esi + 0xc]
jle 0x4a59f7
push edi
mov ecx, esi
call fcn.0043f040
mov dword [esi + 8], edi
mov eax, dword [esi + 0x10]
lea ecx, [eax + ebx*8]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov dword [ecx + 4], eax
call fcn.0045fbc0
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x46c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4a59a0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.0045fcd0
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a6a7a
Capabilities:
Parse pe header

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

Function at 0x4b0f8f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x53bbf4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x51f850
push esi
call fcn.004c0111
pop ecx
pop ecx
test eax, eax
jne 0x4b0fbd
xor al, al
jmp 0x4b103a
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.004b0cd2
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4b0ff7
push dword [ebp - 0x210]
call fcn.004ad980
xor al, al
jmp 0x4b1038
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4b0ffd
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4b101d
push edx
call fcn.004b0ec5
pop ecx
test al, al
je 0x4b0fe8
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4b102b
mov bl, 1
push dword [ebp - 0x210]
call fcn.004ad980
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a691f
leave
ret
Function at 0x4b663f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004a5f00
mov eax, dword [0x53bbf4]
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.004b4fca
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4b6681
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4b67dd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004cf540
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 + 0x541638]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004c2c30
mov ecx, dword [esi*4 + 0x541638]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4b67d6
cmp eax, dword [edi + ecx + 0x24]
jne 0x4b67d6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b67d6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c2c30
add esp, 0x14
test edx, edx
jl 0x4b67d6
jg 0x4b674c
test eax, eax
jb 0x4b67d6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4b67d6
jl 0x4b6766
cmp dword [ebp - 0x1008], eax
ja 0x4b67d6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4b6784
test ebx, ebx
je 0x4b67bd
cmp ecx, edi
jae 0x4b67bd
mov al, byte [ecx]
cmp al, 0xd
jne 0x4b679e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4b67aa
cmp byte [ecx + 1], 0xa
jne 0x4b67aa
inc ecx
jmp 0x4b67aa
movzx eax, al
movsx eax, byte [eax + 0x53bfa0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4b6784
cmp edx, ebx
jne 0x4b6784
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4b67db
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a691f
leave
ret

Function at 0x4ba200
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x520f20
push 0x520f18
push str.FlsAlloc
push 0x1e
call fcn.004ba06d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ba234
push dword [ebp + 8]
mov ecx, esi
call dword [0x4d3180]
call esi
jmp 0x4ba23a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4ba27e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x520f30
push 0x520f28
push str.FlsGetValue
push 0x20
call fcn.004ba06d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ba2b5
push dword [ebp + 8]
mov ecx, esi
call dword [0x4d3180]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4c06fd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x541638]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4c073d
cmp byte [ebx], 0xa
jne 0x4c073d
or byte [eax + edi + 0x28], 4
jmp 0x4c0742
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4c0840
mov al, byte [edx]
cmp al, 0x1a
je 0x4c0822
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4c0771
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4c0796
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4c07a0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4c0753
jmp 0x4c0840
push 0
lea eax, [ebp - 0xc]
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 0x4c081d
cmp dword [ebp - 0xc], 0
je 0x4c081d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x541638]
test byte [eax + edi + 0x28], 0x48
je 0x4c07f7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4c07e2
mov byte [esi], dl
jmp 0x4c07f3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x541638]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4c0840
cmp byte [ebp - 1], 0xa
jne 0x4c0806
cmp esi, ebx
jne 0x4c0806
mov byte [esi], 0xa
jmp 0x4c083f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004c2c4e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4c0840
mov byte [esi], 0xd
jmp 0x4c083f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x541638]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c083c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c0840
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret