joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014b0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x42d120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4015dd
lea ecx, [ebp - 0x244]
push ecx
push 0x421380
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x248], eax
cmp eax, 0xffffffff
je 0x4015ab
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
test byte [ebp - 0x244], 0x10
je 0x401577
lea edx, [ebp - 0x218]
push 0x42137c
push edx
call fcn.0040e634
add esp, 8
test eax, eax
je 0x401577
lea eax, [ebp - 0x218]
push 0x421378
push eax
call fcn.0040e634
add byte [ebx - 0x3f7af73c], al
je 0x401577
lea ecx, [ebp - 0x218]
push ecx
push esi
lea edx, [ebp - 0x84]
push 0x421304
push edx
call edi
lea eax, [ebp - 0x84]
push eax
call fcn.004014b0
add esp, 0x14
jmp 0x401584
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
push edx
push eax
call ebx
test eax, eax
jne 0x401517
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4015dd
push eax
call sym.Prounstl.exe_public:_void___thiscall_std::_String_val_char__class_std::allocator_char__::destructor_void_
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
invalid
push esp
aam 0

Function at 0x401788
Capabilities:
Query or enumerate registry value

Disassembly:
add byte [ecx + 0x6a], dl
add byte [edx], ch
lea edx, [ebp - 0x408]
push edx
push esi
push 0
push eax
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x408], 0x80
mov dword [ebp - 0x40c], 0x200
call edi
test eax, eax
jne 0x401821
lea ecx, [ecx]
mov eax, 1
add dword [ebp - 0x418], eax
cmp dword [ebp - 0x414], ebx
jae 0x401821
add dword [ebp - 0x414], eax
add esi, 0x280
lea ecx, [ebp - 0x40c]
push ecx
mov ecx, dword [ebp - 0x418]
lea edx, [esi + 0x80]
push edx
mov edx, dword [ebp - 0x410]
push 0
push 0
lea eax, [ebp - 0x408]
push eax
push esi
push ecx
push edx
mov dword [ebp - 0x408], 0x80
mov dword [ebp - 0x40c], 0x200
call edi
test eax, eax
je 0x4017c0
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x414]
mov dword [eax], ecx
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x41c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
invalid
invalid

Function at 0x4019c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [ebp - 0x40c], 0x200
call ebx
test eax, eax
jne 0x401a16
mov ebx, edi
Function at 0x4019f0
Capabilities:
Query or enumerate registry value

