joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a730
Capabilities:
Check mutex on windows

Disassembly:
test eax, eax
push edi
je 0x40a744
test ecx, ecx
jbe 0x40a744
mov dword [esi + 0x18], 1
mov dword [esi], ecx
jmp 0x40a75e
push 0x2800
mov dword [esi + 0x18], 0
mov dword [esi], 0x2800
call fcn.00416860
add esp, 4
push 0
push 0
push 0
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
push 0xffffffffffffffff
push edi
mov dword [esi + 0x14], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi]
mov edx, dword [esi + 8]
push ecx
push 0
push edx
mov dword [esi + 4], 0
call fcn.0041b5e0
mov eax, dword [esi + 8]
add esp, 0xc
test edi, edi
mov dword [esi + 0xc], eax
je 0x40a7a7
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
pop edi
ret

Function at 0x40a8e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [edi + 0x24]
movzx ecx, word [eax + 0x22]
push ebx
push ebp
push esi
push ecx
call sub.WS2_32.dll_ntohs
mov edx, dword [edi + 0x24]
xor ebx, ebx
movzx ebp, ax
mov word [edx + 0x22], bx
mov esi, edi
mov eax, 0x24
movzx edx, byte [esi]
movzx ecx, bx
shr ecx, 8
xor ecx, edx
xor edx, edx
mov dh, bl
sub eax, 1
add esi, 1
xor dx, word [ecx*2 + 0x435650]
test eax, eax
movzx ebx, dx
jne 0x40a903
cmp bx, bp
je 0x40a96b
call fcn.00415ad0
push eax
push str.___s__
push 0x104
push 0x104
push 0x436b88
call fcn.00416b5f
add esp, 0x14
movzx eax, bp
push eax
movzx ecx, bx
push ecx
push str.ProcessCommHeaderBuffer::OrderInHeader:_new_check___02x__old_check___02x_
push 4
call fcn.00415b20
add esp, 0x10
xor al, al
pop esi
pop ebp
pop ebx
ret
mov edx, dword [edi + 0x24]
movzx eax, word [edx]
push eax
call sub.WS2_32.dll_ntohs
mov ecx, dword [edi + 0x24]
mov word [ecx], ax
mov edx, dword [edi + 0x24]
mov eax, dword [edx + 4]
push eax
call sub.WS2_32.dll_ntohl
mov ecx, dword [edi + 0x24]
mov dword [ecx + 4], eax
mov edx, dword [edi + 0x24]
movzx eax, word [edx + 0x18]
push eax
call sub.WS2_32.dll_ntohs
mov ecx, dword [edi + 0x24]
mov word [ecx + 0x18], ax
mov edx, dword [edi + 0x24]
movzx eax, word [edx + 0x1a]
push eax
call sub.WS2_32.dll_ntohs
mov ecx, dword [edi + 0x24]
mov word [ecx + 0x1a], ax
mov edx, dword [edi + 0x24]
mov eax, dword [edx + 0x1c]
push eax
call sub.WS2_32.dll_ntohl
mov ecx, dword [edi + 0x24]
mov dword [ecx + 0x1c], eax
mov edx, dword [edi + 0x24]
movzx eax, word [edx + 0x20]
push eax
call sub.WS2_32.dll_ntohs
mov ecx, dword [edi + 0x24]
mov word [ecx + 0x20], ax
mov edx, dword [edi + 0x24]
cmp word [edx], 0x4452
je 0x40aa1e
call fcn.00415ad0
push eax
push str.___s__
push 0x104
push 0x104
push 0x436b88
call fcn.00416b5f
add esp, 0x14
push str.ProcessCommHeaderBuffer::OrderInHeader:_quit_OrderInHeader__usCropID___DR_CORP_ID
push 4
call fcn.00415b20
add esp, 8
xor al, al
pop esi
pop ebp
pop ebx
ret
call fcn.00415ad0
push eax
push str.___s__
push 0x104
push 0x104
push 0x436b88
call fcn.00416b5f
add esp, 0x14
push str.ProcessCommHeaderBuffer::OrderInHeader:_quit_OrderInHeader
push 4
call fcn.00415b20
add esp, 8
pop esi
pop ebp
mov al, 1
pop ebx
ret
Function at 0x40e7a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x40e7af
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x40e897
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x42f970]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42f970]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x42f970]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42f970]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42f970]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42f970]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42f970]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42f970]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x40e7c0
pop ebp
test edi, edi
je 0x40e8bc
jmp 0x40e8a0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x42f970]
add ecx, 1
sub edi, 1
jne 0x40e8a0
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x40e8d0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x42f970]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42f970]
mov dword [edx + 8], ecx
ret

Function at 0x40e920
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
xor al, bl
movzx ebx, al
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x42f970]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x42f970]
pop ebx
mov dword [esi + 8], ecx
ret

Function at 0x40f090
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x40f0c2
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f0b8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x40f0d5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.0041a2e0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x40f0f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40f123
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f11d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40f14f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40f135
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.0041a2e0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40f166
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x40f160
cmp byte [esi + 8], 0
je 0x40f160
or eax, 0xffffffff
add esp, 8
ret
Function at 0x40f250
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x40f295
cmp byte [esi + 1], 0
je 0x40f29d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x40f2b2
cmp byte [esi + 1], 0
je 0x40f2a4
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40f2bb
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40f26e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40f2bb
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x40f2cf
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.004181ce
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40f2ed
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0xffffffff
jbe 0x40f403
jmp 0x40f310
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x40f321
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x40f33a
mov ebp, 0x404
cmp byte [esi], 0
je 0x40f35f
cmp byte [esi + 1], 0
je 0x40f403
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40f362
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40f38a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f384
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40f3b0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40f39b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0041a2e0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x40f403
lea eax, [ebp - 3]
test eax, eax
jl 0x40f3ee
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x40f3de
cmp byte [eax + ebx + 1], 0x4b
jne 0x40f3de
cmp byte [eax + ebx + 2], 5
jne 0x40f3de
cmp byte [eax + ebx + 3], 6
je 0x40f3e4
test eax, eax
jge 0x40f3c0
jmp 0x40f3ee
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x40f403
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x40f304
push ebx
call fcn.00417f94
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x40fd30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40fd48
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x40fd3d
cmp dword [edi + 0x7c], ebx
je 0x40fd57
call fcn.00410120
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040faa0
add esp, 0xc
test eax, eax
je 0x40fd7d
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.004181ce
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x40fdbf
push 0x4000
call fcn.004181ce
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
jne 0x40fdcb
push ebp
call fcn.00417f94
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
cmp eax, ebx
mov dword [ebp + 0x18], ebx
jne 0x40fe14
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.0040eb90
test eax, eax
jne 0x40fe14
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40fe3e
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x40fe47
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
mov al, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg al
lea edx, [ebp + 0x70]
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
sbb eax, eax
and eax, 0xc
cmp esi, ebx
mov dword [ebp + 0x7c], eax
je 0x40fe83
mov cl, byte [esi]
cmp cl, bl
je 0x40fe83
call fcn.0040e8d0
add esi, 1
jne 0x40fe73
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x410280
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [edi], 0
push esi
jne 0x41031e
cmp dword [edi + 4], 0xffffffff
jne 0x41031e
lea esi, [edi + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4102b0
sub eax, edx
sar eax, 1
movzx eax, word [edi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4102e6
cmp ax, 0x2f
je 0x4102e6
push 0x42cab4
push 0x104
push esi
call fcn.00418291
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
call fcn.0040eff0
add esp, 4
test eax, eax
jne 0x410304
mov eax, dword [esp + 0xc]
pop esi
pop ecx
ret 4
call fcn.0040f420
mov dword [edi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop esi
pop ecx
ret 4
mov eax, 0x1000000
pop esi
pop ecx
ret 4

Function at 0x410940
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x434284]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x41c]
test ebx, ebx
push esi
mov esi, dword [esp + 0x424]
je 0x41097d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41097d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [esi]
test ax, ax
je 0x410a30
mov ecx, esi
mov edx, esi
movzx eax, ax
cmp ax, 0x2f
je 0x41099c
cmp ax, 0x5c
jne 0x41099e
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x410990
cmp ecx, esi
je 0x4109e2
sub ecx, esi
sar ecx, 1
push edi
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x218]
push esi
push eax
call fcn.0041a2e0
lea ecx, [esp + 0x220]
push ecx
push ebx
mov word [esp + edi + 0x228], 0
call fcn.00410940
add esp, 0x14
pop edi
test ebx, ebx
mov word [esp + 8], 0
je 0x410a00
push ebx
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.00417cd3
add esp, 0xc
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00418291
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x410a30
push 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x418]
pop esi
pop ebx
xor ecx, esp
call fcn.004170e8
add esp, 0x414
ret
Function at 0x411540
Capabilities:
Encode data using xor
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x411620
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x411574
cmp dword [esi + 0x40], edi
jae 0x411574
push eax
call fcn.00416abb
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x41158b
lea eax, [edi + edi]
push eax
call fcn.00416ad9
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.0041a2e0
add esp, 0xc
cmp edi, ebp
jbe 0x41161c
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movzx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x42e190]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
add ecx, 1
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x42e190]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
add ebp, 1
cmp ebp, dword [esp + 0x18]
jb 0x4115a1
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x411659
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x411641
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.0041a2e0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41167a
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x411800
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427fb8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x434284]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [0x436ae8]
push 0xffffffffffffffff
xor edi, edi
push ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x28], edi
cmp dword [0x436b70], edi
jbe 0x4118be
mov eax, dword [0x436b6c]
mov esi, dword [eax]
cmp esi, eax
jne 0x411867
call fcn.00416f9a
mov eax, dword [0x436b6c]
mov ebx, dword [esi + 8]
mov esi, dword [eax]
cmp esi, eax
jne 0x41187e
call fcn.00416f9a
mov eax, dword [0x436b6c]
cmp esi, eax
je 0x41189d
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
push esi
mov dword [edx + 4], eax
call fcn.00416abb
add esp, 4
sub dword [0x436b70], 1
cmp ebp, edi
je 0x4118a8
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x14
call fcn.00416ad9
add esp, 4
cmp eax, edi
je 0x4118e2
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 0x2800
mov esi, eax
jmp 0x4118e4
xor esi, esi
cmp esi, edi
mov ebx, esi
je 0x411957
mov ecx, dword [esi + 0x10]
push ecx
mov dword [esi], 1
call fcn.00416860
add esp, 4
cmp eax, edi
mov dword [esi + 8], eax
je 0x411922
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x41189d
mov edx, dword [esi + 8]
push edx
call fcn.004170f7
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi + 8]
cmp eax, edi
je 0x411935
push eax
call fcn.004170f7
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x411943
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00416abb
add esp, 4
lea esi, [esp + 0x14]
call fcn.00411eb0
jmp 0x411962
cmp ebp, edi
je 0x411962
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411ef0
Capabilities:
Check os version
Shutdown system

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x411f4f
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x411f59
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x1c
ret
Function at 0x4125d0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push edi
push 0
push ebx
mov edi, eax
mov dword [esp + 0x10], 0
call fcn.00416c86
add esp, 8
cmp eax, 0xffffffff
jne 0x4125fb
pop edi
xor eax, eax
pop ebp
add esp, 8
ret
push 0
push ebp
call fcn.00416c86
add esp, 8
cmp eax, 0xffffffff
je 0x412616
pop edi
mov eax, 1
pop ebp
add esp, 8
ret
push esi
lea eax, [esp + 0xc]
push eax
push 0x42a65c
push 1
push 0
push 0x42a66c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x4126cc
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0x42c114
push eax
call edx
push 0
push edi
call fcn.00416c86
add esp, 8
cmp eax, 0xffffffff
jne 0x41267b
xor edi, edi
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push edi
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x42a67c
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
jl 0x4126c0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push ebp
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
test esi, esi
pop esi
pop edi
setge al
pop ebp
add esp, 8
ret
Function at 0x412770
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x428428
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
mov eax, dword [0x434284]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov esi, ecx
mov dword [esp + 0x24], 0
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x4127b2
lea eax, [esp + 0x30]
push 0
push eax
call fcn.00416c86
add esp, 8
cmp eax, 0xffffffff
jne 0x4127ea
cmp dword [esp + 0x44], 8
jb 0x4127d6
mov eax, dword [esp + 0x30]
push eax
call fcn.00416abb
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x1c
ret
xor eax, eax
mov dword [esi], eax
mov dword [edi], eax
mov dword [ebx], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [ebp], eax
call fcn.00411800
cmp dword [esp + 0x44], 8
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], eax
jae 0x412819
lea ecx, [esp + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x10]
push edx
shr eax, 1
push eax
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41286f
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [eax + 8]
lea edx, [esp + 0x14]
push edx
push 0x42cab4
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41286f
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov dword [esi], edx
mov ecx, dword [eax + 0xc]
mov dword [edi], ecx
mov edx, dword [eax + 0x10]
mov dword [ebx], edx
mov eax, dword [eax + 0x14]
mov dword [ebp], eax
mov esi, 1
jmp 0x412873
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00411980
add esp, 4
cmp dword [esp + 0x44], 8
jb 0x412894
mov edx, dword [esp + 0x30]
push edx
call fcn.00416abb
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x1c
ret

Function at 0x412e30
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
test ecx, ecx
push esi
mov esi, edx
je 0x412e66
push ebx
push edi
jmp 0x412e40
movzx edi, byte [esi]
xor ebx, ebx
movzx edx, ax
mov bh, al
shr edx, 8
xor edx, edi
sub ecx, 1
add esi, 1
xor bx, word [edx*2 + 0x435650]
test ecx, ecx
movzx eax, bx
jne 0x412e40
pop edi
pop ebx
pop esi
ret