joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ddf
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
push 0x400
xor edi, edi
call esi
mov dword [esp], 0x408a00
mov ebp, eax
push str._sjvm.dll
push ebp
call dword [sym.imp.msvcrt.dll_sprintf]
push 0x200
call esi
add esp, 0x10
mov esi, eax
push edi
push 0x80
push 3
push edi
push 7
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402e9b
push edi
lea eax, [esp + 0x14]
push eax
push 0x200
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402e9b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, edi
mov eax, edi
cmp byte [eax + esi], 0x50
jne 0x402e89
cmp byte [eax + esi + 1], 0x45
jne 0x402e89
cmp byte [eax + esi + 2], bl
jne 0x402e89
cmp byte [eax + esi + 3], bl
jne 0x402e89
mov cl, byte [eax + esi + 4]
cmp cl, 0x4c
jne 0x402e7d
cmp byte [eax + esi + 5], 1
je 0x402e93
cmp cl, 0x64
jne 0x402e89
cmp byte [eax + esi + 5], 0x86
je 0x402e98
inc eax
cmp eax, 0x1fa
jb 0x402e54
jmp 0x402ea6
push 0x20
pop edi
jmp 0x402ea6
push 0x40
pop edi
test ebx, ebx
je 0x402ea6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.msvcrt.dll_free]
test esi, esi
je 0x402eb4
push esi
call ebx
pop ecx
test ebp, ebp
je 0x402ebc
push ebp
call ebx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4043ab
Capabilities:
Access the windows event log
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x128]
mov dword [ebp - 4], edx
push eax
xor ebx, ebx
mov edi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.msvcrt.dll_strrchr]
lea eax, [ebp - 0x128]
push 0x2e
push eax
call esi
push 0x5c
mov byte [eax], bl
lea eax, [ebp - 0x128]
push eax
call esi
add esp, 0x10
inc eax
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
jne 0x404438
push 7
pop ecx
lea eax, [ebp - 0x24]
mov esi, str.error:_RegisterEvnetSource_n
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 1
push ebx
push 0x40000000
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008fff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1000900e
pop dword [ebp - 0x44]
mov eax, 0x85d09074
add eax, 0x8a2fff9a
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xf0f13516
add dword [ebp - 0x54], 0x5d611035
mov dword [ebp - 0x50], 0xbb3a04af
add dword [ebp - 0x50], 0x76f94796
mov dword [ebp - 0x4c], 0x97ad3ead
add dword [ebp - 0x4c], 0xb49f0581
mov dword [ebp - 0x48], 0x48ab3df3
sub dword [ebp - 0x48], 0x48ab3df3
lea eax, [ebp - 0x54]
push eax
mov eax, 0x153a80d2
add eax, 0xfac61f32
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x5bb7b607
sub dword [ebp - 0x54], 0xe7454cb1
mov dword [ebp - 0x50], 0xc9d48932
add dword [ebp - 0x50], 0x7797d843
mov dword [ebp - 0x4c], 0xf16b0643
add dword [ebp - 0x4c], 0x72046629
mov dword [ebp - 0x48], 0x44907829
add dword [ebp - 0x48], 0xbb6f87d7
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xe38e6edc
add eax, 0x2c72312c
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x36f72
push 0
call eax
mov ecx, 0x2db8082c
add ecx, 0xd248418c
mov edx, eax
mov ebx, 0x1000f800
add ebx, dword [ebp - 0x44]
mov esi, 0x3e703f67
add esi, 0x6481137a
add dword [ebp - 0xc], eax
mov edi, dword [ebx]
xor dword [ebp - 0x28], 0x9f8d970f
add edi, esi
sub dword [ebp - 0x1c], edi
mov dword [edx], edi
xor dword [ebp - 0x20], 0x9e47abb9
add edx, 0xba092302
add edx, 0x45f6dd02
add ebx, 0x68af48d6
add ebx, 0x9750b72e
loop 0x1000912a
add eax, 0x9d5f2b01
add eax, 0x62a1eeb2
mov ebx, eax
add eax, 0x72d07b9f
sub eax, 0x72d07b9a
mov ecx, 0x5b5f574d
sub ecx, 0x4b5f574d
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x406106
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x406115
pop dword [ebp - 0x1c]
mov eax, 0x801d114b
sub eax, 0x7fdcb036
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x809bcdab
sub dword [ebp - 0x2c], 0x32498860
mov dword [ebp - 0x28], 0x4730e915
sub dword [ebp - 0x28], 0x14fd9cd0
mov dword [ebp - 0x24], 0xdcce0615
sub dword [ebp - 0x24], 0x9081c1e7
mov dword [ebp - 0x20], 0x8e3d0f6d
add dword [ebp - 0x20], 0x71c2f093
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xae183e6e
add eax, 0x52284296
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xbcafcbea
sub dword [ebp - 0x2c], 0x483d6294
mov dword [ebp - 0x28], 0x1ac1f952
sub dword [ebp - 0x28], 0xd95597dd
mov dword [ebp - 0x24], 0x1da8661c
add dword [ebp - 0x24], 0x45c70650
mov dword [ebp - 0x20], 0x10bea4a7
add dword [ebp - 0x20], 0xef415b59
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x37353
push 0
call eax
mov ecx, 0x48cc
mov ebx, eax
mov esi, 0x12427e6c
add esi, 0xee028594
add esi, dword [ebp - 0x1c]
mov edx, 0xbcf4fd07
sub dword [ebp - 0x14], 0xd99c2142
mov edi, dword [esi]
xor dword [ebp - 4], 0xb3badd23
sub edi, edx
xor dword [ebp - 0x18], 0xd840c70f
mov dword [ebx], edi
add dword [ebp - 0x14], 0xa9920608
add ebx, 0xf9fa11ac
sub ebx, 0xf9fa11a8
add esi, 0xd05084c1
add esi, 0x2faf7b43
loop 0x406226
add eax, 0xe0f55bd8
add eax, 0x1f0bba2b
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x40656f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x4065a6
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406580
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x40657b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065d7
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x4065b9
pop edi
not eax
pop esi
ret 0xc
Function at 0x10020313
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x10020322
pop dword [ebp - 0x24]
mov eax, 0x10020322
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x4fa99841
sub dword [ebp - 0x34], 0x15752f6
mov dword [ebp - 0x30], 0x2c1476c1
sub dword [ebp - 0x30], 0xf9e12a7c
mov dword [ebp - 0x2c], 0x5607aa3a
sub dword [ebp - 0x2c], 0x9bb660c
mov dword [ebp - 0x28], 0xaf8adb3a
add dword [ebp - 0x28], 0x507524c6
lea eax, [ebp - 0x34]
push eax
mov eax, 0x718254da
add eax, 0x9e7fcb6a
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x75a5e14b
add dword [ebp - 0x34], 0xfecc880b
mov dword [ebp - 0x30], 0x6d44da45
sub dword [ebp - 0x30], 0x2bd878d0
mov dword [ebp - 0x2c], 0x9d04305
add dword [ebp - 0x2c], 0x599f2967
mov dword [ebp - 0x28], 0xcabe5e3d
sub dword [ebp - 0x28], 0xcabe5e3d
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3b8b0
push 0
call eax
mov ecx, 0x215df3bc
sub ecx, 0x215d9e3c
xor edi, edi
add edi, eax
mov edx, 0x55edd37a
sub edx, 0x45eab77a
add edx, dword [ebp - 0x24]
mov esi, 0x3e884c6f
add esi, 0xa9c7bca
sub dword [ebp - 0x1c], edi
mov ebx, dword [edx]
sub dword [ebp - 0x20], 0xdae0362d
xor ebx, esi
add dword [ebp - 8], ebx
mov dword [edi], ebx
xor dword [ebp - 0x10], 0x750bf41d
add edi, 4
add edx, 0xf3747f4b
add edx, 0xc8b80b9
loop 0x1002043c
add eax, 0x148d3
mov ebx, eax
add eax, 0x44d061e3
add eax, 0xbb2f9e22
mov ecx, 0x10000000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x402921
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x218], eax
test esi, esi
je 0x402a4b
xor eax, eax
cmp word [esi], ax
je 0x402a4b
push edi
push 4
push 0x4239e8
push esi
call fcn.0040d7ba
test eax, eax
lea edi, [esi + 8]
push 2
cmovne edi, esi
push 0x4239f4
push edi
call fcn.0040d7ba
push 0x20a
mov esi, eax
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004097a0
test esi, esi
lea ecx, [edi + 4]
push 0x104
cmovne ecx, edi
lea eax, [ebp - 0x210]
push ecx
push 0x105
push eax
call fcn.0040d8c2
lea eax, [ebp - 0x210]
push 0x2e
push eax
call fcn.00408f22
add esp, 0x3c
mov esi, eax
pop edi
test esi, esi
je 0x4029fe
xor eax, eax
mov word [esi], ax
inc esi
add esi, 1
je 0x4029fe
push str.HTML
push esi
call fcn.0040b33c
pop ecx
pop ecx
test eax, eax
je 0x4029fe
push 0x423a08
push esi
call fcn.0040b33c
pop ecx
pop ecx
test eax, eax
je 0x4029fe
push esi
jmp 0x402a00
push 0x17
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x402a4b
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402a4b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 0x214]
mov dword [ecx], eax
test eax, eax
je 0x402a4b
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x218]
mov dword [ecx], eax
test eax, eax
je 0x402a4b
mov al, 1
jmp 0x402a4d
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00407a7c
leave
ret

Function at 0x402dee
Capabilities:
Create thread

Disassembly:
push 0x30
mov eax, 0x41be41
call fcn.004082ea
xor edi, edi
lea eax, [ebp + 0x18]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x30]
call fcn.004016ee
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x20]
call fcn.004016ee
push 0x20
mov byte [ebp - 4], 3
call fcn.00407c91
mov esi, eax
lea eax, [ebp - 0x30]
pop ecx
push eax
mov ecx, esi
call fcn.0040171a
lea eax, [ebp - 0x20]
lea ecx, [esi + 0x10]
push eax
call fcn.0040171a
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
push edi
push esi
push 0x4069ba
push edi
push edi
call fcn.0040b599
add esp, 0x18
mov dword [ebp - 0x38], eax
test eax, eax
je 0x402ebb
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.00402caf
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], edi
jne 0x402ec5
lea ecx, [ebp - 0x30]
call fcn.00403524
mov byte [ebp - 4], 6
call fcn.0040238f
lea edx, [ebp + 8]
push edx
mov ecx, dword [eax + 0x208]
call ecx
mov dword [ebp - 4], 7
call fcn.0040238f
lea edx, [ebp + 0x18]
push edx
mov ecx, dword [eax + 0x208]
call ecx
mov al, 1
call fcn.00408299
ret 0x20
push 6
mov dword [ebp - 0x34], edi
call fcn.00407635
call fcn.0040b62a
int3
Function at 0x402f91
Capabilities:
Create thread

