joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003b30
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100086c0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push edi
mov eax, dword [0x1000c018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esi]
xor ebx, ebx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10003b7e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], ebx
je 0x10003c2d
mov dword [ebp - 0x18], 0x10009880
lea ecx, [ebp + 8]
push ecx
mov ecx, 0x100096a0
mov dword [ebp - 4], ebx
call fcn.100054d0
mov ebx, 1
mov byte [ebp - 4], bl
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x10003bed
lea eax, [ebp - 0x14]
push eax
call fcn.10005990
add esp, 4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.10005580
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003bed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
cmp dword [ecx - 4], ebx
jle 0x10003c05
mov ecx, dword [ecx - 0xc]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.10005f50
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
push eax
call fcn.10001390
test eax, eax
je 0x10003c14
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x10003c89
lea ecx, [ebp + 8]
push ecx
mov ecx, 0x100096ac
call fcn.100054d0
mov dword [ebp - 4], 3
mov edx, dword [edi]
cmp dword [edx - 0xc], ebx
je 0x10003c53
mov eax, edi
lea ecx, [ebp + 8]
call fcn.10005580
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
push ebx
push ebx
push ecx
push eax
push 0x100096b4
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x10], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10003c95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10004710
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008328
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x1000c018]
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
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], edi
mov esi, edx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 4], 1
mov eax, dword [0x1000c028]
mov edx, dword [eax + 0xc]
mov ecx, 0x1000c028
call edx
add eax, 0x10
mov dword [edi], eax
mov esi, dword [esi]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push esi
mov dword [ebp - 0x128], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x100047e4
call fcn.10001190
test eax, eax
jne 0x1000489f
lea eax, [ebp - 0x11c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x120], eax
cmp eax, 0xffffffff
jne 0x100047d4
call fcn.10001190
test eax, eax
js 0x100047ee
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x11c]
mov edi, eax
mov dword [ebp - 0x11c], ecx
jmp 0x100047fa
mov ebx, eax
mov dword [ebp - 0x130], ebx
jmp 0x100047ac
jne 0x1000489f
mov edi, dword [ebp - 0x120]
lea edx, [edi + 1]
push edx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
mov esi, eax
add esp, 4
test esi, esi
je 0x10004899
push 0
lea eax, [ebp - 0x11c]
push eax
push edi
push esi
push ebx
mov byte [edi + esi], 0
mov dword [ebp - 0x11c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100048c8
call fcn.10001190
test eax, eax
jne 0x1000488f
push 0xfde9
push esi
lea edx, [ebp - 0x118]
lea ecx, [ebp - 0x114]
push edx
mov dword [ebp - 0x118], ecx
call fcn.10006060
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x124]
call fcn.100055f0
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
cmp eax, ecx
je 0x1000488f
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov edi, dword [ebp - 0x124]
test ebx, ebx
je 0x100048aa
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
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.1000747e
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], edi
jmp 0x10004840
Function at 0x100048e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [eax]
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10004957
call fcn.10001190
test eax, eax
jne 0x1000494c
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x1000493b
call fcn.10001190
test eax, eax
js 0x10004941
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov edi, eax
test esi, esi
je 0x1000494c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, eax
jmp 0x10004919

Function at 0x10005080
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 8], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x100050a6
pop esi
mov esp, ebp
pop ebp
ret 0x10
push edi
push esi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
mov edi, eax
add esp, 4
test edi, edi
jne 0x100050bf
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push edi
push esi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x10005115
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
xor eax, eax
push 0x10009710
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10005115
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
movzx ecx, word [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
movzx ecx, word [eax + 0xe]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
movzx eax, word [eax + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10005130
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008aa8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1000c018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ecx, ecx
je 0x100051c9
test ebx, ebx
je 0x100051c9
lea eax, [ebp - 0x10]
push eax
call fcn.100054d0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x10]
mov ecx, 0x10009798
mov eax, esi
mov dx, word [eax]
or edi, 0xffffffff
cmp dx, word [ecx]
jne 0x100051a0
test dx, dx
je 0x1000519c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100051a0
add eax, 4
add ecx, 4
test dx, dx
jne 0x10005177
xor eax, eax
jmp 0x100051a4
sbb eax, eax
sbb eax, edi
test eax, eax
setne al
test al, al
je 0x100051dc
lea eax, [esi - 0x10]
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x100051c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, ebx
lea eax, [ebp - 0x10]
call fcn.100055f0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, 0x100097c0
call fcn.10005b10
add esp, 4
test al, al
je 0x1000520e
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
jmp 0x100051bb
mov edx, 0x100097e8
mov eax, 0x1000c458
call fcn.100055f0
push 0x1000c450
mov esi, 1
push 0
push 0x10001cc0
mov dword [0x1000c450], esi
mov dword [0x1000c45c], esi
call dword [sym.imp.MSVCR100.dll__beginthread]
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x10005262
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008aa8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1000c018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ecx, ecx
je 0x10005322
cmp dword [ebp + 8], 0
je 0x10005322
lea eax, [ebp - 0x10]
push eax
call fcn.100054d0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x10]
mov ecx, 0x10009798
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
or edi, 0xffffffff
cmp dx, word [ecx]
jne 0x100052f9
test dx, dx
je 0x100052f5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100052f9
add eax, 4
add ecx, 4
test dx, dx
jne 0x100052d0
xor eax, eax
jmp 0x100052fd
sbb eax, eax
sbb eax, edi
test eax, eax
setne al
test al, al
je 0x10005337
lea eax, [esi - 0x10]
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x10005322
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.100055f0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, 0x100097c0
call fcn.10005b10
add esp, 4
test al, al
je 0x1000536a
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
jmp 0x10005314
test ebx, ebx
je 0x1000537a
mov edx, ebx
mov eax, 0x1000c458
call fcn.100055f0
mov ecx, dword [0x1000c458]
cmp dword [ecx - 0xc], 0
jne 0x10005395
mov edx, 0x100097e8
mov eax, 0x1000c458
call fcn.100055f0
push 0x1000c450
push 0
push 0x10001cc0
mov dword [0x1000c450], 1
call dword [sym.imp.MSVCR100.dll__beginthread]
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x100053d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100053f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008262
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x1000c018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [0x1000c028]
mov edx, dword [eax + 0xc]
mov ebx, ecx
mov ecx, 0x1000c028
mov dword [ebp - 0x220], ebx
call edx
add eax, 0x10
mov dword [ebx], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x21c], 1
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 1
push 0x19
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005495
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x218]
push ecx
mov edi, eax
call fcn.10006120
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000747e
mov esp, ebp
pop ebp
ret
Function at 0x10007330
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x1000c018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
mov dword [ebp - 0x80], ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007382
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000747e
mov esp, ebp
pop ebp
ret
cmp edi, ebx
je 0x10007390
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
push 0x100000
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], 0x67452301
mov dword [ebp - 0x68], 0xefcdab89
mov dword [ebp - 0x64], 0x98badcfe
mov dword [ebp - 0x60], 0x10325476
mov dword [ebp - 0x78], ebx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [ebp - 0x78]
push edx
push 0x100000
mov edi, eax
push edi
push esi
mov dword [ebp - 0x7c], 1
call ebx
test eax, eax
je 0x10007429
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x10007422
jle 0x1000740d
mov edx, dword [ebp - 0x74]
shr edx, 3
and edx, 0x3f
push edx
push ecx
lea edx, [ebp - 0x74]
push edx
lea eax, [ecx*8]
mov edx, edi
call fcn.10006f70
add esp, 0xc
push 0
lea eax, [ebp - 0x78]
push eax
push 0x100000
push edi
push esi
call ebx
test eax, eax
jne 0x100073e4
jmp 0x10007429
mov dword [ebp - 0x7c], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
push ecx
lea esi, [ebp - 0x74]
call fcn.10007020
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 8
cmp dword [ebp - 0x7c], 0
je 0x10007460
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000747e
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x80]
lea edi, [ebp - 0x18]
call fcn.10007270
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1000747e
mov esp, ebp
pop ebp
ret

