joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10329f0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x438], 0
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
push 8
mov ebx, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x434]
rep stosd dword es:[edi], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push edx
mov ecx, ebx
call fcn.01031e29
mov edi, eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x1032be5
cmp word [eax], 0
je 0x1032be5
push 0xffffffffffffffff
push 0x1007bdc
push 0xffffffffffffffff
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x1032be5
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1032aba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1032c09
test byte [ecx + 0x1c], 2
je 0x1032c09
push eax
push 0x1008aec
push 0x1008a0c
push 0x17
jmp 0x1032b44
push 1
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.01032624
test eax, eax
jne 0x1032afb
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032c09
test byte [eax + 0x1c], 2
je 0x1032c09
push 0x1008a0c
push 0x18
jmp 0x1032bfe
lea eax, [ebp - 0x438]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x1032b54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1032c09
test byte [ecx + 0x1c], 2
je 0x1032c09
push eax
push 0x1008ab4
push 0x1008a0c
push 0x19
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040d30
jmp 0x1032c09
cmp dword [ebp - 0x41c], 0
jne 0x1032bb3
cmp dword [ebp - 0x418], 0x10000
ja 0x1032bb3
lea eax, [ebp - 0x20c]
push eax
push esi
add ebx, 0xc5c
push ebx
call fcn.01018462
test eax, eax
jge 0x1032c09
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1032c09
test byte [ecx + 0x1c], 2
je 0x1032c09
push eax
push 0x1004de8
push 0x1008a0c
push 0x1b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01040d30
jmp 0x1032c09
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032c09
test byte [eax + 0x1c], 2
je 0x1032c09
push dword [ebp - 0x418]
push dword [ebp - 0x41c]
push 0x1008a0c
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019979
jmp 0x1032c09
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032c09
test byte [eax + 0x1c], 2
je 0x1032c09
push 0x1008a0c
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0103563d
leave
ret 4
Function at 0x1034066
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, ecx
push 0x1008e84
push dword [esi + 0x14]
call edi
test eax, eax
mov dword [esi + 0x1c], eax
mov ebx, section..data
jne 0x10340aa
mov eax, dword [section..data]
cmp eax, ebx
je 0x10340aa
test byte [eax + 0x1c], 2
je 0x10340aa
push 0x1008de8
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
push 0x1008e74
push dword [esi + 0x14]
call edi
test eax, eax
mov dword [esi + 0x20], eax
jne 0x10340dc
mov eax, dword [section..data]
cmp eax, ebx
je 0x10340dc
test byte [eax + 0x1c], 2
je 0x10340dc
push 0x1008de8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
push 0x1008e64
push dword [esi + 0x14]
call edi
test eax, eax
mov dword [esi + 0x24], eax
jne 0x103410e
mov eax, dword [section..data]
cmp eax, ebx
je 0x103410e
test byte [eax + 0x1c], 2
je 0x103410e
push 0x1008de8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
push 0x1008e50
push dword [esi + 0x14]
call edi
test eax, eax
mov dword [esi + 0x28], eax
jne 0x1034140
mov eax, dword [section..data]
cmp eax, ebx
je 0x1034140
test byte [eax + 0x1c], 2
je 0x1034140
push 0x1008de8
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
push 0x1008e38
push dword [esi + 0x14]
call edi
test eax, eax
mov dword [esi + 0x2c], eax
jne 0x1034172
mov eax, dword [section..data]
cmp eax, ebx
je 0x1034172
test byte [eax + 0x1c], 2
je 0x1034172
push 0x1008de8
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
push 0x1008e14
push dword [esi + 0x14]
call edi
test eax, eax
mov dword [esi + 0x30], eax
jne 0x10341a4
mov eax, dword [section..data]
cmp eax, ebx
je 0x10341a4
test byte [eax + 0x1c], 2
je 0x10341a4
push 0x1008de8
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
cmp dword [esi + 0x1c], 0
je 0x10341b5
cmp dword [esi + 0x24], 0
je 0x10341b5
xor eax, eax
inc eax
jmp 0x10341b7
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x10348c1
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x1034916
movzx eax, word [esi]
cmp ax, 0x22
push 2
pop ecx
jne 0x10348f4
add esi, ecx
movzx eax, word [esi]
test ax, ax
je 0x10348ec
cmp ax, 0x22
jne 0x10348dc
cmp word [esi], 0x22
jne 0x103490c
jmp 0x103490a
cmp ax, 0x20
jbe 0x103490c
add esi, ecx
cmp word [esi], 0x20
ja 0x10348fa
jmp 0x103490c
cmp ax, 0x20
ja 0x103493a
add esi, ecx
movzx eax, word [esi]
test ax, ax
jne 0x1034904
jmp 0x103493a
mov eax, dword [section..data]
cmp eax, section..data
je 0x103493a
test byte [eax + 0x1c], 2
je 0x103493a
push 0x1008fd8
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
mov eax, esi
pop esi
ret
Function at 0x1034943
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push 0x100904c
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x10349a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1034974
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1034af4
test byte [eax + 0x1c], 2
je 0x1034af4
push 0x1008fd8
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
jmp 0x1034af4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0x100902c
push eax
call esi
push 0x100900c
push dword [ebp - 8]
mov dword [ebp - 4], eax
call esi
cmp dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
je 0x1034ac0
cmp eax, ebx
je 0x1034ac0
push 0x44
pop edi
push edi
lea eax, [ebp - 0x64]
push ebx
push eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x64], edi
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call dword [ebp - 4]
test eax, eax
je 0x1034a95
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x10
push 1
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov esi, 0x1008fd8
jne 0x1034a64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1034a3d
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1034a74
test byte [eax + 0x1c], 2
je 0x1034a74
push dword [ebp + 8]
push esi
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013fed
jmp 0x1034a74
push dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0xc]
call dword [ebp - 0x10]
test eax, eax
jne 0x1034ae9
mov eax, dword [section..data]
cmp eax, section..data
je 0x1034ab9
test byte [eax + 0x1c], 2
je 0x1034ab9
push esi
push 0x10
jmp 0x1034aae
mov eax, dword [section..data]
cmp eax, section..data
je 0x1034ab9
test byte [eax + 0x1c], 2
je 0x1034ab9
push 0x1008fd8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
mov ebx, 0x80004005
jmp 0x1034ae9
mov ebx, 0x80004005
mov eax, dword [section..data]
cmp eax, section..data
je 0x1034ae9
test byte [eax + 0x1c], 2
je 0x1034ae9
push 0x1008fd8
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x1034b00
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
call fcn.0103487a
test eax, eax
je 0x1034b89
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
cmp esi, edi
jne 0x1034b54
mov eax, dword [section..data]
cmp eax, section..data
je 0x1034b88
test byte [eax + 0x1c], 2
je 0x1034b88
push 0x1008fd8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
jmp 0x1034b88
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1009068
mov word [ebp - 0x20c], di
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034943
xor ecx, ecx
test eax, eax
setge cl
mov edi, ecx
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0103563d
leave
ret
Function at 0x1035616
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1050268
call fcn.01036064
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1055548
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x10353c4
cmp eax, esi
jne 0x10353b7
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10353c7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x103539e
xor esi, esi
inc esi
mov eax, dword [0x1055544]
cmp eax, esi
jne 0x10353da
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1035409
mov eax, dword [0x1055544]
test eax, eax
jne 0x1035403
mov dword [0x1055544], esi
push 0x100163c
push 0x1001630
call fcn.01035303
pop ecx
pop ecx
test eax, eax
je 0x1035409
jmp 0x1035531
mov dword [0x1054604], esi
mov eax, dword [0x1055544]
cmp eax, esi
jne 0x103542d
push 0x100162c
push 0x1001618
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1055544], 2
test ebx, ebx
jne 0x1035439
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1055558], 0
je 0x103545d
push 0x1055558
call fcn.01035fdb
pop ecx
test eax, eax
je 0x103545d
push 0
push 2
push 0
call dword [0x1055558]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x10354b9
test al, al
je 0x1035477
cmp dword [ebp - 0x1c], 0
jne 0x10354b9
mov al, byte [esi]
test al, al
je 0x1035487
cmp al, 0x20
ja 0x1035487
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1035477
test byte [ebp - 0x3c], 1
je 0x1035493
movzx eax, word [ebp - 0x38]
jmp 0x1035496
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1054600], eax
cmp dword [0x10545f4], 0
jne 0x103550d
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x10354c8
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x10354db
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1035464
cmp dword [0x1054604], 0
jne 0x103551c
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1054600]
jmp 0x103553d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010360a9
ret
call fcn.010361a6
jmp 0x1035364

Function at 0x1035f50
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1035f63
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1035f5f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x1035f90
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1035fcf
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1035fc5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1035fd1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1035fb5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10377f2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
jne 0x1037821
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.01035852
add esp, 0x14
jmp 0x10378fd
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x10378fd
test al, 0x40
jne 0x10378fd
test al, 2
je 0x1037843
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x10378fd
or eax, 1
test ax, 0x10c
mov dword [esi + 0xc], eax
je 0x1037803
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, ebx
mov dword [esi + 4], eax
je 0x10378ed
cmp eax, 0xffffffff
je 0x10378ed
test byte [esi + 0xc], 0x82
jne 0x10378c3
push esi
call edi
cmp eax, 0xffffffff
pop ecx
je 0x10378ae
push esi
call edi
cmp eax, 0xfffffffe
pop ecx
je 0x10378ae
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x10378b3
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x10378c3
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x10378e0
mov eax, dword [esi + 0xc]
test al, 8
je 0x10378e0
test ax, 0x400
jne 0x10378e0
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x1037900
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1038f93
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
jne 0x1038fc2
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.01035852
add esp, 0x14
jmp 0x10390aa
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x10390aa
test al, 0x40
jne 0x10390aa
test al, 2
je 0x1038fe4
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x10390aa
or eax, 1
test ax, 0x10c
mov dword [esi + 0xc], eax
je 0x1038fa4
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, ebx
mov dword [esi + 4], eax
je 0x103909a
cmp eax, 1
je 0x103909a
cmp eax, 0xffffffff
je 0x103909a
test byte [esi + 0xc], 0x82
jne 0x103906d
push esi
call edi
cmp eax, 0xffffffff
pop ecx
je 0x1039058
push esi
call edi
cmp eax, 0xfffffffe
pop ecx
je 0x1039058
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x103905d
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x103906d
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x103908a
mov eax, dword [esi + 0xc]
test al, 8
je 0x103908a
test ax, 0x400
jne 0x103908a
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
add dword [esi + 4], 0xfffffffe
movzx eax, word [ecx]
add ecx, 2
mov dword [esi], ecx
jmp 0x10390af
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
mov eax, 0xffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10390c5
Capabilities:
Check os version
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x174]
mov esi, 0x100
push eax
mov dword [ebp - 0x310], esi
call fcn.0103bd90
push esi
lea eax, [ebp - 0x118]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x10391fd
push dword [ebp - 0x310]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.0103be50
lea eax, [ebp - 0x324]
push eax
call fcn.0104d361
test eax, eax
jne 0x1039166
push 0x14
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.0103be50
push 0x25
push 0x100956c
lea eax, [ebp - 0x174]
push eax
call fcn.0103be50
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.0103bf60
lea eax, [ebp - 0x174]
push eax
call fcn.0103bd90
push dword [ebp + 0x10]
lea eax, [ebp - 0x174]
push ebx
push eax
call fcn.0103be50
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.0103be50
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.0103bf60
dec esi
jne 0x1039189
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x30c]
push eax
call fcn.0103bc8d
push 0x40
pop ecx
lea esi, [ebp - 0x30c]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
movsw word es:[edi], word [esi]
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0103563d
leave
ret 0xc
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x208], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1039141
cmp dword [ebp - 0x1f8], 2
jne 0x1039141
cmp dword [ebp - 0x204], 5
jb 0x1039141
xor eax, eax
jmp 0x10391ec
Function at 0x103946c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x210], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push dword [eax]
mov dword [ebp - 0x218], eax
push ebx
push 0x1000000
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
mov dword [ebp - 0x21c], eax
jne 0x103950b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10394cd
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x103964b
test byte [eax + 0x1c], 2
je 0x103964b
push edi
push 0x1009a68
push 0x1009a58
push 0x10098a4
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010392cd
jmp 0x103964b
push 0x5c
push ebx
call sub.msvcrt.dll_wcsrchr
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x1039646
cmp word [edi], 0x5c
jne 0x1039646
cmp edi, ebx
jbe 0x1039646
lea eax, [ebp - 0x210]
push eax
push 0x20019
inc edi
push 0
inc edi
mov esi, edi
push 0x10099d8
sub esi, ebx
push 0x80000002
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
je 0x103959e
mov eax, dword [section..data]
cmp eax, section..data
je 0x1039587
test byte [eax + 0x1c], 2
je 0x1039587
push ebx
push 0x1009990
push 0x10098a4
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040d30
test ebx, ebx
jle 0x1039597
and ebx, 0xffff
or ebx, 0x80070000
mov edi, ebx
jmp 0x103964b
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1007694
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
je 0x10395e8
mov eax, dword [section..data]
cmp eax, section..data
je 0x1039587
test byte [eax + 0x1c], 2
je 0x1039587
push ebx
push 0x1009940
push 0x10098a4
push 0xd
jmp 0x103957c
mov ebx, dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebx]
sub eax, dword [ebp - 0x21c]
push eax
push edi
call fcn.01018462
mov edi, eax
test edi, edi
jge 0x1039636
mov eax, dword [section..data]
cmp eax, section..data
je 0x103964b
test byte [eax + 0x1c], 2
je 0x103964b
push edi
push 0x1009924
push 0x10098a4
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01040d30
jmp 0x103964b
mov eax, dword [ebp - 0x214]
shr eax, 1
lea eax, [eax + esi + 1]
mov dword [ebx], eax
jmp 0x103964b
mov edi, 0x8007007a
cmp dword [ebp - 0x210], 0
je 0x1039660
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0103563d
leave
ret 8
Function at 0x1039e11
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push edi
xor edi, edi
cmp ecx, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
jne 0x1039e4c
mov eax, dword [section..data]
cmp eax, section..data
je 0x1039ea5
test byte [eax + 0x1c], 2
je 0x1039ea5
push 0x100990c
push 0x1009b40
push 0x5b
jmp 0x1039e9a
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x1039e73
mov eax, dword [section..data]
cmp eax, section..data
je 0x1039ea5
test byte [eax + 0x1c], 2
je 0x1039ea5
push 0x1009c98
push 0x1009b40
push 0x5c
jmp 0x1039e9a
cmp dword [ebp + 8], edi
mov dword [ecx], edi
mov dword [eax], edi
jne 0x1039eae
mov eax, dword [section..data]
cmp eax, section..data
je 0x1039ea5
test byte [eax + 0x1c], 2
je 0x1039ea5
push 0x1009c88
push 0x1009b40
push 0x5d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013fed
mov dword [ebp - 4], 0x80070057
jmp 0x1039f27
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x1009c74
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call esi
cmp eax, edi
je 0x1039ee5
jle 0x1039ee0
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x1039f25
cmp dword [ebp - 0xc], edi
je 0x1039f25
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x1009c48
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x1039f1c
cmp dword [ebp - 0xc], edi
jne 0x1039f25
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0x10