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

Disassembly:
push 0xffffffffffffffff
push 0x426ffc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [0x432858]
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x224], 0
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x234], 3
call fcn.00403240
test eax, eax
jne 0x403134
lea ecx, [esp + 8]
mov byte [esp + 0x224], 2
call fcn.0041c8a7
lea ecx, [esp + 0x10]
mov byte [esp + 0x224], 1
call fcn.0041c8a7
lea ecx, [esp + 4]
mov byte [esp + 0x224], 0
call fcn.0041c8a7
lea ecx, [esp + 0xc]
mov dword [esp + 0x224], 0xffffffff
call fcn.0041c8a7
xor eax, eax
pop esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
add esp, 0x224
ret
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
push 0x432488
lea edx, [esp + 0x28]
push 0x432474
push edx
call fcn.0040d02f
add esp, 0x1c
lea eax, [esp + 0x14]
push 0
push 0
push eax
push 0x43231c
push 0
push 0
call dword [sym.imp.shell32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x40318c
push 0
push 0
push 0x4323dc
mov ecx, esi
call fcn.0041e674
push 0x1f4
call dword [sym.imp.kernel32.dll_Sleep]
lea ecx, [esp + 0x10]
call fcn.0041c832
lea ecx, [esp + 0xc]
call fcn.0041c832
lea ecx, [esp + 4]
call fcn.0041c832
lea ecx, [esp + 8]
call fcn.0041c832
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00403240
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x224], 2
call fcn.0041c8a7
lea ecx, [esp + 0x10]
mov byte [esp + 0x224], 1
call fcn.0041c8a7
lea ecx, [esp + 4]
mov byte [esp + 0x224], 0
call fcn.0041c8a7
lea ecx, [esp + 0xc]
mov dword [esp + 0x224], 0xffffffff
call fcn.0041c8a7
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x224
ret
Function at 0x41222d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x433db0
cmp edx, dword [eax]
je 0x41224f
add eax, 8
inc ecx
cmp eax, 0x433e40
jl 0x412240
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x433db0]
jne 0x41237d
mov eax, dword [0x436b2c]
cmp eax, 1
je 0x412357
test eax, eax
jne 0x412280
cmp dword [0x433434], 1
je 0x412357
cmp edx, 0xfc
je 0x41237d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4122b7
lea eax, [ebp - 0x1a4]
push 0x42b288
push eax
call fcn.00412380
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00412470
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4122fa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412470
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42b284
push edi
call fcn.00414ee0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x42b268
push eax
call fcn.00412380
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00412390
lea eax, [ebp - 0xa0]
push 0x42b264
push eax
call fcn.00412390
push dword [esi + 0x433db4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00412390
push 0x12010
lea eax, [ebp - 0xa0]
push 0x42b23c
push eax
call fcn.00414e49
add esp, 0x2c
pop edi
jmp 0x41237d
lea eax, [ebp + 8]
lea esi, [esi + 0x433db4]
push 0
push eax
push dword [esi]
call fcn.00412470
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret
Function at 0x419d80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.gdi32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040f600
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x419e4b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.user32.dll_GetWindowTextA]
test eax, eax
je 0x419e4b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x419dfe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x419e09
or bh, 8
and edi, 0x8000000
je 0x419e24
mov eax, dword [0x4382dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.gdi32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.user32.dll_DrawTextA]
test edi, edi
je 0x419e4b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.gdi32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41a24b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41a26f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41a28a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.user32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.gdi32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.user32.dll_ReleaseDC]
push ebp
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41f041
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 0x41f083
call fcn.00423d7a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x41f083
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x41f07a
xor eax, eax
jmp 0x41f08b
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041f091
pop edi
pop esi
pop ebx
ret 4

Function at 0x424539
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 0x424567
push dword [esi]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x424585
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042449f
jmp 0x424585
mov eax, dword [esi + 0x14]
test eax, eax
je 0x424585
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042449f
test edi, edi
mov eax, edi
jne 0x42456f
pop edi
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x448611
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x44862e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x44861f
add dl, dl
jne 0x448639
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x448685
xor eax, eax
add dl, dl
jne 0x448646
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x448722
add dl, dl
jne 0x448655
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x448660
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x44866b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x448676
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x448680
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x448625
mov eax, 1
add dl, dl
jne 0x448693
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x44869e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x44868a
sub eax, 2
jne 0x4486cd
mov ecx, 1
add dl, dl
jne 0x4486b3
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4486be
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4486aa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x448625
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4486e4
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4486ef
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4486db
cmp eax, 0x7d00
jae 0x448712
cmp eax, 0x500
jb 0x44870d
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x448625
cmp eax, 0x7f
ja 0x448715
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x448625
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x44873e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x448625
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x4144de
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420044]
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.0040c83f
and dword [ebp - 0x14], 0
cmp dword [0x4225d8], 0
mov dword [ebp - 0x18], eax
jne 0x414591
push 0x41b314
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414639
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41b308
push ebx
call edi
test eax, eax
je 0x414639
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x41b2f8
push ebx
mov dword [0x4225d8], eax
call edi
push eax
call esi
push 0x41b2e4
push ebx
mov dword [0x4225dc], eax
call edi
push eax
call esi
push 0x41b2c8
push ebx
mov dword [0x4225e0], eax
call edi
push eax
call esi
mov dword [0x4225e8], eax
test eax, eax
je 0x414591
push 0x41b2b0
push ebx
call edi
push eax
call esi
mov dword [0x4225e4], eax
mov eax, dword [0x4225e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4145ea
cmp dword [0x4225e8], ecx
je 0x4145ea
push eax
call esi
push dword [0x4225e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4145ea
test ebx, ebx
je 0x4145ea
call edi
test eax, eax
je 0x4145e1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4145e1
test byte [ebp - 8], 1
jne 0x4145ea
or dword [ebp + 0x10], 0x200000
jmp 0x41461d
mov eax, dword [0x4225dc]
cmp eax, dword [ebp - 0x18]
je 0x41461d
push eax
call esi
test eax, eax
je 0x41461d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41461d
mov eax, dword [0x4225e0]
cmp eax, dword [ebp - 0x18]
je 0x41461d
push eax
call esi
test eax, eax
je 0x41461d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4225d8]
call esi
test eax, eax
je 0x414639
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41463b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a7df
leave
ret

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

Disassembly:
pushal
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x54a12b]
shl eax, 2
mov dword [0x54a12f], eax
push edi
push ecx
xor eax, eax
mov edi, 0x564fd4
mov ecx, 0x591424
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push 0
call fcn.0053a02b
pop ecx
push 0x54a0f4
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x54a133], eax
push 0
jmp fcn.00547144
Function at 0x403de6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
xor eax, eax
mov al, byte [ebx + 0x64c]
cmp eax, 1
jne 0x403e00
lea eax, [ebx + 4]
jmp 0x403e40
cmp eax, 2
jne 0x403e3c
xor eax, eax
mov al, byte [ebx + 0x64d]
cmp eax, 1
jne 0x403e17
lea eax, [ebx + 4]
jmp 0x403e40
cmp eax, 2
jne 0x403e23
mov eax, 0x54aa9a
jmp 0x403e40
push 0x20
lea esi, [ebx + 4]
push esi
call fcn.005396bd
add esp, 8
test eax, eax
jne 0x403e39
mov eax, esi
jmp 0x403e40
inc eax
jmp 0x403e40
xor eax, eax
jmp 0x403e9b
push str.mirc.ini
push 0x3e7
push 0x57c4a0
push 0x54aaab
push eax
push 0x54aaa4
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x54aaaf
push 0x57c4a0
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x403e79
xor eax, eax
jmp 0x403e9b
push 0x54aab4
push 0x57c4a0
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x403e96
mov eax, 1
jmp 0x403e9b
mov eax, 2
pop esi
pop ebx
pop ebp
ret 4

Function at 0x406740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
push 0x180
push dword [ebp + 8]
call sub.KERNEL32.dll_GetWindowsDirectoryA
test eax, eax
jne 0x406765
xor eax, eax
jmp 0x40688c
push str.msagentchars_
push dword [ebp + 8]
call fcn.005394dc
add esp, 8
push 2
push dword [ebp + 8]
call fcn.0041c947
test eax, eax
jne 0x40678a
xor eax, eax
jmp 0x40688c
xor edi, edi
xor eax, eax
mov dword [ebp - 4], eax
mov byte [ebx], 0
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x3e7
push 0
push 0
push 0
lea edx, [edi + 1]
push edx
push ebx
push str..acs
push dword [ebp + 8]
call fcn.00472aa8
cmp byte [ebx], 0
je 0x406871
test eax, eax
jle 0x406871
inc edi
push 0x572713
push 0x572613
push 0x572513
push 0x572510
push ebx
call fcn.0053e8e0
add esp, 0x14
push esi
push edi
mov esi, ebx
mov edi, 0x572613
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x572713
push ebx
call fcn.005394dc
add esp, 8
push ebx
call fcn.00541e38
pop ecx
test esi, esi
jle 0x40679e
cmp dword [ebp + 0x10], 0
je 0x406868
cmp esi, 0x270f
jne 0x406868
push dword [ebp + 0x10]
push ebx
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x406869
mov dword [ebp - 4], 1
xor esi, esi
jmp 0x406869
dec esi
test esi, esi
jg 0x40679e
push 0
call sub.KERNEL32.dll_SetErrorMode
cmp esi, 0x270f
jne 0x40688a
cmp dword [ebp - 4], 0
jne 0x40688a
xor eax, eax
jmp 0x40688c
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10
Function at 0x40c920
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 8]
push edx
push 0
push 0x20006
push 0
push 0x54b03e
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallmIRC
push 0x80000002
call sub.ADVAPI32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
je 0x40c95c
xor eax, eax
jmp 0x40c98c
push esi
call fcn.005395b8
pop ecx
inc eax
push eax
push esi
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegSetValueExA
mov ebx, eax
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegCloseKey
test ebx, ebx
je 0x40c987
xor eax, eax
jmp 0x40c98c
mov eax, 1
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x40c994
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [ebp + 0xc]
cmp eax, 3
jne 0x40c9b8
lea eax, [ebp - 4]
push eax
push str.SoftwareClasses
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyA
mov ebx, eax
jmp 0x40ca00
cmp eax, 2
jne 0x40c9d4
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyA
mov ebx, eax
jmp 0x40ca00
dec eax
jne 0x40c9ee
lea eax, [ebp - 4]
push eax
push str.Software
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyA
mov ebx, eax
jmp 0x40ca00
lea eax, [ebp - 4]
push eax
push 0
push 0x80000000
call sub.ADVAPI32.dll_RegOpenKeyA
mov ebx, eax
test ebx, ebx
je 0x40ca08
xor eax, eax
jmp 0x40ca2a
push dword [ebp + 8]
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegDeleteKeyA
mov ebx, eax
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
test ebx, ebx
je 0x40ca25
xor eax, eax
jmp 0x40ca2a
mov eax, 1
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x40ca30
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
call fcn.005394dc
add esp, 8
lea eax, [ebp - 0x140]
push eax
push ebx
call sub.KERNEL32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ca66
mov edi, 1
jmp 0x40ca68
xor edi, edi
push ebx
call fcn.005395b8
pop ecx
push eax
push dword [ebp + 0xc]
call fcn.005395b8
pop ecx
pop edx
sub edx, eax
mov byte [ebx + edx], 0
test edi, edi
jne 0x40cb25
test byte [ebp - 0x140], 0x10
je 0x40caa9
lea eax, [ebp - 0x140]
push eax
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x40ca80
mov edi, 1
jmp 0x40ca80
push esi
push edi
mov esi, 0x579058
mov edi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
lea eax, [ebp - 0x114]
push eax
push 0x579058
call fcn.005394dc
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x40cb07
push 0
push 0
push 0x579058
mov edx, dword [ebp + 0x10]
push dword [edx]
call fcn.004b0c4c
test eax, eax
je 0x40cb07
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea eax, [ebp - 0x140]
push eax
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x40cb1d
mov edi, 1
test edi, edi
je 0x40ca88
cmp esi, 0xffffffff
je 0x40cb30
push esi
call sub.KERNEL32.dll_FindClose
push 0x54b091
push ebx
call fcn.005394dc
add esp, 8
lea eax, [ebp - 0x140]
push eax
push ebx
call sub.KERNEL32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x40cb59
mov edi, 1
jmp 0x40cb5b
xor edi, edi
push ebx
call fcn.005395b8
pop ecx
mov byte [ebx + eax - 3], 0
test edi, edi
jne 0x40cc13
test byte [ebp - 0x140], 0x10
je 0x40cbf5
xor eax, eax
mov al, byte [ebp - 0x114]
cmp eax, 0x2e
je 0x40cbf5
lea edx, [ebp - 0x114]
push edx
push ebx
call fcn.005394dc
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x40cbb3
push 0
push 0
push ebx
mov ecx, dword [ebp + 0x14]
push dword [ecx]
call fcn.004b0c4c
test eax, eax
je 0x40cbb3
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
push 0x54b096
push ebx
call fcn.005394dc
add esp, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040ca30
push 0x5c
push ebx
call fcn.005396c9
add esp, 8
test eax, eax
je 0x40cbf5
mov byte [eax], 0
push 0x5c
push ebx
call fcn.005396c9
add esp, 8
test eax, eax
je 0x40cbf5
inc eax
mov byte [eax], 0
lea eax, [ebp - 0x140]
push eax
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x40cc0b
mov edi, 1
test edi, edi
je 0x40cb6f
cmp esi, 0xffffffff
je 0x40cc1e
push esi
call sub.KERNEL32.dll_FindClose
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40cd61
Capabilities:
Delete file
Get common file path

