joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4265d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
push esi
push edi
mov esi, eax
xor edi, edi
xor ebp, ebp
test esi, esi
jne 0x4265e6
push 0xffffffffffffff9a
pop eax
jmp 0x426709
cmp dword [esi + 0xc], 1
jne 0x4265f3
call fcn.00426444
mov edi, eax
push ebx
push dword [esi]
call fcn.00453259
pop ecx
mov dword [esp + 0x10], eax
test edi, edi
jne 0x426636
mov ebx, dword [esi + 4]
jmp 0x426632
test edi, edi
jne 0x42662d
mov eax, dword [ebx + 8]
test eax, eax
jbe 0x42662d
push dword [esi]
push 1
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.00456863
add esp, 0x10
cmp eax, 1
je 0x42662d
or edi, 0xffffffff
add ebp, dword [ebx + 8]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x426609
mov eax, dword [esi + 4]
test eax, eax
je 0x42664c
mov ebx, dword [eax]
push eax
call fcn.00451fa8
pop ecx
mov eax, ebx
test ebx, ebx
jne 0x42663d
test edi, edi
jne 0x4266f7
push 4
push dword [esi]
mov ecx, 0x6054b50
call fcn.00425ea3
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4266f7
push 2
pop ebx
push ebx
push dword [esi]
xor ecx, ecx
call fcn.00425ea3
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4266f7
push ebx
push dword [esi]
xor ecx, ecx
call fcn.00425ea3
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4266f7
mov ecx, dword [esi + 0x4070]
push ebx
push dword [esi]
call fcn.00425ea3
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4266f7
mov ecx, dword [esi + 0x4070]
push ebx
push dword [esi]
call fcn.00425ea3
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4266f7
push 4
push dword [esi]
mov ecx, ebp
call fcn.00425ea3
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4266f7
mov ecx, dword [esp + 0x10]
push 4
push dword [esi]
call fcn.00425ea3
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4266f7
push ebx
push dword [esi]
xor ecx, ecx
call fcn.00425ea3
pop ecx
pop ecx
mov edi, eax
push dword [esi]
call fcn.0045349e
push esi
call fcn.00451fa8
pop ecx
pop ecx
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x428bbe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x428c4b
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.004589e0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x428c0b
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x428c2d
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x428d7b
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x428c73
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x428c7e
xor eax, eax
jmp 0x428ccb
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x428c9c
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.0042982c
pop ecx
jmp 0x428caf
cmp ecx, 2
jne 0x428cb5
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0042670e
add esp, 0xc
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.004589e0
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edx, dword [esi + 0x74]
cmp edx, 3
jb 0x428cf6
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edi, [eax + ecx]
movzx eax, byte [edi]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edi + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edx, 0x106
jae 0x428d0a
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x428bc9
mov ecx, dword [esi + 0x16c0]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jae 0x428d7b
mov edi, dword [esi + 0x6c]
add edi, edx
cmp ecx, edi
jae 0x428d4a
sub eax, edi
mov ebx, eax
mov eax, 0x102
cmp ebx, eax
jbe 0x428d2f
mov ebx, eax
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.00458270
add esp, 0xc
add ebx, edi
mov dword [esi + 0x16c0], ebx
jmp 0x428d7b
lea edx, [edi + 0x102]
cmp ecx, edx
jae 0x428d7b
sub edi, ecx
add edi, 0x102
sub eax, ecx
cmp edi, eax
jbe 0x428d64
mov edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call fcn.00458270
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
leave
ret
Function at 0x43435c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [edi], ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4343cc
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
cmp eax, ebx
je 0x4343c3
add eax, 2
push eax
call fcn.004517e0
mov dword [edi], eax
mov ecx, dword [esi]
inc ecx
inc ecx
push ecx
push ebx
push eax
call fcn.00458270
add esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [edi]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
leave
ret
Function at 0x4348e0
Capabilities:
Check if file exists
Create directory
Write file on windows

Disassembly:
mov eax, 0x487291
call fcn.004854e4
sub esp, 0xc
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
jne 0x4348fe
xor eax, eax
jmp 0x4349fb
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.004030f0
push 0x4988a8
mov ecx, 0x104
lea esi, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00403b60
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43493c
push ebx
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004031a0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
cmp eax, ebx
jl 0x43498e
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push edi
jne 0x43497a
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4349fa
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x434992
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x4349fa
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x14], ebx
call fcn.00425b2d
test eax, eax
jne 0x4349e7
push 0x8000
call fcn.004520c5
mov edi, eax
push edi
mov eax, esi
call fcn.00425c26
pop ecx
jmp 0x4349d2
push ebx
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov eax, esi
call fcn.00425c26
cmp eax, ebx
pop ecx
jg 0x4349ba
jne 0x4349e0
mov dword [ebp - 0x14], 1
push edi
call fcn.00451fa8
pop ecx
mov edi, esi
call fcn.00425d9a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x434e2a
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x4865d4
call fcn.0045973d
mov edi, ecx
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x434e3d
sub eax, edx
sar eax, 1
test edi, edi
je 0x434f76
test eax, eax
je 0x434f76
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x434e6e
xor eax, eax
inc eax
jmp 0x434f78
lea esi, [ebp - 0x10]
call fcn.004030d0
and dword [ebp - 4], 0
lea esi, [ebp - 0x14]
call fcn.004030d0
push edi
push 0x497fb0
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00405530
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 0xc]
pop ecx
pop ecx
lea ecx, [eax - 1]
test ecx, ecx
jl 0x434f7e
cmp ecx, eax
jg 0x434f7e
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x434ec3
mov edx, 0x4944dc
call fcn.00403200
xor ecx, ecx
jmp 0x434f3f
mov eax, edi
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x10]
call fcn.00403780
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov esi, dword [ebp - 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x434f15
cmp dword [esi + 0xc], 0
jl 0x434f09
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x434f09
call fcn.00404890
mov ebx, eax
mov eax, esi
call fcn.004011e0
add ebx, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x434f15
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x14]
call fcn.00404790
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004031a0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x434f3c
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x434f66
lea ecx, [edi + 1]
lea esi, [ebp - 0x10]
call fcn.004034d0
mov edi, eax
cmp edi, 0xffffffff
jne 0x434ec7
lea ecx, [ebp - 0x14]
call fcn.004031a0
mov ecx, esi
call fcn.004031a0
jmp 0x434e66
lea ecx, [ebp - 0x14]
call fcn.004031a0
lea ecx, [ebp - 0x10]
call fcn.004031a0
xor eax, eax
call fcn.004597dc
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x43bea0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0043fcc0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.0043fd60
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.00451a7d
add esp, 0x68
ret
Function at 0x43c050
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0x20119
xor edi, edi
push edi
push 0x49b84c
push 0x80000002
mov ebx, ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43c1e1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esi + 0x10], eax
push ebx
mov dword [esi + 0x14], eax
lea edx, [esp + 0x1c]
push edx
mov dword [esi + 0x18], eax
push eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x28]
push str.Operator
mov edi, 0x400
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43c0e3
cmp dword [esp + 0x14], 1
jne 0x43c1c8
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi], ebx
lea ebx, [eax + ebx]
je 0x43c1c8
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.IssueDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x43c128
cmp dword [esp + 0x14], 1
jne 0x43c1c8
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x43c1c8
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.ExpirationDate
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x43c15f
cmp dword [esp + 0x14], 1
jne 0x43c1c8
mov eax, dword [esp + 0x10]
mov dword [esi + 8], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x43c1c8
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push str.SignData
push eax
mov dword [esp + 0x28], edi
call ebp
test eax, eax
jne 0x43c1c8
cmp dword [esp + 0x14], 3
jne 0x43c1c8
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
je 0x43c1c8
lea eax, [esi + 0xc]
call fcn.0043bf30
test eax, eax
je 0x43c1c8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, 0x400
sub ecx, edi
push eax
mov dword [edx], ecx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x43c5f0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
lea eax, [esp + 8]
mov esi, edx
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.0043e7f0
add esp, 8
test eax, eax
jne 0x43c65b
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00451a7d
add esp, 0x6c
ret
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x43c670
push esi
lea ecx, [esp + 0x14]
call fcn.0043fcc0
add esp, 4
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.0043fd60
test edi, edi
je 0x43c68e
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, dword [esp + 8]
sete al
mov dword [edi], eax
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00451a7d
add esp, 0x6c
ret

Function at 0x43c6f0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0x5c], eax
xor eax, eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0043e9f0
add esp, 4
test eax, eax
jne 0x43c74e
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00451a7d
add esp, 0x64
ret
lea esi, [esp + 8]
mov ecx, ebx
call fcn.0043fd60
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00451a7d
add esp, 0x64
ret

Function at 0x43c770
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
push edi
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0x6a09e667
mov dword [esp + 0x14], 0xbb67ae85
mov dword [esp + 0x18], 0x3c6ef372
mov dword [esp + 0x1c], 0xa54ff53a
mov dword [esp + 0x20], 0x510e527f
mov dword [esp + 0x24], 0x9b05688c
mov dword [esp + 0x28], 0x1f83d9ab
mov dword [esp + 0x2c], 0x5be0cd19
call fcn.0043eae0
add esp, 8
test eax, eax
jne 0x43c7ef
pop edi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00451a7d
add esp, 0x74
ret
mov eax, esi
lea edi, [esp + 8]
call fcn.0043f8a0
mov ecx, dword [esp + 0x74]
pop edi
xor ecx, esp
mov eax, 1
call fcn.00451a7d
add esp, 0x74
ret

Function at 0x43d140
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43d172
push str.ReadFile__
push 0xfc
push str..QHImageHlp.c
xor edx, edx
call fcn.00440ba0
add esp, 0xc
xor eax, eax
pop ecx
ret
cmp esi, dword [esp]
je 0x43d197
push 0x49b9e0
push 0xfe
push str..QHImageHlp.c
mov edx, 1
call fcn.00440cd0
add esp, 0xc
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret
Function at 0x43e660
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push eax
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor edx, edx
test eax, eax
jne 0x43e6ad
push str.GetFileSizeEx__
push 0x11e
push str..QHImageHlp.c
call fcn.00440ba0
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0xb4]
sub ebx, edi
mov edi, dword [esp + 0x14]
sbb edi, edx
sub ebx, 0x298
sbb edi, ebp
xor eax, eax
cmp edi, eax
jl 0x43e744
jg 0x43e6d3
cmp ebx, ecx
jb 0x43e744
mov ebp, dword [esi]
push 0
push 0
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x43e709
push str.SetFilePointerEx__
push 0xf9
push str..QHImageHlp.c
xor edx, edx
call fcn.00440ba0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov esi, 0x298
mov edx, ebp
call fcn.0043d140
test eax, eax
je 0x43e6ff
mov eax, dword [esp + 0x20]
test eax, eax
je 0x43e72a
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x43e751
mov ecx, 1
mov word [eax], cx
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x43e751
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x43f000
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebp
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
cmp eax, ebp
je 0x43f140
cmp dword [esp + 0x28], ebp
je 0x43f140
push ebx
push 0x2800
call fcn.004520c5
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x43f063
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00451a7d
add esp, 0x1c
ret
push esi
push edi
xor edi, edi
jmp 0x43f070
push edi
push str..PhysicalDrive_d
mov ecx, 0x2800
call fcn.0043cfd0
add esp, 8
push ebp
push 0x80
push 3
push ebp
push 3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x43f116
xor eax, eax
push 0x2800
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.00458270
add esp, 0xc
push ebp
lea eax, [esp + 0x18]
push eax
push 0x2800
push ebx
push 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43f109
mov eax, dword [ebx + 0x18]
cmp eax, ebp
jbe 0x43f109
mov edx, dword [esp + 0x18]
add eax, ebx
push eax
mov eax, dword [esp + 0x38]
push edx
push str.DISKID:
call fcn.0043edb0
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x43f120
inc edi
cmp edi, 0x10
jl 0x43f070
push ebx
call fcn.00451fa8
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00451a7d
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.00451a7d
add esp, 0x1c
ret
Function at 0x43f1f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x30], esi
je 0x43f22a
cmp dword [esp + 0x34], esi
je 0x43f22a
push 0x200
call fcn.004520c5
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x43f235
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43f394
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
jne 0x43f32a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x43f28d
mov eax, 0x80000002
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43f303
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43f2f8
mov eax, ebx
mov dword [ebx], 0x5c2e5c5c
call fcn.0043f160
cmp edx, edi
jb 0x43f2f8
ja 0x43f2f2
cmp eax, dword [esp + 0x24]
jbe 0x43f2f8
mov dword [esp + 0x24], eax
mov edi, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
inc esi
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
je 0x43f280
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
ja 0x43f340
cmp dword [esp + 0x24], 0
jbe 0x43f394
mov ecx, dword [esp + 0x24]
push edi
push ecx
push str._012I64X
mov ecx, 0x200
call fcn.0043cfd0
add esp, 0xc
test eax, eax
jne 0x43f379
push ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.00451fa8
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ebx
push edx
push str.MAC:
call fcn.0043edb0
add esp, 0xc
mov dword [esp + 0x18], eax
push ebx
call fcn.00451fa8
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x442360
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485610
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4a5584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x4aee70]
xor edi, edi
cmp ecx, edi
jne 0x4423ab
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x4423b8
mov dword [ebp - 0x14], edi
jmp 0x4423d0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x442466
mov ecx, dword [0x4aee70]
mov eax, dword [ecx]
cmp eax, edi
je 0x442397
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x442397
mov ebx, 0x4aee70
mov dword [ebp - 4], edi
call fcn.00442480
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x44240e
push 0x49f014
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.0045930b
mov ecx, dword [0x4aee70]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x442428
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x442452
push 0x49f014
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.0045930b
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x442449
call fcn.00442790
mov eax, 0x44244f
ret
mov eax, dword [0x4aee70]
mov eax, dword [eax]
test eax, eax
je 0x442464
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret