joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d23e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, ecx
mov dword [ebp - 4], eax
jmp 0x41d23f2
add dword [ebp - 4], 4
mov eax, dword [ebp - 4]
cmp edx, dword [eax]
jne 0x41d23ee
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x41d2449
xor eax, eax
push ebp
push 0x41d2442
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d2449
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
ret
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41d6394
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41d6474
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x41d6488
mov eax, 0x41d6a90
call fcn.041a1e7c
lea eax, [ebp - 8]
mov edx, 0x41d6aac
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Sysutils_QuotedStr_qqrx17System_AnsiString
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x41d6ab8
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call sub.rtl60.bpl__System__LStrCat_qqrv
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x41d6acc
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x324]
mov eax, dword [eax + 0x2b4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, 0x41d6b08
mov eax, dword [ebx + 0x398]
call sub.RVeDataSearch.bpl__Vedatasearch_TVeDataSearch_SetFilterFileName_qqrx17System_AnsiString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d647b
lea eax, [ebp - 0x1c]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret
Function at 0x41dfdb0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x41dfdb9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x41dff86
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x390], edi
mov dword [esi + 0x394], ecx
cmp dword [esi + 0x390], 0
jle 0x41dff63
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [esi + 0x32c]
mov ecx, dword [eax]
call dword [ecx + 0x268]
mov eax, dword [esi + 0x32c]
call sub.dbrtl60.bpl__Db_TDataSet_Close_qqrv
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea ecx, [ebp - 0x14]
mov edx, 0x41dffa0
mov eax, dword [0x4199340]
call fcn.0419a330
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x32c]
mov eax, dword [eax + 0x2b4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [esi + 0x32c]
call sub.VEDatasets.bpl__Vedataset_TVEDataset_ParseSqlString_qqroiii
mov eax, dword [esi + 0x32c]
call sub.dbrtl60.bpl__Db_TDataSet_IsEmpty_qqrv
test al, al
je 0x41dff50
mov ecx, 0x40
mov edx, 0x41e00d8
mov eax, 0x41e0120
call sub.vegalib60.bpl__Strtools_Mess_qqr17System_AnsiStringt1i
jmp 0x41dff63
mov eax, dword [esi + 0x368]
mov edx, dword [eax]
call dword [edx + 0x58]
push eax
lea edx, [ebp - 0x18]
mov eax, dword [esi + 0x36c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [esi + 0x370]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [esi + 0x330]
mov edx, dword [eax]
call dword [edx + 0x58]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [esi + 0x384]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [esi + 0x334]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [esi + 0x33c]
mov edx, dword [eax]
call dword [edx + 0x58]
push eax
mov eax, dword [esi + 0x38c]
mov edx, dword [eax]
call dword [edx + 0x50]
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x28]
mov eax, dword [esi + 0x388]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [esi + 0x354]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [esi + 0x358]
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, eax
mov eax, esi
pop ecx
call fcn.041e014c
mov eax, dword [esi + 0x32c]
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
mov eax, dword [esi + 0x32c]
cmp byte [eax + 0xa1], 0
je 0x41dfe8e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dff8d
lea eax, [ebp - 0x2c]
mov edx, 6
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x41e9558
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41e9645
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
xor ecx, ecx
mov dl, 1
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_TVEDataset_]
call sub.VEDatasets.bpl__Vedataset_TVEDataset__bctr_qqrp18Classes_TComponent
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x41e9620
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x4204204]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x268]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x41e965c
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2b4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x2d4], 1
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x2d5], 1
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 0xc]
call sub.VEDatasets.bpl__Vedataset_TVEDataset_ParseSqlString_qqroiii
mov eax, dword [ebp - 0xc]
call sub.dbrtl60.bpl__Db_TDataSet_Close_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e9627
mov eax, dword [ebp - 0xc]
call sub.rtl60.bpl__System_TObject_Free_qqrv
ret
Function at 0x401f44
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x214
mov eax, dword [0x432040]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
xor edx, edx
mov byte [esp + ecx + 0x18], cl
push 0x2b
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x450ab0]
mov byte [esp + ecx + 0x118], al
inc ecx
cmp ecx, ebp
jl 0x401f65
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x18]
movzx eax, byte [esp + esi + 0x118]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x401fab
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + ebx + 0x18], dl
cmp esi, ebp
jl 0x401f88
mov ebx, edi
mov ebp, edi
inc edi
and edi, 0x800000ff
jns 0x401fd1
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x18]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x401fea
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
sub esp, 0x10
movaps xmm0, xmmword [0x42ed90]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movups xmmword [esp], xmm0
call fcn.0040f7e0
add esp, 0x10
fstp dword [esp + 0x14]
movss xmm1, dword [esp + 0x14]
call fcn.004023d8
push eax
call fcn.004047a7
movzx eax, byte [esp + edi + 0x1c]
add eax, esi
movzx eax, al
pop ecx
mov al, byte [esp + eax + 0x18]
xor byte [ebp + section..bss], al
inc ebp
cmp ebp, 0x1b600
jl 0x401fc0
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409173
add esp, 0x214
ret

