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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call fcn.00401000
push 0x40c
xor ebx, ebx
mov dword [ebp - 0x414], 0x22
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.00401de0
add esp, 0xc
lea eax, [ebp - 0x412]
mov esi, 0x207
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401259
cmp eax, esi
jae 0x401259
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x412]
push eax
call esi
lea eax, [ebp - 0x412]
push eax
call esi
push str.GoogleUpdate.exe
lea eax, [ebp - 0x412]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x401259
push str.___broker
push 0x208
lea eax, [ebp - 0x414]
push eax
call fcn.00401046
test eax, eax
js 0x40125e
push edi
push 0x40
lea eax, [ebp - 0x464]
mov dword [ebp - 0x468], 0x44
push ebx
push eax
call fcn.00401de0
xor eax, eax
lea edi, [ebp - 0x424]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x468]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x401259
push dword [ebp - 0x424]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x420]
call esi
xor eax, eax
jmp 0x40125e
call fcn.0040102b
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004014b9
leave
ret 0x10
Function at 0x406a1f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x414008]
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 0x406a6a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406c40
test al, al
jne 0x406a64
sub edx, 2
cmp edx, edi
jne 0x406a4a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406a8c
lea eax, [edi + 2]
cmp edx, eax
je 0x406a8c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040696b
add esp, 0x10
jmp 0x406b86
push esi
lea ecx, [ebp - 0x255]
call fcn.00406c40
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 0x406acf
push dword [ebp - 0x25c]
jmp 0x406a7c
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 0x406b0c
cmp word [ebp - 0x226], 0
je 0x406b2d
cmp word [ebp - 0x226], ax
jne 0x406b0c
cmp word [ebp - 0x224], 0
je 0x406b2d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040696b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406b79
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406ae6
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x406b61
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406b86
push 0x40679b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00409760
add esp, 0x10
jmp 0x406b56
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.004014b9
leave
ret

Function at 0x408627
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fdfc
push 0x40fdf4
push str.FlsAlloc
push 0x1e
call fcn.00408564
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40865b
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e114]
call esi
jmp 0x408661
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4086a5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fe0c
push 0x40fe04
push str.FlsGetValue
push 0x20
call fcn.00408564
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4086dc
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e114]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x405e86
Capabilities:
Parse pe header

Disassembly:
push 0x14
push 0x417c10
call fcn.00407bc8
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x405d86
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x405d86
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x405d86
cmp dword [eax + 0x400074], 0xe
jbe 0x405d86
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x405d8a
and dword [ebp - 0x1c], 0
push 1
call fcn.00406f20
pop ecx
test eax, eax
jne 0x405d9e
push 0x1c
call fcn.00405d0b
pop ecx
call fcn.00408aa0
test eax, eax
jne 0x405daf
push 0x10
call fcn.00405d0b
pop ecx
call fcn.00409146
and dword [ebp - 4], 0
call fcn.00407fd7
test eax, eax
jge 0x405dc9
push 0x1b
call fcn.00404daa
pop ecx
call dword [0x41409c]
mov dword [0x45b660], eax
call fcn.0040b3f0
mov dword [0x41a77c], eax
call fcn.0040b335
test eax, eax
jge 0x405def
push 8
call fcn.00404daa
pop ecx
call fcn.0040b0bd
test eax, eax
jge 0x405e00
push 9
call fcn.00404daa
pop ecx
push 1
call fcn.00404e69
pop ecx
test eax, eax
je 0x405e13
push eax
call fcn.00404daa
pop ecx
mov eax, dword [0x41a758]
mov dword [0x41a75c], eax
push eax
push dword [0x41a750]
push dword [0x41a74c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x405e41
push eax
call fcn.0040501a
call fcn.00405046
jmp 0x405e76
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00407c0d
ret
call 0x4eb000
jmp 0x405d34
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x6b2b484c
nop
nop
nop
nop
test eax, eax
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
mov eax, section..reloc
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x644e340f
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401000
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
push edi
mov ebx, eax
xor edi, edi
xor eax, eax
mov dword [esp + eax*4 + 0x10], eax
inc eax
cmp eax, 0x100
jl 0x401010
xor ecx, ecx
lea esi, [ecx + 2]
xor edx, edx
mov eax, ecx
mov ebp, 0xf
div ebp
movzx eax, byte [edx + ebx]
add eax, edi
add eax, dword [esp + ecx*4 + 0x10]
mov edi, eax
and edi, 0x800000ff
jns 0x401048
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + ecx*4 + 0x10]
mov edx, dword [esp + edi*4 + 0x10]
mov dword [esp + ecx*4 + 0x10], edx
movzx eax, al
mov dword [esp + edi*4 + 0x10], eax
xor edx, edx
lea eax, [esi - 1]
div ebp
movzx edx, byte [edx + ebx]
add edx, edi
add edx, dword [esp + ecx*4 + 0x14]
mov edi, edx
and edi, 0x800000ff
jns 0x40107e
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + ecx*4 + 0x14]
mov edx, dword [esp + edi*4 + 0x10]
movzx eax, al
mov dword [esp + ecx*4 + 0x14], edx
mov dword [esp + edi*4 + 0x10], eax
xor edx, edx
mov eax, esi
div ebp
movzx edx, byte [edx + ebx]
add edx, dword [esp + ecx*4 + 0x18]
add edi, edx
and edi, 0x800000ff
jns 0x4010b1
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + ecx*4 + 0x18]
mov edx, dword [esp + edi*4 + 0x10]
mov dword [esp + ecx*4 + 0x18], edx
movzx eax, al
mov dword [esp + edi*4 + 0x10], eax
xor edx, edx
lea eax, [esi + 1]
div ebp
movzx edx, byte [edx + ebx]
add edx, edi
add edx, dword [esp + ecx*4 + 0x1c]
mov edi, edx
and edi, 0x800000ff
jns 0x4010e7
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + ecx*4 + 0x1c]
mov edx, dword [esp + edi*4 + 0x10]
mov dword [esp + ecx*4 + 0x1c], edx
movzx eax, al
add esi, 4
add ecx, 4
cmp esi, 0x102
mov dword [esp + edi*4 + 0x10], eax
jl 0x401021
mov eax, dword [esp + 0x418]
xor edx, edx
test eax, eax
jbe 0x40118a
mov ebp, dword [esp + 0x414]
inc ecx
and ecx, 0x800000ff
jns 0x401131
dec ecx
or ecx, 0xffffff00
inc ecx
mov esi, dword [esp + ecx*4 + 0x10]
add edi, esi
and edi, 0x800000ff
jns 0x401147
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + ecx*4 + 0x10]
mov esi, dword [esp + edi*4 + 0x10]
mov dword [esp + ecx*4 + 0x10], esi
movzx esi, bl
mov dword [esp + edi*4 + 0x10], esi
mov ebx, dword [esp + ecx*4 + 0x10]
add ebx, esi
and ebx, 0x800000ff
jns 0x401170
dec ebx
or ebx, 0xffffff00
inc ebx
movzx ebx, byte [esp + ebx*4 + 0x10]
xor byte [edx + ebp], bl
inc edx
cmp edx, eax
jb 0x401120
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x400
ret
mov eax, dword [esp + 0x414]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret

Function at 0x4122a1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4122ab
repz ret
jmp fcn.004125c5
Function at 0x438cb7
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x438a14
push 0x1573fda6
pop eax
call fcn.00438cfb
add edx, 1
xor dword [ebx], edi
add eax, 0xdfc44413
add eax, 0xf3ac8501
inc ebx
sub eax, 0x8724c68
mov edx, 0x7629c8f
sub edx, 0x49ad7613
cmp ebx, ecx
jne fcn.00438cb7
inc edx
add edx, 0x19f775fe
ret
Function at 0x4032b9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4032d9
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4032e8
mov ebx, 0x418ec0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4032fd
mov ecx, dword [0x429a78]
add ecx, eax
push ecx
call fcn.004034b4
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040349e
test eax, eax
je 0x403455
test byte [ebp + 0x17], 0x80
je 0x40343e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40ce30
mov dword [ebp - 0xc], eax
call fcn.00406a70
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403494
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40334d
mov esi, dword [ebp + 0x14]
mov edi, 0x414ec0
push esi
push edi
call fcn.0040349e
test eax, eax
je 0x403455
sub dword [ebp + 0x14], esi
mov dword [0x40ce48], edi
mov dword [0x40ce4c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40ce30
mov dword [0x40ce50], ebx
mov dword [0x40ce54], eax
call fcn.00406a90
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x403436
mov esi, dword [0x40ce50]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x429ad4], 1
mov edi, eax
je 0x4033f5
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4033bc
cmp dword [ebp + 0x14], 0
jne 0x4033f5
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x90]
push 0x40a21c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0
call fcn.004055a6
mov dword [ebp - 0xc], edi
test esi, esi
je 0x40342a
cmp dword [ebp + 0x10], 0
jne 0x403412
push esi
push ebx
push dword [ebp + 0xc]
call fcn.004060c3
test eax, eax
je 0x40343a
add dword [ebp - 4], esi
jmp 0x40341e
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40ce50]
cmp dword [ebp - 0x10], 1
jne 0x403370
jmp 0x403494
cmp dword [ebp + 0x14], 0
jg 0x403340
jmp 0x403494
push 0xfffffffffffffffc
jmp 0x403457
push 0xfffffffffffffffe
jmp 0x403457
test edi, edi
je 0x403489
cmp dword [ebp + 0x14], esi
jge 0x40344a
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040349e
test eax, eax
jne 0x403491
push 0xfffffffffffffffd
pop eax
jmp 0x403497
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403465
mov esi, dword [ebp + 0x14]
mov edi, 0x414ec0
push esi
push edi
call fcn.0040349e
test eax, eax
je 0x403455
push esi
push edi
push dword [ebp + 0xc]
call fcn.004060c3
test eax, eax
je 0x40343a
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40345a
jmp 0x403494
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405c2d
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405ef8
test bl, 8
mov dword [ebp - 8], eax
je 0x405c6c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429aa8], eax
jmp 0x405de9
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405c86
test eax, eax
je 0x405d97
test bl, 2
je 0x405d97
mov esi, 0x424f10
push edi
push esi
call fcn.00406521
cmp dword [ebp + 8], 0
je 0x405ca5
push 0x40a56c
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405cab
push edi
call fcn.00405e3c
cmp word [edi], 0
jne 0x405cbb
cmp word [0x424f10], 0x5c
jne 0x405cc6
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d8c
cmp word [ebp - 0x22c], 0x2e
jne 0x405d10
cmp word [ebp - 0x22a], 0
je 0x405d6f
cmp word [ebp - 0x22a], 0x2e
jne 0x405d10
cmp word [ebp - 0x228], 0
je 0x405d6f
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406521
test byte [ebp - 0x258], 0x10
je 0x405d3b
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d6f
push dword [ebp + 0xc]
push edi
call fcn.00405c2d
jmp 0x405d6f
push dword [ebp - 4]
push edi
call fcn.00405be5
test eax, eax
jne 0x405d67
cmp dword [ebp - 4], eax
je 0x405d5f
push edi
push 0xfffffffffffffff1
call fcn.004055a6
push 0
push edi
call fcn.004062e1
jmp 0x405d6f
inc dword [0x429aa8]
jmp 0x405d6f
push edi
push 0xfffffffffffffff2
call fcn.004055a6
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ce8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405d97
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405de9
cmp dword [ebp - 8], esi
jne 0x405dab
inc dword [0x429aa8]
jmp 0x405de9
push edi
call fcn.0040687e
test eax, eax
je 0x405de9
push edi
call fcn.00405df0
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405be5
test eax, eax
jne 0x405de1
cmp dword [ebp - 4], esi
je 0x405da3
push edi
push 0xfffffffffffffff1
call fcn.004055a6
push esi
push edi
call fcn.004062e1
jmp 0x405de9
push edi
push 0xffffffffffffffe5
call fcn.004055a6
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406167
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x4265a8], 0x55004e
mov dword [0x4265ac], 0x4c
mov edi, 0x400
mov ebp, 0x4265a8
je 0x4061bd
push 1
push 0
push esi
call fcn.00406011
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4062dc
cmp eax, edi
jg 0x4062dc
mov esi, 0x426da8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4062dc
cmp eax, edi
jg 0x4062dc
push esi
push ebp
push 0x40a590
push 0x4261a8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x429a30]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040655e
push 4
push 0xc0000000
push esi
call fcn.00406011
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4062dc
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4062d5
push edi
push esi
push ebp
call fcn.00406094
test eax, eax
je 0x4062d5
push 0x40a584
push esi
call fcn.00405f76
test eax, eax
jne 0x406273
lea eax, [esi + edi]
push 0x40a584
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4062a8
add eax, 0xa
push 0x40a580
push eax
call fcn.00405f76
mov ebp, eax
test ebp, ebp
je 0x4062a4
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406295
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40628f
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4062aa
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4261a8
push eax
call fcn.00405fcc
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.004060c3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4062e1
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406304
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406167
pop ecx
pop ecx
inc dword [0x429ab0]
ret 8
Function at 0x4068a5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068c9
xor eax, eax
test eax, eax
je 0x4068dc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068dc
xor ecx, ecx
jmp 0x4068df
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push 0x40a5b0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4275ac], 0
push esi
jne 0x406a39
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a13
mov dword [ecx*4 + 0x4275a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a0e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a6a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275a8]
xor eax, esi
inc ecx
dec edx
jne 0x406a4c
pop edi
not eax
pop esi
ret 0xc
Function at 0xec1370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xec138e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xeea074
push ecx
mov edi, eax
call fcn.00ed5198
mov esi, eax
add esp, 8
test esi, esi
jne 0xec13cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00ed502e
push esi
call fcn.00ed4fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xec4850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xec48ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xeef720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xec48ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00ed51e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xec48ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xeef720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xec492a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00ed6082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xec4957
mov word [eax], si
add eax, 2
push eax
call fcn.00ed6030
add esp, 4
jmp 0xec4959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xec48ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xec48b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xec4ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret