joyce8/EMBER2024-capa huggingface dataset:
Function at 0x62d1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0062d140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0062d140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0062d140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0062d140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x62dbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x62dc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x63f87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x62dc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x62dc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x401270
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00445490
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x808]
call fcn.00401100
add esp, 0xc
mov esi, eax
cmp dword [ebp + 8], 0
jne 0x4012e9
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x1008]
mov ecx, eax
call fcn.00401250
add esp, 4
test esi, esi
js 0x4012e9
lea eax, [ebp - 0x1008]
push eax
push 0x44fb4c
mov eax, 0x400
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x808]
lea eax, [eax + esi*2]
push eax
call fcn.004011a0
add esp, 0x14
push 0
push 0x44fb58
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp + 8]
call fcn.0040f4cf
int3
Function at 0x401bf0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push pe_nt_image_headers32
push 0x46fec0
push 0x45014c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, 0x100
jb 0x401c40
lea ecx, [edi*2 + 2]
push ecx
call fcn.00424b05
mov esi, eax
add esp, 4
test esi, esi
je 0x401dd9
push edi
push esi
push 0x45014c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x401c4d
test edi, edi
je 0x401ce1
mov esi, 0x46fec0
cmp word [esi], 0
je 0x401ce1
push esi
push 0x450168
call fcn.00401220
push 0x44fde0
push esi
push 0x4501d4
push 0xffffffffffffffff
push 0x104
push 0x4af5f0
call fcn.004011a0
add esp, 0x20
push 0x4af5f0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x4af5f0
cmp eax, 0xffffffff
jne 0x401ca5
push 0x4501f8
call fcn.00401220
add esp, 8
jmp 0x401ce1
mov eax, dword [0x4560ac]
imul esi, eax, 0x424
inc eax
mov dword [0x4560ac], eax
push 0x104
add esi, 0x4560b0
lea eax, [esi + 0x14]
push eax
call fcn.00421d98
push 0x450258
push 8
push esi
mov dword [esi + 0x10], 0
call fcn.00421d98
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_IsWow64Process]
push eax
call edi
test eax, eax
je 0x401d44
cmp dword [ebp - 4], 0
je 0x401d44
push 0x450268
call fcn.00401220
push 0
push 0
push 0x20119
mov edx, 0x450088
mov ecx, 0x80000001
call fcn.00401420
push 0
push 0
push 0x20119
mov edx, 0x450088
mov ecx, 0x80000002
call fcn.00401420
add esp, 0x1c
push 0x4502b0
call fcn.00401220
push 0
push 0
push 0x20019
mov edx, 0x450088
mov ecx, 0x80000001
call fcn.00401420
push 0
push 0
push 0x20019
mov edx, 0x450088
mov ecx, 0x80000002
call fcn.00401420
add esp, 0x1c
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call esi
push eax
call edi
pop edi
pop esi
test eax, eax
je 0x401db8
cmp dword [ebp - 8], 0
je 0x401db8
push 1
push 0x40
push 0x20119
mov edx, 0x4500c0
mov ecx, 0x80000002
call fcn.00401420
add esp, 0xc
push 0x401a30
push 0x424
push dword [0x4560ac]
push 0x4560b0
call fcn.00422170
add esp, 0x10
mov esp, ebp
pop ebp
ret
push 0x44fba0
push 0x68
call fcn.00401270
int3
Function at 0x401ed0
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebx
push esi
push edi
push str.pythonX
push 0x45031c
push 0xffffffffffffffff
push 0x400
push 0x4aedf0
mov ebx, 0x450304
call fcn.004011a0
add esp, 0x14
push pe_nt_image_headers32
push 0x46fec0
push 0x4aedf0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, 0x100
jb 0x401f41
lea ecx, [edi*2 + 2]
push ecx
call fcn.00424b05
mov esi, eax
add esp, 4
test esi, esi
je 0x401ff3
push edi
push esi
push 0x4aedf0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x401fd9
test edi, edi
jne 0x401fd4
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor esi, esi
cmp word [0x4700c0], si
je 0x401f86
push 0x4700c0
push 0x400
push 0x4aedf0
push esi
push str.pythonX
push 0x45032c
call edi
test eax, eax
je 0x401f86
mov esi, 0x4aedf0
mov ebx, 0x4700c0
jmp 0x401fd9
cmp word [0x455ea0], si
je 0x401fbc
push 0x455ea0
push 0x400
push 0x4aedf0
push 0
push str.pythonX
push 0x45032c
call edi
test eax, eax
je 0x401fbc
mov esi, 0x4aedf0
mov ebx, 0x455ea0
jmp 0x401fd9
push str.pythonX
push 0x4503b0
call fcn.00401220
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
ret
mov esi, 0x46fec0
push ebx
push esi
push str.pythonX
push 0x450358
call fcn.00401220
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
ret
push 0x44fba0
push 0x68
call fcn.00401270
int3
Function at 0x402190
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
mov edi, ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
push edi
push 0x450594
call fcn.00401220
add esp, 8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov esi, eax
lea eax, [ebp - 0x7c]
push eax
push 0x70
lea eax, [ebp - 0x78]
push eax
push 9
push esi
call dword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x40237b
cmp dword [ebp - 0x7c], 0x70
jne 0x40237b
test esi, esi
je 0x40237b
or dword [ebp - 0x68], 0x3000
lea eax, [ebp - 0x78]
push 0x70
push eax
push 9
push esi
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
jne 0x402236
push 0x450618
push 0x65
call fcn.00401270
push 0x44
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.00405b70
add esp, 0xc
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call ebx
lea edx, [ebp - 0xa0]
mov ecx, eax
call fcn.00402120
test eax, eax
jne 0x40227d
push 0x450658
push 0x64
call fcn.00401270
push 0xfffffffffffffff5
call ebx
lea edx, [ebp - 0x9c]
mov ecx, eax
call fcn.00402120
test eax, eax
jne 0x40229e
push 0x45068c
push 0x64
call fcn.00401270
push 0xfffffffffffffff4
call ebx
lea edx, [ebp - 0x98]
mov ecx, eax
call fcn.00402120
test eax, eax
jne 0x4022bf
push 0x4506c0
push 0x64
call fcn.00401270
push 1
push 0x402180
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x4022dc
push 0x4506f4
push 0x65
call fcn.00401270
lea eax, [ebp - 0x8c]
mov dword [ebp - 0xac], pe_nt_image_headers32
push eax
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40231a
push edi
push 0x450738
push 0x65
call fcn.00401270
push dword [ebp - 0x8c]
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0xffffffffffffffff
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x402363
push 0x450788
push 0x65
call fcn.00401270
push dword [ebp - 0x7c]
push 0x4507d0
call fcn.00401220
add esp, 8
push dword [ebp - 0x7c]
call fcn.0040f4cf
push 0x4505d8
push 0x65
call fcn.00401270
int3
Function at 0x402800
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00445490
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1004]
push edi
mov ebx, ecx
push ebx
push 0x400
push eax
push 0
push 0
push 0x4509c0
call esi
cmp eax, 0x3ff
jne 0x40284f
push ebx
push 0x4509d8
call fcn.00401220
add esp, 8
cmp word [ebp - 0x1004], 0
lea edi, [ebp - 0x1004]
je 0x402964
push ebx
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0
push edi
push 0x4509c0
call esi
cmp eax, 0x3ff
jne 0x402890
push edi
push ebx
push 0x450a38
call fcn.00401220
add esp, 0xc
mov ax, word [ebp - 0x804]
lea esi, [ebp - 0x804]
test ax, ax
je 0x4028c5
movzx ecx, ax
movzx eax, cx
push eax
call fcn.00424450
add esp, 4
test eax, eax
je 0x4028c5
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x4028a5
jmp 0x402936
cmp word [esi], 0
je 0x402936
mov ecx, edi
call fcn.00402640
mov esi, eax
test esi, esi
jne 0x40290b
mov eax, dword [0x4af7f8]
cmp eax, 0x64
jl 0x4028f9
lea eax, [ebp - 0x804]
push eax
push edi
push 0x450980
call fcn.00401220
add esp, 0xc
jmp 0x402936
imul esi, eax, 0xa08
add esi, 0x4702d0
inc eax
mov dword [0x4af7f8], eax
push 0xffffffffffffffff
push edi
push 0x104
push esi
call fcn.00424bdb
push 0xffffffffffffffff
lea eax, [ebp - 0x804]
push eax
lea eax, [esi + 0x208]
push 0x400
push eax
call fcn.00424bdb
add esp, 0x20
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402940
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x402863
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403ff2
mov esp, ebp
pop ebp
ret
Function at 0x431feb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00431be3

Function at 0x4321e9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004320bd

Function at 0x434dde
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004347a6
Function at 0x408efa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x45d06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x38], 0
je 0x408f99
cmp byte [ebx + 0x3d], 0
je 0x408f99
mov eax, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x446268]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
je 0x408f6b
push edi
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [edi]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
mov ecx, dword [esi + 0x20]
call dword [0x446268]
mov ecx, edi
call dword [esi + 0x20]
pop edi
sub eax, 0
je 0x408f6f
sub eax, 1
je 0x408f73
dec eax
sub eax, 1
je 0x408f99
xor al, al
jmp 0x408f9b
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x408f90
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.00426a1d
add esp, 0x10
cmp esi, eax
jne 0x408f6b
cmp byte [ebx + 0x3d], 0
sete al
jmp 0x408f9b
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ebe0
leave
ret

Function at 0x40bf5a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x443772
call fcn.0041f670
mov ebx, ecx
lea eax, [ebp - 0x1c]
xor edi, edi
push eax
push 0x20119
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov esi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bfcc
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 4
push eax
push edi
push 0x45514c
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bfca
cmp dword [ebp - 0x18], 4
je 0x40bfbb
mov eax, 0x65d
jmp 0x40bfca
cmp dword [ebp - 0x14], 4
je 0x40bfc6
push 0xd
pop eax
jmp 0x40bfca
test eax, eax
je 0x40bfd5
jmp 0x40bfcc
mov ecx, eax
call fcn.00405534
mov edi, eax
test esi, esi
je 0x40bfe0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.0041f61a
ret
Function at 0x40c55d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x890
mov eax, dword [0x45d06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x80
lea eax, [ebp - 0x84]
push esi
push 0
push eax
mov ebx, ecx
call fcn.00421350
push 0
call fcn.00426d04
mov dword [ebp - 0x864], eax
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x860], edx
push esi
push eax
call fcn.0042d0a5
add esp, 0x1c
lea eax, [ebp - 0x84]
cmp byte [eax], 0xa
jne 0x40c5c0
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x40c5b8
push edi
xor eax, eax
lea edi, [ebp - 0x890]
cmp dword [0x45d9e0], 0xffffffff
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jne 0x40c5e7
call fcn.0040bed7
mov dword [0x45d9e0], eax
cmp dword [0x45d9e0], 0
mov ecx, 0x45f0b8
je 0x40c5fb
mov ecx, dword [ebp - 0x858]
mov eax, dword [0x45d9e0]
test eax, eax
jne 0x40c633
mov esi, dword [ecx + 4]
mov dword [ebp - 0x874], esi
mov esi, dword [ecx + 8]
mov dword [ebp - 0x870], esi
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x86c], esi
movzx esi, word [ecx + 0x114]
mov dword [ebp - 0x868], esi
call fcn.0040bfe8
jmp 0x40c663
mov eax, dword [ebp - 0x884]
mov dword [ebp - 0x868], eax
mov eax, dword [ebp - 0x888]
mov dword [ebp - 0x86c], eax
mov eax, dword [ebp - 0x88c]
mov dword [ebp - 0x870], eax
mov eax, dword [ebp - 0x890]
mov dword [ebp - 0x874], eax
lea eax, [ebp - 0x85c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x85c]
lea ecx, [ebp - 0x87c]
mov dword [ebp - 0x87c], eax
mov eax, dword [ebp - 0x858]
mov dword [ebp - 0x878], eax
call fcn.0040be15
push 0x7d0
mov esi, eax
lea eax, [ebp - 0x854]
push 0
push eax
call fcn.00421350
add esp, 0xc
mov dword [ebp - 0x858], str.DevelopmentState
cmp byte [ebx + 0x6d], 0
jne 0x40c6c5
mov dword [ebp - 0x858], str.ReleaseState
mov edi, 0x45525c
test esi, esi
js 0x40c6d3
mov edi, 0x455260
lea ecx, [ebx + 0x54]
cmp dword [ecx + 0x14], 8
jb 0x40c6de
mov ecx, dword [ecx]
push ecx
push dword [ebp - 0x868]
mov eax, esi
push dword [ebp - 0x86c]
cdq
push dword [ebp - 0x870]
mov esi, eax
push dword [ebp - 0x874]
xor esi, edx
push dword [ebp - 0x858]
sub esi, edx
push 0x455250
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0x3c
pop ecx
mov eax, esi
cdq
idiv ecx
cdq
idiv ecx
mov eax, esi
mov ecx, 0xe10
push edx
cdq
idiv ecx
push eax
push edi
lea eax, [ebp - 0x84]
push eax
push str._Logging_started_at_local_time__s__UTC_s_02d:_02d__by___s___product_version__s___s___OS_version__u._u._u._u__log_filename__S
lea eax, [ebp - 0x854]
push 0xffffffffffffffff
push eax
call fcn.0040ed7a
add esp, 0x3c
lea edx, [ebp - 0x854]
lea ecx, [edx + 1]
pop edi
mov al, byte [edx]
inc edx
test al, al
jne 0x40c751
sub edx, ecx
lea eax, [ebp - 0x854]
push edx
push eax
push 0x2bc
mov ecx, ebx
call fcn.0040c230
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ebe0
leave
ret
Function at 0x40cf06
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x90
mov eax, 0x4439c9
call fcn.0041f6de
mov esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], eax
call fcn.00403851
and dword [ebp - 4], 0
lea eax, [esi + 0x88]
and dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x64]
push eax
mov dword [ebp - 0x3c], 1
call fcn.00403801
xor esi, esi
lea ecx, [ebp - 0x64]
inc esi
push str.environment
mov dword [ebp - 4], esi
call fcn.0040374e
push eax
lea ecx, [ebp - 0x84]
call fcn.00403774
push 0
lea ecx, [ebp - 0x64]
call fcn.00403990
lea ecx, [ebp - 0x58]
call fcn.00403890
mov dword [ebp - 0x3c], 7
lea edx, [ebp - 0x84]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x9c]
call fcn.0040f03a
cmp dword [eax + 0x14], 8
jb 0x40cfa5
mov eax, dword [eax]
lea ecx, [ebp - 0x2c]
push ecx
push 0x20219
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x34], eax
call fcn.00403b3f
xor eax, eax
lea ecx, [ebp - 0x84]
push eax
mov byte [ebp - 4], al
call fcn.00403990
lea ecx, [ebp - 0x78]
call fcn.00403890
xor edx, edx
cmp dword [ebp - 0x34], edx
jne 0x40d0ba
mov dword [ebp - 4], 3
mov edi, 0x455968
mov eax, edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x30], edx
cmp word [ebx], dx
je 0x40d009
mov eax, ebx
lea ecx, [ebp - 0x30]
push ecx
push edx
lea ecx, [ebp - 0x18]
push ecx
push edx
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x34], eax
xor eax, eax
cmp dword [ebp - 0x34], eax
jne 0x40d0ae
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x40d0ae
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x40], eax
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e862
mov byte [ebp - 4], 5
test esi, esi
je 0x40d05f
push esi
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040f1d7
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.00403890
xor esi, esi
cmp word [ebx], si
je 0x40d074
mov edi, ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], esi
jne 0x40d0a6
mov ecx, dword [ebp - 0x28]
call fcn.00403879
mov ecx, dword [ebp - 0x38]
push eax
push dword [ebp - 0x28]
call fcn.0040ea20
lea ecx, [ebp - 0x28]
call fcn.0040e5b3
mov edi, dword [ebp - 0x38]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.0041f62b
ret 0xc