joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7071b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00707140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00707140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00707140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00707140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x707230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7072d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x7072ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00707230
mov esi, eax
add esp, 8
test esi, esi
jne 0x7072ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x70727e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0x7072ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x707bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x707c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x71987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x707c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x707c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x410b50
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x577490]
cmp ax, 0xcb
je 0x410c5c
cmp ax, 0xcc
je 0x410c5c
lea esi, [esi]
mov edx, dword [0x663070]
test edx, edx
je 0x410b85
mov eax, dword [0x662f20]
call edx
mov ebx, eax
jmp 0x410b8a
mov ebx, 0x662f24
cmp word [0x662f10], 0
jle 0x410bb0
mov eax, 0x662ef0
call fcn.00410e10
mov eax, ebx
call fcn.00410710
mov eax, ebx
call fcn.00410780
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x410bd2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x410bcd
mov edx, edi
mov eax, ebx
call fcn.0040fb80
jmp 0x410bd0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x410bb8
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x662f10], 0
jle 0x410c5c
mov edx, 0x662e30
mov eax, ebx
call fcn.0040fcc0
mov edi, eax
test edi, edi
je 0x410c2c
mov eax, dword [0x662ec4]
mov dword [edi + 0xc], eax
cmp dword [0x662ec4], 0
je 0x410c20
mov eax, dword [0x662ec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x662ec4], eax
nop
sub word [0x662f10], 1
cmp word [0x662f10], 0
sete bl
mov eax, 0x662ef0
call fcn.00410e30
test bl, bl
je 0x410c5c
mov eax, 0x662ef0
call fcn.00410e00
lea esi, [esi]
pop edi
pop esi
pop ebx
ret

Function at 0x43c5c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, 0x61027c
call fcn.0040cf80
test al, al
je 0x43c6a6
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.0043c6c0
xor eax, eax
push fcn.0043c5b0
push ebp
push 0x414780
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0xc4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x18]
mov byte [edx + 0x18], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1a]
mov byte [edx + 0x1a], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1b]
mov byte [edx + 0x1b], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1c]
mov byte [edx + 0x1c], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 8]
add eax, 0x30
call fcn.00408b60
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.0043b7d0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.0043b320
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
call dword [ecx + 0xb0]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0043c5b0
jmp 0x43c6b1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0043eb50
mov esp, ebp
pop ebp
ret
Function at 0x455798
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ea808]
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.00451012
and dword [ebp - 0x14], 0
cmp dword [0x5ec574], 0
mov dword [ebp - 0x18], eax
jne 0x45584b
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4558f3
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4558f3
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x5ec574], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5ec578], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5ec57c], eax
call edi
push eax
call esi
mov dword [0x5ec584], eax
test eax, eax
je 0x45584b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5ec580], eax
mov eax, dword [0x5ec580]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x4558a4
cmp dword [0x5ec584], ecx
je 0x4558a4
push eax
call esi
push dword [0x5ec584]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4558a4
test ebx, ebx
je 0x4558a4
call edi
test eax, eax
je 0x45589b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45589b
test byte [ebp - 8], 1
jne 0x4558a4
or dword [ebp + 0x10], 0x200000
jmp 0x4558d7
mov eax, dword [0x5ec578]
cmp eax, dword [ebp - 0x18]
je 0x4558d7
push eax
call esi
test eax, eax
je 0x4558d7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4558d7
mov eax, dword [0x5ec57c]
cmp eax, dword [ebp - 0x18]
je 0x4558d7
push eax
call esi
test eax, eax
je 0x4558d7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5ec574]
call esi
test eax, eax
je 0x4558f3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4558f5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ba6e
leave
ret
Function at 0x436270
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x418015
lea edi, [esi - 0x17015]
push edi
jmp 0x43628a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x436291
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x436280
mov eax, 1
add ebx, ebx
jne 0x4362a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x436298
jne 0x4362b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x436298
xor ecx, ecx
sub eax, 3
jb 0x4362c8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43633a
mov ebp, eax
add ebx, ebx
jne 0x4362d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4362e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x436304
inc ecx
add ebx, ebx
jne 0x4362f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4362e5
jne 0x436301
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4362e5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x436324
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x436315
jmp 0x436286
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x436324
add edi, ecx
jmp 0x436286
pop esi
mov edi, esi
mov ecx, 0x1ae
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x436342
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x436347
lea edi, [esi + 0x34000]
mov eax, dword [edi]
or eax, eax
je 0x4363af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x37150]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x371b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43636d
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x371bc]
or eax, eax
je 0x4363a9
mov dword [ebx], eax
add ebx, 4
jmp 0x43638a
call dword [esi + 0x371b8]
mov ebp, dword [esi + 0x371c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x3640a]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4363fb
sub esp, 0xffffff80
jmp 0x414ac0
Function at 0x401430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x150
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x124], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x118], 6
push ebx
push ebx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x11c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [esp], 0
mov dword [ebp - 0x120], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x134]
push ecx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push ebx
lea ebx, [ebp - 0x10c]
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 8]
lea eax, [ebx - 3]
pop ebx
pop esi
pop ebp
ret

Function at 0x401628
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.00401430
test eax, eax
jne 0x4016c2
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x40212e
sub eax, 0x4016cc
mov dword [esp], 0x4016cc
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x4016c2
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.004013ac
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004015ad
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b400
mov dword [esp], 0x40300c
call fcn.00401e31
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x43b657
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
inc eax
add ebx, 1
mov ebx, ebx
call fcn.0043b698
inc eax
add eax, 0x49c3ebd5
xor dword [esi], edx
or eax, eax
inc esi
sub eax, 0x914afc6
mov eax, eax
cmp esi, edi
jne fcn.0043b657
add ebx, 0xef838002
sub eax, 0x3248202e
mov ebx, 0x4aa4201f
ret
Function at 0x41a960
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afb87
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4d7a50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
call fcn.0040fd30
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x595064
call fcn.004521f0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41a9ca
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x4c6de0]
push ecx
push str._s_save
mov edx, dword [ebp - 0x24]
add edx, 0x4c6dd8
push edx
call fcn.00410a80
add esp, 0xc
jmp 0x41a9ee
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x4c6de0]
push edx
push str._s_save_d
mov eax, dword [ebp - 0x24]
add eax, 0x4c6dd8
push eax
call fcn.00410a80
add esp, 0x10
mov ecx, dword [ebp - 0x24]
add ecx, 0x4c6dd8
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xdc
call fcn.0040fee0
mov edx, 5
mov eax, dword [ebp - 0x24]
mov word [eax + reloc.crypt32.dll_CertOpenStore], dx
cmp dword [ebp - 0x14], 0
jne 0x41aa6c
push str._sd11x5.txt
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.0040e470
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x4c6de4
call fcn.0040fee0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040fec0
jmp 0x41ab11
cmp dword [ebp - 0x14], 1
jne 0x41aac0
push str.gd11x5.txt
mov edx, dword [ebp - 0x10]
add edx, 0xbc
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.0040e470
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x4c6de4
call fcn.0040fee0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040fec0
jmp 0x41ab11
cmp dword [ebp - 0x14], 2
jne 0x41ab11
push str._sh11x5.txt
mov eax, dword [ebp - 0x10]
add eax, 0xbc
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.0040e470
add esp, 0xc
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x4c6de4
call fcn.0040fee0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040fec0
mov ecx, dword [ebp - 0x24]
movsx edx, word [ecx + reloc.crypt32.dll_CertOpenStore]
sub edx, 1
mov eax, dword [ebp - 0x24]
mov word [eax + reloc.crypt32.dll_CertOpenStore], dx
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xdc
call fcn.0040ff40
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x438ca7
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x438a14
and ecx, ecx
add ecx, 0xb92c07e3
call fcn.00438ceb
mov ecx, 0x90f94727
and ecx, ecx
add eax, 0x5ca77531
xor dword [edx], edi
sub esp, 4
mov dword [esp], 0xac750567
pop eax
and eax, ecx
inc edx
dec ecx
sub eax, ecx
add ecx, 0x92367ac7
cmp edx, esi
jne fcn.00438ca7
dec ecx
sub eax, eax
and ecx, eax
ret
Function at 0x40a8e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, edx
push edi
mov dword [ebp - 4], ecx
push 0x403c3c
and byte [esi], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 8], eax
je 0x40a997
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403c28
push eax
call edi
mov ebx, eax
push 0x403c10
push dword [ebp - 8]
call edi
test ebx, ebx
mov dword [ebp - 0x10], eax
je 0x40a935
test eax, eax
je 0x40a935
push 1
pop edi
jmp 0x40a937
xor edi, edi
test edi, edi
mov dword [ebp - 0xc], 0x104
je 0x40a986
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 4]
call ebx
mov edi, eax
neg edi
sbb edi, edi
inc edi
je 0x40a986
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
lea eax, [ebp - 0x38]
push eax
call dword [ebp - 0x10]
cmp eax, 3
je 0x40a971
cmp eax, 4
je 0x40a971
xor edi, edi
jmp 0x40a986
push 1
pop edi
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll__mbsrchr]
pop ecx
test eax, eax
pop ecx
je 0x40a986
and byte [eax], 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x40aa8c
and byte [esi], 0
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x20019
push edi
push 0x403bd4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aa8c
lea eax, [ebp - 8]
mov ebx, 0x403bc8
push eax
lea eax, [ebp - 0xc]
push edi
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x40aa83
cmp dword [ebp - 0xc], 1
jne 0x40aa83
cmp dword [ebp - 8], 0x104
ja 0x40aa83
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
push 0
push ebx
push dword [ebp - 4]
call edi
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40aa1d
and byte [esi], 0
jmp 0x40aa8c
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 4
jb 0x40aa4c
lea ebx, [edi + esi]
push 0x403bc0
lea eax, [ebx - 4]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x40aa4c
and byte [ebx - 1], al
jmp 0x40aa8c
test edi, edi
je 0x40aa5c
cmp byte [edi + esi - 1], 0x5c
je 0x40aa5c
mov byte [edi + esi], 0x5c
inc edi
lea edx, [edi + esi]
mov edi, 0x403bbc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40aa8c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40da9f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x4018a8
lea ecx, [ebp - 4]
push esi
call fcn.00418aaa
push esi
lea ecx, [ebp - 0xc]
call fcn.00418aaa
lea ecx, [ebp - 8]
call sub.MFC42.DLL_CString::CString_2
call sub.MFC42.DLL_AfxGetModuleState
mov ebx, dword [eax + 4]
lea eax, [ebp - 4]
push eax
mov ecx, edi
call fcn.0040c4f2
test eax, eax
jne 0x40db07
push edi
lea ecx, [ebp - 0x14]
call sub.fpcutl.dll_Ordinal_94
xor esi, esi
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x14], 0x40196c
push 0x9932
lea ecx, [ebp - 0x14]
call sub.fpcutl.dll_Ordinal_1053
jmp 0x40dbe9
push dword [ebp - 4]
mov ecx, edi
push 0x404508
call fcn.0040dc08
test eax, eax
jne 0x40db48
mov eax, dword [ebp - 4]
xor esi, esi
cmp dword [eax - 8], esi
je 0x40db2b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea ecx, [ebp - 0x14]
call sub.fpcutl.dll_Ordinal_94
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x14], 0x40196c
push 0x9934
lea ecx, [ebp - 0x14]
jmp 0x40dafd
mov eax, dword [ebx + 0x13c]
cmp eax, 2
jne 0x40db73
mov eax, dword [edi + 0x1ac0]
push 1
push eax
lea ecx, [edi + 0x218]
push dword [ebp - 4]
call fcn.00416c08
cmp eax, 1
je 0x40db99
xor esi, esi
jmp 0x40dbe9
cmp eax, 1
jne 0x40db99
mov eax, dword [edi + 0x1ac0]
push esi
push esi
push eax
push dword [ebp - 4]
lea ecx, [edi + 0x22c]
call fcn.00416baf
test eax, eax
je 0x40db99
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebx + 0x13c], 3
jne 0x40dbd6
push 0x403b08
push 0x4044fc
mov ecx, ebx
call fcn.00415dab
push dword [ebp - 4]
mov ecx, ebx
push 0x4044f4
call fcn.00415dab
push dword [edi + 0x1ac0]
mov ecx, ebx
push 0x4044ec
call fcn.00415dab
jmp 0x40dbe6
mov eax, dword [ebp - 4]
cmp dword [eax - 8], 0
je 0x40dbe6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop esi
lea ecx, [ebp - 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 4]
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418487
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
lea eax, [ebp - 0x9c]
push esi
push eax
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor esi, esi
test eax, eax
je 0x4184bc
cmp dword [ebp - 0x8c], 2
jne 0x4184bc
push 1
pop eax
jmp 0x4184be
xor eax, eax
cmp eax, esi
mov dword [ebp - 8], 0x208
je 0x41851d
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x41836c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2a4]
push eax
push esi
push esi
push 0x4183c0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, 0x4183e0
lea ecx, [ebp - 0x2a4]
call fcn.00418580
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x41857c
lea eax, [ebp - 4]
push edi
push eax
push 0x20019
push esi
push 0x418428
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1a0]
push eax
push esi
push esi
push 0x418454
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edi, [ebp - 0x1a0]
or ecx, 0xffffffff
xor eax, eax
push 8
repne scasb al, byte es:[edi]
dec edi
pop ecx
mov esi, 0x418464
lea eax, [ebp - 0x1a0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
leave