Disassembly:
push 0x20
mov eax, 0x41bec9
call fcn.004082ea
xor edi, edi
lea eax, [ebp + 8]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x20]
call fcn.004016ee
push 0x10
mov byte [ebp - 4], 1
call fcn.00407c91
mov esi, eax
lea eax, [ebp - 0x20]
pop ecx
push eax
mov ecx, esi
call fcn.0040171a
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
push edi
push esi
push 0x406a0a
push edi
push edi
call fcn.0040b599
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x403036
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00402caf
mov byte [ebp - 4], 1
cmp dword [ebp - 0x24], edi
jne 0x403040
mov byte [ebp - 4], 5
call fcn.0040238f
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [eax + 0x208]
call ecx
mov dword [ebp - 4], 6
call fcn.0040238f
lea edx, [ebp + 8]
push edx
mov ecx, dword [eax + 0x208]
call ecx
mov al, 1
call fcn.00408299
ret 0x10
push 6
mov dword [ebp - 0x24], edi
call fcn.00407635
call fcn.0040b62a
int3

Function at 0x4031ae
Capabilities:
Create thread

Disassembly:
push 0x1c
mov eax, 0x41bf9e
call fcn.004082b7
push 0x30
xor esi, esi
call fcn.00407c91
mov ebx, eax
pop ecx
mov dword [ebp - 0x18], ebx
lea edi, [ebx + 4]
mov dword [ebp - 4], esi
mov dword [edi], 0x42a960
mov dword [ebp - 0x10], edi
mov dword [ebx + 8], esi
mov byte [ebp - 4], 1
lea esi, [ebx + 0x10]
mov dword [ebx], vtable.NativeBackend::NativePromise.0
call fcn.0040238f
push esi
mov eax, dword [eax + 0x204]
call eax
mov byte [ebp - 4], 2
lea esi, [ebx + 0x20]
call fcn.0040238f
push esi
mov eax, dword [eax + 0x204]
call eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
push edi
mov dword [ebp - 0x18], ebx
mov eax, dword [eax]
call eax
mov dword [ebp - 4], 3
mov eax, dword [edi]
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x28], esi
mov eax, dword [eax]
mov dword [ebp - 0x24], ebx
call eax
push 8
mov byte [ebp - 4], 4
call fcn.00407c91
mov edi, eax
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 5
mov dword [edi], esi
mov dword [edi + 4], ebx
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
mov eax, dword [ecx]
call eax
mov dword [ebp + 0xc], edi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 6
push eax
xor esi, esi
push esi
push edi
push 0x406a5a
push esi
push esi
call fcn.0040b599
add esp, 0x28
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4032c1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.00402caf
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1c], esi
jne 0x4032cb
mov byte [ebp - 4], 8
mov eax, dword [ebx]
push ebx
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp + 8]
mov edx, ebx
mov byte [ebp - 4], 3
call fcn.00401a27
mov dword [ebp - 4], 9
mov ecx, dword [ebx]
push ebx
call dword [ecx + 4]
mov eax, dword [ebp + 8]
pop ecx
pop ecx
call fcn.00408285
ret 8
push 6
mov dword [ebp - 0x1c], esi
call fcn.00407635
call fcn.0040b62a
int3
Function at 0x403fcd
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x42a040]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
cmp dword [ebp + 0xc], esi
jbe 0x404041
mov edi, eax
test esi, esi
je 0x40400c
push 0x423bf4
call ebx
push 1
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.00401a78
cmp dword [esp + 0x30], 7
lea eax, [esp + 0x1c]
cmova eax, dword [esp + 0x1c]
push eax
call ebx
lea ecx, [esp + 0x1c]
call fcn.00404ce8
inc esi
add edi, 0x10
cmp esi, dword [ebp + 0xc]
jb 0x404001
mov edi, dword [esp + 0x14]
push 0x423bf8
call ebx
call fcn.0040238f
push edi
mov ecx, dword [eax + 0x204]
call ecx
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407a7c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4086e0
Capabilities:
Parse pe header

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