Disassembly:
lea ecx, [ebp - 0x40c]
push ecx
mov ecx, dword [ebp - 0x410]
lea edx, [ebp - 0x204]
push edx
push 0
push 0
lea eax, [ebp - 0x408]
push eax
add ebx, 0x20
push ebx
inc esi
push esi
push ecx
mov dword [ebp - 0x408], 0x20
mov dword [ebp - 0x40c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4019d2
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [str.E100B]
mov eax, esi
shl eax, 5
mov dword [eax + edi], ecx
movzx edx, word [0x4213bc]
invalid
invalid
push esp
invalid

Function at 0x401aac
Capabilities:
Create process on windows
Get common file path

Disassembly:
inc edx
add byte [ebx], dh
lds ecx, [ecx + 0x6857fc45]
add al, 1
add byte [eax], al
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x108]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401ad0
mov cx, word [0x421374]
lea eax, [ebp - 0x108]
mov word [edi], cx
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401af0
mov edx, dword [str.iscsibcg.exe]
mov ecx, dword [0x4213fc]
mov dword [eax], edx
mov edx, dword [0x421400]
mov dword [eax + 4], ecx
mov cl, byte [0x421404]
lea edi, [ebp - 0x108]
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401b22
mov dx, word [0x4213f4]
lea eax, [ebp - 0x108]
mov word [edi], dx
dec eax
pop edi
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401b40
mov ecx, dword [str._verify__fix]
mov edx, dword [0x4213e8]
mov dword [eax], ecx
mov ecx, dword [0x4213ec]
mov dword [eax + 4], edx
mov dl, byte [0x4213f0]
mov dword [eax + 8], ecx
push 0x44
mov byte [eax + 0xc], dl
lea eax, [ebp - 0x15c]
push 0
push eax
call fcn.0040ea40
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x15c]
push edx
push 0
push 0
push 0x8000000
or byte [edx], ch
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
mov dword [ebp - 0x15c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401bc7
mov ecx, dword [ebp - 0x118]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret
Function at 0x401b94
Capabilities:
Create process on windows

Disassembly:
inc edx
add byte [ebx], dh
lds ecx, [ecx + 0x6857fc45]
add al, 1
add byte [eax], al
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x108]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401ad0
mov cx, word [0x421374]
lea eax, [ebp - 0x108]
mov word [edi], cx
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401af0
mov edx, dword [str.iscsibcg.exe]
mov ecx, dword [0x4213fc]
mov dword [eax], edx
mov edx, dword [0x421400]
mov dword [eax + 4], ecx
mov cl, byte [0x421404]
lea edi, [ebp - 0x108]
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401b22
mov dx, word [0x4213f4]
lea eax, [ebp - 0x108]
mov word [edi], dx
dec eax
pop edi
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401b40
mov ecx, dword [str._verify__fix]
mov edx, dword [0x4213e8]
mov dword [eax], ecx
mov ecx, dword [0x4213ec]
mov dword [eax + 4], edx
mov dl, byte [0x4213f0]
mov dword [eax + 8], ecx
push 0x44
mov byte [eax + 0xc], dl
lea eax, [ebp - 0x15c]
push 0
push eax
call fcn.0040ea40
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x15c]
push edx
push 0
push 0
push 0x8000000
or byte [edx], ch
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
mov dword [ebp - 0x15c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401bc7
mov ecx, dword [ebp - 0x118]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret

Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret
Function at 0x40afc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420068
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x42d120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ecx + 0xc], ebx
cmp byte [ecx + 8], bl
jne 0x40b016
lea ecx, [ebp + 0xc]
call fcn.0040af00
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x40b044
lea ecx, [edi + 0x10]
mov edx, dword [ecx]
add ecx, 0x1c
dec eax
lea esi, [esi + edx + 1]
jne 0x40b038
inc esi
push esi
call fcn.0040fd8c
push esi
mov edi, eax
push ebx
push edi
mov dword [ebp - 0x18], edi
call fcn.0040ea40
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0xc]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 0x10
add eax, edx
je 0x40b0d8
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add eax, ebx
cmp dword [eax + 0x14], 0x10
jb 0x40b08f
mov eax, dword [eax]
push eax
push esi
push edi
push 0x399
push str.CommonSrcNcsRegKey.cpp
call fcn.0040ba90
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
mov edx, dword [eax + ebx + 0x10]
mov ecx, dword [ebp + 0x10]
inc dword [ebp - 0x14]
add eax, 0x1c
mov dword [ebp - 0x10], eax
sub ecx, ebx
lea edi, [edi + edx + 1]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0x14
cmp dword [ebp - 0x14], eax
jb 0x40b082
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov byte [edi + esi - 1], 0
cmp dword [eax + 0x14], 0x10
jb 0x40b0eb
mov eax, dword [eax]
push esi
mov esi, dword [ebp - 0x1c]
mov ecx, dword [esi + 4]
push edi
push 7
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov dword [esi + 0xc], eax
call fcn.0040fd52
add esp, 4
cmp dword [esi + 0xc], 0
mov esi, dword [ebp + 0xc]
je 0x40b156
test esi, esi
je 0x40b140
mov edi, dword [ebp + 0x10]
cmp esi, edi
je 0x40b137
nop
lea edx, [ebp + 0x18]
push esi
push edx
call fcn.0040aa60
add esi, 0x1c
add esp, 8
cmp esi, edi
jne 0x40b120
mov esi, dword [ebp + 0xc]
push esi
call fcn.0040eaba
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test esi, esi
je 0x40b181
mov edi, dword [ebp + 0x10]
cmp esi, edi
je 0x40b178
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.0040aa60
add esi, 0x1c
add esp, 8
cmp esi, edi
jne 0x40b161
mov esi, dword [ebp + 0xc]
push esi
call fcn.0040eaba
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40b230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420098
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x42d120]
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 edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], 0
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
push eax
push edx
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 7
call fcn.0040ac90
cmp byte [esi + 8], 0
je 0x40b300
cmp dword [edi + 0x14], 0x10
jb 0x40b294
mov eax, dword [edi]
jmp 0x40b296
mov eax, edi
lea ecx, [ebp - 0x34]
push ecx
push 0
lea edx, [ebp - 0x38]
push edx
push 0
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40b300
mov ebx, dword [ebp - 0x34]
add ebx, 5
push ebx
call fcn.0040fd8c
push ebx
push 0
push eax
mov dword [ebp - 0x30], eax
call fcn.0040ea40
add esp, 0x10
cmp dword [edi + 0x14], 0x10
jb 0x40b2d7
mov edi, dword [edi]
mov ebx, dword [ebp - 0x30]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x34]
push ecx
push ebx
lea edx, [ebp - 0x38]
push edx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esi + 0xc], eax
test eax, eax
je 0x40b304
push ebx
call fcn.0040fd52
add esp, 4
xor al, al
jmp 0x40b37e
mov edi, ebx
mov ebx, dword [ebp - 0x34]
lea esp, [esp]
cmp byte [edi], 0
jne 0x40b319
test ebx, ebx
je 0x40b370
push edi
lea ecx, [ebp - 0x2c]
call sym.Prounstl.exe_public:_void___thiscall_CNcsString::constructor_char_const__
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0
lea esi, [eax + 1]
test eax, eax
je 0x40b33f
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.0040b1a0
add edi, esi
sub ebx, esi
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x40b35c
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040eaba
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jmp 0x40b310
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040fd52
add esp, 4
mov al, 1
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.0040ea2d
mov esp, ebp
pop ebp
ret 8

Function at 0x40bb70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42d120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x40bbb3
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [ebp - 0x14]
push edx
call fcn.004105bd
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret
Function at 0x40d3c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42d120]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x42e83c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x20c], 0x200
je 0x40d462
lea edx, [ebp - 0x208]
push edx
push 0xf003f
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d462
mov edx, dword [ebp - 0x208]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x204]
push ecx
push 0
push 0
push str.DriverDesc
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d455
lea eax, [ebp - 0x204]
push eax
push str.Intel_R__PRO_100_Modem56_CardBus_II
call fcn.0040e842
add esp, 8
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x208]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret

Function at 0x40d630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x690
mov eax, dword [0x42d120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push 0x1ff
lea eax, [ebp - 0x283]
push 0
push eax
mov byte [ebp - 0x284], 0
call fcn.0040ea40
push 0x7f
lea ecx, [ebp - 0x83]
push 0
push ecx
mov byte [ebp - 0x84], 0
call fcn.0040ea40
push str.Bindings
push ebx
push str.EnumNetwork
lea edx, [ebp - 0x284]
push str._s_s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x2c
lea eax, [ebp - 0x688]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x284]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d78a
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea edx, [ebp - 0x68c]
push edx
lea eax, [ebp - 0x684]
push eax
mov eax, dword [ebp - 0x688]
xor esi, esi
push esi
push esi
lea ecx, [ebp - 0x690]
push ecx
lea edx, [ebp - 0x84]
push edx
push esi
push eax
mov dword [ebp - 0x690], 0x80
mov dword [ebp - 0x68c], 0x200
call edi
test eax, eax
jne 0x40d74e
lea ebx, [ebx]
lea ecx, [ebp - 0x84]
push ecx
inc esi
call fcn.0040d630
add esp, 4
lea edx, [ebp - 0x68c]
push edx
lea eax, [ebp - 0x684]
push eax
mov eax, dword [ebp - 0x688]
push 0
push 0
lea ecx, [ebp - 0x690]
push ecx
lea edx, [ebp - 0x84]
push edx
push esi
push eax
call edi
test eax, eax
je 0x40d710
mov ecx, dword [ebp - 0x688]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push str.EnumNetwork
lea edx, [ebp - 0x484]
push 0x421304
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x484]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret
Function at 0x40d7a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push ecx
push edx
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d7ef
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp - 4]
push ecx
push esi
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d7e5
lea esi, [eax + 1]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40d810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x42d120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x7f
lea eax, [ebp - 0x83]
push 0
push eax
mov byte [ebp - 0x84], 0
call fcn.0040ea40
add esp, 0xc
lea ecx, [ebp - 0x288]
push ecx
push 0xf003f
push 0
push str.Bindings
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d924
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea edx, [ebp - 0x290]
push edx
lea eax, [ebp - 0x284]
push eax
mov eax, dword [ebp - 0x288]
xor esi, esi
push esi
push esi
lea ecx, [ebp - 0x28c]
push ecx
lea edx, [ebp - 0x84]
push edx
push esi
push eax
mov dword [ebp - 0x28c], 0x80
mov dword [ebp - 0x290], 0x200
call edi
test eax, eax
jne 0x40d902
lea esp, [esp]
lea ecx, [ebp - 0x84]
push ecx
inc esi
call fcn.0040d630
add esp, 4
lea edx, [ebp - 0x290]
push edx
lea eax, [ebp - 0x284]
push eax
mov eax, dword [ebp - 0x288]
push 0
push 0
lea ecx, [ebp - 0x28c]
push ecx
lea edx, [ebp - 0x84]
push edx
push esi
push eax
mov dword [ebp - 0x28c], 0x80
mov dword [ebp - 0x290], 0x200
call edi
test eax, eax
je 0x40d8b0
mov ecx, dword [ebp - 0x288]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret
Function at 0x40d940
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42d120]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20c], 0x200
je 0x40d98b
push ebx
push edi
call fcn.0040d0e0
add esp, 8
test eax, eax
jne 0x40d98b
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x208]
push eax
push 0xf003f
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d979
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ecx, [ebp - 0x214]
push ecx
mov ecx, dword [ebp - 0x208]
push eax
push eax
push eax
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x204]
push eax
push 0
push ecx
call esi
test eax, eax
jne 0x40da25
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x208]
push edx
lea eax, [ebp - 0x204]
push eax
push ecx
call fcn.0040d940
add esp, 0xc
test eax, eax
je 0x40da50
lea edx, [ebp - 0x214]
push edx
mov edx, dword [ebp - 0x208]
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x204]
push ecx
push 0
push edx
mov dword [ebp - 0x20c], 0x200
call esi
test eax, eax
je 0x40d9d3
mov ecx, dword [ebp - 0x208]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
pop esi
sbb eax, eax
pop edi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040ea2d
mov esp, ebp
pop ebp
ret
Function at 0x40ea2d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d120]
jne 0x40ea37
repz ret
jmp fcn.00412939

Function at 0x41940f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411e92
and dword [ebp - 0x14], 0
cmp dword [0x42fdd0], 0
mov dword [ebp - 0x18], eax
jne 0x4194c2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41956a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41956a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42fdd0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42fdd4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42fdd8], eax
call edi
push eax
call esi
mov dword [0x42fde0], eax
test eax, eax
je 0x4194c2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42fddc], eax
mov eax, dword [0x42fddc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41951b
cmp dword [0x42fde0], ecx
je 0x41951b
push eax
call esi
push dword [0x42fde0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41951b
test ebx, ebx
je 0x41951b
call edi
test eax, eax
je 0x419512
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x419512
test byte [ebp - 8], 1
jne 0x41951b
or dword [ebp + 0x10], 0x200000
jmp 0x41954e
mov eax, dword [0x42fdd4]
cmp eax, dword [ebp - 0x18]
je 0x41954e
push eax
call esi
test eax, eax
je 0x41954e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41954e
mov eax, dword [0x42fdd8]
cmp eax, dword [ebp - 0x18]
je 0x41954e
push eax
call esi
test eax, eax
je 0x41954e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42fdd0]
call esi
test eax, eax
je 0x41956a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41956c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ea2d
leave
ret