joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534c17
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x57b270]
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 ebx, ecx
movzx eax, word [ebp + 8]
push str.MAINFONT
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x43f0dc
xor al, al
jmp 0x43f1c4
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 0x540c98
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x1c], 0
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.0043f590
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
test ecx, ecx
je 0x43f133
mov edx, dword [ecx]
lea eax, [ebp - 0x70]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x4c], 0
push esi
push 0
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43f18f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x43f18f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x43f18f
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push ecx
push 0
push esi
push eax
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x43f18f
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebx + 4]
call fcn.0043f220
mov bl, 1
jmp 0x43f191
xor bl, bl
cmp byte [ebp - 0x18], 0
mov dword [ebp - 4], 3
jne 0x43f1aa
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x43f1e2
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x43f1c2
mov esi, dword [ecx]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
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.00460b6f
mov esp, ebp
pop ebp
ret 4
call fcn.0045f8ac
int3
Function at 0x43f6b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x240], ecx
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov eax, 1
push esi
mov ecx, 0x104
mov dword [ebp - 0x234], eax
push edi
mov dword [ebp - 0x238], ecx
nop dword [eax]
cmp dword [ebx + 0x10], 0
je 0x43f7d4
cmp dword [ebx + 0x14], 8
mov edi, ebx
jb 0x43f704
mov edi, dword [ebx]
mov dword [ebp - 0x23c], 0
test edi, edi
je 0x43f7d4
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x43f7c8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x43f750
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43f7c8
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004fe92b
add esp, 8
test eax, eax
je 0x43f777
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x43f750
jmp 0x43f783
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x23c], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x23c], 0
je 0x43f7c8
mov ecx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x43f7bb
mov edx, dword [ebp - 0x234]
mov dword [eax], edx
add dword [ecx + 4], 4
jmp 0x43f7c8
lea edx, [ebp - 0x23c]
push edx
push eax
call fcn.00427e50
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x238]
inc eax
add ebx, 0x18
sub ecx, 1
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x238], ecx
jne 0x43f6f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
Function at 0x441e70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534fad
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xa50]
mov edi, dword [ebp + 0xc]
xor eax, eax
push eax
mov dword [ebp - 0xa60], esi
push 0x53f9e0
mov dword [ebp - 0xa60], edi
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 7
mov word [ebp - 0xa50], ax
call fcn.00416d80
mov dword [ebp - 4], 0
test edi, edi
je 0x441ff9
lea eax, [ebp - 0xa58]
mov dword [ebp - 0xa58], 0
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xa54], eax
test eax, eax
je 0x441ff9
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x441ff9
push edi
push dword [ebp - 0xa54]
push dword [ebp - 0xa58]
push dword [ebp - 0xa60]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x441ff2
lea eax, [ebp - 0xa5c]
mov dword [ebp - 0xa54], 0
push eax
lea eax, [ebp - 0xa54]
mov dword [ebp - 0xa5c], 0
push eax
push 0x53fd0c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x441ff2
cmp dword [ebp - 0xa5c], 0
je 0x441ff2
push 0xa28
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.004ed350
mov ecx, dword [ebp - 0xa54]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0xa38]
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0xa38]
add esp, 0x24
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x441fd0
sub ecx, edx
lea eax, [ebp - 0xa38]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa50]
call fcn.00416d80
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
movups xmm0, xmmword [ebp - 0xa50]
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0xa40]
movq qword [esi + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret

Function at 0x445180
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, eax
mov byte [esi + 0x68], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
cmp dword [eax + 0x14], 0x10
jb 0x4451c0
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00445680
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x446d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x446e1a
cmp byte [esi + 0x3d], 0
je 0x446e1a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x446e08
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x446dd0
sub eax, 1
je 0x446dd4
sub eax, 2
jne 0x446e08
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x446df1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004ff56c
add esp, 0x10
cmp edi, eax
jne 0x446e08
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00460b6f
mov esp, ebp
pop ebp
ret

Function at 0x447e20
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
lea ecx, [esi + 0x2c]
call fcn.00464626
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x90000
push 0x1f4
mov ecx, esi
call fcn.0046290f
push eax
call dword [sym.imp.USER32.dll_AnimateWindow]
push 1
mov ecx, esi
call fcn.004630ad
pop esi
ret
Function at 0x4493f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x449449
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x449449
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x44943a
cmp esi, edx
jae 0x449449
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x449428
cmp esi, edx
jae 0x449449
cmp word [esi], 0
je 0x449449
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x44cfe0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535bce
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x57b270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0xffffffff
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0xf
mov byte [ecx + 0x20], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx], 0x5413c8
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x5c], 0xf
mov byte [ecx + 0x48], 0
mov dword [ecx + 0x68], 0xffffffff
lea edx, [ecx + 0x48]
mov dword [ecx + 0x64], 0xffffffff
mov dword [ecx + 0x60], 4
mov byte [ecx + 0x6c], 0
mov byte [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
cmp dword [ecx + 0x5c], 0x10
jb 0x44d09f
mov edx, dword [ecx + 0x48]
mov dword [ecx + 0x58], 0
mov eax, ecx
mov byte [edx], 0
mov dword [ecx + 0x68], 0
mov dword [ecx + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x44d7d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
jne 0x44d7f0
push ebx
push ebx
push ebx
push 2
call fcn.004527b0
pop edi
xor al, al
pop ebx
pop ebp
ret 8
push esi
mov esi, dword [edi + 0x18]
test esi, esi
je 0x44d807
mov ecx, esi
mov esi, dword [esi + 0x3c]
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x44d7f8
push 2
push 0
push ebx
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0xffffffff
call fcn.004fff3c
push ebx
call fcn.00500558
push 0
mov esi, eax
push 0
push ebx
mov dword [ebp + 8], esi
call fcn.004fff3c
add esp, 0x1c
test esi, esi
jg 0x44d861
push 0
push 0
push 0
push 0xc
mov ecx, edi
call fcn.004527b0
pop esi
pop edi
xor al, al
pop ebx
pop ebp
ret 8
lea eax, [esi + 1]
push eax
call fcn.00460bdd
push ebx
mov ebx, dword [ebp + 8]
mov esi, eax
push 1
push ebx
push esi
mov byte [esi], 0
call fcn.004ffbc6
add esp, 0x14
cmp eax, 1
je 0x44d8a5
push esi
call fcn.00460be6
add esp, 4
mov ecx, edi
push 0
push 0
push 0
push 2
call fcn.004527b0
pop esi
pop edi
xor al, al
pop ebx
pop ebp
ret 8
mov byte [esi + ebx], 0
mov eax, esi
mov dl, byte [esi]
mov ecx, esi
test dl, dl
je 0x44d8d1
inc eax
lea ebx, [ecx + 1]
cmp dl, 0xd
jne 0x44d8c7
mov byte [ecx], 0xa
cmp byte [eax], 0xa
jne 0x44d8c9
inc eax
jmp 0x44d8c9
mov byte [ecx], dl
mov dl, byte [eax]
mov ecx, ebx
test dl, dl
jne 0x44d8b3
push dword [ebp + 0xc]
mov byte [ecx], 0
mov ecx, edi
mov eax, dword [edi]
push 0
push esi
call dword [eax + 8]
push esi
call fcn.00460be6
add esp, 4
cmp byte [edi + 0x40], 0
sete al
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x455a20
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x100
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004ed350
push 0x100
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.004ed350
mov esi, dword [ebp + 0x14]
add esp, 0x18
mov edi, dword [ebp + 0x10]
xor ecx, ecx
mov eax, ecx
mov byte [ebp + ecx - 0x104], cl
cdq
idiv esi
mov al, byte [edx + edi]
mov byte [ebp + ecx - 0x204], al
inc ecx
cmp ecx, 0x100
jl 0x455a70
xor edi, edi
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov dl, byte [ebp + esi - 0x104]
movzx eax, byte [ebp + esi - 0x204]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x455ac6
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x104], al
inc esi
mov byte [ebp + edi - 0x104], dl
cmp esi, 0x100
jl 0x455aa0
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp dword [ebp + 0xc], ebx
jle 0x455b67
nop
inc edi
and edi, 0x800000ff
jns 0x455b01
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [ebp + edi - 0x104]
movzx edx, cl
add esi, edx
and esi, 0x800000ff
jns 0x455b1d
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [ebp + esi - 0x104]
mov byte [ebp + edi - 0x104], al
mov eax, dword [ebp - 0x208]
mov byte [ebp + esi - 0x104], cl
movzx ecx, byte [ebp + edi - 0x104]
add ecx, edx
movzx ecx, cl
movzx ecx, byte [ebp + ecx - 0x104]
xor byte [eax + ebx], cl
inc ebx
cmp ebx, dword [ebp + 0xc]
jl 0x455af0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
Function at 0x456810
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
mov dword [eax + 0x28], 0
pop ebp
ret
Function at 0x457af0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x457c6c
push 0x820
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.004ed350
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457b30
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.004ec850
add esp, 0xc
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x457c57
push 0x80
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x457c57
lea ecx, [ebp - 0x824]
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x457ba0
mov eax, dword [0x541dd4]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ecx], eax
mov eax, dword [0x541dd8]
mov dword [ecx + 4], eax
mov ax, word [0x541ddc]
mov word [ecx + 8], ax
lea eax, [ebp - 0x824]
push 1
push eax
push esi
call edi
test eax, eax
jne 0x457c4a
nop dword [eax + eax]
lea ecx, [ebp - 0x824]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457bf0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 4]
cmp eax, 0x40f
jae 0x457c6c
lea eax, [ebp - 0x824]
add eax, 0xfffffffe
mov cx, word [eax + 2]
lea eax, [eax + 2]
test cx, cx
jne 0x457c12
mov ecx, dword [0x541dd4]
mov dword [eax], ecx
mov ecx, dword [0x541dd8]
mov dword [eax + 4], ecx
mov cx, word [0x541ddc]
mov word [eax + 8], cx
lea eax, [ebp - 0x824]
push 1
push eax
push esi
call edi
test eax, eax
je 0x457be0
push 4
push 0
lea eax, [ebp - 0x824]
push eax
call edi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
Function at 0x457e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x104
push 0
push eax
call fcn.004ed350
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x108]
add esp, 0xc
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x457e90
lea esi, [ebp - 0x108]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x457ea6
lea eax, [ebp - 0x10c]
sub esi, ecx
push eax
push ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x457f05
push esi
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x457f05
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460b6f
mov esp, ebp
pop ebp
ret

Function at 0x458770
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x584574], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4587c4
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4587b4
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [0x584574]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebp
ret
mov eax, 1
pop ebp
ret
Function at 0x4587d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x254]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4588c5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
neg eax
movlpd qword [ebp - 0x26c], xmm0
movlpd qword [ebp - 0x264], xmm0
sbb eax, eax
movlpd qword [ebp - 0x25c], xmm0
and eax, 5
mov dword [ebp - 0x290], 0x3c
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x290]
push eax
mov dword [ebp - 0x28c], 0x40
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], str.open
mov dword [ebp - 0x280], edi
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x270], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp + 0x14], 0
mov edi, eax
je 0x4588a6
push 0x7d0
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x4588b2
mov eax, dword [ebp - 0x258]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460b6f
mov esp, ebp
pop ebp
ret

Function at 0x4588e0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
push dword [ebp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x45895b
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 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45895b
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x458970
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push 3
xorps xmm0, xmm0
push esi
push eax
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call fcn.00502248
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x458a77
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4589d7
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.004ed350
push esi
lea eax, [ebp - 0x234]
push 0x104
push eax
call fcn.004fedf0
add esp, 0x18
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, eax
test ecx, ecx
jle 0x458a77
movzx eax, word [ebp + ecx*2 - 0x236]
cmp eax, 0x5c
je 0x458a24
cmp eax, 0x2f
jne 0x458a2e
xor eax, eax
mov word [ebp + ecx*2 - 0x236], ax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x458a77
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x458a5f
lea eax, [ebp - 0x234]
push eax
call fcn.00458970
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00460b6f
mov esp, ebp
pop ebp
ret