joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409b18
Capabilities:
Set file attributes

Disassembly:
mov edx, 0x40c7e6
mov eax, 0x41b708
call fcn.00406fb8
mov dword [0x41b6f0], eax
test eax, eax
jne 0x409b81
push 0
push 0x41b708
call sub.KERNEL32.DLL_SetFileAttributesA
mov edx, 0x40c7e6
mov eax, 0x41b708
call fcn.00406fb8
mov dword [0x41b6f0], eax
test eax, eax
jne 0x409b81
mov eax, 0x40d584
mov edx, 9
call fcn.00406cd0
push 0x41b708
mov eax, 0x6e
call fcn.00402b40
push eax
call fcn.00403108
add esp, 8
mov eax, 1
ret
xor eax, eax
ret

Function at 0x409d28
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
cmp dword [0x40efcc], 0
jg 0x409d46
dec dword [0x40efcc]
xor eax, eax
mov dword [0x41b604], eax
or eax, 0xffffffff
pop esi
pop ebx
ret
cmp dword [0x41b604], 0
jg 0x409d9b
push dword [0x41b620]
mov ecx, 0x2000
mov edx, 1
mov eax, dword [0x41b5fc]
call fcn.00407060
mov dword [0x41b604], eax
test eax, eax
jne 0x409d80
xor edx, edx
or eax, 0xffffffff
mov dword [0x41b604], edx
pop esi
pop ebx
ret
add dword [0x41b628], 0x2000
mov edx, dword [0x41b5fc]
mov dword [0x41b600], edx
call fcn.00409be0
mov ecx, dword [0x40f5f0]
test byte [ecx + 0x14], 1
je 0x409dd2
mov esi, dword [0x41b604]
mov ebx, dword [0x41b600]
jmp 0x409dc9
call fcn.0040b060
xor byte [ebx], al
mov al, byte [ebx]
and eax, 0xff
call fcn.0040b084
inc ebx
mov edx, esi
add esi, 0xffffffff
test edx, edx
jne 0x409db5
dec dword [0x41b604]
mov ecx, dword [0x41b600]
inc dword [0x41b600]
xor eax, eax
mov al, byte [ecx]
pop esi
pop ebx
ret

Function at 0x40afa2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, eax
mov eax, edx
call fcn.0040b100
lea eax, [ebp - 0xc]
mov ecx, 0xc
mov edx, ebx
call fcn.004070e4
xor ebx, ebx
call fcn.0040b060
xor byte [ebp + ebx - 0xc], al
mov al, byte [ebp + ebx - 0xc]
and eax, 0xff
call fcn.0040b084
inc ebx
cmp ebx, 0xc
jl 0x40afc4
mov edx, dword [0x40f5f0]
xor eax, eax
mov al, byte [ebp - 1]
test byte [edx + 0x14], 2
je 0x40affe
movzx ecx, word [0x41b64e]
sar ecx, 8
jmp 0x40b00a
mov ecx, dword [0x41b654]
shr ecx, 0x18
movzx ecx, cx
movzx eax, ax
cmp ecx, eax
je 0x40b016
or eax, 0xffffffff
jmp 0x40b059
mov edx, dword [0x41b604]
cmp edx, dword [0x40efcc]
jle 0x40b02c
mov ebx, dword [0x40efcc]
jmp 0x40b032
mov ebx, dword [0x41b604]
mov esi, dword [0x41b600]
jmp 0x40b04e
call fcn.0040b060
xor byte [esi], al
mov al, byte [esi]
and eax, 0xff
call fcn.0040b084
inc esi
mov edx, ebx
add ebx, 0xffffffff
test edx, edx
jne 0x40b03a
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov edx, dword [0x41b814]
xor edx, eax
and edx, 0xff
mov ecx, dword [0x41b5f4]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x41b814]
shr ecx, 8
xor edx, ecx
mov dword [0x41b814], edx
mov edx, dword [0x41b814]
and edx, 0xff
add dword [0x41b818], edx
imul ecx, dword [0x41b818], 0x8088405
inc ecx
mov dword [0x41b818], ecx
mov edx, dword [0x41b818]
shr edx, 0x18
xor edx, dword [0x41b81c]
and edx, 0xff
mov ecx, dword [0x41b5f4]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x41b81c]
shr ecx, 8
xor edx, ecx
mov dword [0x41b81c], edx
ret
Function at 0x40b2e4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jne 0x40b2f8
xor eax, eax
jmp 0x40b3f0
call fcn.0040b2dc
xor ebx, 0xffffffff
cmp edi, 8
jb 0x40b3cd
xor edx, edx
sub edi, 8
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x40b309
test edi, edi
je 0x40b3eb
xor edx, edx
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
dec edi
mov ebx, ecx
jne 0x40b3d1
mov eax, ebx
xor eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
Function at 0x10001a30
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x138
mov eax, dword [0x10024014]
xor eax, esp
mov dword [esp + 0x134], eax
movups xmm0, xmmword [ecx]
push esi
push edi
mov dword [esp + 0xc], edx
movups xmmword [esp + 0x120], xmm0
mov dword [esp + 8], 5
lea eax, [esp + 0x10]
push eax
mov eax, 0x1002ebd8
call eax
push 0x10
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, 0x1002ea60
call eax
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0x24]
push eax
mov eax, 0x1002e9a0
call eax
mov esi, dword [esp + 0x130]
add esp, 0x18
mov edi, dword [esp + 0x11c]
mov ecx, esi
xor ecx, dword [esp + 0x110]
mov edx, edi
xor edx, dword [esp + 0x114]
sub dword [esp + 8], 1
mov dword [esp + 0x110], ecx
mov dword [esp + 0x114], edx
movaps xmm0, xmmword [esp + 0x110]
movaps xmmword [esp + 0x120], xmm0
jne 0x10001a63
imul eax, ecx, 0x10dcd
and ecx, 0xffff0000
inc eax
shr eax, 0x10
or eax, ecx
mov dword [esp + 0x110], eax
imul eax, edx, 0x10dcd
and edx, 0xffff0000
inc eax
shr eax, 0x10
or eax, edx
mov dword [esp + 0x114], eax
imul eax, esi, 0x10dcd
and esi, 0xffff0000
inc eax
shr eax, 0x10
or eax, esi
mov dword [esp + 0x118], eax
imul eax, edi, 0x10dcd
and edi, 0xffff0000
inc eax
shr eax, 0x10
or eax, edi
mov edi, 4
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0xc]
movups xmm0, xmmword [esp + 0x110]
movups xmmword [eax], xmm0
lea esi, [eax + 2]
nop dword [eax]
mov cl, byte [esi - 2]
lea esi, [esi + 4]
mov dl, cl
mov al, cl
and dl, 1
neg dl
sbb dl, dl
shr al, 1
and dl, 0xdf
xor dl, al
xor dl, cl
mov cl, byte [esi - 5]
mov byte [esi - 6], dl
mov al, cl
mov dl, cl
and dl, 1
neg dl
sbb dl, dl
shr al, 1
and dl, 0xdf
xor dl, al
xor dl, cl
mov cl, byte [esi - 4]
mov byte [esi - 5], dl
mov al, cl
mov dl, cl
and dl, 1
neg dl
sbb dl, dl
shr al, 1
and dl, 0xdf
xor dl, al
xor dl, cl
mov cl, byte [esi - 3]
mov byte [esi - 4], dl
mov al, cl
mov dl, cl
and dl, 1
neg dl
sbb dl, dl
shr al, 1
and dl, 0xdf
xor dl, al
xor dl, cl
mov byte [esi - 3], dl
sub edi, 1
jne 0x10001b60
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
xor ecx, esp
call fcn.100068b0
mov esp, ebp
pop ebp
ret
Function at 0x10002710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
mov eax, dword [0x10024014]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
mov ebx, dword [ebp + 8]
mov edx, ecx
push esi
push edi
mov dword [esp + 0xc], edx
add dword [ebx + 0x258], 4
mov eax, dword [ebx + 0x258]
mov eax, dword [eax + ebx - 4]
mov dword [edx + 4], eax
add dword [ebx + 0x258], 4
mov eax, dword [ebx + 0x258]
mov ecx, dword [eax + ebx - 4]
mov eax, dword [edx + 4]
xor eax, ecx
mov dword [edx + 8], ecx
xor eax, 0xfffff91f
movzx eax, ax
mov dword [edx + 4], eax
cmp eax, 0x150
ja 0x100027db
mov edi, 0x14c
sub edi, eax
je 0x100027f8
add dword [ebx + 0x258], eax
mov esi, dword [ebx + 0x258]
push edi
lea eax, [esi + ebx]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.10007f50
lea eax, [esi + edi]
add esp, 0xc
mov dword [ebx + 0x258], eax
xor eax, eax
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebx + 8]
nop
mov esi, dword [esp + eax + 0x28]
mov edx, esi
xor edx, ecx
mov ecx, dword [ebx]
mov dword [eax + ecx], edx
inc eax
mov ecx, esi
cmp eax, edi
jbe 0x100027b0
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100068b0
mov esp, ebp
pop ebp
ret 4
push str.crc_offset_exceeds_maximum_size
lea ecx, [esp + 0x14]
call fcn.10002870
push 0x100227a4
lea eax, [esp + 0x14]
push eax
call fcn.10007ed7
push str.invalid_crc_generator_size
lea ecx, [esp + 0x14]
call fcn.10002870
push 0x100227a4
lea eax, [esp + 0x14]
push eax
call fcn.10007ed7
int3
Function at 0x10003cf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019a4d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10024014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 8]
push ebx
push 0
push edi
call fcn.100084d0
lea eax, [esi + esi*2]
lea eax, [eax*8 + 0x1002e928]
push eax
lea ecx, [ebp - 0x28]
call fcn.10003fe0
add esp, 0x10
push 0
push 0x80
push 3
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push 1
cmovae eax, dword [ebp - 0x28]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10003da3
push 0
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.100068be
add esp, 4
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
cmp eax, 1
je 0x10003dcd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10003de1
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10003dd7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003dff
jmp 0x10003dd7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x10003da5
push edx
push ecx
call fcn.100068ee
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100068b0
mov esp, ebp
pop ebp
ret
call fcn.10009ded
int3
Function at 0x10003e10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10024014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
mov dword [ebp - 0x1c], edx
mov esi, ecx
call fcn.100068be
add esp, 4
push 0
push 0
push eax
push 0xff
push esi
call dword [sym.imp.imagehlp.dll_ImageEnumerateCertificates]
cmp eax, 1
jne 0x10003efd
lea eax, [ebp - 0x18]
push eax
push 0
push esi
call dword [sym.imp.imagehlp.dll_ImageGetCertificateHeader]
cmp eax, 1
jne 0x10003efd
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push 0
push 0
push esi
call ebx
push 0
push esi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
sub edi, dword [ebp - 0x18]
push 0
push 0
lea ecx, [edi - 8]
push ecx
push esi
call ebx
push 4
call fcn.100068be
add esp, 4
push 0
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x10003efd
xor eax, eax
lea ecx, [ebp - 5]
cmp byte [ecx], 0
jne 0x10003ed9
inc eax
dec ecx
cmp eax, 8
jb 0x10003eb0
push 0
push 0
push dword [ebp - 0x20]
push esi
call ebx
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100068b0
mov esp, ebp
pop ebp
ret
push 0
sub edi, eax
mov eax, dword [ebp - 0x1c]
push 0
push dword [ebp - 0x20]
push esi
mov dword [eax], edi
call ebx
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100068b0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100068b0
mov esp, ebp
pop ebp
ret
Function at 0x40413f
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1fc]
sub esp, 0x27c
mov eax, dword [0x42005c]
push ebx
push esi
push edi
mov dword [ebp + 0x1f8], eax
push 0x11
xor eax, eax
mov esi, ecx
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
push ebx
stosd dword es:[edi], eax
push 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x204]
push eax
mov dword [ebp - 0x18], esi
call fcn.004148bf
push dword [ebp - 0x28]
mov ecx, dword [esi + 0x10]
call fcn.004067ed
mov dword [ebp - 0x14], eax
add eax, 0x18
lea ecx, [ebp - 0x10]
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
cmp dl, bl
jne 0x40419c
lea eax, [ebp - 0x10]
push eax
call fcn.00403f61
mov eax, dword [ebp - 0x24]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4041b4
lea edi, [ebp - 0x10]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4041c1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x24]
lea eax, [ebp + 0xf4]
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
cmp dl, bl
jne 0x4041e4
lea edi, [ebp + 0xf4]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4041f5
mov eax, dword [ebp - 0x20]
mov esi, 0x401b98
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404209
lea edi, [ebp + 0xf4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x404219
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404237
sub eax, ecx
mov dword [ebp - 0x2c], eax
je 0x404255
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
call fcn.004067ed
jmp 0x404258
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
add eax, 0x18
push eax
push ebx
push 0x8000000
push ebx
push ebx
push ebx
lea eax, [ebp + 0xf4]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x404290
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
xor eax, eax
jmp 0x40429e
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1f8]
pop edi
pop esi
pop ebx
call fcn.0040bf1b
add ebp, 0x1fc
leave
ret 4

Function at 0x40431e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
je 0x404348
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x401790]
inc ecx
dec edx
jne 0x404330
pop edi
pop esi
ret 0xc
Function at 0x40434b
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x42005c]
push esi
mov dword [ebp + 0x190], eax
lea eax, [ebp - 0x7c]
push eax
push 0x403a3c
push 1
push 0
push 0x403a4c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x4043f6
mov eax, dword [ebp - 0x7c]
push dword [ebp + 0x19c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x7c]
push dword [ebp + 0x1a4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
lea edx, [ebp - 0x80]
push edx
push 0x403a2c
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x4043ed
push 0x104
lea eax, [ebp - 0x78]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x1a0]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x78]
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x190]
mov eax, esi
pop esi
call fcn.0040bf1b
add ebp, 0x194
leave
ret 0xc

Function at 0x404548
Capabilities:
Create directory

Disassembly:
push edi
mov edi, dword [esp + 8]
mov cl, byte [edi]
test cl, cl
je 0x4045ad
push ebx
push esi
lea esi, [edi + 1]
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x3a
jne 0x40456b
cmp byte [edi + 2], 0x5c
jne 0x40456b
lea esi, [edi + 3]
jmp 0x4045a6
cmp cl, 0x5c
jne 0x4045a6
cmp al, cl
jne 0x4045a6
push 2
lea esi, [edi + 2]
pop ebx
jmp 0x4045a6
cmp byte [esi], 0x5c
jne 0x40459d
cmp byte [esi - 1], 0x3a
je 0x40459d
test ebx, ebx
je 0x40458e
dec ebx
jmp 0x40459d
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x40457c
pop esi
pop ebx
pop edi
ret 4
Function at 0x4049ec
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1ec]
sub esp, 0x26c
mov eax, dword [0x42005c]
push esi
push 0
mov dword [ebp + 0x1e8], eax
push 3
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x1f8]
mov esi, ecx
push eax
mov dword [ebp - 0x74], esi
call fcn.004148bf
push dword [ebp - 0x78]
mov ecx, dword [0x420b04]
call fcn.00407eff
test al, 0x20
je 0x404a48
mov ecx, dword [0x420b04]
mov eax, dword [ecx]
call dword [eax + 0x10]
test al, 4
je 0x404a48
xor eax, eax
inc eax
jmp 0x404bf1
mov ecx, dword [esi + 0x10]
push ebx
push dword [ebp - 0x80]
call fcn.004067ed
mov ebx, eax
test ebx, ebx
jne 0x404a76
push 0x1388
mov ecx, dword [0x420b04]
push 0x2c7
call fcn.00407f9f
xor eax, eax
jmp 0x404bf0
lea eax, [ebx + 0x18]
lea edx, [ebp + 0xe4]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404a81
lea eax, [ebp + 0xe4]
push eax
call fcn.00403f61
mov eax, dword [ebp - 0x7c]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404a9c
push edi
lea edi, [ebp + 0xe4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404aad
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test byte [ebx + 0xe], 0x80
pop edi
je 0x404b99
lea eax, [ebp + 0xe4]
push eax
push dword [ebp + 0x1f4]
lea eax, [ebp - 0x70]
push 0x401c08
push 0x153
push eax
call fcn.0040bf33
add esp, 0x14
test eax, eax
jl 0x404b8f
lea eax, [ebp - 0x74]
push eax
call fcn.004166db
mov esi, eax
test esi, esi
jl 0x404b2c
push 0
push 0
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call fcn.0040847a
push dword [ebp - 0x74]
mov esi, eax
call fcn.00416530
test esi, esi
jge 0x404bed
mov ecx, dword [0x420b04]
mov eax, dword [ecx]
call dword [eax + 0x3c]
test eax, eax
jne 0x404bed
push 0x154
lea eax, [ebp - 0x70]
push eax
push 0x2ca
push dword [0x420afc]
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [0x420b04]
mov ecx, dword [eax + 0x1264]
mov eax, dword [eax + 0x22c]
push 0x106
push ecx
lea ecx, [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 0xb
je 0x404bed
cmp eax, 2
je 0x404bed
test esi, esi
jl 0x404ad0
jmp 0x404bed
push 0x1389
jmp 0x404a5f
push 0x401bfc
push dword [ebp + 0x1f4]
call fcn.0040bf8a
pop ecx
test eax, eax
pop ecx
lea eax, [ebp + 0xe4]
push eax
jne 0x404bc0
mov ecx, dword [ebp - 0x74]
call fcn.00403fac
jmp 0x404bed
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404be0
test al, 1
je 0x404be0
and eax, 0xfffffffe
push eax
lea eax, [ebp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp + 0x1e8]
pop esi
call fcn.0040bf1b
add ebp, 0x1ec
leave
ret 8
Function at 0x404c07
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov eax, 0x1024
lea ebp, [esp - 0xfa4]
call fcn.0040c030
mov eax, dword [0x42005c]
push ebx
push esi
push edi
push 0x401c49
push 0x326
mov dword [ebp - 0x7c], ecx
mov ecx, dword [0x420b04]
xor ebx, ebx
push ebx
mov dword [ebp + 0xfa0], eax
call fcn.00409067
push ebx
push 5
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xfb0]
push eax
call fcn.004148bf
push 0x401c44
push dword [ebp - 0x78]
call fcn.0040bf8a
test eax, eax
pop ecx
pop ecx
jne 0x404c6f
mov esi, reloc.WS2_32.dll_bind
jmp 0x404ca5
push 0x401c3c
push dword [ebp - 0x78]
call fcn.0040bf8a
test eax, eax
pop ecx
pop ecx
jne 0x404c89
mov esi, reloc.WS2_32.dll_accept
jmp 0x404ca5
push 0x401c34
push dword [ebp - 0x78]
call fcn.0040bf8a
test eax, eax
pop ecx
pop ecx
jne 0x404dd4
mov esi, bind
mov edi, dword [ebp + 0xfac]
cmp byte [edi], 0x64
jne 0x404cfc
mov eax, dword [ebp - 0x70]
cmp byte [eax], bl
jne 0x404cc6
push dword [ebp - 0x74]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x404dcf
lea eax, [ebp - 0x64]
push eax
push 0xf003f
push ebx
push dword [ebp - 0x74]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404dcf
push dword [ebp - 0x70]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404dcf
push 0x401c2c
push edi
call fcn.0040bf8a
test eax, eax
pop ecx
pop ecx
je 0x404d1a
call fcn.00414b47
test eax, eax
jne 0x404dba
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp - 0x74]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov ecx, dword [0x420b04]
je 0x404d49
push 0x3f8
jmp 0x404ddf
push dword [ebp - 0x68]
call fcn.00407eff
test al, 8
je 0x404d71
push dword [ebp - 0x6c]
call fcn.0040c025
pop ecx
mov dword [ebp + 0xfac], eax
push 4
lea eax, [ebp + 0xfac]
push eax
push 4
jmp 0x404d97
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x6c]
call fcn.0040465e
lea eax, [ebp - 0x60]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404d86
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x60]
push eax
push 1
push ebx
push dword [ebp - 0x70]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x64]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x404dba
push 0x3f9
jmp 0x404dd9
push dword [ebp - 0x70]
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x74]
mov ecx, dword [eax + 0x18]
push dword [ebp - 0x78]
push edi
call fcn.00407018
xor eax, eax
inc eax
jmp 0x404deb
push 0x3f7
mov ecx, dword [0x420b04]
push 0x2c7
call fcn.00407f9f
xor eax, eax
mov ecx, dword [ebp + 0xfa0]
pop edi
pop esi
pop ebx
call fcn.0040bf1b
add ebp, 0xfa4
leave
ret 8