joyce8/EMBER2024-capa huggingface dataset:
Function at 0x674f60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x8877ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x98b454]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x674fcb
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x674fcd
mov esi, edi
test esi, esi
je 0x675097
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x67508c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x67500f
cmp eax, 2
je 0x67500f
cmp eax, 6
je 0x67500f
cmp eax, 7
jne 0x67508c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.008325b4
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x675072
lea ecx, [esp + 0x14]
call fcn.00832082
cmp esi, dword [esp + 0x14]
je 0x675067
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.008325dd
add esp, 4
jmp 0x6750a9
call fcn.008325dd
add esp, 4
lea ecx, [esp + 0x10]
push 0x9b5220
call fcn.00832082
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x675097
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x6750a9
push eax
lea ecx, [esp + 0x14]
call fcn.00832082
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00831c58
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.00831eeb
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x6751f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x675227
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x67522a
mov esi, dword [ebp + 8]
test esi, esi
je 0x6753dd
call fcn.00662480
test eax, eax
je 0x6752d5
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6753d1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x675279
cmp eax, 2
je 0x675279
cmp eax, 6
je 0x675279
cmp eax, 7
jne 0x6753d1
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call fcn.008325b4
mov edx, dword [ebp + 0xc]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [edx + 2]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x6753bc
mov ecx, dword [ebp + 0x18]
call fcn.006181a0
cmp esi, dword [ebp + 8]
je 0x6753a6
jmp 0x67539f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x6752e1
mov dword [ebp + 0x10], eax
jmp 0x675316
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.005fc5a0
mov edx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x10], edi
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6753d1
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x675350
cmp eax, 2
je 0x675350
cmp eax, 6
je 0x675350
cmp eax, 7
jne 0x6753d1
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.008325b4
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x6753bc
mov ecx, dword [ebp + 0x18]
call fcn.00618270
cmp esi, dword [ebp + 8]
je 0x6753a6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.008325dd
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.008325dd
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x9b5220
call fcn.006181a0
cmp esi, dword [ebp + 8]
je 0x6753dd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x675ca0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x675ccc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x675ccc
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc

Function at 0x675df0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x8878c8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x675e46
lea ecx, [ebp + 0x14]
mov ebx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0xc]
or ecx, 0x20006
push edx
push 0
push ecx
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x675e4b
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x675f3a
call fcn.00662480
test eax, eax
je 0x675e9a
mov edi, dword [ebp + 0x18]
push edi
call fcn.005fc40b
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0x10]
push edx
push edi
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x675f2f
cmp esi, ebx
je 0x675e90
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x675f3c
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x675ea5
xor edi, edi
jmp 0x675eda
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.005fc5a0
mov ecx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push edx
call fcn.00611f20
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x675f20
cmp esi, ebx
je 0x675f0a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00612730
mov eax, 1
jmp 0x675f3c
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00612730
cmp esi, ebx
je 0x675f3a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6769e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x18]
push esi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
call fcn.0082ab63
cmp ebp, ebx
je 0x676acf
push ebx
push ebx
lea eax, [esp + 0x14]
push ebx
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x676acf
cmp dword [esp + 0x10], ebx
jbe 0x676acf
mov edx, dword [esp + 0xc]
lea eax, [edx + edx]
cmp eax, 0x104
ja 0x676a45
mov eax, 0x104
mov dword [esp + 0xc], eax
lea eax, [eax + eax + 2]
push eax
call fcn.008325b4
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x676acf
cmp dword [esp + 0x10], ebx
jbe 0x676ab8
push edi
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edi, esi
push 0
lea ecx, [ecx + ecx + 2]
push 0
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push esi
inc eax
push ebx
push ebp
mov dword [esp + 0x38], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x676aae
mov ecx, dword [esp + 0x20]
push esi
mov edx, dword [ecx + 8]
push edx
call fcn.0082ad79
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x676a63
pop edi
push esi
call fcn.008325dd
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
Function at 0x676bb0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x676d2d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x676d0c
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x676c06
mov eax, 0x104
mov dword [esp + 0x1c], eax
lea edx, [eax + eax + 2]
push edx
call fcn.008325b4
mov esi, eax
add esp, 4
test esi, esi
je 0x676d2d
mov eax, dword [esp + 0x1c]
mov edi, esi
lea ecx, [eax + eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x676d24
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x676d24
mov edi, dword [esp + 0x20]
test edi, edi
je 0x676d24
push ebp
push edi
call fcn.00676bb0
add esp, 8
test eax, eax
je 0x676d19
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x9dd210]
test eax, eax
je 0x676cb5
test ebp, ebp
je 0x676cb5
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x676d24
jmp 0x676cc1
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x676d24
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x676d03
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + edx + 2]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x676d24
mov eax, dword [esp + 0x14]
jmp 0x676c5e
push esi
call fcn.008325dd
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x676d24
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.008325dd
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x676d40
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [ecx + 4]
test esi, esi
je 0x676da9
mov eax, dword [esp + 0xc]
test eax, eax
je 0x676d69
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x676da9
pop edi
mov eax, 1
pop esi
ret 4
push edi
push esi
call fcn.00676bb0
add esp, 8
test eax, eax
je 0x676da9
mov eax, dword [0x9dd210]
test eax, eax
je 0x676d96
test edi, edi
je 0x676d96
push 0
push edi
push 0
push esi
call eax
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x676f20
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x676f56
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0xc]
or eax, 0x20019
push esi
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x676f58
mov esi, dword [ebx]
test esi, esi
je 0x676fe3
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne case.0x676f88.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x676f88.2
jmp dword [eax*4 + 0x676fec]
mov edi, 1
jmp case.0x676f88.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x676f88.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x676f88.0
cmp eax, 2
je case.0x676f88.0
cmp eax, 6
je case.0x676f88.0
cmp eax, 7
je case.0x676f88.0
xor edi, edi
jmp case.0x676f88.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x676fdb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x6771c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x887988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
lea ecx, [esp + 0x18]
call fcn.0061ebd0
mov eax, dword [esp + 0x38]
lea ecx, [esp]
push eax
mov dword [esp + 0x34], 0
call fcn.00617650
mov ecx, dword [esp]
mov byte [esp + 0x30], 1
mov eax, dword [ecx - 8]
test eax, eax
je 0x677308
lea edx, [esp + 4]
lea eax, [esp + 0x38]
push edx
push 0x933d50
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call fcn.0061c7f0
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 2
call fcn.0061ba90
lea ecx, [esp + 0x38]
call fcn.0061bd90
mov ecx, dword [esp + 0x38]
push 0x9b5220
push ecx
call fcn.005fd3f1
add esp, 8
test eax, eax
je 0x6772fa
push esi
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
jle 0x677289
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + esi*4]
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.005fe192
add esp, 8
test eax, eax
je 0x677298
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x677267
lea ecx, [esp + 0x3c]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0061f330
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push 0x933d50
push eax
lea ecx, [esp + 0x10]
call fcn.0061c7f0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 3
call fcn.00618070
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 2
call fcn.00617ec0
lea ecx, [esp + 0x3c]
call fcn.0061ba90
lea ecx, [esp + 0x3c]
call fcn.0061bd90
mov ecx, dword [esp + 0x3c]
push 0x9b5220
push ecx
call fcn.005fd3f1
add esp, 8
test eax, eax
jne 0x67725d
pop esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 1
call fcn.00617ec0
push 1
push 0x9dd248
lea ecx, [esp + 0x14]
call fcn.005f27b7
push 0xffffffffffffffff
push 0
mov ecx, 0x9dd230
mov byte [esp + 0x38], 4
call fcn.0061eca0
lea edx, [esp + 0x18]
mov ecx, 0x9dd230
push edx
call fcn.0061f070
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.005f27f3
lea ecx, [esp]
mov byte [esp + 0x30], 0
call fcn.00617ec0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.0061ebe0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x6777d0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x9dd484]
push ebx
mov ebx, dword [esp + 0x10]
push esi
test eax, eax
push edi
jne 0x6777f2
mov eax, dword [0x9ddbe4]
test eax, eax
jne 0x6777f2
mov eax, dword [0x9de1cc]
test eax, eax
je 0x6777f6
test ebx, ebx
je 0x677830
mov eax, dword [0x992870]
or esi, 0xffffffff
cmp eax, esi
jne 0x677830
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x992870], eax
je 0x677830
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x677830
mov eax, dword [0x992870]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x992870], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.0067f160
add esp, 0xc
test eax, eax
je 0x67786e
push ebx
push esi
push edi
call fcn.0068e6b0
add esp, 0xc
test eax, eax
je 0x67786e
push ebx
push esi
push edi
call fcn.0069b160
add esp, 0xc
test eax, eax
je 0x67786e
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x679680
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 4]
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
mov dword [esp + 0x2c], 0
call fcn.00677cd0
add esp, 0x28
test eax, eax
je 0x679766
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x6796f2
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.006910b0
mov edx, dword [0x9ddbd8]
mov ecx, dword [0x9ddbdc]
add esp, 8
mov dword [0x9dd268], edx
mov edx, dword [0x9ddbe0]
mov dword [0x9dd26c], ecx
mov dword [0x9dd270], edx
pop esi
pop ecx
ret
cmp eax, 3
jne 0x67972c
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.006851e0
mov ecx, dword [0x9dd478]
mov edx, dword [0x9dd47c]
add esp, 8
mov dword [0x9dd268], ecx
mov ecx, dword [0x9dd480]
mov dword [0x9dd26c], edx
mov dword [0x9dd270], ecx
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
cmp eax, 6
push edx
push esi
jne 0x67976c
call fcn.006a10b0
mov ecx, dword [0x9de1c0]
mov edx, dword [0x9de1c4]
add esp, 8
mov dword [0x9dd268], ecx
mov ecx, dword [0x9de1c8]
mov dword [0x9dd26c], edx
mov dword [0x9dd270], ecx
pop esi
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
pop ecx
ret
Function at 0x67c610
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
xor esi, esi
cmp ebx, esi
je 0x67c768
cmp ebx, 0xffffffff
je 0x67c768
cmp dword [0x9dd278], esi
je 0x67c768
mov ecx, dword [0x9dd280]
cmp ecx, esi
je 0x67c768
mov eax, dword [0x9dd27c]
cmp eax, esi
jge 0x67c659
neg eax
cmp ecx, eax
ja 0x67c768
push edi
push ecx
mov dword [esp + 0x10], esi
call fcn.008325b4
mov edi, eax
add esp, 4
cmp edi, esi
mov dword [esp + 0x20], edi
je 0x67c75d
mov ecx, dword [0x9dd280]
xor eax, eax
mov edx, ecx
push ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
mov dword [esp + 0x1c], esi
rep stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [0x9dd280]
mov esi, dword [0x9dd27c]
lea eax, [esp + 0x18]
push eax
push 0
push ebx
mov dword [esp + 0x24], 0
call edi
xor ecx, ecx
mov dword [esp + 0x1c], eax
test esi, esi
setl cl
dec ecx
and ecx, 0xfffffffe
add ecx, 2
push ecx
push 0
push esi
push ebx
call edi
cmp eax, 0xffffffff
je 0x67c74f
mov eax, dword [esp + 0x28]
test eax, eax
je 0x67c6e0
xor esi, esi
jmp 0x67c6f6
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x18]
push 0
push edx
push ebp
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push ebx
call edi
test esi, esi
je 0x67c74f
mov ebp, dword [0x9dd220]
xor edx, edx
test ebp, ebp
jle 0x67c74f
mov ebx, dword [0x9dd21c]
mov eax, dword [ebx]
mov esi, dword [esp + 0x18]
mov ecx, dword [eax + 8]
cmp esi, ecx
jb 0x67c735
mov edi, dword [eax + 4]
mov esi, dword [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x67c747
inc edx
add ebx, 4
cmp edx, ebp
mov dword [esp + 0x10], 0
jge 0x67c74f
jmp 0x67c71b
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.008325dd
add esp, 4
pop ebp
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x67c770
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x28
test eax, eax
push ebp
push esi
push edi
je 0x67c98d
cmp eax, 0xffffffff
je 0x67c98d
mov eax, dword [0x9dd278]
test eax, eax
je 0x67c98d
mov ebp, dword [0x9dd284]
test ebp, ebp
je 0x67c98d
mov esi, dword [0x9dd288]
test esi, esi
je 0x67c98d
mov edi, dword [0x9dd28c]
test edi, edi
je 0x67c98d
push ebx
push edi
xor ebx, ebx
mov dword [esp + 0x34], edi
call fcn.008325b4
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x1c], edx
je 0x67c983
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor edx, edx
and ecx, 3
cmp esi, 0x15
rep stosb byte es:[edi], al
mov ecx, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], ebp
jb 0x67c976
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
lea esi, [eax + 0x15]
cmp esi, ecx
mov dword [esp + 0x34], esi
ja 0x67c974
test byte [ebp], 1
jne 0x67c841
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x67c8f3
mov edi, dword [ebp + 8]
mov ecx, edi
sub ecx, edi
jne 0x67c974
cmp dword [ebp + 0x10], 1
je 0x67c856
neg edi
cmp dword [esp + 0x28], edi
jne 0x67c866
cmp dword [esp + 0x10], eax
jae 0x67c918
cmp eax, dword [esp + 0x30]
ja 0x67c908
mov ebx, dword [esp + 0x3c]
lea edx, [esp + 0x20]
push 1
push edx
push 0
push ebx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
xor esi, esi
xor eax, eax
test edi, edi
setl al
dec eax
and al, 0xfe
add eax, 2
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x67c8dd
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x67c8ce
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
lea ecx, [esp + 0x20]
push 0
push ecx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
mov edx, esi
je 0x67c90c
xor edx, edx
mov ebp, dword [esp + 0x18]
xor ebx, ebx
mov eax, dword [ebp]
test al, 1
je 0x67c93b
test ebx, ebx
mov dword [esp + 0x14], 1
jne 0x67c976
jmp 0x67c955
xor edx, edx
jmp 0x67c8f1
test esi, esi
je 0x67c8ed
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x28], edi
test edx, edx
je 0x67c8f1
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jb 0x67c8f1
mov esi, dword [esp + 0x1c]
lea edi, [ebp + 0x14]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x67c8f1
mov ebx, 1
jmp 0x67c8f3
test al, 2
je 0x67c945
mov dword [esp + 0x14], ebx
jmp 0x67c955
test al, 4
je 0x67c955
test ebx, ebx
mov dword [esp + 0x14], 1
jne 0x67c976
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
sub ecx, eax
add ebp, eax
cmp ecx, 0x15
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], ebp
jae 0x67c819
jmp 0x67c976
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.008325dd
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x28
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret