joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402490
Capabilities:
Check if file exists

Disassembly:
push 0x4c
mov eax, 0x437431
call fcn.0041f563
sub esp, 0x18
mov esi, 0x44288c
mov ecx, esp
mov dword [ebp - 0x54], esp
push esi
call fcn.004027a7
and dword [ebp - 4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x50], esp
push str.UninstallString
call fcn.004027a7
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallBoBrowser
call fcn.004027a7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
xor edx, edx
inc edx
call fcn.0041867f
add esp, 0x48
mov dword [ebp - 4], 2
cmp dword [ebp - 0x34], 0
je 0x4025c9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4c], esp
push esi
call fcn.004027a7
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x50], esp
push str.InstallerSuccessLaunchCmdLine
call fcn.004027a7
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push str.SoftwareBoBrowser
call fcn.004027a7
xor edx, edx
mov byte [ebp - 4], 2
inc edx
lea ecx, [ebp - 0x2c]
call fcn.0041867f
add esp, 0x48
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4025b6
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x45]
mov byte [ebp - 0x45], 0x22
cmovae eax, dword [ebp - 0x2c]
lea esi, [eax + ecx*2]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
lea eax, [eax + ecx*2]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.0040421f
pop ecx
pop ecx
push esi
push dword [eax]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004027e2
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffc07
add esi, 0x3f9
jmp 0x4025bb
mov esi, 0x3fa
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402cb9
jmp 0x4025ce
mov esi, 0x3f8
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00402cb9
mov eax, esi
call fcn.0041f512
ret
Function at 0x4048ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404907
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4048f8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4048f4
cmp esi, ecx
jae 0x4048f8
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x4048e4
cmp esi, ecx
jb 0x4048fc
xor eax, eax
jmp 0x404906
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405fa3
Capabilities:
Accept command line arguments

Disassembly:
push 4
mov eax, 0x4379a3
call fcn.0041f530
mov esi, ecx
xor ebx, ebx
inc ebx
cmp byte [0x44ee51], 0
jne 0x406012
mov byte [0x44ee51], bl
test esi, esi
jne 0x406012
call fcn.00404af7
push eax
lea ecx, [ebp - 0x10]
call fcn.00402974
and dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x10]
push 0x442a90
push eax
call fcn.004036d3
mov esi, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi - 4], ebx
jle 0x406006
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040299d
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00404b8d
mov eax, dword [0x44f228]
mov edi, 0x44f230
test al, 1
jne 0x406048
or eax, ebx
mov dword [0x44f228], eax
push ecx
push esi
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00405201
push 0x43a836
mov dword [0x44f230], 0x442a9c
call fcn.0041d0e7
pop ecx
mov eax, edi
call fcn.0041f4fe
ret
Function at 0x40633b
Capabilities:
Create thread
Terminate thread

Disassembly:
push 0x38
mov eax, 0x437a31
call fcn.0041f563
mov dword [ebp - 4], 2
xor ebx, ebx
mov dword [ebp - 0x30], ebx
call fcn.00404af7
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402974
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jge 0x406377
push 0x80070057
call fcn.00404be4
cmp word [eax], 0x2f
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
je 0x40638b
push str.http:___s__s
jmp 0x406390
push str.http:___s_s
push eax
call fcn.0040372b
mov esi, dword [ebp - 0x2c]
add esp, 0x10
cmp dword [esi - 4], 1
jle 0x4063b0
push dword [esi - 0xc]
lea ecx, [ebp - 0x2c]
call fcn.0040299d
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], esi
cmp dword [eax - 4], 1
jle 0x4063ca
push dword [eax - 0xc]
lea ecx, [ebp + 0x10]
call fcn.0040299d
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push eax
lea ecx, [ebp - 0x28]
call fcn.00406050
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x44]
push eax
push 0x406235
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
push 0x2bf20
push 0
lea eax, [ebp - 0x3c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x406451
cmp eax, 1
je 0x40643f
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x406417
jmp 0x406461
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [ebp - 0x30]
jmp 0x406461
mov edi, 0x507
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebp - 0x30], edi
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402cb9
lea ecx, [esi - 0x10]
call fcn.00404b8d
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00404b8d
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00404b8d
mov eax, edi
call fcn.0041f512
ret 0xc
Function at 0x406795
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push 0x10
mov eax, 0x437ace
call fcn.0041f530
push 2
pop ebx
xor edi, edi
mov dword [ebp - 4], ebx
push edi
push edi
push edi
push edi
push str.Downloader
mov dword [ebp - 0x10], edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
test eax, eax
je 0x406940
push edi
push 0x50
push dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
test eax, eax
je 0x406940
push edi
push edi
push edi
push edi
push dword [ebp + 0xc]
push str.HEAD
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x406940
push edi
push edi
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
jne 0x406940
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x406940
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x16
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x406943
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b520
mov ecx, dword [ebp - 0x10]
mov ebx, eax
shr ecx, 1
push ecx
push edi
push ebx
call fcn.0041ed30
add esp, 0x10
lea eax, [ebp - 0x10]
push edi
push eax
push ebx
push edi
push 0x16
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x406937
push ebx
lea ecx, [ebp - 0x14]
call fcn.004025e2
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00402e17
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
push ecx
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0040269e
cmp eax, 0xffffffff
jle 0x406924
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx - 0xc]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx - 0xc]
sub ecx, edx
sub ecx, eax
lea eax, [ebp - 0x18]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00406a22
mov ecx, dword [ebp + 0x14]
push eax
mov byte [ebp - 4], 5
call fcn.00402630
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00404b8d
push ecx
mov ecx, dword [ebp + 0x14]
push 0x442b30
call fcn.0040269e
cmp eax, 0xffffffff
jne 0x4068ff
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov ecx, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00405086
mov ecx, dword [ebp + 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.00402630
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
lea ecx, [esi - 0x10]
call fcn.00404b8d
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
push ebx
call fcn.0041c95f
pop ecx
jmp 0x406943
push 0xd
pop edi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00404b8d
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00404b8d
mov eax, edi
call fcn.0041f4fe
ret 0x10
Function at 0x409a9f
Capabilities:
Get geographical location

Disassembly:
push 0x44
mov eax, 0x4382e8
call fcn.0041f563
mov esi, ecx
xor ebx, ebx
mov edi, 0x44ee9c
cmp dword [0x44eeac], 1
mov dword [ebp - 0x50], ebx
jae 0x409b53
call fcn.00409d2d
push str.SOFTWARE_
lea ecx, [ebp - 0x28]
call fcn.004027a7
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.00409f51
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040342a
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00402cb9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x48], esp
push edi
call fcn.0040277f
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x44], esp
push str.CountryCode
call fcn.004027a7
sub esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.0040277f
xor dl, dl
mov byte [ebp - 4], bl
xor ecx, ecx
call fcn.004037f2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
add esp, 0x48
push ebx
push 1
call fcn.00402cb9
push edi
mov ecx, esi
call fcn.0040277f
mov eax, esi
call fcn.0041f512
ret

Function at 0x409f9b
Capabilities:
Get file version info

Disassembly:
push 0x230
mov eax, 0x4383d3
call fcn.0041f563
xor eax, eax
xor ebx, ebx
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.0041ed30
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x409fe8
xor al, al
jmp 0x40a0ca
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x409fe1
push edi
lea ecx, [ebp - 0x23c]
call fcn.0040a1de
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x21c]
mov esi, dword [ebp - 0x23c]
push esi
push edi
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40a0bd
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], ebx
push eax
push str.StringFileInfo040904b0ProductName
push esi
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x228], ebx
call edi
test eax, eax
je 0x40a0bd
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
push str.StringFileInfo040904b0ProductVersion
push esi
call edi
test eax, eax
je 0x40a0bd
push dword [ebp - 0x224]
call fcn.00401140
pop ecx
push eax
push dword [ebp - 0x224]
mov ecx, 0x44eecc
call fcn.00402bbc
push dword [ebp - 0x220]
call fcn.00401140
pop ecx
push eax
push dword [ebp - 0x220]
mov ecx, 0x44eeb4
call fcn.00402bbc
mov bl, 1
test esi, esi
je 0x40a0c8
push esi
call fcn.0041c164
pop ecx
mov al, bl
call fcn.0041f512
ret
Function at 0x40ba07
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
mov bl, 1
push edi
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x40bba7
mov edx, 0x10000000
cmp eax, 0x7c
je 0x40bba7
cmp eax, 0x29
jne 0x40ba42
cmp dword [esi + 0x10], 0
jne 0x40bba7
test dword [esi + 0x50], edx
je 0x40bbad
cmp eax, 0x2e
jne 0x40ba5d
push 5
lea ecx, [esi + 0x24]
call fcn.0040bca8
mov ecx, esi
call fcn.0040b9dc
jmp 0x40bb8f
cmp eax, 0x5c
jne 0x40baba
mov ecx, esi
call fcn.0040b9dc
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x40ba90
cmp word [esi + 0x48], 0x62
jne 0x40ba90
push 4
lea ecx, [esi + 0x24]
call fcn.0040bca8
mov ecx, esi
call fcn.0040b9dc
jmp 0x40bb96
test eax, eax
je 0x40baae
cmp word [esi + 0x48], 0x42
jne 0x40baae
push 4
lea ecx, [esi + 0x24]
call fcn.0040bca8
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x40ba84
mov ecx, esi
call fcn.0040c457
jmp 0x40bb8f
cmp eax, 0x5b
jne 0x40bb1a
mov ecx, esi
call fcn.0040b9dc
lea ecx, [esi + 0x24]
call fcn.0040d36d
cmp dword [esi + 0x4c], 0x5e
jne 0x40bae2
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.0040b9dc
test dword [esi + 0x50], 0x20000000
je 0x40bb02
cmp dword [esi + 0x4c], 0x5d
jne 0x40bb02
push 0x5d
lea ecx, [esi + 0x24]
call fcn.0040d3b7
mov ecx, esi
call fcn.0040b9dc
mov ecx, esi
call fcn.0040d14b
cmp dword [esi + 0x4c], 0x5d
je 0x40ba51
push 4
jmp 0x40bbaf
cmp eax, 0x28
jne 0x40bb37
mov ecx, esi
call fcn.0040b9dc
mov ecx, esi
call fcn.0040c533
cmp dword [esi + 0x4c], 0x29
mov bl, al
je 0x40bb84
jmp 0x40bbad
cmp eax, 0x5e
jne 0x40bb43
push 2
jmp 0x40ba7c
cmp eax, 0x24
jne 0x40bb4f
push 3
jmp 0x40ba7c
cmp eax, 0x2a
je 0x40bba3
cmp eax, 0x2b
je 0x40bba3
cmp eax, 0x3f
je 0x40bba3
cmp eax, 0x7b
je 0x40bba3
cmp eax, 0x7d
jne 0x40bb6d
test dword [esi + 0x50], edx
je 0x40bb9f
cmp eax, 0x5d
jne 0x40bb77
test dword [esi + 0x50], edx
je 0x40bb13
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0040c6a7
mov ecx, esi
call fcn.0040b9dc
test bl, bl
je 0x40bb96
mov ecx, esi
call fcn.0040c5e3
mov cl, 1
mov bl, cl
jmp 0x40ba10
push 6
jmp 0x40bbaf
push 0xa
jmp 0x40bbaf
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call fcn.0041b7ba
int3
Function at 0x40f339
Capabilities:
Accept command line arguments

Disassembly:
push 0xc
mov eax, 0x438aab
call fcn.0041f530
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00401520
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], edi
call fcn.00405a07
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 1
call fcn.00401520
mov byte [ebp - 4], 2
lea ebx, [esi + 0xa4]
call fcn.00404af7
push eax
mov ecx, ebx
call fcn.00402974
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
call fcn.00405fa3
xor ecx, ecx
call fcn.00405fa3
sub esp, 0x14
mov edi, eax
mov esi, esp
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x18], esi
mov dword [esi], vtable.CCmdLineParser.0
mov ecx, dword [edi + 4]
sub ecx, 0x10
call fcn.00402e17
add eax, 0x10
mov dword [esi + 4], eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 5
push ecx
lea eax, [edi + 8]
push eax
call fcn.004120b0
mov al, byte [edi + 0x10]
mov byte [esi + 0x10], al
mov byte [ebp - 4], 6
call fcn.0040e5e4
mov byte [ebp - 4], 4
call fcn.0040f0d6
call fcn.0041d8fb
mov esi, dword [ebp - 0x10]
push str.ClaraDwl
push ecx
mov ecx, esp
push str.TEMP
mov dword [esi + 0xa0], eax
call fcn.004025e2
lea ecx, [ebp - 0x14]
call fcn.0041a310
pop ecx
mov byte [ebp - 4], 7
push dword [eax]
push str._s_s_
push ebx
call fcn.0040372b
mov byte [ebp - 4], 4
add esp, 0x10
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
mov ecx, esi
call fcn.0041042a
push 0x10
call fcn.0041c90e
pop ecx
test eax, eax
je 0x40f46b
mov ecx, dword [esi + 0x9c]
and dword [eax + 4], 0
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov dword [eax], ecx
jmp 0x40f46d
xor eax, eax
mov dword [esi + 0xa8], eax
mov eax, esi
call fcn.0041f4fe
ret
Function at 0x410527
Capabilities:
Create thread

Disassembly:
push 0x3c
mov eax, 0x438e5e
call fcn.0041f530
mov ebx, ecx
mov dword [ebp - 0x24], ebx
xor edi, edi
push edi
push ecx
mov ecx, esp
mov dword [ebp - 4], edi
push str.bundles
mov dword [ebp - 0x1c], edi
call fcn.004025e2
mov ecx, dword [ebx + 0xa8]
lea eax, [ebp - 0x38]
push eax
call fcn.00416c88
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x14], esi
cmp esi, dword [ebp - 0x34]
je 0x4106ba
lea ebx, [esi + 8]
mov dword [ebp - 0x18], ebx
mov eax, dword [esi]
cmp dword [eax + 0x1c], 1
jne 0x4106a5
push 0x28
call fcn.0041c90e
pop ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4105a0
push dword [esi]
mov ecx, eax
call fcn.0041036b
jmp 0x4105a2
mov eax, edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
push ecx
push 4
push eax
push 0x415feb
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4106a5
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x10]
mov ecx, dword [edi + 4]
cmp edx, ecx
jae 0x4105ff
cmp dword [edi], edx
ja 0x4105ff
mov eax, edx
sub eax, dword [edi]
sar eax, 2
mov dword [ebp - 0x20], eax
cmp ecx, dword [edi + 8]
jne 0x4105f1
push ecx
mov ecx, edi
call fcn.004121f0
mov eax, dword [ebp - 0x20]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
test ecx, ecx
je 0x410618
mov eax, dword [edx + eax*4]
jmp 0x410616
cmp ecx, dword [edi + 8]
jne 0x41060f
push ecx
mov ecx, edi
call fcn.004121f0
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x410618
mov dword [ecx], eax
add dword [edi + 4], 4
mov eax, dword [ebp - 0x34]
cmp ebx, eax
je 0x410662
mov esi, eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0041268b
mov ecx, dword [ebx - 4]
mov edi, eax
mov edx, dword [edi + 4]
mov dword [edi + 4], ecx
mov dword [ebx - 4], edx
mov ecx, dword [edi]
mov eax, dword [ebx - 8]
mov dword [edi], eax
mov dword [ebx - 8], ecx
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x410652
call fcn.0040f30d
add ebx, 8
cmp ebx, esi
jne 0x410625
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push eax
add eax, 0xfffffff8
push eax
call fcn.00412148
sub dword [ebp - 0x34], 8
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x48]
call fcn.00411f73
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xa8]
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
add ecx, 4
call fcn.00417f22
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.004121ca
xor edi, edi
jmp 0x4106b1
add esi, 8
add ebx, 8
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
cmp esi, dword [ebp - 0x34]
jne 0x410576
lea ecx, [ebp - 0x38]
call fcn.004121ca
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4106d2
call fcn.0040f30d
xor eax, eax
call fcn.0041f4fe
ret 8
Function at 0x418581
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x43a1cf
call fcn.0041f530
mov edi, edx
mov esi, ecx
mov dword [ebp - 4], 1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test edi, edi
je 0x4185f7
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
push SysReAllocString
call ebx
test eax, eax
jne 0x4185f7
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 4
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4185f7
mov esi, dword [ebp - 0x18]
jmp 0x41865f
cmp edi, 1
je 0x41865f
call fcn.0041853d
lea ecx, [ebp - 0x10]
cmp eax, 1
push ecx
lea eax, [ebp + 8]
jne 0x418614
push 0x20219
jmp 0x418619
push 0x20019
cmp dword [ebp + 0x1c], 8
push 0
cmovae eax, dword [ebp + 8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x41865f
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 4
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove esi, dword [ebp - 0x14]
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00402cb9
push 0
push 1
lea ecx, [ebp + 0x20]
call fcn.00402cb9
mov eax, esi
call fcn.0041f4fe
ret
Function at 0x41867f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x218
mov eax, 0x43a224
call fcn.0041f563
mov ebx, edx
mov esi, ecx
and dword [ebp - 0x220], 0
mov dword [ebp - 0x224], esi
lea eax, [ebp + 0x38]
mov dword [ebp - 4], 3
push eax
call fcn.0040277f
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x220], 1
test ebx, ebx
je 0x418749
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x218]
push ecx
push 0x20019
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x418749
push 0x1fe
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0041ed30
add esp, 0xc
mov dword [ebp - 0x214], 0x200
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x214]
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push ecx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push 0
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4187e1
cmp ebx, 1
je 0x4187fd
call fcn.0041853d
lea ecx, [ebp - 0x214]
cmp eax, 1
push ecx
lea eax, [ebp + 8]
jne 0x41876d
push 0x20219
jmp 0x418772
push 0x20019
cmp dword [ebp + 0x1c], 8
push 0
cmovae eax, dword [ebp + 8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x4187fd
push 0x1fe
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0041ed30
add esp, 0xc
mov dword [ebp - 0x218], 0x200
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x218]
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push ecx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push 0
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4187fd
lea eax, [ebp - 0x210]
push eax
call fcn.00401140
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00402bbc
xor ebx, ebx
lea ecx, [ebp + 8]
push ebx
push 1
call fcn.00402cb9
push ebx
push 1
lea ecx, [ebp + 0x20]
call fcn.00402cb9
push ebx
push 1
lea ecx, [ebp + 0x38]
call fcn.00402cb9
mov eax, esi
call fcn.0041f512
ret
Function at 0x4189c9
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a2ad
mov eax, dword fs:[0]
push eax
mov eax, 0x1000c
call fcn.0042f880
mov eax, dword [0x44c4c0]
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 esi, ecx
push 7
pop ecx
xor ebx, ebx
mov dword [esi + 0x14], ecx
xor eax, eax
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x10018], esi
mov word [esi], ax
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x28], ebx
mov word [esi + 0x18], ax
push ebx
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push ebx
push ebx
push 3
push 6
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
xor eax, eax
push 0xfffc
mov word [ebp - 0x10010], ax
lea eax, [ebp - 0x1000e]
push ebx
push eax
call fcn.0041ed30
add esp, 0xc
mov dword [ebp - 0x10014], 0x7fff
lea eax, [ebp - 0x10014]
push eax
lea eax, [ebp - 0x10010]
push eax
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x418a9d
lea eax, [ebp - 0x10010]
push eax
call fcn.00401140
pop ecx
push eax
lea eax, [ebp - 0x10010]
push eax
lea ecx, [esi + 0x18]
call fcn.00402bbc
mov eax, esi
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.0041c169
mov esp, ebp
pop ebp
ret