Function at 0x40f3d3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f43c
push 0x41f434
push str.FlsAlloc
push 0x1f
call fcn.0040f2af
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f407
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d164]
call esi
jmp 0x40f40d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f451
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f44c
push 0x41f444
push str.FlsGetValue
push 0x21
call fcn.0040f2af
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f488
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40f490
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f454
push 0x41f44c
push str.FlsSetValue
push 0x22
call fcn.0040f2af
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f4ca
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d164]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x411eb3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42a040]
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 0x411efe
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041204e
test al, al
jne 0x411ef8
sub edx, 2
cmp edx, edi
jne 0x411ede
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x411f20
lea eax, [edi + 2]
cmp edx, eax
je 0x411f20
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00411dff
add esp, 0x10
jmp 0x41201a
push esi
lea ecx, [ebp - 0x255]
call fcn.0041204e
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 0x411f63
push dword [ebp - 0x25c]
jmp 0x411f10
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 0x411fa0
cmp word [ebp - 0x226], 0
je 0x411fc1
cmp word [ebp - 0x226], ax
jne 0x411fa0
cmp word [ebp - 0x224], 0
je 0x411fc1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00411dff
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41200d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x411f7a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x411ff5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41201a
push 0x411b60
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00417aa0
add esp, 0x10
jmp 0x411fea
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.00407a7c
leave
ret
Function at 0x4184c5
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.00418441
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x418634
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x418634
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4185e9
jg 0x418521
test eax, eax
je 0x4185df
push 1
push 0x1000
call fcn.0040f0ff
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x418544
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4185d6
push 0x8000
push ebx
call fcn.0040e731
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41856d
jg 0x418568
cmp ecx, 0x1000
jb 0x41856d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004156cd
add esp, 0x10
cmp eax, 0xffffffff
je 0x4185b2
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 0x418568
jl 0x418599
test ecx, ecx
jne 0x41855a
push dword [ebp - 0xc]
push ebx
call fcn.0040e731
push esi
call fcn.0040f15c
add esp, 0xc
xor ebx, ebx
jmp 0x418642
cmp byte [edi + 0x24], 0
je 0x4185c9
cmp dword [edi + 0x20], 5
jne 0x4185c9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4185d4
mov ebx, dword [edi + 0x18]
jmp 0x4185d6
xor ebx, ebx
push esi
call fcn.0040f15c
pop ecx
jmp 0x418642
test ecx, ecx
jg 0x4185ab
jl 0x4185e9
test eax, eax
jae 0x4185ab
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00415b0f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x418609
cmp byte [edi + 0x1c], 0
je 0x4185ab
jmp 0x41863a
push ebx
call fcn.004131c3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4185ab
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 0x418642
cmp byte [edi + 0x1c], 0
je 0x41863f
mov ebx, dword [edi + 0x18]
jmp 0x418642
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00415b0f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41865c
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 + 0x42c038]
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 0x41869c
cmp byte [ebx], 0xa
jne 0x41869c
or byte [edi + eax + 0x28], 4
jmp 0x4186a1
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 0x4187a0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x418783
inc eax
cmp dl, 0xd
je 0x4186cd
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4186f3
cmp eax, ecx
jae 0x418701
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 0x4186b5
jmp 0x4187a0
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 0x41877e
cmp dword [ebp - 0x10], 0
je 0x41877e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42c038]
test byte [eax + edi + 0x28], 0x48
je 0x418758
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418743
mov byte [esi], dl
jmp 0x418754
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42c038]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4187a0
cmp byte [ebp - 1], 0xa
jne 0x418767
cmp esi, ebx
jne 0x418767
mov byte [esi], 0xa
jmp 0x41879f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415b0f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4187a0
mov byte [esi], 0xd
jmp 0x41879f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42c038]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41879d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4187a0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret