joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401087
Capabilities:
Create process on windows

Disassembly:
jmp 0x4022d0
sub esp, 0x54
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
mov esi, dword [esp + 0x60]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
push esi
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x40232c
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 4
pop edi
pop esi
add esp, 0x54
ret

Function at 0x40c470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c488
mov eax, 1
add ebx, ebx
jne 0x40c4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c4a0
jne 0x40c4bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4a0
xor ecx, ecx
sub eax, 3
jb 0x40c4d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c542
mov ebp, eax
add ebx, ebx
jne 0x40c4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c50c
inc ecx
add ebx, ebx
jne 0x40c4f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c4ed
jne 0x40c509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c52c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c51d
jmp 0x40c48e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c52c
add edi, ecx
jmp 0x40c48e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c54a
cmp byte [edi], 1
jne 0x40c54a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40c54f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c5c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd70c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd748]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c57c
mov ecx, edi
jns 0x40c5ab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd74c]
or eax, eax
je 0x40c5c1
mov dword [ebx], eax
add ebx, 4
jmp 0x40c599
call dword [esi + 0xd750]
popal
jmp 0x401128
Function at 0x40126a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x51a8ac]
mov ecx, dword [0x4afa18]
sub esp, 0xc24
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4012d9
mov edi, ecx
mov ebx, eax
cmp dword [0x51a8ac], 0xae9
jne 0x4012cd
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push esi
lea eax, [ebp - 0xc20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call fcn.0040106e
add edi, 8
dec ebx
jne 0x40128e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401368
Capabilities:
Accept command line arguments
Parse credit card information

Disassembly:
mov eax, 0x43358e
call fcn.004334d8
sub esp, 0x8c0
push esi
push edi
xor edi, edi
cmp dword [0x51a8ac], 0x20a
jne 0x40144a
push edi
push edi
push edi
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push edi
push edi
push edi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
xor eax, eax
push 0x16
lea esi, [ebp - 0x30]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
call fcn.004015f4
push edi
push edi
mov dword [ebp - 4], edi
call fcn.0040272e
push edi
push edi
call fcn.004021c6
push 0x435edc
push str.0.txt
call fcn.004022ca
push edi
call fcn.00402b20
add esp, 0x1c
push edi
push edi
push edi
call fcn.004029d3
add esp, 0xc
push edi
call fcn.0040262b
pop ecx
push edi
push edi
push edi
call fcn.004029d3
fldz
push ecx
fst qword [esp + 8]
fstp qword [esp]
call fcn.00402090
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.004022f0
fstp st(0)
or dword [ebp - 4], 0xffffffff
add esp, 8
push edi
push 1
call fcn.004015b0
call fcn.00401354
push 0x43bfe0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x435ef8
push eax
mov dword [0x4b2c14], eax
call esi
mov dword [0x4afa1c], eax
call fcn.0040130a
push str.VirtualProtect
push dword [0x4b2c14]
call esi
mov dword [0x4573d4], eax
call fcn.00401329
xor esi, esi
cmp esi, 0x50a28
jge 0x4014ab
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.USER32.dll_RealChildWindowFromPoint]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x1ee9e75e
jg 0x4014c5
inc esi
mov eax, esi
cdq
cmp edx, 0x3f
jl 0x401490
jg 0x4014c5
cmp eax, 0x39c4b211
jb 0x401490
mov eax, dword [0x43b06c]
mov dword [0x51a8b0], eax
call fcn.004012de
xor esi, esi
cmp dword [0x51a8ac], edi
jbe 0x401501
cmp dword [0x51a8ac], 0x44
jne 0x4014f8
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
inc esi
cmp esi, dword [0x51a8ac]
jb 0x4014de
xor esi, esi
mov eax, dword [0x51a8ac]
add eax, esi
cmp eax, 0x5e
jne 0x401516
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
inc esi
cmp esi, 0x40c893
jl 0x401503
call fcn.0040126a
xor eax, eax
cmp eax, 0x3672c
jne 0x401537
add dword [0x4afa18], 0
inc eax
cmp eax, 0x2f530d
jl 0x401526
push 0x7b
pop esi
cmp dword [0x51a8ac], 0x54d
jne 0x40155c
push edi
lea eax, [ebp - 0x8cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec esi
jne 0x401542
call dword [0x4afa18]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x40328d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4394f0]
jne 0x403297
repz ret
jmp fcn.0040844c
Function at 0x40c017
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004054a5
and dword [ebp - 4], 0
cmp dword [0x43bf00], 0
mov ebx, eax
jne 0x40c0c8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c179
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c179
push eax
call fcn.00405433
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43bf00], eax
call esi
push eax
call fcn.00405433
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43bf04], eax
call esi
push eax
call fcn.00405433
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43bf08], eax
call esi
push eax
call fcn.00405433
pop ecx
mov dword [0x43bf10], eax
test eax, eax
je 0x40c0c8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405433
pop ecx
mov dword [0x43bf0c], eax
mov eax, dword [0x43bf0c]
cmp eax, ebx
je 0x40c120
cmp dword [0x43bf10], ebx
je 0x40c120
push eax
call fcn.004054ae
push dword [0x43bf10]
mov esi, eax
call fcn.004054ae
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c120
test edi, edi
je 0x40c120
call esi
test eax, eax
je 0x40c117
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c117
test byte [ebp - 0xc], 1
jne 0x40c120
or dword [ebp + 0x10], 0x200000
jmp 0x40c159
mov eax, dword [0x43bf04]
cmp eax, ebx
je 0x40c159
push eax
call fcn.004054ae
pop ecx
test eax, eax
je 0x40c159
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c159
mov eax, dword [0x43bf08]
cmp eax, ebx
je 0x40c159
push eax
call fcn.004054ae
pop ecx
test eax, eax
je 0x40c159
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43bf00]
call fcn.004054ae
pop ecx
test eax, eax
je 0x40c179
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c17b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 2
jne 0x401b09
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 8], edx
jmp 0x401bbe
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 1
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call fcn.004b3778
add esp, 4
push eax
call fcn.004b34e5
add esp, 8
test eax, eax
je 0x401b43
jmp 0x401c62
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
push ecx
call fcn.004af159
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
jne 0x401b6c
jmp 0x401c62
mov eax, dword [ebp - 0x3c]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004aef20
add esp, 0xc
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call fcn.004b3778
add esp, 4
push eax
call fcn.004b32a7
add esp, 0xc
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jle 0x401bbe
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x44]
mov dword [ebp - 0x3c], ecx
jmp 0x401b81
cmp dword [ebp - 8], 0
je 0x401c01
lea edx, [ebp - 4]
push edx
mov eax, dword [0x4d4ddc]
mov ecx, dword [eax + 0xe4]
mov edx, dword [0x4d4ddc]
mov eax, dword [edx + 0xe0]
mov ecx, dword [eax + ecx*4]
push ecx
push 0x14
push 0x4c23d0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [0x4d4ddc]
push ecx
call fcn.00420740
add esp, 0x1c
cmp dword [ebp - 0x38], 0
je 0x401c19
mov edx, dword [ebp - 8]
push edx
mov eax, dword [0x4d4ddc]
push eax
call fcn.00419a9d
add esp, 8
cmp dword [ebp - 4], 0
je 0x401c4a
mov ecx, dword [ebp - 4]
push ecx
push str.ERRORS:__s_n
mov edx, dword [0x4dc70c]
push edx
call fcn.004aefac
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x4d4ddc]
push ecx
call fcn.00419a9d
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x401c62
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [0x4d4ddc]
push eax
call fcn.00419a9d
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x40bb5c
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push esi
push edi
mov byte [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x80c], 0
mov dword [ebp - 0x808], 0
mov byte [ebp - 0x804], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x803]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0x400
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x50]
push ecx
push 0x4c6154
lea edx, [ebp - 0x404]
push edx
call fcn.004af408
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
push 0x20007
push 0
push 0x4c6160
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40bc7e
push str.Error:_unable_to_delete_local_borrow_info._n
mov ecx, dword [0x4dc70c]
push ecx
call fcn.004aefac
add esp, 8
mov edx, dword [0x4d4ddc]
cmp dword [edx + 0x80], 0
je 0x40bc32
xor eax, eax
test eax, eax
je 0x40bc32
mov ecx, dword [0x4d4ddc]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x810], edx
jmp 0x40bc3c
mov dword [ebp - 0x810], 0xffffff86
mov eax, dword [0x4d4ddc]
mov ecx, dword [ebp - 0x810]
mov dword [eax + 0x80], ecx
push 0
push 0xff
push 0
push 0
push 0x24f
push 0xffffffffffffff86
mov edx, dword [0x4d4ddc]
push edx
call fcn.00419110
add esp, 0x1c
mov eax, dword [0x4d4ddc]
mov eax, dword [eax + 0x80]
jmp 0x40bd97
push 0
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x804]
push edx
mov eax, dword [ebp - 0x808]
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp - 0x814]
push ecx
mov edx, dword [ebp - 0x80c]
push edx
mov eax, dword [ebp - 0x808]
add eax, 1
mov dword [ebp - 0x808], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40bd88
mov ecx, dword [ebp - 4]
mov byte [ebp + ecx - 0x804], 0
lea edx, [ebp - 0x404]
push edx
call fcn.004aee10
add esp, 4
push eax
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x804]
push ecx
call fcn.004af7d0
add esp, 0xc
test eax, eax
jne 0x40bd7c
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
call fcn.004aee10
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
lea ecx, [ebp - 0x804]
push ecx
call fcn.004aee10
add esp, 4
mov esi, eax
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
call fcn.004aee10
add esp, 4
sub esi, eax
lea eax, [ebp + esi - 0x804]
push eax
call fcn.004af7d0
add esp, 0xc
test eax, eax
jne 0x40bd7c
lea ecx, [ebp - 0x804]
push ecx
mov edx, dword [ebp - 0x80c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x4c61b4
mov eax, dword [ebp - 0x80c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040bd9d
add esp, 4
mov dword [ebp - 4], 0x400
jmp 0x40bc7e
mov edx, dword [ebp - 0x80c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ef88
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
jmp 0x40efa7
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jge 0x40eff2
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
push 0x4c7c0c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call fcn.004aee90
add esp, 8
test eax, eax
je 0x40eff0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
push str.Unknown_argument:__s_n
mov eax, dword [0x4dc70c]
push eax
call fcn.004aefac
add esp, 0xc
jmp 0x40ef9e
cmp dword [ebp - 8], 0
je 0x40f004
call fcn.0040e382
push 1
call fcn.004afc62
mov esp, ebp
pop ebp
ret
Function at 0x410146
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x41017a
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 8], ecx
jae 0x4101ab
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0xc]
jb 0x4101a9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 4]
add edx, dword [eax + 8]
cmp dword [ebp + 8], edx
jae 0x4101a9
mov eax, dword [ebp - 4]
jmp 0x4101ad
jmp 0x410168
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x410b72
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
jne 0x410baa
jmp 0x410bf6
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x410bf6
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00410773
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x410bf6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00410c16
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], 0
je 0x410c0f
mov ecx, dword [ebp - 4]
push ecx
call fcn.00419aae
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x411037
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x411078
cmp dword [ebp + 0x10], 0
je 0x411078
cmp dword [ebp + 0x14], 0
je 0x411078
cmp dword [ebp + 0x18], 0
jne 0x41107d
jmp 0x41115c
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00410403
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41115c
cmp dword [ebp - 0xc], 0
je 0x41115c
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41115c
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00419880
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41115c
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41115c
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 1
je 0x41112e
mov edx, dword [ebp + 0x14]
cmp dword [edx], 2
jne 0x411147
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004108c7
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x41115c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
cmp dword [ebp - 0x10], 0
je 0x411175
mov eax, dword [ebp - 0x10]
push eax
call fcn.00419aae
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x41118e
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00419aae
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x411195
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x4111d6
cmp dword [ebp + 0x10], 0
je 0x4111d6
cmp dword [ebp + 0x14], 0
je 0x4111d6
cmp dword [ebp + 0x18], 0
jne 0x4111db
jmp 0x4112ba
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004106ca
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4112ba
cmp dword [ebp - 0xc], 0
je 0x4112ba
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4112ba
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00419880
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4112ba
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4112ba
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 1
je 0x41128c
mov edx, dword [ebp + 0x14]
cmp dword [edx], 2
jne 0x4112a5
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00410773
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x4112ba
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
cmp dword [ebp - 0x14], 0
je 0x4112d3
mov eax, dword [ebp - 0x14]
push eax
call fcn.00419aae
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
je 0x4112ec
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00419aae
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x411357
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x411391
cmp dword [ebp + 0x10], 0
je 0x411391
cmp dword [ebp + 0x18], 0
je 0x411391
cmp dword [ebp + 0x1c], 0
jne 0x411396
jmp 0x411420
cmp dword [ebp + 0x14], 1
je 0x4113a2
cmp dword [ebp + 0x14], 2
jne 0x411401
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00410403
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4113c1
jmp 0x411420
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00410403
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4113e0
jmp 0x411420
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
jmp 0x411420
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
je 0x411439
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00419aae
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 8], 0
je 0x411452
mov edx, dword [ebp - 8]
push edx
call fcn.00419aae
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret