joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4511c1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x45125e
push ebx
push esi
call fcn.0045118a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0044ee12
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x45120b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45125d
push edi
push eax
call fcn.0044b16e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x45122b
call fcn.0044b134
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45125c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044ee12
add esp, 0x20
test eax, eax
jne 0x45124a
push edi
call fcn.0044b134
jmp 0x451252
push ebx
call fcn.0044b134
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x451261
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x451272
pop esi
ret
push ebx
push edi
push esi
call fcn.0045118a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044b16e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45129a
push ebx
push esi
push edi
call fcn.00437290
add esp, 0xc
push 0
call fcn.0044b134
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4519f4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045150f

Function at 0x45523e
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46c058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x455281
call fcn.00441018
mov dword [eax], 0xf
call fcn.0044102b
mov dword [eax], 0xd
call fcn.0043ae8a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436b0e
leave
ret
test eax, eax
jne 0x455288
inc eax
jmp 0x455275
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x455273
xor eax, eax
cmp ecx, 1
setne al
jmp 0x455275
Function at 0x4057b4
Capabilities:
Access peb ldr_data
Delete file
Get kernel32 base address
Get number of processors

Disassembly:
sub esp, 0xd0
mov eax, dword [0x481600]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x24
mov dword [esp + 0x14], ebx
call fcn.00406785
pop ecx
mov esi, eax
push 0x64
pop ebp
test esi, esi
je 0x40581a
push str.Window1
lea ecx, [esp + 0xc8]
call fcn.004021d2
lea eax, [esp + 0xc4]
push eax
push ebp
push ecx
push ecx
mov dword [esp + 4], 0x40000000
mov ecx, esi
mov dword [esp], 0x40400000
call fcn.0040222b
mov esi, eax
inc ebx
jmp 0x40581c
xor esi, esi
test bl, 1
je 0x40582d
lea ecx, [esp + 0xc4]
call fcn.00403cdf
test esi, esi
je 0x40584e
mov ecx, esi
call fcn.0040307d
test esi, esi
je 0x40584e
lea ecx, [esi + 0xc]
call fcn.00403cdf
push 0x24
push esi
call fcn.004067b5
pop ecx
pop ecx
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x482570], eax
push 0x27
push 0x481028
push 0x547
mov edi, 0x481050
push edi
call fcn.00402e9a
push 1
push 0x424458
call fcn.004059c0
push 0x8aafdc01
push dword [0x482570]
call fcn.00402dfb
add esp, 0x20
lea ecx, [esp + 0x14]
mov ebx, str.static.lib
mov esi, eax
push 1
push 0x40
push 2
push ebx
call fcn.0040201e
lea eax, [esp + 0x14]
push 0x424468
push eax
call fcn.004010ef
push eax
call fcn.00401dba
add esp, 0xc
sub ebp, 1
jne 0x4058b4
lea ecx, [esp + 0x14]
call fcn.00403f1c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x4e4
push edi
call esi
test eax, eax
je 0x405943
call fcn.00404efa
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x400
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x405943
push 0x42446c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
xor ebx, ebx
push ebx
push ebx
push eax
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x14]
call fcn.00402baa
mov ecx, dword [esp + 0xdc]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004067c8
add esp, 0xd0
ret 0x10