Function at 0x40238e
Capabilities:
Create thread

Disassembly:
push ecx
call fcn.00402500
xor eax, eax
push eax
push eax
push eax
push 0x402236
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
ret
Function at 0x4111d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
push edi
push 0x431bfc
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 0x200
call esi
test eax, eax
jne 0x411235
lea eax, [ebp - 8]
push eax
push str.EnableJavaUpdate
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
call main
add esp, 0xc
test eax, eax
je 0x411227
cmp dword [ebp - 8], ebx
je 0x41122a
mov dword [ebp - 4], ebx
push dword [ebp - 0xc]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x411243
push str.ISAUDisabled__:_Error_opening_HKLM_Policy_key_for_reading
call main
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], edi
jne 0x4112d5
call fcn.00410107
test eax, eax
jne 0x4112d2
call main
test eax, eax
je 0x4112d2
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x431c74
push 0x80000001
call esi
test eax, eax
jne 0x4112d5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push 0x431c9c
push dword [ebp - 0xc]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp esi, edi
jne 0x4112d5
mov dword [ebp - 8], edi
call fcn.0040feb9
test eax, eax
je 0x4112c7
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.0040ff5d
mov eax, dword [ebp - 8]
add esp, 0x10
jmp 0x4112cd
mov eax, dword [ebp - 0x210]
cmp eax, 0x64
jne 0x4112d5
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x413fbf
pop dword [ebp - 0x14]
mov eax, 0x478d7eda
add eax, 0xb8b3c0e5
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x42be2
push 0
mov eax, 0x525ac1ef
add eax, 0xade80035
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x4c91
mov edi, eax
mov esi, 0x6b361e67
add esi, 0x950de999
add esi, dword [ebp - 0x14]
mov ebx, 0x7b57430e
add dword [ebp - 4], eax
mov edx, dword [esi]
xor edx, ebx
add dword [ebp - 8], esi
mov dword [edi], edx
xor dword [ebp - 0x10], esi
add edi, 0x6f75d007
sub edi, 0x6f75d003
add esi, 4
loop 0x414012
add eax, 0xb86f7184
sub eax, 0xb86e4c6d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6208eff9
add ecx, 0x9e371007
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x4187e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43a210]
jne 0x4187ee
repz ret
jmp fcn.00420617
Function at 0x416153
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416192
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416192
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416192
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416192
cmp dword [ecx + 0x74], 0xe
jbe 0x416192
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x428560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42858d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42858d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x8c508e5
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0xe22385c
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401775
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov al, byte [esi + 0x1b44]
test al, 1
jne 0x40181a
or al, 1
mov byte [esi + 0x1b44], al
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70]
push ebx
mov dword [esi + 0x1b48], eax
push edi
lea eax, [esi + 0x1b18]
push eax
mov dword [esi + 0x1b14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor edi, edi
push edi
push edi
push 1
push edi
call ebx
push edi
push edi
push 1
push edi
mov dword [esi + 0x1b40], eax
call ebx
mov dword [esi + 0x1b10], eax
cmp dword [esi + 0x1b40], edi
je 0x401812
cmp eax, edi
je 0x401812
cmp dword [ebp + 0x10], edi
je 0x401801
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push dword [ebp + 0x10]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1b0c], eax
cmp eax, edi
je 0x401812
push dword [ebp + 0x14]
push dword [esi + 0x1b0c]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
jmp 0x401818
push esi
call fcn.004016ba
pop edi
pop ebx
movzx eax, byte [esi + 0x1b44]
and eax, 1
pop esi
pop ebp
ret 0x10

Function at 0x401e8c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x401ec0
push esi
mov esi, dword [ebp + 8]
test byte [esi], 2
je 0x401ec0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x401eb0
push 0x50
push dword [ecx]
push eax
call fcn.00404d14
push 0
push 0
push esi
call dword [esi + 0x28]
xor eax, eax
inc eax
pop esi
pop ebp
ret 8
push 0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401f30
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x401f90
cmp dword [ebp + 0xc], 0
je 0x401f4c
push 0x7fffffff
push esi
call fcn.00401de6
push esi
call fcn.00401e58
mov eax, dword [esi + 0x3ba4]
test eax, eax
je 0x401f89
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401f7d
push 0
push dword [esi + 0x3ba4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x3ba4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop ebp
ret 8
Function at 0x401f95
Capabilities:
Create thread
Resume thread

Disassembly:
push 0x6c0
push 0x4053a8
call fcn.00404a94
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
push 0xfffffffffffffff4
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
call ebx
mov dword [ebp - 0x20], eax
mov esi, 0x32e
push esi
push edi
lea eax, [ebp - 0x3a0]
push eax
call fcn.00404d2d
lea eax, [esi - 4]
mov word [ebp - 0x398], ax
push esi
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0x6d0]
push eax
call fcn.00404d14
lea eax, [ebp - 0x398]
push eax
lea eax, [ebp - 0x6c8]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00404d44
mov dword [ebp - 0x3c], 0x405277
mov dword [ebp - 0x38], 0x405313
mov dword [ebp - 0x34], 0x40224a
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], esi
mov dword [esi], 0x237
mov dword [esi + 4], 6
cmp dword [ebp - 0x20], edi
je 0x402073
push 0xfffffffffffffff6
call ebx
cmp dword [ebp - 0x20], eax
jne 0x402073
mov dword [ebp - 0x24], 1
or byte [esi + 0x1bbc], 4
push 0x401c7b
call fcn.00403223
lea ecx, [ebp - 0x28]
push ecx
push 4
push esi
push eax
push edi
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x402073
and byte [esi + 0x1bbc], 0xfb
mov dword [ebp + 8], 0x401829
cmp dword [esi + 0x6c], 4
jne 0x402083
mov dword [ebp + 8], edi
lea ebx, [esi + 0x1bc8]
push 2
push edi
push ebx
push esi
call fcn.00401775
test eax, eax
je 0x4020fb
push 1
push dword [ebp + 8]
lea eax, [esi + 0x78]
push eax
push esi
call fcn.00401775
test eax, eax
je 0x4020fb
mov dword [ebp - 4], edi
cmp dword [ebp - 0x24], edi
jne 0x4020b9
push edi
push ebx
call fcn.00402429
cmp dword [ebp - 0x1c], edi
je 0x4020e1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x20]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4020f7
lea eax, [ebp - 0x70]
push eax
call fcn.00401d27
test eax, eax
jne 0x4020e1
jmp 0x4020f7
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x70]
push eax
call fcn.00404dc6
call fcn.0040159c
ret 4

Function at 0x402296
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 8]
push eax
push 0x401150
push 0x80000002
mov dword [ebp - 4], 0x80
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402312
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x4060c8
xor esi, esi
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push 0x20
pop ebx
jmp 0x4022ed
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call edi
test eax, eax
je 0x4022e0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4024bc
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push esi
push esi
push dword [ebp + 8]
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x40252b
cmp dword [ebp + 0x1c], esi
jne 0x4024fb
mov dword [ebx], 1
jmp 0x402520
push 0xffffffffffffffff
lea eax, [ebp - 8]
push esi
push eax
cmp edi, esi
je 0x40250a
push 2
jmp 0x40250c
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jne 0x402520
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402535
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x40253c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0x402314
mov edi, eax
call fcn.00403223
lea ecx, [ebp - 8]
push ecx
push 0
push dword [ebp + 8]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x402590
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
leave
ret 4

Function at 0x402598
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [0x406038], edi
jne 0x4025cb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x401254
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
inc eax
jmp 0x402653
push esi
mov esi, dword [ebp + 8]
push 0x4011c8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test edi, edi
je 0x4025e3
mov byte [esi + 0x29], 0
lea eax, [ebp - 4]
push eax
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402640
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40262b
push 0x4011a4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
je 0x402640
cmp dword [ebp - 8], 0
je 0x40264b
test edi, edi
jne 0x402650
mov edi, 0x40123c
jmp 0x4025cf
xor eax, eax
inc eax
jmp 0x402652
xor eax, eax
pop esi
pop edi
leave
ret 8