Disassembly:
add esp, 0xfffffaa4
xor eax, eax
mov dword [esp], eax
lea edx, [esp + 4]
push edx
push 0
push dword [0x55b3c8]
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jl 0x40cf12
cmp dword [esp + 4], 0
je 0x40cf12
lea ecx, [esp + 0x354]
push ecx
push dword [esp + 8]
call sub.SHELL32.dll_SHGetPathFromIDListA
test eax, eax
jl 0x40cf12
lea eax, [esp + 0x354]
push eax
call fcn.005395b8
pop ecx
cmp eax, 1
jle 0x40cde0
xor edx, edx
mov dl, byte [esp + eax + 0x353]
cmp edx, 0x5c
je 0x40cde0
push 0x54b0c2
lea ecx, [esp + 0x358]
push ecx
call fcn.005394dc
add esp, 8
push str.mIRC32.lnk
lea eax, [esp + 0x358]
push eax
call fcn.005394dc
add esp, 8
push esp
push 0x5610f4
push 1
push 0
push 0x561004
call sub.OLE32.dll_CoCreateInstance
test eax, eax
jl 0x40cf12
lea edx, [esp + 8]
push edx
push 0x561ac4
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jge 0x40ce36
mov edx, dword [esp]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
jmp 0x40cf12
push 0x104
lea eax, [esp + 0x150]
push eax
push 0xffffffffffffffff
lea edx, [esp + 0x360]
push edx
push 0
push 0
call sub.KERNEL32.dll_MultiByteToWideChar
push 0
lea ecx, [esp + 0x150]
push ecx
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jge 0x40ce86
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, dword [esp]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
jmp 0x40cf12
push 0
lea eax, [esp + 0x10]
push eax
push 0x104
lea edx, [esp + 0x464]
push edx
mov ecx, dword [esp + 0x10]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jge 0x40cebd
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
jmp 0x40cf12
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, dword [esp]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
push 0x57c887
push 0x553318
push 0x54b0d1
push 0x57c4a0
call sub.USER32.dll_wsprintfA
add esp, 0x10
lea eax, [esp + 0x458]
push eax
push 0x57c4a0
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x40cf12
lea edx, [esp + 0x354]
push edx
call sub.KERNEL32.dll_DeleteFileA
add esp, 0x55c
ret