joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f0d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43f103
push esi
call fcn.004421c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43f0fc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43f189
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f172
mov eax, dword [esi + 8]
test eax, eax
je 0x43f127
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43f16e
cmp eax, 2
je 0x43f172
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43f11a
cmp eax, 3
je 0x43f14d
cmp eax, 1
jne 0x43f11a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43f11a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43f11a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f1b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f198
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f1b0
add esp, 4
pop esi
ret

Function at 0x4669ec
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x466a24
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00464aa3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00464a7b
jmp 0x466a30
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4680de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x468120
call fcn.0046ddcd
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x468120
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x468117
xor eax, eax
jmp 0x468128
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046812e
pop edi
pop esi
pop ebx
ret 4

Function at 0x46e2fd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46e32b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e349
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046e263
jmp 0x46e349
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46e349
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046e263
test edi, edi
mov eax, edi
jne 0x46e333
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x431003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x1946056e
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5c8a4fa4
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x558db4
push eax
push dword fs:[0]
push ebp
add byte [eax + 0x64], dl
push dword [0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xe7
mov dword [0x98c0ec09], eax
mov eax, dword [0xf6a8b15c]
jecxz 0x401003
xor dword [ecx], ecx
iretd
ljmp 0x2bdb:0xc41a7522
jne 0x40109c
invalid
mov ch, byte [edx + 0x477bf67f]
jle 0x4010d4
salc
rcr cl, 1
cwde
add al, 0x60
sub byte [ecx + 0x485b75a6], bh
adc byte [eax], cl
xor eax, 0x4156615a
clc
or edi, dword [esi + 0x54]
xchg byte [ebx + 0x456a3141], bl
adc dword [edx + 0x30], ecx
jno 0x401110
sbb ebx, edi
cmp al, 0x6e
jae 0x40107e
out dx, al
aad 0x69
sub dword [edi + 0x33], ebx
retf
push ebp
mov cs, edx
mov bl, byte [edx + 0x3812e7a7]
adc eax, 0x31bdc80d
movsd dword es:[edi], dword [esi]
fild qword [eax]
add ch, al
cmpsd dword [esi], dword es:[edi]
dec eax
ret
Function at 0x49df71
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0049dff0
jae 0x49df7d
xor ecx, ecx
call fcn.0049dff0
jae 0x49dfa7
xor eax, eax
call fcn.0049dff0
jae 0x49dfb8
mov al, 0x10
call fcn.0049dff0
adc al, al
jae 0x49df99
jne 0x49dfe5
stosb byte es:[edi], al
jmp 0x49df7e
call fcn.0049dffc
dec ecx
loop 0x49dfc4
mov eax, ebp
call fcn.0049dffa
jmp 0x49dfe6
lodsb al, byte [esi]
shr eax, 1
je 0x49e00c
adc ecx, 2
mov ebp, eax
jmp 0x49dfe6
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0049dffa
cmp eax, 0x7d00
jae 0x49dfe4
cmp eax, 0x500
jae 0x49dfe5
cmp eax, 0x7f
ja 0x49dfe6
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x49df7e
pop ebp
ret 8
Function at 0x407924
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x407ab4
lea eax, [ebp - 4]
push eax
push 0x412508
push 1
push ebx
push 0x412388
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x407aae
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x4127e8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x407aa5
push esi
lea eax, [ebp - 0x418]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
call fcn.004078dd
pop ecx
mov esi, eax
mov eax, dword [ebp - 4]
pop ecx
lea edx, [ebp - 0x210]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004078dd
pop ecx
mov esi, eax
mov eax, dword [ebp - 4]
pop ecx
lea edx, [ebp - 0x210]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004078dd
mov esi, eax
push esi
call fcn.0040cda6
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ecx]
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
call dword [edx + 0x44]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004078dd
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004078dd
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040cda6
mov ecx, dword [ebp - 4]
add esp, 0x14
and eax, 7
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x3c]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004078dd
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040cda6
add esp, 0xc
cmp al, bl
je 0x407a62
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x34]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004078dd
mov eax, dword [ebp - 4]
pop ecx
pop ecx
lea edx, [ebp - 0x210]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x2c]
push dword [ebp + 8]
call fcn.0040c38e
mov eax, dword [ebp - 8]
pop ecx
lea edx, [ebp - 0x418]
push ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop ebx
leave
ret
Function at 0x408098
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [0x4177dc], esi
je 0x408213
cmp dword [ebp + 0x1c], esi
je 0x4080d2
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x1c]
push eax
mov eax, dword [ebp + 8]
push esi
push 6
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [eax*4 + 0x414030]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x4080ec
lea eax, [ebp + 0x1c]
push eax
mov eax, dword [ebp + 8]
push 0x1f
push esi
push dword [ebp + 0x10]
push dword [eax*4 + 0x414030]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x408234
mov esi, dword [ebp + 0x18]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
mov ebx, eax
inc ebx
cmp dword [ebp + 0xc], 3
jne 0x408119
push esi
call fcn.0040cd1b
pop ecx
mov dword [esi], eax
push 4
pop ebx
jmp 0x408140
cmp dword [ebp + 0xc], 2
jne 0x40816a
mov eax, dword [ebp + 0x18]
xor ebx, ebx
cmp byte [eax], bl
je 0x40813d
push esi
call edi
push esi
lea ebx, [ebx + eax + 1]
call edi
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x408128
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push dword [eax*4 + 0x414044]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
jmp 0x408234
cmp dword [ebp + 0xc], 4
jne 0x408140
xor ebx, ebx
mov edi, esi
and byte [ebp + 0x1b], bl
cmp byte [esi], bl
mov dword [ebp + 0x10], ebx
mov dword [ebp + 8], esi
je 0x408140
movsx eax, byte [edi]
push eax
call fcn.0040cdb1
mov byte [edi], al
cmp dword [0x41520c], 1
pop ecx
jle 0x4081a5
movsx eax, al
push 4
push eax
call fcn.0040cc28
pop ecx
pop ecx
jmp 0x4081b4
mov ecx, dword [str.________________________________H]
movsx eax, al
mov al, byte [ecx + eax*2]
and eax, 4
test eax, eax
jne 0x4081c2
mov al, byte [edi]
cmp al, 0x41
jl 0x408204
cmp al, 0x46
jg 0x408204
cmp dword [ebp + 0x10], 0
mov al, byte [edi]
je 0x4081f0
cmp al, 0x39
movsx eax, al
jg 0x4081d6
sub eax, 0x30
jmp 0x4081d9
sub eax, 0x37
mov cl, byte [ebp + 0x1b]
shl cl, 4
or cl, al
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
inc ebx
and dword [ebp + 0x10], 0
mov byte [eax], cl
jmp 0x408204
cmp al, 0x39
jg 0x4081f8
sub al, 0x30
jmp 0x4081fa
sub al, 0x37
mov byte [ebp + 0x1b], al
mov dword [ebp + 0x10], 1
inc edi
cmp byte [edi], 0
jne 0x408181
jmp 0x408140
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
jne 0x408234
cmp dword [ebp + 8], esi
jne 0x408234
push esi
push dword [ebp + 0x18]
push 1
push dword [ebp + 0x10]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
pop esi
pop ebp
ret
Function at 0x40a186
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
xor ebx, ebx
cmp dword [0x417820], ebx
push esi
push edi
je 0x40a384
lea eax, [ebp - 4]
push eax
push 0x1f
push ebx
push dword [0x414058]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a384
lea eax, [ebp - 0xc]
mov esi, 0x100
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a37b
cmp dword [ebp - 8], 1
push 4
pop edi
jne 0x40a204
lea eax, [ebp - 0x10c]
push eax
call fcn.0040cda6
pop ecx
jmp 0x40a222
cmp dword [ebp - 8], edi
je 0x40a21c
cmp dword [ebp - 8], 3
jne 0x40a37b
cmp dword [ebp - 0xc], edi
jne 0x40a37b
mov eax, dword [ebp - 0x10c]
cmp eax, ebx
jle 0x40a37b
cmp dword [0x4178a8], ebx
je 0x40a235
dec eax
jmp 0x40a238
sub eax, dword [ebp + 0x10]
cmp eax, ebx
jge 0x40a240
xor eax, eax
cmp eax, ebx
jne 0x40a355
lea eax, [ebp - 0x20c]
push esi
push eax
push 0x26
push dword [0x417bb0]
call fcn.0040b2b1
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push dword [0x41788c]
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x20c]
push esi
push eax
push 0x27
push dword [0x417bb0]
call fcn.0040b2b1
add esp, 0x2c
lea eax, [ebp - 0x20c]
push eax
push dword [0x41788c]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x417840], ebx
mov esi, 0x3ed
jne 0x40a33c
cmp dword [0x417cb0], ebx
jne 0x40a33c
cmp dword [0x417868], ebx
je 0x40a2c5
mov edi, esi
jmp 0x40a33f
cmp dword [0x417bac], ebx
je 0x40a2db
push 0x19
push dword [0x4177b8]
call dword [sym.imp.USER32.dll_KillTimer]
push ebx
push sym.UNWISE32.EXE__SharedDlg_16
push dword [0x4177b8]
push 0x68
push dword [0x417bb0]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [0x417bac], ebx
mov edi, eax
je 0x40a313
push ebx
push 0x96
push 0x19
push dword [0x4177b8]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
pop eax
cmp edi, eax
jne 0x40a31f
mov dword [0x417cb0], eax
cmp edi, 0x3ef
jne 0x40a32e
mov edi, esi
mov dword [0x417868], eax
push dword [0x4177b8]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x40a33f
push 7
pop edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor eax, eax
cmp edi, esi
sete al
inc eax
jmp 0x40a386
cmp eax, 1
jl 0x40a37b
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push edi
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
pop eax
jmp 0x40a386
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a38b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x2a
push edi
call fcn.0040c3d7
pop ecx
test eax, eax
pop ecx
jne 0x40a3e0
push 0x3f
push edi
call fcn.0040c3d7
pop ecx
test eax, eax
pop ecx
jne 0x40a3e0
push edi
call fcn.0040a4fc
cmp dword [ebp + 0x10], 0
pop ecx
je 0x40a4f4
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x40a4f4
push edi
push eax
call fcn.0040ba43
pop ecx
jmp 0x40a4f3
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
cmp eax, 3
jl 0x40a464
lea eax, [eax + edi - 3]
push 0x4146f8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40a464
push edi
call esi
cmp eax, 4
jl 0x40a45d
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x104]
push eax
push edi
call ebx
test eax, eax
je 0x40a45d
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push eax
push edi
call ebx
test eax, eax
je 0x40a45d
push dword [0x417870]
push edi
call ebx
test eax, eax
jne 0x40a464
xor eax, eax
jmp 0x40a4f7
lea eax, [ebp - 0x104]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call edi
lea eax, [ebp - 0x104]
push eax
call esi
lea esi, [ebp + eax - 0x105]
lea eax, [ebp - 0x104]
cmp esi, eax
jbe 0x40a496
cmp byte [esi], 0x5c
je 0x40a49b
dec esi
jmp 0x40a484
cmp byte [esi], 0x5c
jne 0x40a49c
inc esi
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x104]
push 7
push eax
call fcn.0040adf2
add esp, 0xc
test eax, eax
jne 0x40a4e7
test byte [ebp - 0x24c], 0x10
jne 0x40a4d8
lea eax, [ebp - 0x34c]
push eax
push esi
call edi
lea eax, [ebp - 0x104]
push eax
call fcn.0040a4fc
pop ecx
lea eax, [ebp - 0x34c]
push eax
call fcn.0040ae34
pop ecx
jmp 0x40a4b4
lea eax, [ebp - 0x34c]
push eax
call fcn.0040ae71
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a58c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x558
push ebx
push esi
push edi
lea eax, [ebp - 0x358]
push 0x104
push eax
call fcn.0040cab4
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
push dword [ebp + 8]
push dword [0x41788c]
call esi
mov ebx, dword [ebp + 0xc]
push ebx
push dword [0x41788c]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x41788c]
push 0x3ef
push dword [0x4177b8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00409f9a
push dword [0x41788c]
call fcn.004096cc
add esp, 0xc
lea eax, [ebp - 0x154]
push ebx
push eax
call esi
lea eax, [ebp - 0x154]
push eax
call fcn.0040bc53
pop ecx
lea ecx, [ebp - 0x154]
cmp eax, ecx
jbe 0x40a61c
and byte [eax - 1], 0
xor edi, edi
lea eax, [ebp - 0x154]
push edi
push eax
call fcn.0040ae88
lea eax, [ebp - 0x154]
push eax
call fcn.0040ca2e
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + ebx - 3]
cmp eax, ebx
jae 0x40a64b
mov eax, ebx
push 0x4141f4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
push ebx
jne 0x40a6e3
lea eax, [ebp - 0x254]
push eax
call esi
lea eax, [ebp - 0x254]
push edi
push eax
call fcn.0040ae88
push 0x44
lea eax, [ebp - 0x54]
pop esi
push esi
push edi
push eax
call fcn.0040cbd0
add esp, 0x14
cmp dword [ebp + 0x10], edi
lea eax, [ebp - 0x254]
mov dword [ebp - 0x54], esi
push eax
je 0x40a69d
push str._s__REGSERVER
jmp 0x40a6a2
push str._s__UNREGSERVER
lea eax, [ebp - 0x558]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x558]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40a75e
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40a75e
call fcn.0040b03d
test eax, eax
pop ecx
je 0x40a75e
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.OLE32.DLL
call edi
test eax, eax
mov dword [ebp + 8], eax
je 0x40a75e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OleInitialize
push eax
call esi
test eax, eax
je 0x40a745
push 0
call eax
test eax, eax
jne 0x40a745
push ebx
call edi
mov edi, eax
test edi, edi
je 0x40a745
cmp dword [ebp + 0x10], 0
mov eax, str.DllRegisterServer
jne 0x40a734
mov eax, str.DllUnregisterServer
push eax
push edi
call esi
test eax, eax
je 0x40a73e
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.OleUninitialize
push dword [ebp + 8]
call esi
test eax, eax
je 0x40a755
call eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x358]
push eax
call fcn.0040ca2e
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a770
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x4177dc], esi
je 0x40a970
lea eax, [ebp - 4]
mov edi, str.SoftwareBorlandDatabase_Engine
push eax
push 0x1f
push esi
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a970
lea eax, [ebp - 8]
mov ebx, 0x100
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, str.UseCount
mov dword [ebp - 8], ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a967
cmp dword [ebp - 0xc], 1
jne 0x40a7ee
lea eax, [ebp - 0x110]
push eax
call fcn.0040cda6
pop ecx
jmp 0x40a80e
cmp dword [ebp - 0xc], 4
je 0x40a808
cmp dword [ebp - 0xc], 3
jne 0x40a970
cmp dword [ebp - 8], 4
jne 0x40a970
mov eax, dword [ebp - 0x110]
cmp eax, 1
jne 0x40a92a
push 0
push str.IB_Server
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40a878
lea eax, [ebp - 0x310]
push ebx
push eax
push 0x1c
push dword [0x417bb0]
call fcn.0040b2b1
lea eax, [ebp - 0x210]
push ebx
push eax
push 0x19
push dword [0x417bb0]
call fcn.0040b2b1
add esp, 0x20
lea eax, [ebp - 0x210]
push 2
push eax
lea eax, [ebp - 0x310]
push eax
push dword [0x4177b8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 3
je 0x40a882
jmp 0x40a87b
push 5
pop eax
cmp eax, 5
je 0x40a88a
jmp 0x40a817
push 1
pop eax
jmp 0x40a972
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push 2
push edi
call fcn.0040a977
push 2
push str.SoftwareBorlandBLW32
call fcn.0040a977
add esp, 0x10
lea eax, [ebp - 4]
mov edi, str.SoftwareBorland
push eax
push 0x1f
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a970
push eax
push eax
push eax
lea ecx, [ebp - 8]
push eax
push ecx
lea ecx, [ebp - 0x110]
push ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x40a923
mov dword [ebp - 8], ebx
xor ebx, ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call esi
cmp dword [ebp - 0x10], ebx
je 0x40a970
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40a970
push dword [ebp - 4]
call esi
jmp 0x40a970
jle 0x40a970
dec eax
push eax
lea eax, [ebp - 0x110]
push 0x4144f8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x110]
push eax
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a977
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x190]
push 0x41410c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [0x4177dc], ebx
lea esi, [ebp + eax - 0x18f]
je 0x40aa1e
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0xc]
push 0x1f
push ebx
push dword [ebp + 8]
push dword [eax*4 + 0x414030]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aa4b
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
push esi
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 0xc]
mov esi, eax
call edi
cmp esi, ebx
jne 0x40aa4b
push dword [ebp + 0xc]
lea eax, [ebp - 0x190]
push eax
call fcn.0040a977
pop ecx
pop ecx
jmp 0x40aa52
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40aa4b
push 0x100
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 8]
mov esi, eax
jmp 0x40aa05
mov dword [ebp - 4], 0x800
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x800
jl 0x40a98e
cmp dword [0x4177dc], ebx
pop edi
pop esi
pop ebx
push dword [ebp + 8]
je 0x40aa7c
mov eax, dword [ebp + 0xc]
push dword [eax*4 + 0x414030]
jmp 0x40aa81
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
leave
ret

Function at 0x40aaf5
Capabilities:
Delete directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0
push edi
call fcn.0040adcf
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [0x417820], 0
je 0x40ab31
test esi, esi
jne 0x40ab31
mov eax, dword [0x417cac]
test eax, eax
je 0x40ab31
push esi
push edi
push 1
push 0x10
call eax
mov eax, esi
pop edi
pop esi
ret