joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408790
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x408843
cmp dword [esi + 4], 0xffffffff
jne 0x408843
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x4087c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4087c0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4087f9
cmp ax, 0x2f
je 0x4087f9
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4087e6
mov eax, dword [0x42d89c]
mov dword [edi], eax
push 0x18
call fcn.004090f4
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
mov dword [eax + 7], 0
call fcn.004078a0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8

Function at 0x413553
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432c20]
jne 0x41355d
repz ret
jmp fcn.00417fcb

Function at 0x421c97
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.004182a0
and dword [ebp - 4], 0
cmp dword [0x436a9c], 0
mov ebx, eax
jne 0x421d48
push 0x42a6f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x421df9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42a6e8
push edi
call esi
test eax, eax
je 0x421df9
push eax
call fcn.0041822e
mov dword [esp], 0x42a6d8
push edi
mov dword [0x436a9c], eax
call esi
push eax
call fcn.0041822e
mov dword [esp], 0x42a6c4
push edi
mov dword [0x436aa0], eax
call esi
push eax
call fcn.0041822e
mov dword [esp], 0x42a6a8
push edi
mov dword [0x436aa4], eax
call esi
push eax
call fcn.0041822e
pop ecx
mov dword [0x436aac], eax
test eax, eax
je 0x421d48
push 0x42a690
push edi
call esi
push eax
call fcn.0041822e
pop ecx
mov dword [0x436aa8], eax
mov eax, dword [0x436aa8]
cmp eax, ebx
je 0x421da0
cmp dword [0x436aac], ebx
je 0x421da0
push eax
call fcn.004182a9
push dword [0x436aac]
mov esi, eax
call fcn.004182a9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x421da0
test edi, edi
je 0x421da0
call esi
test eax, eax
je 0x421d97
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x421d97
test byte [ebp - 0xc], 1
jne 0x421da0
or dword [ebp + 0x10], 0x200000
jmp 0x421dd9
mov eax, dword [0x436aa0]
cmp eax, ebx
je 0x421dd9
push eax
call fcn.004182a9
pop ecx
test eax, eax
je 0x421dd9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x421dd9
mov eax, dword [0x436aa4]
cmp eax, ebx
je 0x421dd9
push eax
call fcn.004182a9
pop ecx
test eax, eax
je 0x421dd9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436a9c]
call fcn.004182a9
pop ecx
test eax, eax
je 0x421df9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x421dfb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407830
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8ca3
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x536008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x40]
lea ecx, [eax + 0x26]
call fcn.004a9300
test al, al
je 0x4079ee
push 0x16
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push str.2345Soft2345Installer
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040a350
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x88]
call fcn.004a8d90
add esp, 4
mov esi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x407913
mov ecx, eax
call fcn.0040a2e0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.0040a2e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040a2e0
push 0xf
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x70]
push str.InstallCfg.data
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.0040a350
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.004a8d90
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.0040a2e0
lea ecx, [ebp - 0x58]
call fcn.004c9d10
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
test eax, eax
jne 0x4079e2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 6
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.004ca400
test al, al
je 0x4079d6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0040a2e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040a2e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040a2e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e62ab
mov esp, ebp
pop ebp
ret
Function at 0x414840
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eaa31
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x536008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor ecx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], cx
mov dword [ebp - 4], ecx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x2c], 1
jb 0x4148a5
mov eax, dword [eax]
push 0
push eax
push str._s._d.del
push esi
call fcn.004a42f0
add esp, 0x10
cmp dword [esi + 0x10], 0
je 0x414935
push esi
lea ecx, [ebp - 0x28]
call fcn.0040abc0
mov dword [ebp - 4], 1
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.004a8bf0
lea ecx, [ebp - 0x28]
call fcn.004c9970
cmp eax, 0xffffffff
je 0x414929
test al, 0x10
je 0x414929
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040a2e0
cmp dword [esi + 0x10], 0
je 0x414935
mov ecx, esi
call fcn.004c9d10
test al, al
je 0x414912
mov ecx, esi
call fcn.004a4d20
test al, al
je 0x414935
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41491c
mov eax, dword [esi]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x414935
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040a2e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e62ab
mov esp, ebp
pop ebp
ret 8

Function at 0x414a90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x414ac1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x414ab0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x4179a0
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x417b6d
cmp eax, 0x7c
je 0x417b6d
cmp eax, 0x29
jne 0x4179e1
cmp dword [esi + 0x10], 0
jne 0x417b6d
cmp eax, eax
jne 0x4179e1
test dword [esi + 0x50], 0x10000000
je 0x417b7a
jmp 0x417b26
cmp eax, 0x2e
jne 0x4179f5
push 5
lea ecx, [esi + 0x24]
call fcn.00417bd0
jmp 0x417b51
cmp eax, 0x5c
jne 0x417a51
mov ecx, esi
call fcn.00417940
test byte [esi + 0x50], 0x80
je 0x417a45
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x417a24
push 4
lea ecx, [esi + 0x24]
call fcn.00417bd0
mov ecx, esi
call fcn.00417940
jmp 0x417b5f
cmp al, 0x42
jne 0x417a45
push 4
lea ecx, [esi + 0x24]
call fcn.00417bd0
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00417940
jmp 0x417b5f
mov ecx, esi
call fcn.00418e20
jmp 0x417b58
cmp eax, 0x5b
jne 0x417ab2
mov ecx, esi
call fcn.00417940
lea ecx, [esi + 0x24]
call fcn.0041a320
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x417a7e
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00417940
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x417a9c
cmp eax, 0x5d
jne 0x417a9c
push eax
lea ecx, [esi + 0x24]
call fcn.0041a400
mov ecx, esi
call fcn.00417940
mov ecx, esi
call fcn.00419da0
cmp dword [esi + 0x4c], 0x5d
jne 0x417b81
jmp 0x417b51
cmp eax, 0x28
jne 0x417ae2
mov ecx, esi
call fcn.00417940
mov ecx, esi
call fcn.00418fd0
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x417b7a
mov ecx, esi
call fcn.00417940
test bl, bl
je 0x417b5f
jmp 0x417b58
cmp eax, 0x5e
jne 0x417afa
push 2
lea ecx, [esi + 0x24]
call fcn.00417bd0
mov ecx, esi
call fcn.00417940
jmp 0x417b5f
cmp eax, 0x24
jne 0x417b12
push 3
lea ecx, [esi + 0x24]
call fcn.00417bd0
mov ecx, esi
call fcn.00417940
jmp 0x417b5f
cmp eax, 0x2a
je 0x417b73
cmp eax, 0x2b
je 0x417b73
cmp eax, 0x3f
je 0x417b73
cmp eax, 0x7b
je 0x417b73
cmp eax, 0x7d
jne 0x417b36
test dword [esi + 0x50], 0x10000000
je 0x417b88
jmp 0x417b44
cmp eax, 0x5d
jne 0x417b44
test dword [esi + 0x50], 0x10000000
je 0x417b81
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00419230
mov ecx, esi
call fcn.00417940
mov ecx, esi
call fcn.004190e0
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x4179b3
pop edi
pop esi
mov al, cl
pop ebx
ret
push 0xa
call fcn.004164c0
push 5
call fcn.004164c0
push 4
call fcn.004164c0
push 6
call fcn.004164c0
int3
Function at 0x42e470
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eeba0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x536008]
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 edi, edx
mov esi, ecx
call fcn.004c9b70
mov bl, al
test bl, bl
je 0x42e54a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42e4b8
mov eax, dword [esi]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [0x5362d4], 0
je 0x42e60b
push 0
mov ecx, 0x5362d0
call fcn.0043bd20
mov eax, dword [0x5362d4]
cmp byte [eax + 0x54], 0
je 0x42e60b
cmp dword [eax + 0x58], 4
jb 0x42e60b
mov bh, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
cmp dword [edi + 0x14], 8
jb 0x42e525
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x42e52d
mov esi, dword [esi]
push edi
push esi
lea eax, [ebp - 0x28]
push 0x50de70
push eax
call fcn.004a42f0
add esp, 0x10
push 0x1ce
jmp 0x42e5d0
cmp dword [0x5362d4], 0
je 0x42e60b
push 0
mov ecx, 0x5362d0
call fcn.0043bd20
mov eax, dword [0x5362d4]
cmp byte [eax + 0x54], 0
je 0x42e60b
cmp dword [eax + 0x58], 4
jb 0x42e60b
mov bh, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 1
cmp dword [edi + 0x14], 8
jb 0x42e5b0
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x42e5b8
mov esi, dword [esi]
push edi
push esi
lea eax, [ebp - 0x28]
push str.Move_File_failed__src__s___dest__s_
push eax
call fcn.004a42f0
add esp, 0x10
push 0x1d2
push str.RC::RCSafeUpdateUtils::MoveFileToCommonFiles
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_src_safecommon_safeutilslibupdate_rcsafeupdateutils.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x5362d0
push eax
push 4
call fcn.0043ced0
test bh, bh
je 0x42e5fc
lea eax, [ebp - 0x28]
mov ecx, 0x5362d0
push eax
call fcn.0043d280
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040a2e0
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.004e62ab
mov esp, ebp
pop ebp
ret
Function at 0x42f500
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eee1d
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x536008]
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, ecx
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x150], 0
push 1
mov dword [ebp - 0x14], 0
call fcn.004e62bc
mov dword [ebp - 0x14], eax
push pe_nt_image_headers32
push 0
mov byte [eax], 0
lea eax, [ebp - 0x144]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42f599
cmp dword [ebp - 0x144], 6
mov eax, dword [ebp - 0x14]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 1
call fcn.004b6660
mov dword [ebp - 0x154], eax
cmp eax, 0xffffffff
jne 0x42f5d2
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x150], 1
jmp 0x42f6c9
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.004b72b0
test al, al
mov eax, dword [ebp - 0x14c]
je 0x42f675
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.004b7370
mov edi, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x42f660
mov ecx, eax
call fcn.0040a2e0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [edi + 0x10]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
movq qword [ebp - 0x1c], xmm0
mov word [edi], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x170]
call fcn.0040a2e0
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x42f680
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x2c]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov word [ebp - 0x2c], ax
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x150], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0040a2e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004b6520
mov eax, esi
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.004e62ab
mov esp, ebp
pop ebp
ret
Function at 0x432480
Capabilities:
Delete directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef588
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x54
mov eax, dword [0x536008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x38], 0
je 0x4325ed
lea esi, [ecx + 0x28]
mov ecx, esi
call fcn.004a4c40
test al, al
je 0x4325ed
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x44], 0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x44]
call fcn.004e4580
cmp dword [esi + 0x10], 0
je 0x4325da
push 0xffffffffffffffff
push 0x505f48
mov ecx, esi
call fcn.00409e90
cmp eax, 0xffffffff
je 0x4325da
inc eax
lea ecx, [ebp - 0x5c]
push 0xffffffffffffffff
push eax
mov edx, esi
call fcn.004a40b0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
mov edx, str.2345hotfix
cmovae ecx, dword [ebp - 0x5c]
call fcn.004a3c00
test al, al
je 0x4325ce
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43257f
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4325ce
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 5
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.004ca400
test al, al
je 0x4325c2
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0040a2e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.0040a2e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004e3b60
mov al, 1
jmp 0x4325ef
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e62ab
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x43a770
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0b08
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x536008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi], 0
jne 0x43a860
push 0xc
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x24]
push str.wintrust.dll
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
call fcn.0040a350
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
call fcn.004b99f0
mov ecx, eax
call fcn.004b9ab0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040a2e0
test ebx, ebx
jne 0x43a819
mov dword [edi + 0x18], 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
mov dword [edi + 0x14], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1090
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x536008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
test eax, eax
je 0x43d3c9
cmp byte [eax + 0x54], 0
je 0x43d3c9
add eax, 0x1c
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.00433f20
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x43d2ea
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43d39d
push 0
mov edx, edi
lea ecx, [ebp - 0x34]
call fcn.004ab530
add esp, 4
mov byte [ebp - 4], 1
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x38]
push 0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x43d38b
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43d381
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43d381
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004e62ec
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x43d3c2
cmp byte [ebp - 0x18], 0
je 0x43d3c2
mov eax, dword [esi]
test eax, eax
je 0x43d3be
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e62ab
mov esp, ebp
pop ebp
ret 4
Function at 0x43ed40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], ebx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x43ede1
lea eax, [ebp - 0xc]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0xc], xmm0
call fcn.004ba480
test al, al
je 0x43ede1
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
test eax, eax
jne 0x43ed80
cmp esi, 0x20
jb 0x43ede1
cmp esi, 0x20
jne 0x43ed96
test eax, eax
jne 0x43ed96
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 4]
add esi, 0xffffffe0
test ecx, ecx
je 0x43edb7
lea eax, [ebp - 0xc]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x20
movlpd qword [ebp - 0xc], xmm0
call fcn.004ba500
push 0x5378c8
push esi
call fcn.004e6920
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x43ede1
push esi
push ebx
mov ecx, edi
call fcn.0043fc80
test al, al
jne 0x43edec
push ebx
call fcn.004e68ef
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
test esi, esi
je 0x43ee17
mov edi, ebx
or eax, 0xffffffff
movzx ecx, byte [edi]
lea edi, [edi + 1]
xor ecx, eax
mov edx, eax
movzx ecx, cl
shr edx, 8
mov eax, dword [ecx*4 + 0x50f590]
xor eax, edx
sub esi, 1
jne 0x43edf7
not eax
mov ecx, dword [ebp - 0x10]
push ebx
mov dword [ecx], eax
call fcn.004e68ef
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4