Function at 0x1000747e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000c018]
jne 0x10007488
repz ret
jmp fcn.1000793b
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.004106e0
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x28]
push ecx
call fcn.004106e0
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.00409de0
push eax
push 0
push 0x8000000
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.00409de0
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.00405da0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00405da0
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.004106e0
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.00404f70
mov byte [ebp - 4], 1
push str.dimchain.log
lea ecx, [ebp - 0x230]
call fcn.004069e0
push 1
lea ecx, [ebp - 0x2d8]
call fcn.00404b40
mov byte [ebp - 4], 2
push 0x40
push 8
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x2d8]
call fcn.0040c1d0
mov edx, dword [0x433b6c]
push edx
lea ecx, [ebp - 0x2d8]
call fcn.004065c0
push 0x4286ac
lea eax, [ebp - 0x2d8]
push eax
call fcn.00403590
add esp, 8
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x2d8]
push edx
call fcn.00403900
add esp, 8
push 0x4286b0
lea eax, [ebp - 0x2d8]
push eax
call fcn.00403590
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2d8]
call fcn.00406a80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00405da0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405da0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fd34
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 0x403380
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.004106e0
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 0x4034ec
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 0x4034df
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00404f70
mov dword [ebp - 4], 0
push 0
push 0x2e
lea ecx, [ebp - 0x8c]
call fcn.0040b8b0
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0xffffffff
je 0x4034cd
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.0040d4f0
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.0040d440
add esp, 0xc
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.00405da0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.00405da0
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.0040fd34
mov esp, ebp
pop ebp
ret
Function at 0x407380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427738
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4321c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x40], 0
je 0x4073c0
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x46]
test edx, edx
jne 0x4073cc
mov al, 1
jmp 0x407574
mov dword [ebp - 0x54], 8
call fcn.0040b5b0
movzx eax, ax
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov word [ebp - 0x3c], ax
call fcn.0040b5b0
mov word [ebp - 0x3a], ax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x3a]
push edx
call fcn.0040b5e0
add esp, 8
movzx eax, al
test eax, eax
je 0x407414
xor al, al
jmp 0x407574
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00404de0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x28]
call fcn.00409d30
mov ecx, eax
call fcn.00406930
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.004020b0
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409d30
mov ecx, eax
call fcn.00406930
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x40]
call fcn.0040dbe0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x40748f
cmp dword [ebp - 0x38], 1
je 0x407496
cmp dword [ebp - 0x38], 3
je 0x407530
jmp 0x407548
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x46], 0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00409d30
mov ecx, eax
call fcn.00406930
mov edx, dword [ebp - 0x40]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x4074f9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409d30
mov ecx, eax
call fcn.00406930
push eax
call fcn.0041180a
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x4074f9
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401400
mov al, byte [ebp - 0x30]
jmp 0x407574
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x46]
test edx, edx
jne 0x40751c
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401400
mov al, byte [ebp - 0x2e]
jmp 0x407574
cmp dword [ebp - 0x34], 0
jne 0x40752e
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00409650
jmp 0x407560
mov byte [ebp - 0x2d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401400
mov al, byte [ebp - 0x2d]
jmp 0x407574
mov byte [ebp - 0x2f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401400
mov al, byte [ebp - 0x2f]
jmp 0x407574
jmp 0x407427
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fd34
mov esp, ebp
pop ebp
ret