Function at 0x407516
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407555
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407555
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407555
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407555
cmp dword [ecx + 0x74], 0xe
jbe 0x407555
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x415527
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4282f8
push 0x4282f0
push str.FlsAlloc
push 0x1e
call fcn.004153f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41555b
push dword [ebp + 8]
mov ecx, esi
call dword [0x424140]
call esi
jmp 0x415561
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x10027e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
mov dword [ebp - 4], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x10027e75
mov eax, 0x3fff
jmp 0x10027e79
mov eax, dword [ebp - 4]
inc eax
xor ecx, ecx
mov dword [ebp - 4], eax
mov edx, 2
mul edx
seto cl
push esi
neg ecx
or ecx, eax
push ecx
call fcn.1006cf6a
mov esi, eax
add esp, 4
test esi, esi
je 0x10027ed6
mov eax, dword [ebp - 4]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call sub.MSVCR100.dll_memset
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x10027edd
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10027ee2
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.10002f20
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002a190
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100a04fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x100a49d0], ebx
je 0x1002a1c8
xor eax, eax
cmp dword [0x100a49c4], ebx
pop ebx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007236c
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x90
lea eax, [ebp - 0x94]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor edx, edx
cmp dword [ebp - 0x88], 2
push str.USER32
sete dl
mov dword [0x100a49d4], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, ebx
je 0x1002a2c8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10086da4
push esi
call edi
mov dword [0x100a49b4], eax
cmp eax, ebx
je 0x1002a2c8
push str.MonitorFromWindow
push esi
call edi
mov dword [0x100a49b8], eax
cmp eax, ebx
je 0x1002a2c8
push str.MonitorFromRect
push esi
call edi
mov dword [0x100a49bc], eax
cmp eax, ebx
je 0x1002a2c8
push str.MonitorFromPoint
push esi
call edi
mov dword [0x100a49c0], eax
cmp eax, ebx
je 0x1002a2c8
push str.EnumDisplayMonitors
push esi
call edi
mov dword [0x100a49c8], eax
cmp eax, ebx
je 0x1002a2c8
push str.EnumDisplayDevicesW
push esi
call edi
mov dword [0x100a49cc], eax
cmp eax, ebx
je 0x1002a2c8
cmp dword [0x100a49d4], ebx
je 0x1002a29c
push str.GetMonitorInfoW
jmp 0x1002a2a1
push str.GetMonitorInfoA
push esi
call edi
mov dword [0x100a49c4], eax
cmp eax, ebx
je 0x1002a2c8
pop edi
mov eax, 1
pop esi
mov dword [0x100a49d0], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007236c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [0x100a49b4], ebx
mov dword [0x100a49b8], ebx
mov dword [0x100a49bc], ebx
mov dword [0x100a49c0], ebx
mov dword [0x100a49c4], ebx
mov dword [0x100a49c8], ebx
mov dword [0x100a49cc], ebx
xor ecx, ebp
mov dword [0x100a49d0], 1
xor eax, eax
pop ebx
call fcn.1007236c
mov esp, ebp
pop ebp
ret
Function at 0x1002a490
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007698b
mov eax, dword fs:[0]
push eax
mov eax, 0x1238
call fcn.10073d20
mov eax, dword [0x100a04fc]
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 eax, dword [ebp + 8]
mov ebx, ecx
mov esi, dword [ebx]
mov dword [ebp - 0x1244], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x123c], ebx
cmp esi, eax
je 0x1002a4fb
mov ecx, eax
sub ecx, eax
sar ecx, 2
lea edi, [ecx*4]
push edi
push eax
push esi
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
add edi, esi
mov dword [ebx + 4], edi
lea ecx, [ebp - 0x1240]
push ecx
push 0x1000
lea edx, [ebp - 0x1218]
push edx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x1002a60b
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x1220], 7
mov dword [ebp - 0x1224], ecx
mov word [ebp - 0x1234], ax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x1240]
shr eax, 2
cmp eax, ecx
jle 0x1002a60b
lea ebx, [ebp - 0x1218]
mov dword [ebp - 0x1238], eax
mov ecx, dword [ebx]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1002a5e3
push 0x104
lea edx, [ebp - 0x218]
push edx
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1002a5dc
xor ecx, ecx
mov word [ebp + eax*2 - 0x218], cx
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002a597
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x1234]
call fcn.10002f20
mov edx, dword [ebp - 0x1244]
lea ecx, [ebp - 0x1234]
call fcn.1002b3a0
cmp eax, 0xffffffff
je 0x1002a5dc
mov edi, dword [ebp - 0x123c]
mov eax, ebx
call fcn.10012060
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 4
dec dword [ebp - 0x1238]
jne 0x1002a557
cmp dword [ebp - 0x1220], 8
jb 0x1002a60b
mov eax, dword [ebp - 0x1234]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
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.1007236c
mov esp, ebp
pop ebp
ret
Function at 0x100317e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100a04fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x210], eax
jne 0x10031816
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007236c
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x10031820
mov eax, dword [esi]
jmp 0x10031822
mov eax, esi
push ebx
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x10031849
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007236c
mov esp, ebp
pop ebp
ret
push edi
push ebx
call fcn.1006cf6a
mov edi, eax
add esp, 4
test edi, edi
je 0x1003187a
cmp dword [esi + 0x14], 8
jb 0x10031861
mov esi, dword [esi]
push edi
push ebx
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x1003188d
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007236c
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x20c]
push eax
push str.VarFileInfoTranslation
xor ebx, ebx
push edi
mov dword [ebp - 0x20c], ebx
call esi
push 0x1fe
lea edx, [ebp - 0x202]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x204], cx
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x20c]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push 0x10087474
push ecx
push edx
lea eax, [ebp - 0x204]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x204]
push eax
push edi
mov dword [ebp - 0x208], ebx
call esi
cmp eax, 1
sete bl
test bl, bl
je 0x10031933
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x10031933
mov ecx, dword [ebp - 0x210]
push eax
call fcn.10011fa0
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov al, bl
pop ebx
xor ecx, ebp
pop esi
call fcn.1007236c
mov esp, ebp
pop ebp
ret
Function at 0x10032360
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10076740
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20d8
call fcn.10073d20
mov eax, dword [0x100a04fc]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, edx
xor edx, edx
push 0x1046
mov dword [ebp - 0x20ac], eax
push edx
lea eax, [ebp - 0x20a2]
push eax
mov dword [ebp - 0x20a8], ecx
mov word [ebp - 0x20a4], dx
call sub.MSVCR100.dll_memset
xor ecx, ecx
push 0x1046
push ecx
lea edx, [ebp - 0x105a]
push edx
mov word [ebp - 0x105c], cx
call sub.MSVCR100.dll_memset
push 0x38
lea eax, [ebp - 0x20e4]
push 0
push eax
call sub.MSVCR100.dll_memset
mov eax, 0x823
add esp, 0x24
lea ecx, [ebp - 0x105c]
lea edx, [ebp - 0x20a4]
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x20e8], 0x3c
mov dword [ebp - 0x20d8], ecx
mov dword [ebp - 0x20d4], eax
mov dword [ebp - 0x20bc], edx
mov dword [ebp - 0x20b8], eax
jb 0x10032438
mov esi, dword [esi]
lea eax, [ebp - 0x20e8]
push eax
push 0x10000000
push 0
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov esi, eax
test esi, esi
je 0x100324db
lea eax, [ebp - 0x105c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10032460
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x105c]
push ecx
mov ecx, edi
call fcn.10002f20
lea eax, [ebp - 0x20a4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10032487
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20a4]
push edx
mov ecx, ebx
call fcn.10002f20
mov ax, word [ebp - 0x20d0]
mov ecx, dword [ebp - 0x20ac]
mov edx, dword [ebp - 0x20dc]
mov word [ecx], ax
mov eax, dword [ebp - 0x20a8]
mov dword [eax], edx
jmp 0x100324db
xor eax, eax
cmp esi, 1
sete al
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.1007236c
mov esp, ebp
pop ebp
ret
Function at 0x100340f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x100a04fc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10034170
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x10034157
cmp dword [ebp - 0x118], 2
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007236c
mov esp, ebp
pop ebp
ret
mov edx, 6
cmp edx, eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007236c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.1007236c
mov esp, ebp
pop ebp
ret
Function at 0x10035620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [ebp - 2]
mov ebx, eax
mov dword [ebp - 8], 0
mov byte [ebp - 1], 1
call fcn.10035710
test al, al
jne 0x1003564e
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 2], 0
je 0x10035645
cmp dword [ebx + 0x10], 0
mov dword [ebp - 8], 0
je 0x10035645
mov esi, 8
cmp dword [ebx + 0x14], esi
jb 0x1003566d
mov ebx, dword [ebx]
lea eax, [ebp - 8]
push eax
push 1
push 0
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10035645
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x10035645
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], esi
jb 0x10035696
mov eax, dword [eax]
mov ebx, dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edi, [ebx + 0x24]
push edi
push 0
push 0
push 0
push eax
push ecx
call esi
cmp eax, 0xea
je 0x100356b8
test eax, eax
jne 0x100356f2
mov ecx, dword [edi]
add ecx, 5
push ecx
push 1
call dword [sym.imp.MSVCR100.dll_calloc]
add esp, 8
mov dword [ebx + 0x20], eax
test eax, eax
je 0x100356ee
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x100356db
mov ecx, dword [ecx]
mov edx, dword [ebp - 8]
push edi
push eax
add ebx, 0x1c
push ebx
push 0
push ecx
push edx
call esi
test eax, eax
je 0x100356f2
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb al, al
pop edi
not al
and al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10035710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x10], 0
mov dword [ebp - 4], 0
je 0x10035751
cmp dword [eax + 0x14], 8
jb 0x10035729
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10035748
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x10035757
mov byte [edi], 0
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x10035761
mov eax, dword [esi]
jmp 0x10035763
mov eax, esi
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [ebp - 4]
sete dl
push eax
mov byte [edi], dl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10035751
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x1004e110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10075e58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100a04fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.10002600
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
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 0x1004e620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10075e30
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100a04fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.10002600
mov dword [esi], vtable.boost::thread_resource_error.0
mov dword [ebp - 4], 1
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x1004e6b3
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10064f60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10074f58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x100a04fc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [ecx]
mov dword [esp + 0xc], 0
test eax, eax
je 0x10064fe4
mov dword [esp + 0xc], eax
test al, 1
je 0x10064fcf
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
jmp 0x10064fe4
push 0
lea edx, [esp + 0x18]
and eax, 0xfffffffe
mov eax, dword [eax]
push edx
add ecx, 8
push ecx
call eax
add esp, 0xc
lea edi, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.1003c530
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10065021
test al, 1
jne 0x10065021
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x10065021
lea ecx, [esp + 0x14]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret