joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5fcec40b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov dword [ebp - 0x3c], eax
lea eax, [eax + eax*2]
lea eax, [eax*8 + 7]
push 8
pop ebx
cdq
idiv ebx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x38], ecx
push 0x36
xor edi, edi
mov dword [ebp - 0x40], 0x28
mov word [ebp - 0x34], 1
mov dword [ebp - 0x30], edi
mov word [ebp - 0x32], 0x18
mov word [ebp - 0x18], 0x4d42
mov word [ebp - 0x12], di
mov word [ebp - 0x10], di
mov ebx, eax
add ebx, 3
and ebx, 0xfffffffc
imul ecx, ebx
pop eax
add ecx, eax
push ebx
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x16], ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
mov dword [ebp + 0xc], eax
jne 0x5fcec492
mov eax, 0x8007000e
jmp 0x5fcec55b
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x5fcd3720
push dword [ebp + 8]
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.msvcrt.dll_fopen]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
jne 0x5fcec4d0
push dword [ebp + 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, 0x80004005
jmp 0x5fcec55a
mov edi, dword [sym.imp.msvcrt.dll_fwrite]
push eax
push 1
lea eax, [ebp - 0x18]
push 0xe
push eax
call edi
push dword [ebp - 8]
lea eax, [ebp - 0x40]
push 1
push 0x28
push eax
call edi
mov ecx, dword [esi + 4]
add esp, 0x20
dec ecx
mov dword [ebp - 4], ecx
js 0x5fcec546
jmp 0x5fcec4ff
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 8]
and dword [ebp + 8], 0
imul eax, ecx
add eax, dword [esi + 0xc]
cmp dword [esi], 0
jle 0x5fcec533
mov ecx, dword [ebp + 0xc]
inc ecx
mov dl, byte [eax]
inc eax
mov byte [ecx + 1], dl
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
mov dl, byte [eax]
mov byte [ecx - 1], dl
inc eax
add ecx, 3
inc dword [ebp + 8]
mov edx, dword [ebp + 8]
cmp edx, dword [esi]
jl 0x5fcec515
push dword [ebp - 8]
push 1
push ebx
push dword [ebp + 0xc]
call edi
add esp, 0x10
dec dword [ebp - 4]
jns 0x5fcec4fc
push dword [ebp + 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x5fcec583
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ax, ax
push esi
push edi
mov esi, ecx
jne 0x5fcec59f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0x3ff
mov edx, dword [esi + 4]
xor edi, edi
test edx, edx
jle 0x5fcec5bb
mov esi, dword [esi + 8]
lea ecx, [esi + 4]
cmp word [ecx], ax
je 0x5fcec5c3
inc edi
add ecx, 8
cmp edi, edx
jl 0x5fcec5ae
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
push dword [esi + edi*8]
call fcn.5fcea100
jmp 0x5fcec5bd
Function at 0x5fcee097
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5fcf6478], 0
push esi
jne 0x5fcee005
call fcn.5fcedefc
test eax, eax
je 0x5fcee048
mov eax, dword [0x5fcf6478]
cmp eax, 1
jne 0x5fcee026
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5fcee048
pop esi
ret
push eax
call dword [0x5fcf6480]
test eax, eax
jne 0x5fcee090
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x5fcee04c
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5fcf6478]
call dword [0x5fcf6480]
mov edi, eax
test edi, edi
je 0x5fcee071
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x5fcee08d
mov edi, esi
add esi, 0xff0
push edi
push dword [0x5fcf6478]
call dword [0x5fcf647c]
add edi, 0x10
cmp edi, esi
jb 0x5fcee079
mov eax, edi
pop edi
pop esi
ret
jmp 0x5fcedff2
Function at 0x4036bb
Capabilities:
Terminate process

Disassembly:
jmp 0x4588d3
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4588e4
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405ace
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4037ec
Capabilities:
Query environment variable

Disassembly:
jmp 0x49592d
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49593e
pop esi
ret
push ebx
push edi
push esi
call fcn.00495814
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004040d9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x495966
push ebx
push esi
push edi
call fcn.004058a8
add esp, 0xc
push 0
call fcn.00406479
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405975
Capabilities:
Parse pe header

Disassembly:
jmp 0x41a633
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41a672
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41a672
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a672
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41a672
cmp dword [ecx + 0x74], 0xe
jbe 0x41a672
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x493b02
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d7304]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x493b4d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00493fc4
test al, al
jne 0x493b47
sub edx, 2
cmp edx, edi
jne 0x493b2d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x493b6f
lea eax, [edi + 2]
cmp edx, eax
je 0x493b6f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004936fb
add esp, 0x10
jmp 0x493c69
push esi
lea ecx, [ebp - 0x255]
call fcn.00493fc4
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x493bb2
push dword [ebp - 0x25c]
jmp 0x493b5f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x493bef
cmp word [ebp - 0x226], 0
je 0x493c10
cmp word [ebp - 0x226], ax
jne 0x493bef
cmp word [ebp - 0x224], 0
je 0x493c10
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004936fb
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x493c5c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x493bc9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x493c44
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x493c69
push 0x4930e3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056d7
add esp, 0x10
jmp 0x493c39
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030e9
leave
ret
Function at 0x4a020e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dca
mov eax, dword [0x4d7304]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406069
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a0250
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a03ac
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004061c7
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4daf88]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040330f
mov ecx, dword [esi*4 + 0x4daf88]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4a03a5
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a03a5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a03a5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040330f
add esp, 0x14
test edx, edx
jl 0x4a03a5
jg 0x4a031b
test eax, eax
jb 0x4a03a5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a03a5
jl 0x4a0335
cmp dword [ebp - 0x1008], eax
ja 0x4a03a5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a0353
test ebx, ebx
je 0x4a038c
cmp ecx, edi
jae 0x4a038c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a036d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a0379
cmp byte [ecx + 1], 0xa
jne 0x4a0379
inc ecx
jmp 0x4a0379
movzx eax, al
movsx eax, byte [eax + 0x4d7c40]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a0353
cmp edx, ebx
jne 0x4a0353
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a03aa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030e9
leave
ret
Function at 0x4a0c09
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4daf88]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a0c49
cmp byte [ebx], 0xa
jne 0x4a0c49
or byte [eax + edi + 0x28], 4
jmp 0x4a0c4e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a0d4c
mov al, byte [edx]
cmp al, 0x1a
je 0x4a0d2e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a0c7d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a0ca2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a0cac
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a0c5f
jmp 0x4a0d4c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a0d29
cmp dword [ebp - 0xc], 0
je 0x4a0d29
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4daf88]
test byte [eax + edi + 0x28], 0x48
je 0x4a0d03
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a0cee
mov byte [esi], dl
jmp 0x4a0cff
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4daf88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a0d4c
cmp byte [ebp - 1], 0xa
jne 0x4a0d12
cmp esi, ebx
jne 0x4a0d12
mov byte [esi], 0xa
jmp 0x4a0d4b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401965
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a0d4c
mov byte [esi], 0xd
jmp 0x4a0d4b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4daf88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a0d48
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a0d4c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a0da8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4daf88]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a0deb
cmp word [esi], dx
jne 0x4a0deb
or byte [edi + eax + 0x28], 4
jmp 0x4a0df0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a0f43
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a0f23
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a0e32
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a0e68
cmp eax, edx
jae 0x4a0e74
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a0e0a
jmp 0x4a0f43
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a0f1f
cmp dword [ebp - 0x14], 0
je 0x4a0f1f
mov eax, dword [ebx*4 + 0x4daf88]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a0ef7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a0ec0
mov word [esi], cx
jmp 0x4a0ef3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4daf88]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4daf88]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4daf88]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a0f43
pop ebx
cmp word [ebp - 4], bx
jne 0x4a0f08
cmp esi, dword [ebp + 0xc]
jne 0x4a0f08
mov word [esi], bx
jmp 0x4a0f40
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401965
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a0f43
push 0xd
jmp 0x4a0f3c
mov ecx, dword [ebx*4 + 0x4daf88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a0f3a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a0f43
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4013db
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1c4]
sub esp, 0x244
mov eax, dword [0x45f584]
push esi
push edi
mov edi, ecx
mov dword [ebp + 0x1c0], eax
mov eax, dword [edi + 4]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x54], edi
je 0x4015aa
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push esi
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
mov dword [ebp - 0x58], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4015aa
push ebx
mov dword [ebp - 0x50], esi
push 0x104
lea eax, [ebp + 0xbc]
push eax
push dword [ebp - 0x50]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, esi
mov dword [ebp - 0x5c], eax
jne 0x40159b
lea eax, [ebp + 0xbc]
push eax
call fcn.00439744
mov ebx, eax
cmp ebx, esi
pop ecx
jle 0x40159b
push 0x1c
call fcn.0043957b
cmp eax, esi
pop ecx
je 0x40149a
mov ecx, eax
call fcn.00401000
mov esi, eax
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x10]
push dword [edi + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
test al, al
je 0x40158d
mov eax, dword [esi + 0x18]
test eax, eax
je 0x401567
push eax
call fcn.004394f0
test eax, eax
pop ecx
jbe 0x401567
mov ebx, dword [esi + 0x18]
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x44d484
push ebx
call fcn.00439688
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jle 0x401567
jmp 0x4014f2
mov edi, dword [ebp - 0x54]
mov edi, dword [edi + 0x10]
jmp 0x401506
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
cmp eax, dword [ebp - 0x4c]
je 0x40150c
mov edi, dword [edi + 0x34]
test edi, edi
jne 0x4014f7
jmp 0x40151e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x48]
and dword [ebp - 0x4c], 0
mov byte [esi + 0x14], al
mov byte [esi + 0x15], 1
mov al, byte [ebx]
test al, al
je 0x40153e
cmp al, 0x20
je 0x401533
cmp al, 9
je 0x401533
inc ebx
mov al, byte [ebx]
test al, al
jne 0x401524
cmp byte [ebx], 0
je 0x40153e
inc ebx
cmp byte [ebx], 0
jne 0x401542
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
jle 0x401564
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x44d484
push ebx
call fcn.00439688
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jg 0x4014ef
mov edi, dword [ebp - 0x54]
mov ebx, dword [edi + 0xc]
test ebx, ebx
jne 0x401578
mov dword [edi + 0xc], esi
jmp 0x40159b
call dword [eax + 4]
mov ebx, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test eax, eax
mov eax, dword [ebx]
mov ecx, ebx
jne 0x401573
push esi
call dword [eax + 8]
jmp 0x40159b
mov ecx, esi
call fcn.00401029
push esi
call fcn.004394a6
pop ecx
inc dword [ebp - 0x50]
xor esi, esi
cmp dword [ebp - 0x5c], esi
je 0x40144b
pop ebx
mov ecx, dword [ebp + 0x1c0]
pop edi
pop esi
call fcn.004394dc
add ebp, 0x1c4
leave
ret
Function at 0x4034ad
Capabilities:
Hash data with crc32

Disassembly:
xor edx, edx
add ecx, 8
push esi
push 8
mov eax, edx
pop esi
test al, 1
je 0x4034c5
shr eax, 1
xor eax, 0xedb88320
jmp 0x4034c7
shr eax, 1
dec esi
jne 0x4034b8
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0xff
jle 0x4034b3
pop esi
ret

Function at 0x40776d
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x45f584]
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea ecx, [ebp - 0x238]
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
call fcn.004076f1
mov eax, dword [ebp - 0x220]
xor eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x21c]
xor ecx, dword [ebp + 0x18]
and eax, dword [ebp - 0x210]
and ecx, dword [ebp - 0x20c]
mov dword [ebp - 0x238], eax
mov esi, 0x100
push esi
lea eax, [ebp - 0x204]
mov dword [ebp - 0x234], ecx
xor ebx, ebx
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 0x230], bl
mov dword [ebp - 0x208], ebx
xor edi, edi
call fcn.00407734
xor eax, eax
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, esi
jl 0x4077e6
mov dword [ebp + 0x18], ebx
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov cl, byte [ebp + edi - 0x204]
lea eax, [ebp + eax - 0x104]
movsx edx, byte [eax]
add ecx, dword [ebp - 0x208]
add ecx, edx
and ecx, 0xff
mov dword [ebp - 0x208], ecx
lea ecx, [ebp + ecx - 0x104]
movsx ebx, byte [ecx]
inc edi
cmp edi, esi
mov byte [ecx], dl
mov byte [eax], bl
jl 0x407834
xor edi, edi
inc dword [ebp + 0x18]
cmp dword [ebp + 0x18], esi
jl 0x4077f5
mov edi, dword [ebp + 0x10]
test edi, edi
jge 0x407845
neg edi
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x40786d
mov ecx, dword [ebp + 8]
sub edi, ecx
mov dword [ebp + 0x10], eax
lea eax, [edi + ecx]
cdq
mov ebx, esi
idiv ebx
mov al, byte [ebp + edx - 0x104]
and al, 0x7f
xor byte [ecx], al
inc ecx
dec dword [ebp + 0x10]
jne 0x407854
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004394dc
leave
ret

Function at 0x407fdd
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push edi
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40802d
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x44b298
call fcn.00439d44
sub esp, 0x1c
mov eax, dword [0x46494c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408103
push 4
pop edi
push edi
mov dword [ebp - 0x20], edi
call fcn.0043a3f2
pop ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push ebx
mov esi, str.WarnOnZoneCrossing
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4080bc
cmp dword [ebp - 0x24], edi
jne 0x4080d8
push edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
call fcn.00439d70
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x18], eax
jmp 0x4080d8
xor eax, eax
inc eax
push edi
mov dword [0x46494c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 8]
je 0x4080f1
push edi
lea eax, [ebp + 8]
push eax
push edi
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x1c]
call fcn.0043a3ed
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40888e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x20]
sub eax, edi
push eax
lea eax, [esi + edi]
push eax
call fcn.0040873b
add esp, 0xc
cmp edi, dword [ebp + 0x10]
mov ecx, edi
jae 0x4088d1
xor edx, edx
mov eax, ecx
div dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov al, byte [edx + eax]
xor al, byte [ecx + esi]
xor al, byte [ebp + 0x1c]
mov byte [ecx + esi], al
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x4088b5
pop edi
pop esi
pop ebp
ret
Function at 0x414e25
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x45f584]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.00414d56
cmp eax, esi
jne 0x414ead
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x414e76
lea eax, [ebp - 0x70]
push eax
call fcn.00414e25
cmp eax, esi
jne 0x414eac
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x414e69
call fcn.00414d3f
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00414d3f
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.004394dc
add ebp, 0x94
leave
ret 4
Function at 0x4152bd
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4152c8
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8