joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010a0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa5c
mov eax, dword [0x449004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0xa08]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0xa08], 0xff
push eax
push 0
push str.InstallDir
push str.SoftWareEasyMAP
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x40110e
push eax
push str.Unable_to_locate_the_systems_installation_directory
call fcn.00401000
add esp, 8
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004012db
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov cl, byte [ebp + eax - 0x104]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x205], cl
test cl, cl
jne 0x401110
push esi
push edi
lea edi, [ebp - 0x104]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401130
mov ecx, 7
mov esi, str.ProgWorkBnchEMWorkBench.exe
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x204]
dec ecx
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x401150
mov eax, dword [str.DataWorkBnch]
mov dword [ecx], eax
mov eax, dword [0x440250]
mov dword [ecx + 4], eax
mov eax, dword [0x440254]
mov dword [ecx + 8], eax
mov ax, word [0x440258]
mov word [ecx + 0xc], ax
mov al, byte [0x44025a]
mov byte [ecx + 0xe], al
lea eax, [ebp - 0x104]
push ebx
push eax
lea eax, [ebp - 0xa04]
push str.__s___s__H__PD
push eax
call fcn.00401280
add esp, 0x10
mov dword [ebp - 0xa1c], 0
lea eax, [ebp - 0xa18]
mov dword [ebp - 0xa5c], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0xa50], 0x44026c
movups xmmword [ebp - 0xa18], xmm0
push eax
lea eax, [ebp - 0xa5c]
movlpd qword [ebp - 0xa58], xmm0
push eax
lea eax, [ebp - 0x204]
movlpd qword [ebp - 0xa4c], xmm0
push eax
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0xa04]
movlpd qword [ebp - 0xa44], xmm0
push eax
push 0
movlpd qword [ebp - 0xa3c], xmm0
movlpd qword [ebp - 0xa34], xmm0
movlpd qword [ebp - 0xa2c], xmm0
movlpd qword [ebp - 0xa24], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401241
push eax
push str.Unable_to_start_workbench.
call fcn.00401000
add esp, 8
jmp 0x401257
push dword [ebp - 0xa18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xa14]
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004012db
mov esp, ebp
pop ebp
ret 0x10

Function at 0x426e0e
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00426ce2

Function at 0x429b64
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042951c
Function at 0x1403830
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
ret

Function at 0x14038b0
Capabilities:
Manipulate console buffer

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push esi
mov word [esp + 4], 0
mov word [esp + 6], ax
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push edx
lea ecx, [ecx + ecx*4 + 5]
lea edx, [eax + eax*4]
mov eax, dword [0x1460fcc]
shl ecx, 4
shl edx, 4
sub ecx, edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
je 0x14038fd
mov ecx, dword [esp + 0x10]
mov byte [ecx + esi], 0
pop esi
pop ecx
ret

Function at 0x1403960
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
cmp byte [esi], 0
je 0x1403a1c
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ebp, 1
cmp byte [esi], 0xa
jne 0x1403986
mov byte [esi], 0xd
movsx eax, byte [esi]
push eax
call fcn.01432020
mov dl, byte [esi]
mov word [esp + 0x10], bp
movsx cx, al
push edx
mov dword [esp + 0x18], ebp
mov word [esp + 0x1c], bp
mov word [esp + 0x1e], cx
call fcn.01403900
mov word [esp + 0x20], ax
mov al, byte [esi]
movsx edx, al
movsx cx, al
push edx
mov word [esp + 0x26], cx
call fcn.014319c0
add esp, 0xc
mov edx, dword [0x1460fc0]
neg eax
sbb eax, eax
lea ecx, [esp + 0xc]
and eax, 0x80
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
push edx
call edi
mov edx, dword [0x1460fc0]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
push ebp
push ecx
push edx
mov dword [esp + 0x20], 0
call edi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x140397e
mov eax, ebp
pop edi
pop ebp
pop esi
add esp, 0x14
ret
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x1403b40
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x145a8d8]
sub esp, 8
lea edx, [esp]
mov eax, dword [ecx]
push ebx
push ebp
push esi
push edi
push edx
push str._HFILE
xor ebx, ebx
xor edi, edi
xor esi, esi
mov ebp, 0x32
call dword [eax + 8]
test eax, eax
je 0x1403b7e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1403b7e
push eax
call fcn.0142fbb0
add esp, 4
mov ebx, eax
mov ecx, dword [0x145a8d8]
lea edx, [esp + 0x10]
push edx
push str._HPARENT
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1403baa
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1403baa
push eax
call fcn.0142fbb0
add esp, 4
mov edi, eax
mov ecx, dword [0x145a8d8]
lea edx, [esp + 0x10]
push edx
push str._HCHILD
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1403bd6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1403bd6
push eax
call fcn.0142fbb0
add esp, 4
mov esi, eax
test ebx, ebx
je 0x1403ccf
test edi, edi
je 0x1403ccf
test esi, esi
je 0x1403ccf
push str._n_nInitConProc:__Setting_up_external_control._n
call fcn.01405800
add esp, 4
mov dword [0x1460fc4], ebx
mov dword [0x1460fc8], edi
mov dword [0x1460fd4], esi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x1460fd0], eax
jne 0x1403c39
push str.InitConProc:__Couldnt_create_heventDone_n
call fcn.01405800
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x1403a30
push 0
push 0
call fcn.014321f0
add esp, 0x18
test eax, eax
jne 0x1403c79
mov ecx, dword [0x1460fd0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.InitConProc:__Couldnt_create_third_party_thread_n
call fcn.01405800
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff6
mov dword [0x1460fcc], eax
call esi
mov ecx, dword [0x145a8d8]
mov dword [0x1460fc0], eax
lea eax, [esp + 0x10]
mov edx, dword [ecx]
push eax
push str._conheight
call dword [edx + 8]
test eax, eax
je 0x1403cbd
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1403cbd
push eax
call fcn.0142fbb0
add esp, 4
mov ebp, eax
mov ecx, dword [0x1460fcc]
push ebp
push 0x50
push ecx
call fcn.01403690
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x1404770
Capabilities:
Set console window title

Disassembly:
sub esp, 0x800
lea eax, [esp + 0x400]
push esi
push edi
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x10]
push str._d__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
add esp, 0x10
lea edx, [esp + 8]
push edx
call esi
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
lea ecx, [esp + 0x408]
mov edi, eax
push ecx
call esi
mov eax, edi
pop edi
pop esi
add esp, 0x800
ret
Function at 0x1404b60
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0xa8
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x28
lea edi, [esp + 0x14]
mov ax, word [esi + 0x202c]
xor edx, edx
mov bx, ax
mov word [esp + 0x12], dx
shl ebx, 0x10
mov bx, ax
mov word [esp + 0x10], dx
mov eax, ebx
mov dword [esp + 0xc], edx
mov edx, dword [esi + 0x2028]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
push 0x50
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
mov edx, dword [esi + 0x2028]
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esi + 0x202e]
push 0x50
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
pop edi
pop esi
pop ebx
add esp, 0xa8
ret
Function at 0x1405a00
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 0xc]
push str.filesystem_stdio.dll
push str.filesystem_steam.dll
push eax
call fcn.014052b0
add esp, 0xc
test al, al
je 0x1405a20
xor eax, eax
ret 0x10
push esi
lea ecx, [esp + 0x10]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov edx, dword [esp + 0x14]
push esi
push edx
call fcn.01406060
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x140e5a0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.01406360
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [ecx]
mov ebx, dword [edi]
call dword [eax]
push eax
mov ecx, edi
call dword [ebx + 0x34]
mov edx, dword [esi + 0x50]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x14], eax
jle 0x140e5e3
mov edi, dword [esi + 0x58]
cmp dword [edi], eax
je 0x140e5db
inc ecx
add edi, 4
cmp ecx, edx
jl 0x140e5cd
jmp 0x140e5e3
test ecx, ecx
jge 0x140e673
mov ecx, dword [esi + 0x50]
mov ebx, dword [esi + 0x54]
inc ecx
cmp ecx, ebx
jle 0x140e663
test ebx, ebx
jne 0x140e5f7
mov ebx, 1
cmp ebx, ecx
jge 0x140e601
add ebx, ebx
cmp ebx, ecx
jl 0x140e5fb
lea edi, [ebx*4]
push edi
call fcn.0142fbd0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x140e61d
push eax
call fcn.01434b30
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x50]
xor eax, eax
test ecx, ecx
mov dword [esi + 0x54], ebx
jle 0x140e650
mov ecx, dword [esi + 0x58]
inc eax
mov edx, dword [ecx + eax*4 - 4]
mov dword [ebp + eax*4 - 4], edx
mov ecx, dword [esi + 0x50]
cmp eax, ecx
jl 0x140e63d
mov eax, dword [esi + 0x58]
push eax
call fcn.0142fbf0
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x58], ebp
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x58]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x50]
inc eax
mov dword [esi + 0x50], eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x1424dc0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov esi, dword [ebx + 4]
cmp eax, esi
jle 0x1424e40
test esi, esi
jne 0x1424dda
mov esi, 1
cmp esi, eax
jge 0x1424de4
add esi, esi
cmp esi, eax
jl 0x1424dde
lea edi, [esi*4]
push edi
call fcn.0142fbd0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1424e00
push eax
call fcn.01434b30
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx]
xor eax, eax
test ecx, ecx
mov dword [ebx + 4], esi
jle 0x1424e31
mov ecx, dword [ebx + 8]
inc eax
mov edx, dword [ecx + eax*4 - 4]
mov dword [ebp + eax*4 - 4], edx
mov ecx, dword [ebx]
cmp eax, ecx
jl 0x1424e1f
mov eax, dword [ebx + 8]
push eax
call fcn.0142fbf0
add esp, 4
mov dword [ebx + 8], ebp
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x14333c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x14333df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x14333e6
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x14333fd
mov ecx, dword [ebp - 4]
push ecx
call fcn.0143be80
add esp, 4
or eax, 0xffffffff
jmp 0x14333ff
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x14492a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x14492cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0143be80
add esp, 4
or eax, 0xffffffff
jmp 0x14492fc
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
je 0x14492fa
mov edx, dword [ebp + 0xc]
and edx, 2
test edx, edx
je 0x14492fa
call fcn.0143bf20
mov dword [eax], 0xd
call fcn.0143bf30
mov dword [eax], 5
or eax, 0xffffffff
jmp 0x14492fc
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x418c60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460ad6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x481e80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0041b320
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.0041b940
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 0xffffffff
mov edx, dword [ebp - 0x10]
mov byte [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x38], 0
push 0xffffffffffffffff
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.0041b990
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x451680
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4516ba
sub bh, byte [ebx - 0x37]
jle 0x45165b
mov ch, 0x46
getsec
nop
daa
mov dword [0xfbf865f5], eax
invalid
or eax, 0xb5300ac5
xlatb
fiadd word [edx - 0x6d738e66]
push cs
pop eax
add edi, dword [ebx + 0x68fb7f1e]
aad 0x49
xor al, bh
sti
push 0xf83049d5
adc eax, 0xfe872697
adc byte [eax + 0x316a061c], 0xb5
mov esi, 0x43e5237
cmp eax, 0x5021443d
imul ebx, eax, 0x39
pop edi
jbe 0x451746
imul edi, esp, 0x6e6e7081
outsb dx, byte [esi]
xor ebp, dword [ebx + 0x35]
mov edi, 0x9abd160e
mov dh, 0xdd
je 0x4516a6
daa
cmp edx, esi
inc edx
loop 0x45172d
or eax, 0xfb0d5982
arpl word [ebp - 0x4f], cx
pop edi
aad 0x1f
xor bl, 0xb7
mov byte [edi], ch
sub dh, byte ds:[esi + eax]
push es
aad 0xb8
pop ebp
aad 0xd1
sbb eax, 0xa43c1b74
sub esi, dword [ecx]
xchg byte [ecx], cl
xor eax, 0x61405344
nop
xchg byte [eax - 0x7f], bh
lahf
add bl, bl
rol dword [ecx + 0x7c], cl
mov esp, dword [ebx + edi]
cmp eax, dword [eax + 3]
lodsd eax, dword [esi]
cmp byte [ebx + ecx*2], bh
cmp al, 0x4b
adc dword [esi + 0x7f], eax
out dx, eax
scasb al, byte es:[edi]
loopne 0x451707
push eax
adc eax, 0x683cdab8
fidivr dword [eax + ebp*2]
dec ebx
xor eax, 0x362018c6
adc ah, byte [ecx]
add dword [0x4f1e39ca], edx
jo 0x4516e1
retf 0x1e39
xchg edi, eax
inc ebx
sbb al, 0x3c
cmp eax, 0xa553fe64
cmp byte [ecx - 0x5d293d87], ch
mov byte [0xd2945fa], al
push ss
fnstsw word [eax + 0x6da9a27c]
xlatb
mov ss, word [esi + 0x60]
cmc
inc edi
jmp 0x95ead6e7
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x1cc223a7
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x2af3455e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10031aa5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x74c
mov eax, 0x1005ef63
call fcn.10044e15
mov edi, ecx
cmp dword [edi + 0x24], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x758], eax
jne 0x10031afa
push 0x10004af8
push 0x3a
lea ecx, [ebp - 0x73c]
call fcn.10048e56
mov esi, eax
push 0x10061eac
lea eax, [ebp - 0x3b4]
mov ecx, 0xe2
lea edi, [ebp - 0x3b4]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.10048e56
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x744], 7
mov dword [ebp - 0x740], 1
jb 0x10031b18
mov eax, dword [esi]
jmp 0x10031b1a
mov eax, esi
lea ecx, [ebp - 0x740]
push ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x744]
push ecx
push ebx
push eax
push dword [edi + 0x24]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
je 0x10031c70
cmp dword [ebp - 0x744], 7
jne 0x10031c70
test ecx, ecx
je 0x10031b6f
push esi
lea eax, [edi + 8]
push eax
push 0x100049c8
push ecx
push 0xf
lea ecx, [ebp - 0x73c]
call fcn.10048e56
jmp 0x10031ada
mov eax, dword [ebp - 0x740]
add eax, 2
mov dword [ebp - 0x740], eax
mov dword [ebp - 0x754], ebx
mov dword [ebp - 0x750], ebx
mov dword [ebp - 0x74c], ebx
push eax
lea ecx, [ebp - 0x754]
mov dword [ebp - 4], ebx
call fcn.10048e56
mov ebx, dword [ebp - 0x750]
sub ebx, dword [ebp - 0x754]
mov dword [ebp - 4], 1
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp - 0x754]
cmp dword [esi + 0x14], 8
jb 0x10031bc8
mov ecx, dword [esi]
jmp 0x10031bca
mov ecx, esi
lea edx, [ebp - 0x740]
push edx
push eax
lea eax, [ebp - 0x744]
push eax
push 0
push ecx
push dword [edi + 0x24]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x10031bf9
push esi
lea ecx, [edi + 8]
push ecx
push 0x100049c8
push eax
jmp 0x10031b5d
mov edi, dword [ebp - 0x758]
xor esi, esi
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp - 0x754]
and dword [ebp - 0x1c], 0
xor ecx, ecx
lea eax, [eax + esi*2]
mov word [ebp - 0x2c], cx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
call fcn.10048e56
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.10048e56
mov eax, dword [ebp - 0x1c]
push 0
inc eax
push 1
lea ecx, [ebp - 0x2c]
add esi, eax
mov byte [ebp - 4], 1
call fcn.10048e56
mov ecx, ebx
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x754]
cmp byte [ecx + esi*2], 0
jne 0x10031c01
lea ecx, [ebp - 0x754]
call fcn.1005e30d
mov al, 1
jmp 0x10031c72
xor al, al
call fcn.10044e98
ret 8
Function at 0x1003ca27
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x1006075f
call fcn.10044dac
mov ebx, dword [ebp + 8]
xor edi, edi
or esi, 0xffffffff
test edi, edi
jne 0x1003ca50
cmp dword [0x1009b838], edi
je 0x1003cb3a
push 2
pop ebx
jmp 0x1003ca6a
cmp edi, 1
jne 0x1003cb3a
mov eax, ebx
call fcn.1003d8f8
test al, al
je 0x1003cb3a
xor ebx, ebx
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x1c], ebx
call fcn.1003d91a
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0xc]
shr eax, 1
and eax, 0x10
or eax, ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 8]
jmp 0x1003cb1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1003cab1
mov eax, dword [ebx]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
push 0
push dword [ebp + 0x18]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov esi, eax
call fcn.1003d111
test eax, eax
je 0x1003cb4e
push 0x1c049f
push 0
call fcn.10048e56
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
and dword [eax + 0x10069520], 0
push ebx
mov ecx, 0x1009b848
call fcn.10048e56
movzx eax, word [esi + 0xc]
and dword [ebp - 0x14], 0
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call fcn.1003d228
mov esi, eax
test esi, esi
je 0x1003ca9d
mov ebx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.1003d93b
inc edi
cmp edi, 2
jl 0x1003ca38
mov eax, esi
call fcn.10044e84
ret 0x18
push ebx
mov ecx, 0x1009b848
call fcn.10048e56
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x1003cb2e
movzx ecx, word [ebx + 0xc]
mov eax, ecx
and eax, 0xf
cmp dword [ebp - 0x20], eax
je 0x1003cb89
cmp dword [ebp - 0x20], 3
jne 0x1003cb84
mov eax, dword [ebp + 0x14]
cmp dword [eax], 4
jne 0x1003cb84
and cl, 0xf
cmp cl, 4
je 0x1003cb89
push 2
pop esi
jmp 0x1003cb2e
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0xd]
mov dword [eax], 1
call fcn.1003d93b
xor eax, eax
jmp 0x1003cb46
Function at 0x1003d012
Capabilities:
Query or enumerate registry value

Disassembly:
push 4
mov eax, 0x100607d0
call fcn.10044dac
mov esi, dword [ebp + 8]
cmp esi, dword [0x1009b844]
jne 0x1003d030
xor al, al
jmp 0x1003d109
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x1003d041
xor ecx, ecx
cmp dword [0x1009b838], ecx
jmp 0x1003d04c
mov eax, esi
call fcn.1003d8f8
xor ecx, ecx
test al, al
sete cl
test ecx, ecx
jne 0x1003d029
xor edi, edi
lea ecx, [ebp + 0xf]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
call fcn.1003d91a
mov dword [ebp - 4], edi
movzx edi, bl
neg edi
sbb edi, edi
and edi, 2
xor ebx, ebx
jmp 0x1003d0ca
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1003d080
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov ebx, eax
call fcn.1003d111
test eax, eax
je 0x1003d0ef
push 0x1c04c2
xor ebx, ebx
push ebx
call fcn.10048e56
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp + 8]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x1009b848
mov dword [eax + 0x10069520], ebx
call fcn.10048e56
mov dword [ebp + 8], ebx
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
push ebx
or eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call fcn.1003d228
mov ebx, eax
test ebx, ebx
je 0x1003d074
jmp 0x1003d0fc
push dword [ebp + 8]
mov ecx, 0x1009b848
call fcn.10048e56
lea ecx, [ebp + 0xf]
call fcn.1003d93b
test ebx, ebx
sete al
call fcn.10044e84
ret 8