joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9950
Capabilities:
Check os version
Identify system language via api
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x516b80]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0xb0], ax
mov dword [ebp - 0x1d4], 0x50
mov dword [ebp - 0x1d0], 0x114
lea ecx, [ebp - 0x1d0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4c9998
xor eax, eax
jmp 0x4c9a98
mov edx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1d8], edx
cmp dword [ebp - 0x1d8], 1
je 0x4c99e4
cmp dword [ebp - 0x1d8], 2
je 0x4c99bb
jmp 0x4c9a79
cmp dword [ebp - 0x1cc], 5
jb 0x4c99d3
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [ebp - 0xb0], ax
jmp 0x4c99df
call fcn.004c96d0
mov word [ebp - 0xb0], ax
jmp 0x4c9a79
lea eax, [ebp - 0xac]
push eax
push 1
push 0
push str.DefaultControl_PanelDesktopResourceLocale
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c9a79
push 0
push 0
lea ecx, [ebp - 0xb4]
push ecx
push 0
push 0
mov edx, dword [ebp - 0xac]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c9a6c
cmp dword [ebp - 0xb4], 1
jne 0x4c9a6c
lea eax, [ebp - 0x1d4]
push eax
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0xb4]
push edx
push 0
push 0
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c9a6c
lea ecx, [ebp - 0xa8]
push ecx
call fcn.0049965b
add esp, 4
mov word [ebp - 0xb0], ax
mov edx, dword [ebp - 0xac]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, word [ebp - 0xb0]
test eax, eax
jne 0x4c9a91
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0xb0], ax
mov ax, word [ebp - 0xb0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497164
mov esp, ebp
pop ebp
ret

Function at 0x4ca4c0
Capabilities:
Resume thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x61c], 1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x618], 0
je 0x4ca538
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x2710
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x618]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4ca51b
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x618]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x618], 0
mov esp, ebp
pop ebp
ret
Function at 0x4ca860
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x44], ecx
call fcn.004119a0
mov dword [ebp - 4], eax
push 0x4fd49c
push 0x84
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4ca936
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4ca931
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.004992e0
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp - 0x44]
call fcn.00407a20
mov ecx, dword [ebp - 0x44]
add ecx, 0x300
call fcn.00484cd0
push eax
push 0x4f3118
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4caa79
push 0x60
push 0x3f3
mov ecx, dword [ebp - 0x44]
call fcn.004ca7e0
push 0x60
push 0x3f7
mov ecx, dword [ebp - 0x44]
call fcn.004ca7e0
push 0x60
push 0x3f4
mov ecx, dword [ebp - 0x44]
call fcn.004ca7e0
push 0x60
push 0x3f8
mov ecx, dword [ebp - 0x44]
call fcn.004ca7e0
push 0x60
push 0x3f5
mov ecx, dword [ebp - 0x44]
call fcn.004ca7e0
push 0x60
push 0x3ec
mov ecx, dword [ebp - 0x44]
call fcn.004ca7e0
lea ecx, [ebp - 0x30]
call fcn.00484cd0
lea ecx, [ebp - 0x40]
call fcn.00484cd0
lea ecx, [ebp - 0x30]
call fcn.00484cd0
push eax
push 0x3ec
mov ecx, dword [ebp - 0x44]
call fcn.0048ec9a
mov ecx, eax
call fcn.00402230
lea ecx, [ebp - 0x30]
call fcn.00484cd0
push eax
mov ecx, dword [ebp - 0x44]
call fcn.0048f454
mov edx, dword [ebp - 0x28]
add edx, 0x60
mov dword [ebp - 0x28], edx
push 0x206
lea ecx, [ebp - 0x30]
call fcn.00402210
push eax
lea ecx, [ebp - 0x30]
call fcn.004021f0
push eax
push 0
push 0
push 0
push 0x3ec
mov ecx, dword [ebp - 0x44]
call fcn.0048ec9a
mov ecx, eax
call fcn.0048eec3
lea ecx, [ebp - 0x30]
call fcn.00484cd0
push eax
push 0x3f7
mov ecx, dword [ebp - 0x44]
call fcn.0048ec9a
mov ecx, eax
call fcn.00402230
lea ecx, [ebp - 0x40]
call fcn.00484cd0
push eax
push 0x3f0
mov ecx, dword [ebp - 0x44]
call fcn.0048ec9a
mov ecx, eax
call fcn.00402230
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
push 0x206
lea ecx, [ebp - 0x30]
call fcn.00402210
push eax
lea ecx, [ebp - 0x30]
call fcn.004021f0
push eax
push 0
push 0
push 0
push 0x3f7
mov ecx, dword [ebp - 0x44]
call fcn.0048ec9a
mov ecx, eax
call fcn.0048eec3
mov esp, ebp
pop ebp
ret
Function at 0x4caf80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5529
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x516b80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x270], ecx
push 0x4fd4a8
lea ecx, [ebp - 0x23c]
call fcn.004012d0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x220], 0
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x258]
call fcn.004012d0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x258]
call fcn.00408ea0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4cb0f6
mov eax, dword [ebp - 0x10]
push eax
call fcn.00488191
add esp, 4
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
mov dword [ebp - 0x264], ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x264]
push eax
call fcn.004991b0
add esp, 0xc
mov ecx, dword [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
lea ecx, [ebp - 0x258]
call fcn.00408ea0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [ebp - 0x25c], 0
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x260]
push ecx
push str.StringFileInfo040904E4ProductVersion
mov edx, dword [ebp - 0x264]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4cb0db
mov eax, dword [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x23c]
call fcn.00401890
lea ecx, [ebp - 0x23c]
call fcn.00408ea0
push eax
push 0x3ed
mov ecx, dword [ebp - 0x270]
call fcn.0048eced
mov edx, dword [ebp - 0x264]
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x26c]
push eax
call fcn.00488186
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x258]
call fcn.00401310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.00401310
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00497164
mov esp, ebp
pop ebp
ret
Function at 0x4cb130
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d56b1
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x516b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x258], 0
push 0x4fd7d0
lea ecx, [ebp - 0x2c]
call fcn.004012d0
mov dword [ebp - 4], 0
call fcn.00419180
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], edx
cmp dword [ebp - 0x260], 0x60000
jb 0x4cb23d
ja 0x4cb1b2
cmp dword [ebp - 0x264], 0x17700000
jb 0x4cb23d
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4cb23d
push str.SHGetKnownFolderPath
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4cb233
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0
push 0x4f3108
call dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jl 0x4cb233
call fcn.00402b00
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x30]
push edx
call fcn.004117a0
add esp, 4
push eax
lea ecx, [ebp - 0x2c]
call fcn.004015d0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x2c]
call fcn.00405890
movzx edx, al
cmp edx, 1
jne 0x4cb28d
xor eax, eax
mov word [ebp - 0x254], ax
push 0x206
push 0
lea ecx, [ebp - 0x252]
push ecx
call fcn.004991b0
add esp, 0xc
lea edx, [ebp - 0x254]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004058b0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403420
mov edx, dword [ebp - 0x258]
or edx, 1
mov dword [ebp - 0x258], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401310
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497164
mov esp, ebp
pop ebp
ret 4
Function at 0x4cff10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 1
mov ecx, dword [ebp - 4]
call fcn.0048b66f
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x4cf060
push 0
push 0
call fcn.00499896
add esp, 0x18
mov esp, ebp
pop ebp
ret
Function at 0x408fc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x12c
mov eax, dword [0x447d10]
mov dword [esp + 0x128], eax
mov al, byte [0x449d54]
test al, al
jne 0x4090da
lea eax, [esp]
push eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea ecx, [esp + 4]
push ecx
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409031
mov eax, dword [esp + 4]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
jmp 0x409043
lea eax, [esp + 0x24]
push 0x4398b8
push eax
call fcn.00416f3f
add esp, 8
mov eax, dword [esp]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409053
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x10]
call fcn.00403ef0
push 8
push str.PES6MX_
lea ecx, [esp + 0x10]
call fcn.00408870
push 0x16
push 0x439894
lea ecx, [esp + 0x10]
call fcn.00408870
push 1
push 0x439890
lea ecx, [esp + 0x10]
call fcn.00408870
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x4090aa
lea eax, [esp + 0xc]
push 0x410
push eax
push 0x449388
call fcn.004171a0
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 0x10
mov byte [0x449d54], 1
jb 0x4090da
mov eax, dword [esp + 0xc]
push eax
call fcn.0042cfc9
add esp, 4
mov ecx, dword [esp + 0x128]
mov eax, 0x449388
call fcn.004164ae
add esp, 0x12c
ret

Function at 0x40c553
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40c568
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40c57a
xor eax, eax
jmp 0x40c5ac
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40c59e
cmp esi, eax
jae 0x40c576
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40c590
cmp esi, eax
jae 0x40c576
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x433e4e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x433e7c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x433e9a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00433db8
jmp 0x433e9a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x433e9a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00433db8
test edi, edi
mov eax, edi
jne 0x433e84
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44ba64]
test ecx, ecx
je 0x433f4d
jmp 0x433e4d
ret 8
Function at 0x10017ef
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov cl, byte [eax]
mov esi, dword [sym.imp.USER32.dll_CharNextA]
test cl, cl
je 0x1001816
cmp cl, 0x20
je 0x100180d
cmp cl, 9
jne 0x1001816
push eax
call esi
mov cl, byte [eax]
test cl, cl
jne 0x1001803
xor edi, edi
mov cl, byte [eax]
test cl, cl
je 0x100183f
test edi, edi
jne 0x100182c
cmp cl, 0x20
je 0x100183f
cmp cl, 9
je 0x100183f
cmp cl, 0x22
jne 0x100183a
xor ecx, ecx
test edi, edi
sete cl
mov edi, ecx
push eax
call esi
jmp 0x1001818
mov cl, byte [eax]
test cl, cl
je 0x100192a
push 2
pop edi
movsx ecx, cl
sub ecx, 0x45
je 0x100191d
sub ecx, 0xb
je 0x10018e7
sub ecx, edi
je 0x10018a1
sub ecx, 5
je 0x100187c
sub ecx, 0x19
je 0x10018e7
sub ecx, edi
je 0x10018a1
sub ecx, 5
jne 0x100191d
push eax
call esi
mov cl, byte [eax]
test cl, cl
je 0x1001894
cmp cl, 0x3a
je 0x100187c
cmp cl, 0x20
je 0x100187c
cmp cl, 9
je 0x100187c
push 0x1013020
push eax
call fcn.010017bf
jmp 0x100191d
push eax
call esi
mov cl, byte [eax]
test cl, cl
je 0x10018b9
cmp cl, 0x3a
je 0x10018a1
cmp cl, 0x20
je 0x10018a1
cmp cl, 9
je 0x10018a1
push 0x101301c
push eax
call fcn.010017bf
mov ecx, dword [0x101301c]
cmp ecx, 0x10
jle 0x10018db
mov dword [0x101301c], 0x10
jmp 0x100191d
cmp ecx, edi
jge 0x100191d
mov dword [0x101301c], edi
jmp 0x100191d
push eax
call esi
mov cl, byte [eax]
test cl, cl
je 0x10018ff
cmp cl, 0x3a
je 0x10018e7
cmp cl, 0x20
je 0x10018e7
cmp cl, 9
je 0x10018e7
push str.__n_n
push eax
call fcn.010017bf
cmp dword [str.__n_n], 0x40
jle 0x100191d
mov dword [str.__n_n], 0x40
push eax
call esi
mov cl, byte [eax]
test cl, cl
jne 0x100184c
pop edi
pop esi
ret 4

Function at 0x100421a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x1013e6c], esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
jne 0x100423b
push esi
push esi
push esi
push esi
call edi
mov dword [0x1013e6c], eax
cmp dword [0x1013e70], esi
jne 0x100424f
push esi
push esi
push 1
push esi
call edi
mov dword [0x1013e70], eax
cmp dword [0x1013e74], esi
jne 0x100426f
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1004192
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1013e74], eax
cmp dword [ebp + 8], esi
je 0x1004294
push dword [0x1013e70]
mov dword [0x1013eb8], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x1013e6c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x10042c7
push dword [0x1013e70]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x1013e78]
cmp eax, esi
je 0x10042b8
push esi
push 4
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x1013eb8], esi
je 0x10042c7
push 5
call fcn.01004a5e
pop edi
pop esi
leave
ret 4
Function at 0x10071fd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x1001530
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007258
mov dword [ebp - 0xc], 0x104
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push 0x1013eac
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1007256
mov dword [ebp - 4], 1
jmp 0x100725c
xor eax, eax
jmp 0x1007269
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x10119e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001570
push 0x1011d60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x1013f78], 0xffffffff
mov dword [0x1013f7c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x1013f74]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x1013f70]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x1013f80], ecx
call fcn.01011d50
mov eax, dword [0x10139f0]
test eax, eax
jne 0x1011a71
push 0x1011d40
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.01011d20
push 0x101300c
push 0x1013008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x1013f6c]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x1013f68]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x1013004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [edx]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x1011b7f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x1011ae5
cmp al, 0x22
jne 0x1011ad7
cmp byte [esi], 0x22
jne 0x1011aee
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x1011afe
cmp al, 0x20
ja 0x1011afe
inc esi
mov dword [ebp - 0x74], esi
jmp 0x1011aee
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x1011b1f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x1011b24
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x1011b64
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x1011aee
inc esi
mov dword [ebp - 0x74], esi
jmp 0x1011b7f
Function at 0x10003ca9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 1
jne 0x10003d41
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.100084a0
add esp, 0x1c
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x1000c3b8]
fstp qword [ebp - 0x18]
mov dword [ebp - 0x1c], esp
push 0x40
fld qword [ebp - 0x18]
call fcn.100010b5
push eax
push dword [ebp + 8]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10003d37
push 6
call fcn.1000750c
add esp, 4
jmp 0x10003eb8
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.100084a0
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [ebp + 8]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10003d9d
push 6
call fcn.1000750c
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x6fffffff
jl 0x10003eb0
push dword [ebp - 4]
call fcn.10003ebe
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.100084a0
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [ebp + 8]
push 0x31000000
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10003e11
push 6
call fcn.1000750c
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10003e2f
cmp dword [ebp - 4], 0x6fffffff
jge 0x10003e2f
xor eax, eax
jmp 0x10003e34
mov eax, 1
test eax, eax
je 0x10003eb0
cmp dword [ebp - 4], 0x6fffffff
jl 0x10003e51
push dword [ebp - 4]
call fcn.10003ebe
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.100084a0
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [ebp + 8]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10003ead
push 6
call fcn.1000750c
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x10003eb8
mov esp, ebp
pop ebp
ret 8