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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10078563
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
push edi
call fcn.100466b0
push edi
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0
call fcn.1005cd10
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x26c]
test ecx, ecx
je 0x10046690
test eax, eax
js 0x10046685
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, edi
mov dword [ebp - 0x50], 0
call fcn.1005c530
lea eax, [ebp - 0x50]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.100466b0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1c], 8
jb 0x10046602
push dword [ebp - 0x30]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x38], 8
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
jb 0x10046624
push dword [ebp - 0x4c]
call esi
add esp, 4
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x26c]
dec eax
mov dword [ebp - 0x268], eax
test ecx, ecx
je 0x10046677
test eax, eax
js 0x10046677
lea edx, [ebp - 0x58]
push edx
push 0
push 0
push 0
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x264]
push edx
push eax
push ecx
mov dword [ebp - 0x18], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp - 0x26c]
test eax, eax
mov eax, dword [ebp - 0x268]
je 0x100465b8
xor edx, edx
mov word [ebp - 0x264], dx
jmp 0x100465b8
test ecx, ecx
je 0x10046690
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 4
Function at 0x10048fb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x10048fcd
mov eax, dword [esi]
jmp 0x10048fcf
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10048feb
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0xc], eax
mov eax, dword [0x100a5614]
mov dword [ebp - 8], 0
test eax, eax
jne 0x10049027
push str.IsWow64Process
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100a5614], eax
test eax, eax
je 0x10049030
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0xc]
call eax
cmp dword [ebp - 8], 1
jne 0x1004906b
lea ecx, [ebp - 8]
call fcn.10049360
cmp dword [esi + 0x14], 8
mov dword [ebp - 0xc], eax
jb 0x10049049
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
movzx ebx, bl
test eax, eax
mov ecx, 1
cmovne ebx, ecx
cmp dword [ebp - 0xc], 0
je 0x1004906b
mov ecx, dword [ebp - 8]
call fcn.10049410
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
xor ecx, ebp
pop esi
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x100496f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10078b28
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1009e034]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, edx
xor eax, eax
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
call fcn.10001f80
mov dword [esp + 0x50], 0
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jmp 0x10049760
mov edx, ebx
lea ecx, [esp + 0x28]
call fcn.10048b80
test al, al
je 0x1004978c
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1004984b
push 1
sub esp, 8
lea ecx, [esp + 0x34]
call fcn.1004a350
cmp eax, 0xffffffff
je 0x10049863
push eax
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
call fcn.1000be10
mov esi, eax
lea eax, [esp + 0x28]
cmp eax, esi
je 0x10049832
cmp dword [esp + 0x3c], 8
jb 0x100497ce
push dword [esp + 0x28]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
cmp dword [esi + 0x14], 8
jae 0x10049805
mov eax, dword [esi + 0x10]
inc eax
je 0x10049811
add eax, eax
push eax
lea eax, [esp + 0x2c]
push esi
push eax
call dword [sym.imp.MSVCR110.dll_memmove]
add esp, 0xc
jmp 0x10049811
mov eax, dword [esi]
mov dword [esp + 0x28], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [esp + 0x24], 8
jb 0x10049760
push dword [esp + 0x10]
call edi
add esp, 4
jmp 0x10049760
lea eax, [esp + 0x28]
cmp ebx, eax
je 0x1004985f
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.10001f80
mov bl, 1
jmp 0x10049865
xor bl, bl
cmp dword [esp + 0x3c], 8
jb 0x10049875
push dword [esp + 0x28]
call edi
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x100498a0
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx + 0x10]
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.1006e129
add esi, esi
push esi
mov edi, eax
push 0
push edi
call sub.MSVCR110.dll_memset
add esp, 0x10
cmp dword [ebx + 0x14], 8
jb 0x100498d9
mov ebx, dword [ebx]
push esi
push ebx
push esi
push edi
call dword [sym.imp.MSVCR110.dll_memcpy_s]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push edi
test eax, eax
je 0x1004992b
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push edi
mov esi, eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
test esi, esi
je 0x10049925
cmp esi, 1
je 0x10049925
cmp esi, 2
je 0x1004991c
cmp esi, 5
je 0x1004991c
cmp esi, 4
jne 0x10049934
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
pop edi
pop esi
mov eax, 2
pop ebx
ret
Function at 0x10049940
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10078aee
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xf003f
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.1005c8c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100499a7
xor bl, bl
jmp 0x10049b0d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor ecx, ecx
test eax, eax
cmove ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10049b08
push edi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], 0
call fcn.1005cd10
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x238]
lea esp, [esp]
test ecx, ecx
je 0x10049af7
test eax, eax
js 0x10049af7
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x270]
push eax
mov ecx, edi
call fcn.1005c530
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.10049940
test al, al
sete bl
mov byte [ebp - 4], 1
cmp dword [ebp - 0x23c], 8
jb 0x10049a5d
push dword [ebp - 0x250]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x258], 8
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], ax
jb 0x10049a8e
push dword [ebp - 0x26c]
call esi
add esp, 4
mov ecx, dword [ebp - 0x238]
test bl, bl
jne 0x10049af3
mov eax, dword [ebp - 0x234]
dec eax
mov dword [ebp - 0x234], eax
test ecx, ecx
je 0x10049ae5
test eax, eax
js 0x10049ae5
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x230]
push edx
push eax
push ecx
mov dword [ebp - 0x14], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp - 0x238]
test eax, eax
mov eax, dword [ebp - 0x234]
je 0x10049a10
xor edx, edx
mov word [ebp - 0x230], dx
jmp 0x10049a10
xor bl, bl
jmp 0x10049af9
mov bl, 1
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x10049b0a
push ecx
call esi
jmp 0x10049b0a
mov bl, 1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10049b25
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x10049b2c
push eax
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x1004a080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10078ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1009e034]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x160], 0
jne 0x1004a0c9
xor al, al
jmp 0x1004a209
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_ManagementARPCache
lea ecx, [esp + 0x18]
call fcn.10008e70
lea eax, [esi + 0x150]
mov dword [esp + 0x60], 0
cmp dword [eax + 0x14], 8
jb 0x1004a0ed
mov eax, dword [eax]
push eax
lea edx, [esp + 0x18]
lea ecx, [esp + 0x3c]
call fcn.10058b60
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esp + 0x28], 8
jb 0x1004a114
push dword [esp + 0x14]
call esi
add esp, 4
cmp dword [esp + 0x4c], 8
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x2c]
push ecx
push 0x20019
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push 0
push eax
push 0x80000001
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov byte [esp + 0x48], 0
call ebx
test eax, eax
je 0x1004a1ad
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x30]
lea edi, [esp + 0x38]
cmovae edi, dword [esp + 0x38]
test eax, eax
je 0x1004a17a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1004a191
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x2c]
push eax
push 0x20019
push 0
push edi
push 0x80000002
call ebx
test eax, eax
je 0x1004a1ad
xor bl, bl
jmp 0x1004a1c9
push 0
push 0
push 0
push 0
push str.SlowInfoCache
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1004a1e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1004a1f7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], 0
cmp dword [esp + 0x4c], 8
jb 0x1004a207
push dword [esp + 0x38]
call esi
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x1004c870
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079050
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 0x50], 0
jne 0x1004c97b
mov al, byte [ebx + 0x1c]
test al, al
jne 0x1004c8cc
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x1004c8b9
mov eax, dword [eax]
push eax
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
neg eax
sbb eax, eax
inc eax
jmp 0x1004ca00
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RegDeleteKeyExW
push str.Advapi32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.RegDeleteTreeW
push str.Advapi32.dll
mov dword [ebp - 0x20], eax
call edi
push eax
call esi
push 0xf003f
push ebx
lea ecx, [ebp - 0x1c]
mov esi, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.1005c8c0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1004c956
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x1004c956
test esi, esi
je 0x1004c935
push 0
push ecx
call esi
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x1004c940
mov eax, dword [eax]
push 0
push 0x100
push eax
push dword [ebx]
call edi
mov ecx, dword [ebp - 0x1c]
test eax, eax
sete bl
jmp 0x1004c958
xor bl, bl
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1004c970
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
test ecx, ecx
je 0x1004c9fe
push ecx
jmp 0x1004c9f8
push 0x20006
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.1005c8c0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
jne 0x1004c9a8
xor bl, bl
jmp 0x1004c9db
push 0
add ebx, 0x38
push 0x1007d0cc
push dword [ebx + 0x10]
push ecx
mov ecx, ebx
call fcn.10005a80
test eax, eax
jne 0x1004c9c4
push eax
jmp 0x1004c9cd
cmp dword [ebx + 0x14], 8
jb 0x1004c9cc
mov ebx, dword [ebx]
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete bl
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1004c9f0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1004c9fe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x1004e630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100791c4
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1009e034]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
call fcn.1005cdf0
mov dword [esp + 0x78], 0
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jmp 0x1004e6b0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1004e812
cmp dword [esp + 0x38], 0
jl 0x1004e807
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x58]
je 0x1004e7f5
test eax, eax
je 0x1004e7f5
cmp dword [esp + 0x50], 8
lea edx, [esp + 0x3c]
cmovae edx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
cmp word [edx], ax
je 0x1004e71f
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004e710
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.10003de0
push 0x54
mov byte [esp + 0x7c], 1
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
mov byte [esp + 0x78], 2
test edi, edi
je 0x1004e782
push dword [esp + 0x14]
mov ecx, edi
call fcn.10009200
lea ecx, [edi + 0x38]
mov byte [esp + 0x78], 3
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0x20]
push eax
call fcn.10001f80
mov byte [edi + 0x50], 1
jmp 0x1004e784
xor edi, edi
mov byte [esp + 0x78], 1
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
cmp ecx, eax
jae 0x1004e7c6
mov ecx, dword [esi]
lea edx, [esp + 0x10]
cmp ecx, edx
ja 0x1004e7c6
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x1004e7b6
push ecx
mov ecx, esi
call fcn.10008fc0
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
je 0x1004e7dc
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x1004e7dc
cmp eax, dword [esi + 8]
jne 0x1004e7d3
push ecx
mov ecx, esi
call fcn.10008fc0
mov eax, dword [esi + 4]
test eax, eax
je 0x1004e7dc
mov dword [eax], edi
add dword [esi + 4], 4
mov byte [esp + 0x78], 0
cmp dword [esp + 0x2c], 8
jb 0x1004e7f5
push dword [esp + 0x18]
call ebx
add esp, 4
dec dword [esp + 0x38]
lea ecx, [esp + 0x34]
call fcn.1005cfb0
jmp 0x1004e6b0
test eax, eax
je 0x1004e812
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x1004e838
push eax
call ebx
add esp, 4
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
cmp dword [esp + 0x50], 8
jb 0x1004e848
push dword [esp + 0x3c]
call ebx
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 4
Function at 0x10050f70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100795b3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 1
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [esi], vtable.TiXmlElement.0
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0xffffffff
mov dword [eax + 0xc], 0
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [eax + 0x28], 0xf
mov dword [eax + 0x24], 0
mov byte [eax + 0x14], 0
mov dword [eax + 0x40], 0xf
mov dword [eax + 0x3c], 0
mov byte [eax + 0x2c], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x48], eax
mov dword [eax + 0x44], eax
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
cmp byte [edx], 0
jne 0x10051058
xor ecx, ecx
jmp 0x10051069
mov ecx, edx
lea ebx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051060
sub ecx, ebx
push ecx
push edx
lea ecx, [esi + 0x20]
call fcn.10001e40
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 4

