joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402030
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x430658]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00410910
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x94]
cmp eax, 5
ja 0x402096
jne 0x402086
cmp dword [ebp - 0x90], 1
jae 0x402096
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ec13
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0040ec13
mov esp, ebp
pop ebp
ret

Function at 0x404470
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42729b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x430658]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004260e1
push 4
mov dword [ebp - 4], 0
call fcn.00410bd4
mov edi, eax
add esp, 4
test edi, edi
je 0x4044ee
call fcn.00426347
mov dword [edi], eax
call fcn.0042617b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004269d1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4044e4
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004269f2
jmp 0x4044f0
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 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 0x4069f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x430658]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x42b738
push esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406a10
sub eax, edx
cmp eax, 0x20
jae 0x406a37
mov eax, 0x42b738
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406a28
sub eax, edx
mov esi, eax
jmp 0x406a3c
mov esi, 0x20
push esi
lea eax, [ebp - 0x24]
push 0x42b738
push eax
call fcn.00411a40
mov ecx, 0x20
sub ecx, esi
push ecx
lea edx, [ebp + esi - 0x24]
push 0x431df0
push edx
call fcn.00411a40
lea eax, [ebp - 0x24]
push eax
mov eax, 0x20
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x80], 0x67452301
mov dword [ebp - 0x7c], 0xefcdab89
mov dword [ebp - 0x78], 0x98badcfe
mov dword [ebp - 0x74], 0x10325476
call fcn.004071a0
add esp, 0x1c
lea esi, [ebp - 0x80]
mov ecx, edi
call fcn.00407270
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040ec13
mov esp, ebp
pop ebp
ret

Function at 0x407a20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ecx, ecx
xor eax, eax
mov esi, edi
lea esp, [esp]
mov byte [esi], al
add eax, 1
add esi, 1
cmp ax, 0x100
jl 0x407a30
mov byte [edi + 0x100], cl
mov byte [edi + 0x101], cl
xor dl, dl
mov esi, edi
mov dword [ebp - 4], 0x100
mov eax, dword [ebp + 8]
movzx ebx, byte [esi]
movzx edx, dl
movzx eax, byte [edx + eax]
add eax, ecx
add eax, ebx
and eax, 0x800000ff
jns 0x407a74
dec eax
or eax, 0xffffff00
inc eax
movzx ecx, al
mov al, byte [esi]
mov bl, byte [ecx + edi]
mov byte [esi], bl
mov byte [ecx + edi], al
lea eax, [edx + 1]
cdq
idiv dword [ebp + 0xc]
add esi, 1
sub dword [ebp - 4], 1
jne 0x407a55
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407d67
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x430658]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00407d29
test eax, eax
je 0x407d8e
xor eax, eax
inc eax
jmp 0x407e3b
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0x210], eax
jne 0x407dbd
push edi
add esi, 0x44
push esi
push str.Couldnt_open_service_manager
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x407e3a
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push edi
push str.RPCSS
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push 1
push 3
push 0x10
push 0xf01ff
lea ebx, [esi + 0x44]
add esi, 0x244
push esi
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, edi
jne 0x407e25
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
push ebx
push 0x428518
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x407e39
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push dword [ebp - 0x210]
call esi
xor eax, eax
inc eax
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040ec13
leave
ret

Function at 0x407e78
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
call fcn.00407d29
test eax, eax
jne 0x407e90
inc eax
jmp 0x407f1a
push ebx
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, edi
jne 0x407eb4
push edi
add esi, 0x44
push esi
push str.Couldnt_open_service_manager
push edi
jmp 0x407f10
push 0x10020
lea edi, [esi + 0x44]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x407edb
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push edi
push 0x428518
push esi
jmp 0x407f10
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], eax
call esi
push ebx
call esi
xor eax, eax
cmp dword [ebp - 4], eax
je 0x407f08
inc eax
jmp 0x407f18
push eax
push edi
push str.Service_could_not_be_deleted
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
Function at 0x407f37
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x430658]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call fcn.00410420
xor edi, edi
add esp, 0xc
cmp dword [esi + 0x46c], edi
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
je 0x407fac
add esi, 0x44
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x407fb9
push edi
lea eax, [ebp - 0x208]
push eax
push edi
push 1
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x407fb9
lea eax, [ebp - 0x204]
push eax
call fcn.004102a2
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040ec13
leave
ret

Function at 0x40805d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
shl eax, 2
leave
ret

Function at 0x40849e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408506
cmp dword [ebp + 0x10], 1
je 0x4084df
cmp dword [ebp + 0x10], 2
je 0x4084df
push 0xd
pop eax
jmp 0x408506
test edi, edi
mov eax, dword [ebp - 4]
je 0x408500
test eax, eax
je 0x4084fc
test al, 1
jne 0x4084da
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x408500
jmp 0x4084da
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x408564
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov ebx, ecx
jne 0x40857d
push 0x80004005
call fcn.00408140
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40857f
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x409250
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x430658]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.00408469
mov edi, eax
cmp edi, esi
je 0x4092b0
lea ecx, [ebp - 0x208]
call fcn.00408404
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ec13
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4092ce
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.00409250
cmp eax, esi
jne 0x409316
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x4092b8
lea ecx, [ebp - 0x208]
call fcn.00408404
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.00408404
mov eax, esi
jmp 0x40929f
Function at 0x40b743
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x426ce9
call fcn.004110a4
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
call dword [0x430604]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x428], ebx
jne 0x40b7b2
call fcn.00408279
mov esi, eax
jmp 0x40b8bb
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x40b7d5
call fcn.00408279
jmp 0x40b8ad
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x420], eax
je 0x40b7cb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x41c], edi
jae 0x40b831
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40b817
lea ecx, [ebp - 0x418]
call fcn.00409046
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.00408ea3
mov eax, esi
call fcn.00411100
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040a294
mov dword [ebp - 4], 1
jmp 0x40b85f
mov ebx, dword [ebp - 0x418]
cmp ebx, esi
jne 0x40b870
mov esi, 0x8007000e
jmp 0x40b8af
call dword [0x430604]
push edi
push ebx
push edi
push dword [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40b7cb
mov ecx, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.0040b490
mov esi, eax
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40b81c
lea ecx, [ebp - 0x418]
call fcn.00409046
jmp 0x40b81c
Function at 0x40bff1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x430658]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x218], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x228]
call fcn.00407fff
push 0x428498
push 0x64
push esi
mov ebx, 0x431f50
push 0x430018
mov ecx, ebx
call fcn.004097fa
mov esi, 0x428d98
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
cmp dword [ebp - 0x224], edi
mov dword [0x4323bc], 1
jle 0x40c0d2
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + edi*4]
call fcn.00407ce1
mov dword [esp], str.UnregServer
push eax
mov dword [ebp - 0x21c], eax
call esi
test eax, eax
je 0x40c12b
push str.RegLocalServer
push dword [ebp - 0x21c]
call esi
test eax, eax
je 0x40c140
push str.RegServer
push dword [ebp - 0x21c]
call esi
test eax, eax
je 0x40c155
push str.Service
push dword [ebp - 0x21c]
call esi
test eax, eax
je 0x40c155
inc edi
cmp edi, dword [ebp - 0x224]
jl 0x40c060
and dword [ebp - 0x218], 0
mov esi, 0x20019
push esi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x218]
call fcn.00408469
mov edi, eax
test edi, edi
je 0x40c161
lea ecx, [ebp - 0x218]
call fcn.00408404
cmp dword [ebp - 0x220], 0
mov dword [ebp - method.CCommandline.virtual_0], vtable.CCommandline.0
je 0x40c124
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x40c22c
mov ecx, ebx
call fcn.0040bfba
cmp dword [ebp - 0x220], 0
mov esi, eax
jmp 0x40c212
push 0x64
push dword [ebp - 0x218]
push 0
push 1
mov ecx, ebx
call fcn.0040bec8
jmp 0x40c132
push 0x64
push dword [ebp - 0x218]
push 1
jmp 0x40c14a
and dword [ebp - 0x21c], 0
push esi
push str.C8ACF0EF_9EA9_4008_A137_CD71B59E64E1
push dword [ebp - 0x218]
lea ecx, [ebp - 0x21c]
call fcn.00408469
mov esi, eax
xor edi, edi
cmp esi, edi
lea ecx, [ebp - 0x21c]
jne 0x40c1fc
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x214]
push eax
push str.LocalService
mov dword [ebp - 0x22c], 0x104
call fcn.0040849e
mov esi, eax
lea eax, [ebp - 0x214]
push eax
push str._tWinMain:_LocalService
call fcn.0040cc77
cmp esi, edi
pop ecx
pop ecx
mov dword [0x4323bc], edi
jne 0x40c1d8
mov dword [0x4323bc], 1
push str.Start
push str._tWinMain
call fcn.0040cc77
pop ecx
pop ecx
mov ecx, ebx
call fcn.0040b635
mov esi, dword [0x4323a4]
lea ecx, [ebp - 0x21c]
call fcn.00408404
lea ecx, [ebp - 0x218]
call fcn.00408404
cmp dword [ebp - 0x220], edi
mov dword [ebp - method.CCommandline.virtual_0], vtable.CCommandline.0
je 0x40c22a
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ec13
leave
ret 0x10
Function at 0x40d5b7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x430658]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x2ac], eax
lea eax, [ebp - 0x29c]
xor ebx, ebx
push eax
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a0], 0x104
mov dword [ebp - 0x29c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x28c], 2
jne 0x40d61a
cmp dword [ebp - 0x298], 3
jne 0x40d61a
xor al, al
jmp 0x40d714
lea eax, [ebp - 0x2a4]
push eax
push 0x20019
push ebx
push str.SoftwareBCL_TechnologieseasyConverter_SDK_3
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d613
cmp dword [ebp + 0x10], 1
push esi
je 0x40d65d
cmp dword [ebp + 0x10], ebx
je 0x40d65d
push edi
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.0041069c
push 0x429174
jmp 0x40d671
push edi
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.0041069c
push 0x42916c
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.004107d1
add esp, 0x18
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x2a8]
push eax
push ebx
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x2a4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
je 0x40d6d6
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x2a8]
push eax
push ebx
push edi
push dword [ebp - 0x2a4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [ebp - 0x2a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop esi
jne 0x40d613
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2a0]
jb 0x40d6fc
mov eax, dword [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 0x2ac]
call fcn.00411a40
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040ec13
leave
ret

Function at 0x40ec13
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430658]
jne 0x40ec1d
repz ret
jmp fcn.00414318
Function at 0x412f92
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x430830]
je 0x412fad
inc edi
cmp edi, 0x17
jb 0x412f9e
cmp edi, 0x17
jae 0x41312d
push ebp
push 3
call fcn.0041c637
cmp eax, 1
pop ecx
je 0x4130f9
push 3
call fcn.0041c637
test eax, eax
pop ecx
jne 0x412fe1
cmp dword [0x430638], 1
je 0x4130f9
cmp ebx, 0xfc
je 0x41312c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4326f0
push ebp
call fcn.00417587
add esp, 0xc
test eax, eax
je 0x413017
push esi
push esi
push esi
push esi
push esi
call fcn.004124f9
add esp, 0x14
push 0x104
mov esi, 0x432709
push esi
push 0
mov byte [0x43280d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41305b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00417587
add esp, 0xc
test eax, eax
je 0x41305b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004124f9
add esp, 0x14
push esi
call fcn.004175f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4130a0
push esi
call fcn.004175f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x432a04
push 0x4299c4
sub ecx, eax
push ecx
push eax
call fcn.0041c584
add esp, 0x14
test eax, eax
je 0x4130a0
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004124f9
add esp, 0x14
jmp 0x4130a2
xor esi, esi
push 0x4299c0
push ebx
push ebp
call fcn.0041c513
add esp, 0xc
test eax, eax
je 0x4130c2
push esi
push esi
push esi
push esi
push esi
call fcn.004124f9
add esp, 0x14
push dword [edi*8 + 0x430834]
push ebx
push ebp
call fcn.0041c513
add esp, 0xc
test eax, eax
je 0x4130e4
push esi
push esi
push esi
push esi
push esi
call fcn.004124f9
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041c356
add esp, 0xc
jmp 0x41312c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41312c
cmp ebp, 0xffffffff
je 0x41312c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x430834]
push dword [esi]
call fcn.004175f0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41c356
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00413b56
xor ebx, ebx
cmp dword [0x4331ec], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41c42c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41c50c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41c50c
push eax
call fcn.00413ae8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4331ec], eax
call esi
push eax
call fcn.00413ae8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4331f0], eax
call esi
push eax
call fcn.00413ae8
mov dword [0x4331f4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00412d1f
test eax, eax
pop ecx
pop ecx
je 0x41c3fa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004124f9
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41c42c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00413ae8
cmp eax, ebx
pop ecx
mov dword [0x4331fc], eax
je 0x41c42c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413ae8
pop ecx
mov dword [0x4331f8], eax
mov eax, dword [0x4331f8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41c4b1
cmp dword [0x4331fc], ecx
je 0x41c4b1
push eax
call fcn.00413b5f
push dword [0x4331fc]
mov esi, eax
call fcn.00413b5f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41c4b1
cmp edi, ebx
je 0x41c4b1
call esi
cmp eax, ebx
je 0x41c47e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41c47e
test byte [ebp - 0x18], 1
jne 0x41c4b1
lea eax, [ebp - 0x10]
push eax
call fcn.00412d56
test eax, eax
pop ecx
je 0x41c499
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004124f9
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41c4a8
or dword [ebp + 0x10], 0x200000
jmp 0x41c4ec
or dword [ebp + 0x10], 0x40000
jmp 0x41c4ec
mov eax, dword [0x4331f0]
cmp eax, dword [ebp - 8]
je 0x41c4ec
push eax
call fcn.00413b5f
cmp eax, ebx
pop ecx
je 0x41c4ec
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41c4ec
mov eax, dword [0x4331f4]
cmp eax, dword [ebp - 8]
je 0x41c4ec
push eax
call fcn.00413b5f
cmp eax, ebx
pop ecx
je 0x41c4ec
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4331ec]
call fcn.00413b5f
cmp eax, ebx
pop ecx
je 0x41c50c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41c50e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401398
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4013aa
mov eax, dword [0x47308b]
shl eax, 2
mov dword [0x47308f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00466f30
pop edx
call fcn.00466e94
call fcn.00466f70
push 0
call fcn.0046837c
pop ecx
push 0x473034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x473093], eax
push 0
jmp fcn.0046d564