joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d6920
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
push 0x98
xor ebx, ebx
lea eax, [esi + 0x100]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x98
lea ecx, [esi + 0x198]
push ebx
push ecx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x28]
lea edi, [ecx + eax]
mov dword [esi + 0x40], eax
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [esi + 0x18]
shr edx, 3
imul edx, edx, 0x54
mov ecx, edi
sub ecx, edx
add esp, 0x18
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0xc], eax
mov edx, eax
cmp eax, 0xc
jb 0x100d6990
mov edx, 0xc
or eax, 0xffffffff
sub eax, edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
lea eax, [edi - 0xc]
mov dword [esi + 0x3c], eax
lea edx, [ecx + 0x600]
mov dword [esi + 0x38], edx
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 8], ecx
mov dword [eax], 0x10100ff
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
xor edx, edx
lea eax, [ecx + 2]
xor ecx, ecx
mov byte [eax - 2], dl
mov byte [eax - 1], 1
mov word [eax], cx
mov word [eax + 2], cx
inc edx
add eax, 6
cmp edx, 0x100
jb 0x100d69c6
lea eax, [esi + 0x330]
lea edx, [esi + 0x1048]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jmp 0x100d6a04
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
movzx edx, byte [eax]
cmp edx, ecx
jne 0x100d6a23
nop
inc ebx
lea eax, [esi + ebx + 0x330]
mov dword [esp + 0x14], eax
movzx eax, byte [eax]
cmp eax, ecx
je 0x100d6a10
mov edi, dword [esp + 0x10]
xor ebp, ebp
lea esp, [esp]
movzx eax, word [ebp + 0x100f8a00]
xor edx, edx
lea ecx, [ebx + 1]
div ecx
mov ecx, 0x4000
sub ecx, eax
movzx ecx, cx
xor eax, eax
lea ebx, [ebx]
mov word [edi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x100d6a50
add ebp, 2
add edi, 2
cmp ebp, 0x10
jb 0x100d6a30
mov eax, dword [esp + 0xc]
sub dword [esp + 0x10], 0xffffff80
inc eax
mov dword [esp + 0xc], eax
cmp eax, 0x19
jb 0x100d6a00
xor edi, edi
lea edx, [esi + 0x448]
lea ebp, [esi + 0x333]
lea ebx, [edi + 3]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0x18
movzx eax, byte [ebp]
cmp eax, ebx
jne 0x100d6ab4
nop
inc edi
movzx ecx, byte [esi + edi + 0x333]
lea ebp, [esi + edi + 0x333]
cmp ecx, ebx
je 0x100d6aa0
mov eax, dword [esp + 0x10]
mov ecx, edi
shl ecx, 4
add ecx, 0x28
mov edx, 0x20
jmp 0x100d6ad0
mov word [eax], cx
mov word [eax + 2], 0x703
add eax, 4
dec edx
jne 0x100d6ad0
sub dword [esp + 0x10], 0xffffff80
inc ebx
dec dword [esp + 0x14]
jne 0x100d6a97
pop edi
pop ebp
mov dword [esi + 0x444], 0x40070000
pop ebx
add esp, 0xc
ret

Function at 0x100d8740
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x100d8768
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100d8777
mov eax, 1
ret 4
Function at 0x100d8780
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 4
mov edi, ecx
mov ecx, dword [esp + 0x14]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
mov esi, eax
add esp, 0x18
mov dword [edi], esi
test esi, esi
je 0x100d87c6
mov edx, dword [esp + 0x10]
push edx
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x100d87c6
mov eax, edi
pop edi
pop esi
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100d87c1
pop edi
mov eax, 1
pop esi
ret 8

Function at 0x100d8a70
Capabilities:
Hash data using sha256

Disassembly:
mov eax, edx
mov dword [ecx], eax
dec eax
je 0x100d8a93
sub eax, 3
je 0x100d8a89
sub eax, 6
jne 0x100d8a9a
add ecx, 0x10
jmp fcn.100dfc70
or eax, 0xffffffff
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
ret
mov dword [ecx + 4], 0xffffffff
ret
Function at 0x100dea70
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
add esi, edx
mov eax, ecx
mov ecx, edx
cmp edx, esi
je 0x100dea9b
mov edx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edx + edi*4]
inc ecx
cmp ecx, esi
jne 0x100dea84
pop edi
pop esi
ret 8

Function at 0x100df220
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x67452301
mov dword [ecx + 0x24], 0xefcdab89
mov dword [ecx + 0x28], 0x98badcfe
mov dword [ecx + 0x2c], 0x10325476
mov dword [ecx + 0x30], 0xc3d2e1f0
ret

Function at 0x100df250
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [0x1010c45c]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x67452301
mov dword [ecx + 0x24], 0xefcdab89
mov dword [ecx + 0x28], 0x98badcfe
mov dword [ecx + 0x2c], 0x10325476
mov dword [ecx + 0x30], 0xc3d2e1f0
ret

Function at 0x100df9e0
Capabilities:
Hash data using sha1

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, 0x3f
mov byte [eax + esi + 0x40], 0x80
inc eax
push edi
mov edi, edx
cmp eax, 0x38
jbe 0x100dfa22
cmp eax, 0x40
je 0x100dfa14
mov edx, 0x40
sub edx, eax
push edx
lea ecx, [eax + esi + 0x40]
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor eax, eax
mov ecx, 0x38
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x40]
push 0
push edx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
add esp, 0xc
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
mov ecx, dword [esi + 0x20]
bswap ecx
mov dword [edi], ecx
mov edx, dword [esi + 0x24]
bswap edx
mov dword [edi + 4], edx
mov eax, dword [esi + 0x28]
bswap eax
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x2c]
bswap ecx
mov dword [edi + 0xc], ecx
mov edx, dword [esi + 0x30]
bswap edx
mov dword [edi + 0x10], edx
pop edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x67452301
mov dword [esi + 0x24], 0xefcdab89
mov dword [esi + 0x28], 0x98badcfe
mov dword [esi + 0x2c], 0x10325476
mov dword [esi + 0x30], 0xc3d2e1f0
pop esi
pop ebx
ret

Function at 0x100dfc20
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret
Function at 0x100dfc70
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x1010c460]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x100e0290
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, 0x3f
mov byte [eax + esi + 0x40], 0x80
inc eax
push edi
mov edi, edx
cmp eax, 0x38
jbe 0x100e02d3
cmp eax, 0x40
je 0x100e02c5
mov edx, 0x40
sub edx, eax
push edx
lea ecx, [eax + esi + 0x40]
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor eax, eax
mov ecx, 0x38
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x40]
push 0
push edx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
add esp, 0xc
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
lea ecx, [esi + 0x20]
mov edx, 4
mov eax, dword [ecx + 4]
mov ebp, dword [ecx]
bswap ebp
bswap eax
mov dword [edi], ebp
mov dword [edi + 4], eax
add edi, 8
add ecx, 8
dec edx
jne 0x100e0318
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret
Function at 0x4065a5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4065b3
push 0xd
pop eax
jmp 0x4065e6
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4065ba
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x406a87
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x498fa4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push ecx
push dword [esi]
mov dword [ebp - 0x21c], ecx
xor edi, edi
or eax, 0x2001f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
call fcn.00406a49
mov ebx, eax
cmp ebx, edi
je 0x406aed
cmp dword [ebp - 0x214], edi
je 0x406ae6
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x406b85
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x406b15
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.00406a87
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x406b96
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x406af5
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x406b60
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call fcn.00406c03
mov esi, eax
cmp dword [ebp - 0x214], edi
je 0x406b83
push dword [ebp - 0x214]
call ebx
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457fc4
leave
ret 4
cmp dword [ebp - 0x214], edi
je 0x406baa
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x406b85

Function at 0x406c03
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x49f950], 0
jne 0x406c33
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406c2c
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49f954], eax
mov byte [0x49f950], 1
mov eax, dword [0x49f954]
test eax, eax
je 0x406c4b
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x406c57
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x407fe9
Capabilities:
Hide graphical window

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esp + 8], 1
push edi
mov edi, ecx
jne 0x40802b
push str.tray_click__
lea ecx, [edi + 0x3c]
call fcn.00408b07
mov ebx, eax
pop ecx
test ebx, ebx
jge 0x40802b
push esi
push 1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
lea esi, [edi + 0x94]
cmp byte [esi], 0
je 0x408026
call fcn.0040fe18
and dword [edi + 8], 0
pop esi
pop edi
mov eax, ebx
pop ebx
ret 4
Function at 0x408a96
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x498fa4]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00458750
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x408aef
cmp dword [ebp - 0x7c], 5
jae 0x408aeb
cmp dword [ebp - 0x7c], 4
jne 0x408aef
cmp dword [ebp - 0x78], 0x5a
jb 0x408aef
xor eax, eax
jmp 0x408af2
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00457fc4
add ebp, 0x98
leave
ret

Function at 0x409729
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x2c
mov eax, 0x470764
call fcn.0045c39c
mov ebx, ecx
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
cmp edi, esi
jne 0x40975d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebx + 4]
call fcn.0040aa9e
mov eax, dword [eax + 0x10]
call fcn.0045c474
ret
push 0x4827c0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x409746
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp eax, 1
jb 0x409746
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x409746
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [ebp - 0x38]
mov edi, eax
call fcn.0040a679
push dword [ebp - 0x14]
lea eax, [ebp - 0x38]
push edi
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.0040a486
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], esi
je 0x4097e6
cmp dword [ebp - 0x18], esi
je 0x4097e6
push ebx
lea ecx, [ebp - 0x38]
call fcn.00409952
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0040a2c1
mov eax, ebx
jmp 0x409757
lea esi, [ebx + 4]
lea edi, [ebp - 0x38]
call fcn.00401920
mov ebx, dword [ebx + 0x14]
jmp 0x4097d3
Function at 0x40c94f
Capabilities:
Copy file

Disassembly:
push 4
mov eax, 0x46c333
call fcn.0045c39c
mov ebx, ecx
mov esi, edx
test ebx, ebx
je 0x40ca92
push ebx
call fcn.00457fd3
pop ecx
cmp eax, 1
jb 0x40ca92
cmp dword [ebp + 8], 0
je 0x40ca92
push dword [ebp + 8]
call fcn.00457fd3
pop ecx
cmp eax, 3
jb 0x40ca92
cmp dword [ebp + 0xc], 0
je 0x40ca92
push dword [ebp + 0xc]
call fcn.00457fd3
pop ecx
cmp eax, 3
jb 0x40ca92
mov edi, 0x49ed00
push edi
lea ecx, [ebp - 0x10]
call fcn.00401e4f
and dword [ebp - 4], 0
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0040c723
push dword [ebp - 0x10]
call fcn.0044e770
add esp, 0xc
test eax, eax
jne 0x40c9fa
mov eax, dword [esi]
push 3
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esi + 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402595
mov eax, esi
jmp 0x40caa1
push edi
lea ecx, [ebp + 8]
call fcn.00401e4f
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040c723
mov edi, dword [ebp + 8]
push edi
call fcn.0044e770
add esp, 0xc
mov ecx, esi
test eax, eax
je 0x40ca3c
mov eax, dword [esi]
push 0xb7
call dword [eax + 4]
mov esi, dword [esi + 0x10]
lea ecx, [edi - 0x10]
call fcn.00402595
jmp 0x40c9e8
push dword [ebp + 0xc]
call fcn.0040d3d6
test al, al
jne 0x40ca58
mov edx, dword [ebp + 0xc]
mov ecx, esi
call fcn.0040cd3f
push eax
call fcn.0040aab7
mov eax, esi
call fcn.0040aac7
test al, al
jne 0x40ca2f
mov ebx, dword [ebp - 0x10]
push 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40ca7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040aa9e
mov esi, dword [esi + 0x10]
lea ecx, [edi - 0x10]
call fcn.00402595
lea ecx, [ebx - 0x10]
jmp 0x40c9ee
mov eax, dword [esi]
push 0x80070057
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 0x10]
call fcn.0045c474
ret 8

Function at 0x40cc9e
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x46ce7c
call fcn.0045c39c
mov esi, ecx
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x40cd2a
cmp dword [ebp + 0x10], edi
je 0x40cd2a
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.0041315f
test al, al
jne 0x40ccfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040aa9e
mov edi, dword [eax + 0x10]
lea esi, [ebp + 8]
call fcn.00413113
mov eax, edi
jmp 0x40cd37
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x10], edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40cce2
call fcn.0040a7a8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, dword [esi + 0x10]
jmp 0x40ccf0
mov eax, dword [esi]
push 0x80070057
call dword [eax + 4]
mov eax, dword [esi + 0x10]
call fcn.0045c474
ret 0xc
Function at 0x40d1d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0x278
mov eax, 0x46da52
call fcn.0045c43b
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov ebx, edx
mov esi, ecx
cdq
mov ecx, 0x250
idiv ecx
mov dword [ebp - 0x274], esi
test eax, eax
je 0x40d205
mov eax, edi
call fcn.0040da3d
push 0x49ed00
lea ecx, [ebp - 0x270]
call fcn.00401e4f
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x270]
call fcn.0040c844
pop ecx
push eax
call fcn.0040aab7
mov ecx, dword [ebp - 0x274]
mov eax, ecx
call fcn.0040aac7
test al, al
je 0x40d255
mov esi, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
call fcn.00402595
mov eax, esi
jmp 0x40d37d
and dword [ebp - 0x268], 0
push 0x24c
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.00458750
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
jne 0x40d2a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x274]
call fcn.0040aa9e
mov esi, dword [eax + 0x10]
jmp 0x40d240
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x40d2b0
xor esi, esi
jmp 0x40d2bf
mov eax, dword [edi + 0x14]
sub eax, ecx
cdq
mov esi, 0x250
idiv esi
mov esi, eax
mov ebx, dword [edi + 0x10]
mov eax, ebx
sub eax, ecx
cdq
mov ecx, 0x250
idiv ecx
cmp eax, esi
jae 0x40d2e6
lea eax, [ebp - 0x268]
push eax
push 1
push ebx
call fcn.0040db70
mov dword [edi + 0x10], eax
jmp 0x40d312
lea esi, [ebp - 0x27c]
call fcn.004329ed
push dword [ebp - 0x278]
lea eax, [ebp - 0x268]
push dword [ebp - 0x27c]
push eax
lea eax, [ebp - 0x284]
push eax
mov eax, edi
call fcn.0040daba
and dword [ebp - 4], 0
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d2a1
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x274]
jmp 0x40d29c
call fcn.0045c497
ret 4
Function at 0x40d45a
Capabilities:
Get file size
Read file on windows

Disassembly:
push 8
mov eax, 0x46ce59
call fcn.0045c39c
mov edi, ecx
cmp dword [ebp + 8], 0
je 0x40d5a1
push dword [ebp + 8]
call fcn.00457fd3
pop ecx
cmp eax, 4
jb 0x40d5a1
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00401b81
and dword [ebp - 4], 0
mov ebx, str.file:___
push ebx
lea esi, [ebp - 0x10]
call fcn.0040384b
test eax, eax
jne 0x40d4de
mov eax, dword [ebp - 0x10]
mov esi, dword [eax - 0xc]
push ebx
call fcn.00457fd3
sub esi, eax
pop ecx
lea eax, [ebp + 8]
push eax
mov eax, esi
lea ecx, [ebp - 0x10]
call fcn.004038f6
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401f86
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402595
push 0x5c
push 0x2f
lea ebx, [ebp - 0x10]
call fcn.0040d996
mov esi, edi
call fcn.0040a7a8
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0041315f
test al, al
jne 0x40d546
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, edi
call fcn.0040aa9e
mov edi, dword [eax + 0x10]
lea esi, [ebp + 8]
call fcn.00413113
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402595
mov eax, edi
jmp 0x40d5b0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.0040a41b
push eax
mov esi, edi
call fcn.0040aab7
mov eax, edi
call fcn.0040aac7
test al, al
je 0x40d573
mov edi, dword [edi + 0x10]
jmp 0x40d52f
mov eax, dword [ebx + 0x20]
mov ebx, dword [ebx + 0x1c]
and dword [ebp - 0x14], 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d56e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, edi
call fcn.0040aa9e
jmp 0x40d56e
mov eax, dword [edi]
push 0x80070057
mov ecx, edi
call dword [eax + 4]
mov eax, dword [edi + 0x10]
call fcn.0045c474
ret 8
Function at 0x40d5b8
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x30
mov eax, 0x46ce26
call fcn.0045c39c
mov edi, ecx
cmp dword [ebp + 0xc], 0
je 0x40d74f
push dword [ebp + 0xc]
call fcn.00457fd3
pop ecx
cmp eax, 4
jb 0x40d74f
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401b81
and dword [ebp - 4], 0
push 0x5c
push 0x2f
lea ebx, [ebp - 0x10]
call fcn.0040d996
push 0x4824e8
mov esi, edi
call fcn.00408898
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041315f
test al, al
jne 0x40d662
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
call fcn.0040aa9e
mov edi, dword [eax + 0x10]
lea esi, [ebp + 0xc]
call fcn.00413113
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402595
mov eax, edi
jmp 0x40d761
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040a28c
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], ebx
je 0x40d683
cmp dword [ebp - 0x1c], ebx
jne 0x40d69f
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x3c]
call fcn.00401920
mov edi, dword [eax + 0x10]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040a2c1
jmp 0x40d648
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d6ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
call fcn.0040aa9e
jmp 0x40d68e
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
call fcn.0040c907
cmp eax, ebx
pop ecx
jge 0x40d6e5
mov esi, dword [ebp + 8]
push eax
call fcn.0040aab7
jmp 0x40d68e
cmp eax, 1
jne 0x40d70c
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push 0xb
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esi + 0x10]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040a2c1
mov edi, esi
jmp 0x40d648
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00409d19
push edi
mov byte [ebp - 4], 3
call fcn.004088d0
lea eax, [ebp - 0x14]
call fcn.0040da02
mov esi, dword [ebp + 8]
push 8
mov dword [edi + 8], eax
pop eax
mov word [edi], ax
call fcn.0040a7a8
mov ecx, dword [ebp - 0x14]
mov edi, dword [esi + 0x10]
add ecx, 0xfffffff0
call fcn.00402595
jmp 0x40d691
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push 0x80070057
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 0x10]
call fcn.0045c474
ret 8