joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a9d90
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x44], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
mov eax, 1
ret

Function at 0x100a9e30
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x44], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
mov eax, 1
ret
Function at 0x100b0f50
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10123ec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x1012eb34
mov eax, dword [esi + 8]
mov dword [esp + 0x10], 7
cmp eax, 0xffffffff
je 0x100b0f91
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
lea ecx, [esi + 0x44]
call fcn.100329e0
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 6
call fcn.100329e0
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 5
call fcn.1002d0b0
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 4
call fcn.1002d0b0
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 3
call fcn.1002d0b0
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 2
call fcn.1002d0b0
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 1
call fcn.1002d0b0
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 0
call fcn.1002d0b0
lea ecx, [esi + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.1002d0b0
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x100b3460
Capabilities:
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x1012401b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa20
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
xor ebp, ebp
xor esi, esi
call fcn.100329d0
mov eax, dword [esp + 0xa5c]
mov dword [esp + 0xa34], ebp
cmp eax, ebp
je 0x100b34a7
push eax
lea ecx, [esp + 0x18]
call fcn.10032c20
mov eax, dword [esp + 0xa60]
cmp eax, ebp
je 0x100b34bc
push eax
lea ecx, [esp + 0x18]
call fcn.10032c20
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x22e]
mov word [esp + 0x22c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], 0x400
cmp eax, ebp
jle 0x100b3527
lea eax, [esp + 0xc]
lea ecx, [esp + 0x22c]
push eax
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
call fcn.10039850
add esp, 0x10
test eax, eax
jne 0x100b3520
lea ecx, [esp + 0x14]
mov dword [esp + 0xa34], 0xffffffff
call fcn.100329e0
xor eax, eax
jmp 0x100b35f5
lea esi, [esp + 0x22c]
mov eax, dword [esp + 0xa4c]
mov ecx, dword [esp + 0xa68]
mov edx, dword [esp + 0xa64]
push ebx
push eax
mov eax, dword [esp + 0xa60]
push ecx
mov ecx, dword [esp + 0xa60]
push edx
mov edx, dword [esp + 0xa58]
push esi
mov esi, dword [esp + 0xa50]
push ebp
push eax
mov eax, dword [esp + 0xa60]
push ecx
mov ecx, dword [esp + 0xa60]
push edx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, eax
cmp ebx, ebp
je 0x100b35de
mov ebp, dword [esp + 0xa54]
test ebp, ebp
je 0x100b35de
test esi, esi
je 0x100b35de
call fcn.10078970
mov eax, dword [0x1016fcf0]
test eax, eax
je 0x100b35de
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], 0
rep stosd dword es:[edi], eax
push 0
lea edx, [esp + 0x2c]
push 0x104
push edx
push 0xffffffffffffffff
push ebp
stosw word es:[edi], ax
call fcn.10036e90
add esp, 0x14
lea ecx, [esp + 0x14]
lea eax, [esp + 0x28]
push ecx
push 1
push esi
mov dword [esp + 0x20], eax
call dword [0x1016fcf0]
lea ecx, [esp + 0x18]
mov dword [esp + 0xa38], 0xffffffff
call fcn.100329e0
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0xa2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xa2c
ret
Function at 0x100b3e30
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
je 0x100b3e4d
cmp edi, 4
jbe 0x100b3e4d
mov dword [0x10170734], 0x57
xor eax, eax
pop edi
ret
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
cmp eax, 0xffffffff
mov ebx, dword [esi]
je 0x100b3e6c
push eax
mov eax, dword [str.Type]
push eax
mov ecx, esi
call fcn.1003c940
cmp edi, 0xffffffff
je 0x100b3e80
mov ecx, dword [str.Start]
push edi
push ecx
mov ecx, esi
call fcn.1003c940
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x100b3e98
mov edx, dword [str.ErrorControl]
push eax
push edx
mov ecx, esi
call fcn.1003c940
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100b3eae
push eax
mov eax, dword [str.DisplayName]
push eax
mov ecx, esi
call fcn.1003caf0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100b3ec5
mov ecx, dword [str.Description]
push eax
push ecx
mov ecx, esi
call fcn.1003caf0
mov edi, dword [esp + 0x28]
test edi, edi
je 0x100b3eed
push edi
call fcn.10062422
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [str.ImagePath]
push edx
push edi
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100b3f04
mov ecx, dword [str.Group]
push eax
push ecx
mov ecx, esi
call fcn.1003caf0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x100b3f1b
mov edx, dword [str.DependOnGroup]
push eax
push edx
mov ecx, esi
call fcn.1003cf50
mov eax, dword [esp + 0x34]
test eax, eax
je 0x100b3f31
push eax
mov eax, dword [str.DependOnService]
push eax
mov ecx, esi
call fcn.1003cf50
pop esi
pop ebx
mov eax, 1
pop edi
ret
Function at 0x100b4ed0
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10124260
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x100b4f03
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp word [esi], 0
jne 0x100b4f1b
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 4]
call fcn.1003b6b0
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x20019
push eax
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.1003b820
test eax, eax
je 0x100b4fc7
push 1
push esi
lea ecx, [esp + 0xc]
call fcn.1003dcf0
test eax, eax
jne 0x100b4f7c
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1003b7a0
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x100b4faf
lea ecx, [esp + 0x28]
push esi
push ecx
lea ecx, [esp + 0x10]
call fcn.1003be50
push eax
mov ecx, edi
mov byte [esp + 0x1c], 1
call fcn.1002d240
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call fcn.1002d0b0
mov eax, dword [esp + 0x24]
pop edi
test eax, eax
je 0x100b508e
mov dword [eax], 0x10
jmp 0x100b508e
mov edx, dword [0x101267d4]
mov dword [esp + 0x1c], edx
mov eax, dword [str.SystemCurrentControlSetServicesVxD]
push esi
push eax
lea ecx, [esp + 0x24]
push 0x1013f804
push ecx
mov byte [esp + 0x24], 2
call fcn.10030030
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [esp + 4]
push 0x20019
push edx
push reloc.WS2_32.dll_bind
call fcn.1003b820
test eax, eax
jne 0x100b503b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], al
call fcn.1002d0b0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1003b7a0
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov esi, dword [esp + 0x24]
test esi, esi
je 0x100b5072
mov eax, dword [str.StaticVxD]
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.1003be50
push eax
mov ecx, esi
mov byte [esp + 0x18], 3
call fcn.1002d240
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], 2
call fcn.1002d0b0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100b5080
mov dword [eax], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.1002d0b0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1003b7a0
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x100b50c0
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10124288
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebx, ebx
cmp edi, ebx
je 0x100b51d1
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x100b51d1
cmp word [edi], bx
je 0x100b51d1
cmp word [esi], bx
je 0x100b51d1
lea ecx, [esp + 0xc]
call fcn.1003b6b0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], ebx
cmp eax, 2
je 0x100b516f
cmp eax, 1
je 0x100b516f
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x2001f
push eax
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x18]
call fcn.1003b820
test eax, eax
jne 0x100b515d
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x2001f
push ecx
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x18]
call fcn.1003b890
test eax, eax
je 0x100b51c0
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.1003caf0
mov esi, eax
jmp 0x100b5256
mov edx, dword [0x101267d4]
mov dword [esp + 0x24], edx
mov eax, dword [str.SystemCurrentControlSetServicesVxD]
push edi
push eax
lea ecx, [esp + 0x2c]
push 0x1013f804
push ecx
mov byte [esp + 0x2c], 1
call fcn.10030030
mov edx, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0xc]
push 0x2001f
push edx
push reloc.WS2_32.dll_bind
call fcn.1003b820
test eax, eax
jne 0x100b51e5
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call fcn.1002d0b0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1003b7a0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [0x101267d4]
mov dword [esp + 0x2c], eax
push 0x5c
push esi
mov byte [esp + 0x24], 2
call fcn.1006243f
add esp, 8
cmp eax, ebx
je 0x100b520f
add eax, 2
lea ecx, [esp + 0x2c]
push eax
call fcn.1002d330
mov eax, dword [esp + 0x2c]
cmp dword [eax - 8], ebx
jne 0x100b5228
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 1
call fcn.1002d0b0
jmp 0x100b51b3
mov ecx, dword [str.StaticVxD]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.1003caf0
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0x1c], 1
call fcn.1002d0b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call fcn.1002d0b0
lea ecx, [esp + 0xc]
call fcn.1003b870
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1003b7a0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x100cb650
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x10170828], ebp
call ebx
mov dword [0x10170830], eax
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
mov esi, dword [esp + 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x100cb78c
mov ecx, 0xf8
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.100d2540
mov esi, dword [esp + 0x408]
mov ebx, dword [esp + 0x414]
mov ebp, dword [esp + 0x410]
mov edi, dword [esp + 0x40c]
add esp, 4
mov dword [esp + 0x10], eax
test esi, esi
jne 0x100cb6f5
test edi, edi
jne 0x100cb6f5
test ebp, ebp
jne 0x100cb6f5
test ebx, ebx
jne 0x100cb6f5
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x100cb6f5
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x100cb781
cmp eax, 3
jne 0x100cb781
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.101058a0
add esp, 0xc
test eax, eax
je 0x100cb77d
mov eax, dword [esp + 0x40]
test esi, esi
je 0x100cb725
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x100cb730
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x100cb73c
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x100cb75b
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [ebx], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x414]
test ecx, ecx
je 0x100cb76d
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x100cb77d
and eax, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3ec
ret
mov esi, dword [esp + 0x400]
lea eax, [esp + 0x10]
push 1
push eax
mov dword [esp + 0x18], ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
push 0
push 0
push 0
push esi
mov dword [esp + 0x28], eax
call ebp
cmp esi, 0xffffffff
je 0x100cb81d
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x100cb81d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100cb838
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push edx
push 0x34
push eax
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100cb816
mov dword [0x10170828], 0xd
mov dword [0x1017082c], 0x29f7
call ebx
mov dword [0x10170830], eax
jmp 0x100cb83a
mov edi, 1
jmp 0x100cb83a
mov dword [0x10170828], 1
mov dword [0x1017082c], 0x29ea
call ebx
mov dword [0x10170830], eax
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push esi
call ebp
test edi, edi
jne 0x100cb69e
mov dword [0x10170828], 0xf
mov dword [0x1017082c], 0x1b63
call ebx
pop edi
pop esi
mov dword [0x10170830], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x100cb990
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
push edi
xor edi, edi
mov dword [0x10170828], edi
call ebx
mov esi, dword [esp + 0x400]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x10170830], eax
lea eax, [esp + 0x10]
push 1
push eax
push edi
push esi
mov dword [esp + 0x20], edi
call ebp
push edi
push edi
push edi
push esi
mov dword [esp + 0x28], eax
call ebp
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, 0xffffffff
stosb byte es:[edi], al
je 0x100cba55
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x100cba55
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100cba70
mov ecx, 0xf8
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push edx
push 0x3e0
push eax
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100cba4e
mov dword [0x10170828], 0xd
mov dword [0x1017082c], 0x29f7
call ebx
mov dword [0x10170830], eax
jmp 0x100cba72
mov edi, 1
jmp 0x100cba72
mov dword [0x10170828], 1
mov dword [0x1017082c], 0x29ea
call ebx
mov dword [0x10170830], eax
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push esi
call ebp
test edi, edi
jne 0x100cbaad
mov dword [0x10170828], 0xf
mov dword [0x1017082c], 0x1bcd
call ebx
pop edi
pop esi
mov dword [0x10170830], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
lea eax, [esp + 0x1c]
push eax
call fcn.100d2540
add esp, 4
cmp eax, 3
jne 0x100cbb24
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.101058a0
add esp, 0xc
test eax, eax
je 0x100cbb09
mov eax, dword [esp + 0x404]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
pop edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
pop esi
pop ebp
mov dword [eax + 4], edx
mov edx, dword [esp + 0x2c]
pop ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, 1
add esp, 0x3ec
ret
mov dword [0x10170828], 0x1c
mov dword [0x1017082c], 0x1bdb
call ebx
mov dword [0x10170830], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x100f2030
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10124f78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [0x10170fb0], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x80]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x10170fb8], eax
lea eax, [esp + 0x10]
push 1
push eax
push esi
push ebx
mov dword [esp + 0x20], esi
call edi
push esi
push esi
push 0x40
push ebx
mov dword [esp + 0x2c], eax
call edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x14], esi
call fcn.100409e0
mov edx, dword [esp + 0x84]
xor ecx, ecx
push 0xffffffffffffffff
mov dword [esp + 0x7c], esi
mov cx, word [edx + 0x3e]
push ecx
lea ecx, [esp + 0x88]
call fcn.10040bf0
lea ecx, [esp + 0x80]
call fcn.10040be0
lea ecx, [esp + 0x80]
mov esi, eax
call fcn.10041300
cmp ebx, 0xffffffff
mov ebp, eax
je 0x100f21c2
test ebp, ebp
je 0x100f21c2
test esi, esi
je 0x100f21c2
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100f215b
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
mov dword [esp + 0x1c], 0
rep stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100f21db
mov dword [0x10170fb0], 0xd
mov dword [0x10170fb4], 0x224e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10170fb8], eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x78], 0xffffffff
call fcn.10040b40
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
jne 0x100f2292
mov dword [0x10170fb0], 0xf
mov dword [0x10170fb4], 0x2e79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10170fb8], eax
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
mov dword [0x10170fb0], 1
mov dword [0x10170fb4], 0x2241
jmp 0x100f2150
lea ecx, [esp + 0x80]
call fcn.10040be0
push eax
lea ecx, [esp + 0x84]
call fcn.10041300
mov ecx, dword [esp + 0x88]
push eax
push ecx
call fcn.100f3740
add esp, 0xc
test eax, eax
je 0x100f215b
lea ecx, [esp + 0x80]
call fcn.100412e0
mov edx, 0x50
cmp word [eax + 4], dx
jne 0x100f215b
mov ecx, 0x14
mov esi, eax
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
cmp word [esp + 0x24], dx
jne 0x100f215b
cmp word [esp + 0x30], 0x38
jne 0x100f215b
mov esi, dword [esp + 0x20]
mov dword [esp + 0x20], 0
push esi
push edx
lea edx, [esp + 0x28]
push edx
call fcn.101058a0
add esp, 0xc
mov dword [esp + 0x20], esi
test eax, eax
je 0x100f215b
mov edi, dword [esp + 0x88]
mov ecx, 0x14
lea esi, [esp + 0x20]
mov dword [esp + 0x14], 1
rep movsd dword es:[edi], dword [esi]
jmp 0x100f215b
mov ecx, dword [esp + 0x60]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x6c
ret
Function at 0x100f7d90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x101715c0], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x101715c8], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov esi, dword [esp + 0x3c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x100f7dd4
mov ecx, 8
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
jmp 0x100f7e3d
mov esi, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 1
push eax
push ebp
push esi
mov dword [esp + 0x20], ebp
call edi
push ebp
push ebp
push ebp
push esi
mov ebx, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100f7e2e
lea ecx, [esp + 0x3c]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x20
push edx
push esi
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100f7e2e
cmp dword [esp + 0x3c], 0x20
jne 0x100f7e2e
mov ebp, 1
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push esi
call edi
test ebp, ebp
je 0x100f7e71
lea ecx, [esp + 0x14]
push ecx
call fcn.100f7940
add esp, 4
test eax, eax
je 0x100f7e90
mov ecx, dword [esp + 0x40]
mov eax, 1
test ecx, ecx
je 0x100f7e92
mov bl, byte [esp + 0x1b]
xor edx, edx
cmp bl, 0xe
pop edi
setne dl
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
add esp, 0x24
ret
mov dword [0x101715c0], 0xf
mov dword [0x101715c4], 0x2f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x101715c8], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x1010576d
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1012561b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x101267d4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 4]
mov dword [edi], eax
mov ebp, dword [esp + 0x24]
xor ebx, ebx
push ebp
mov ecx, edi
mov dword [esp + 0x20], ebx
mov dword [esi], 0x1012eb50
call fcn.1002d330
mov edi, dword [edi]
mov dword [esi + 8], ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test bl, 1
je 0x101057b7
and ebx, 0xfffffffe
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x101057b7
mov dword [esi + 8], ebx
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x101066c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x101066ef
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.10104cf0
add esp, 0x18
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
ret