Function at 0x100517f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079583
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1009e034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push 0
push 0x1007cffc
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.10001e40
mov dword [esi + 0x68], 0
mov dword [esi + 0x64], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10051a30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x10051a8c
cmp byte [edi + 0x40], bl
jne 0x10051a83
mov byte [edi + 0x40], 1
mov dword [edi + 0x44], 2
mov edx, dword [str.Failed_to_open_file]
cmp byte [edx], bl
jne 0x10051a5d
xor ecx, ecx
jmp 0x10051a6b
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051a62
sub ecx, esi
push ecx
push edx
lea ecx, [edi + 0x48]
call fcn.10001e40
mov dword [edi + 0x68], 0xffffffff
mov dword [edi + 0x64], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov esi, dword [edi + 0x18]
test esi, esi
je 0x10051aa2
mov ecx, esi
mov esi, dword [esi + 0x3c]
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
jne 0x10051a93
mov esi, dword [sym.imp.MSVCR110.dll_fseek]
push 2
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push 0
push ebx
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0xffffffff
call esi
push ebx
call dword [sym.imp.MSVCR110.dll_ftell]
push 0
push 0
push ebx
mov dword [ebp + 8], eax
call esi
mov eax, dword [ebp + 8]
add esp, 0x1c
test eax, eax
jg 0x10051b1c
cmp byte [edi + 0x40], 0
jne 0x10051a83
mov byte [edi + 0x40], 1
mov dword [edi + 0x44], 0xc
mov edx, dword [str.Error_document_empty.]
cmp byte [edx], 0
je 0x10051a59
mov ecx, edx
lea esi, [ecx + 1]
jmp 0x10051b10
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051b10
jmp 0x10051a69
inc eax
push eax
call fcn.1006e129
push ebx
mov ebx, dword [ebp + 8]
push 1
mov esi, eax
push ebx
push esi
mov byte [esi], 0
call dword [sym.imp.MSVCR110.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x10051b7d
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp byte [edi + 0x40], 0
jne 0x10051a83
mov byte [edi + 0x40], 1
mov dword [edi + 0x44], 2
mov edx, dword [str.Failed_to_open_file]
cmp byte [edx], 0
je 0x10051a59
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051b71
jmp 0x10051a69
mov byte [esi + ebx], 0
cmp byte [esi], 0
mov eax, esi
mov ecx, esi
je 0x10051bac
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, 0xd
jne 0x10051ba3
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0xa
jne 0x10051ba7
jmp 0x10051ba6
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x10051b90
push 0
mov byte [ecx], 0
mov eax, dword [edi]
push 0
push esi
mov ecx, edi
call dword [eax + 8]
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
cmp byte [edi + 0x40], al
pop edi
pop esi
sete al
pop ebx
pop ebp
ret 8
Function at 0x100523c0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079549
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x34], 0xf
mov dword [ebx + 0x30], 0
mov byte [ebx + 0x20], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 5
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x40]
mov dword [ebx], vtable.TiXmlDeclaration.0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
mov dword [ebx + 0x6c], 0xf
mov dword [ebx + 0x68], 0
mov byte [ebx + 0x58], 0
mov dword [ebx + 0x84], 0xf
mov dword [ebx + 0x80], 0
mov byte [ebx + 0x70], 0
push 3
push 0x1007d034
mov byte [ebp - 4], 3
call fcn.10001e40
push 5
push str.utf_8
lea ecx, [ebx + 0x58]
call fcn.10001e40
push 0
push 0x1007cffc
lea ecx, [ebx + 0x70]
call fcn.10001e40
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc