joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404cf7
Capabilities:
Create process on windows

Disassembly:
push 4
mov eax, 0x4251fd
call fcn.00420b15
mov eax, dword [0x4309cc]
mov ecx, 0x4309cc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
add eax, 4
lea ecx, [ebp - 0x10]
call fcn.004051c1
mov esi, dword [ebp - 0x10]
push 5
push 0
push 0
push esi
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
call fcn.00401d08
xor eax, eax
call fcn.00420bb4
ret 4

Function at 0x404f48
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebx + 0xc], 0x202
jne 0x404f9e
push esi
push edi
mov esi, eax
lea edi, [ebx + 0x18]
add esi, 0x268
push edi
call fcn.00411557
lea eax, [ebp - 4]
push eax
call fcn.00411579
mov eax, dword [edi]
push edi
mov dword [ebx + 0x1c], eax
call fcn.00411557
push 5
xor eax, eax
push eax
push eax
push dword [ebp - 4]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401d08
pop edi
pop esi
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
leave
ret 8

Function at 0x404faa
Capabilities:
Check os version

Disassembly:
push ebx
push esi
lea esi, [eax + 0x280]
mov eax, dword [eax + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [esi + 8], eax
call edi
movzx ebx, al
call edi
shr eax, 8
movzx eax, al
cmp ebx, 6
ja 0x404fd7
jne 0x404ffb
test eax, eax
jbe 0x404ffb
mov eax, dword [esi]
test eax, eax
je 0x404fe6
and dword [esi], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
push 0x42b21c
push 0x17
push 0
push 0x42641c
call dword [sym.imp.ole32.dll_CoCreateInstance]
or dword [esi + 4], 0xffffffff
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x4053a6
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
mov edx, dword [ecx + 8]
push ebx
mov ebx, eax
mov eax, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
push esi
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
je 0x405430
push edi
mov edi, 0xff
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebx]
mov ebx, dword [ebp - 4]
shr ebx, 8
movzx edx, al
xor edx, dword [ebp - 4]
and edx, edi
xor ebx, dword [esi + edx*4]
movzx edx, bl
add edx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
imul edx, edx, 0x8088405
inc edx
mov dword [ebp - 8], edx
shr edx, 0x18
xor edx, dword [ebp - 0xc]
shr ebx, 8
and edx, edi
xor ebx, dword [esi + edx*4]
dec dword [ebp + 8]
mov edx, ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], al
inc ebx
cmp dword [ebp + 8], 0
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
jne 0x4053d3
pop edi
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
pop ebx
leave
ret 4
Function at 0x405444
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [eax]
movzx edx, dl
xor edx, ecx
push esi
mov esi, dword [eax + 0xc]
push edi
mov edi, 0xff
and edx, edi
mov edx, dword [esi + edx*4]
shr ecx, 8
xor edx, ecx
mov ecx, dword [eax + 8]
mov dword [eax], edx
movzx edx, dl
add edx, dword [eax + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [eax + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, edi
shr ecx, 8
xor ecx, dword [esi + edx*4]
pop edi
mov dword [eax + 8], ecx
pop esi
ret

Function at 0x405487
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42f0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
mov cx, word [eax + 8]
or cx, 2
movzx ecx, cx
mov ebx, ecx
xor ebx, 1
imul ebx, ecx
lea esi, [ebp + edi - 0x10]
sar ebx, 8
xor bl, byte [esi]
mov dl, bl
call fcn.00405444
inc edi
cmp edi, 0xb
mov byte [esi], bl
jl 0x4054a7
mov cx, word [eax + 8]
or cx, 2
movzx ecx, cx
mov ebx, ecx
xor ebx, 1
imul ebx, ecx
sar ebx, 8
xor bl, byte [ebp + edi - 0x10]
mov dl, bl
call fcn.00405444
mov ecx, dword [ebp - 4]
xor eax, eax
cmp bl, byte [ebp + 0xc]
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.00411d45
leave
ret 8

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

Disassembly:
push esi
mov esi, eax
test esi, esi
jne 0x405882
inc eax
pop esi
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4058bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x4058bb
call fcn.00405ed4
mov esi, eax
test esi, esi
je 0x4058bb
push esi
call edi
push esi
mov ebx, eax
call fcn.0041218e
pop ecx
cmp ebx, 0xffffffff
jne 0x4058bf
xor eax, eax
jmp 0x4058c8
movzx eax, bl
shr eax, 4
and eax, 1
pop edi
pop ebx
pop esi
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4058de
xor eax, eax
ret
not al
movzx eax, al
shr eax, 4
and eax, 1
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
push esi
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40592a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x405926
call fcn.00405ed4
mov esi, eax
test esi, esi
je 0x405926
push esi
call edi
push esi
mov ebx, eax
call fcn.0041218e
pop ecx
cmp ebx, 0xffffffff
jne 0x40592a
xor eax, eax
jmp 0x405935
not bl
movzx eax, bl
shr eax, 4
and eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x405a49
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x42f0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [eax], 0
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0x405c1e
cmp word [ebx], 0
je 0x405c1e
push ebx
call fcn.0040598b
mov esi, eax
pop ecx
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
jmp 0x405aa2
movzx ecx, word [eax]
cmp cx, 0x2f
je 0x405aa8
cmp cx, 0x5c
je 0x405aa8
dec eax
dec eax
cmp eax, esi
jne 0x405a91
jmp 0x405aad
xor ecx, ecx
mov word [eax], cx
push esi
call fcn.00412b1f
and dword [ebp - 0x14], 0
mov esi, 0x42a9f0
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
pop ecx
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
mov dword [ebp - 0x18], eax
call esi
mov ecx, 0x104
cmp eax, ecx
jle 0x405add
push ebx
call esi
jmp 0x405adf
mov eax, ecx
inc eax
push eax
push 2
call fcn.00412e2f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x405c1e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x18]
call fcn.00412e6f
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x405bf0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x405b6a
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx]
cmp ax, 0x5c
jne 0x405b49
cmp word [ecx + 2], ax
jne 0x405b49
push 0x42a9f8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push esi
call edi
jmp 0x405bcc
cmp ax, 0x2f
jne 0x405b56
push 0x42aa00
jmp 0x405b61
cmp ax, 0x5c
jne 0x405b72
push 0x427ff0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x405b72
push 0x427ff0
push esi
call edi
push ebx
push esi
call edi
mov eax, esi
call fcn.00405878
test eax, eax
jne 0x405bcc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405bcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
cmp eax, 3
je 0x405ba4
cmp eax, 0xce
jne 0x405bf0
cmp dword [0x4316d4], 0
je 0x405bf0
call fcn.00405ed4
mov ebx, eax
test ebx, ebx
je 0x405bcc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
test eax, eax
je 0x405bea
call fcn.0041218e
pop ecx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
call fcn.00412e6f
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x405b17
jmp 0x405bf0
call fcn.0041218e
pop ecx
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
call fcn.00405878
test eax, eax
jne 0x405c01
xor edi, edi
push dword [ebp - 0x18]
call fcn.0041218e
push dword [ebp - 0x10]
call fcn.0041218e
push esi
call fcn.0041218e
add esp, 0xc
mov eax, edi
jmp 0x405c20
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411d45
leave
ret
Function at 0x405e6f
Capabilities:
Set file attributes

Disassembly:
push esi
test edi, edi
je 0x405ed0
cmp word [edi], 0
je 0x405ed0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 4]
push eax
call fcn.0041226b
mov esi, eax
pop ecx
test esi, esi
je 0x405ed0
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.00405e42
push dword [esp + 0x10]
mov ecx, esi
call fcn.00405a49
mov ebx, eax
pop ecx
test ebx, ebx
je 0x405ec4
test byte [esp + 0xc], 2
je 0x405ec4
push dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call fcn.0041218e
pop ecx
mov eax, ebx
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x408365
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x424d0c
call fcn.00420b15
mov edi, ecx
push dword [ebp + 8]
call fcn.0040598b
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
jne 0x40838e
xor eax, eax
call fcn.00420bb4
ret 0x10
mov dword [ebp + 8], esi
mov dword [ebp - 4], ebx
cmp dword [edi + 0x60], 0xffffffff
je 0x4083a1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
cmp dword [ebp + 0x10], ebx
je 0x4083b7
push 0xffffffffffffffff
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0041234b
add esp, 0x10
push dword [ebp + 0xc]
mov eax, esi
call fcn.00408431
test eax, eax
jne 0x4083f6
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00405a49
pop ecx
test eax, eax
jne 0x4083dd
push esi
call fcn.0041218e
pop ecx
jmp 0x408384
push dword [ebp + 0xc]
mov eax, esi
call fcn.00408431
test eax, eax
jne 0x4083f6
push esi
call fcn.0041218e
pop ecx
mov eax, ebx
jmp 0x408386
push esi
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
call fcn.00412b1f
pop ecx
mov dword [edi + 0x64], eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
cmp dword [edi + 0xc], ebx
jne 0x40842c
lea eax, [ebp + 0xc]
push eax
push ebx
push edi
push 0x408729
push ebx
push ebx
mov dword [ebp + 0xc], ebx
call fcn.00413cc6
add esp, 0x18
mov dword [edi + 0xc], eax
xor ebx, ebx
inc ebx
jmp 0x4083eb

Function at 0x408431
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebp
push esi
mov esi, eax
xor eax, eax
push eax
push eax
push 2
push eax
push 1
mov ebp, 0x40000000
push ebp
push esi
call ebx
mov dword [edi + 0x60], eax
cmp eax, 0xffffffff
jne 0x4084db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
cmp eax, 5
jne 0x4084a1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push eax
push eax
push 2
push eax
push 1
push ebp
push esi
call ebx
mov dword [edi + 0x60], eax
cmp eax, 0xffffffff
jne 0x4084db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
jmp 0x4084d7
cmp eax, 3
jne 0x4084d7
cmp dword [0x4316d4], 0
je 0x4084d7
call fcn.00405ed4
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x4084d7
push eax
push eax
push 2
push eax
push 1
push ebp
push esi
call ebx
push esi
mov dword [edi + 0x60], eax
call fcn.0041218e
cmp dword [edi + 0x60], 0xffffffff
pop ecx
jne 0x4084db
xor eax, eax
jmp 0x4084de
xor eax, eax
inc eax
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4086cc
Capabilities:
Set file attributes

Disassembly:
push dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4
Function at 0x408739
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
and dword [esp + 8], 0
push ebp
push esi
push edi
mov esi, 0x10000
push esi
call fcn.0041226b
pop ecx
mov dword [esp + 0xc], eax
lea ebp, [ebx + 0x38]
jmp 0x40875e
mov esi, 0x10000
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebx + 0x2c]
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x4087dc
test ecx, ecx
jne 0x4087dc
cmp edi, esi
jl 0x4087d8
mov edi, esi
push 1
push dword [esp + 0x10]
lea esi, [ebx + 0x18]
call fcn.0040b8e2
mov eax, dword [ebx + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebp
mov dword [esp + 0x20], eax
call esi
test edi, edi
je 0x408806
push 0
lea eax, [esp + 0x14]
push eax
push edi
push dword [esp + 0x18]
push dword [ebx + 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4087f4
cmp dword [esp + 0x10], edi
jne 0x4087f4
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x10]
add dword [ebx + 0x30], eax
push ebp
adc dword [ebx + 0x34], 0
call esi
jmp 0x408811
xor edi, edi
jmp 0x4087e6
cmp edi, esi
jl 0x4087e2
mov edi, esi
test edi, edi
jne 0x408780
test eax, eax
je 0x40878e
mov dword [esp + 0x14], 1
jmp 0x40878e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x58], 1
jmp 0x408811
push 2
push dword [ebx + 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
cmp dword [esp + 0x18], esi
je 0x408830
cmp dword [ebx + 0x58], esi
jne 0x408824
cmp dword [esp + 0x1c], esi
jne 0x408830
push dword [ebx + 0x54]
mov dword [ebx + 0x14], esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esp + 0x14], esi
je 0x408759
push dword [esp + 0xc]
call fcn.0041218e
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x40af45
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [esi + 0x18]
sub edi, dword [esi + 0x1c]
cmp dword [esi + 0x10], 0
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
jne 0x40af7b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40af7b
push eax
call fcn.0041226b
pop ecx
mov dword [esi + 0x10], eax
test eax, eax
jne 0x40af7b
xor eax, eax
jmp 0x40b07b
cmp ebx, edi
jg 0x40afa6
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0x1c]
push ebx
push eax
push dword [ebp + 8]
call fcn.004156f0
add dword [esi + 0x1c], ebx
mov eax, dword [ebp + 0xc]
add esp, 0xc
add dword [esi + 0x20], ebx
adc dword [esi + 0x24], 0
mov dword [eax], ebx
jmp 0x40b078
mov eax, dword [ebp + 0xc]
and dword [eax], 0
test edi, edi
jle 0x40afe3
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0x1c]
push edi
push eax
push dword [ebp + 8]
call fcn.004156f0
and dword [esi + 0x18], 0
and dword [esi + 0x1c], 0
mov eax, dword [ebp + 0xc]
add dword [eax], edi
mov eax, dword [ebp + 8]
add eax, edi
mov dword [ebp - 4], eax
mov eax, edi
cdq
add esp, 0xc
sub ebx, edi
add dword [esi + 0x20], eax
adc dword [esi + 0x24], edx
mov ecx, dword [esi + 0x14]
cmp ebx, ecx
jb 0x40b024
push 0
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp - 4]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40af74
push 1
xor edi, edi
push edi
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x24], edi
add dword [eax], ecx
jmp 0x40b078
xor edx, edx
push edx
lea eax, [esi + 0x18]
push eax
push ecx
push dword [esi + 0x10]
mov dword [eax], edx
push dword [esi + 0xc]
mov dword [esi + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40af74
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40b078
cmp ebx, eax
jb 0x40b052
mov ebx, eax
test ebx, ebx
je 0x40b078
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0x1c]
push ebx
push eax
push dword [ebp - 4]
call fcn.004156f0
add dword [esi + 0x1c], ebx
mov eax, dword [ebp + 0xc]
add esp, 0xc
add dword [esi + 0x20], ebx
adc dword [esi + 0x24], 0
add dword [eax], ebx
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 8

Function at 0x40b380
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 1
push 0
push 0
push dword [ebp - 4]
mov edi, eax
call fcn.00419e30
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
pop edi
leave
ret
Function at 0x40b43a
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x38], edi
jne 0x40b449
xor eax, eax
jmp 0x40b470
push ebx
mov ebx, dword [esp + 0x18]
push edi
push ebx
push dword [esp + 0x1c]
mov dword [esi + 0x18], edi
push dword [esp + 0x1c]
mov dword [esi + 0x1c], edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebx]
add dword [esi + 0x20], ecx
pop ebx
adc dword [esi + 0x24], edi
pop edi
pop esi
ret 0xc

Function at 0x40b68b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x138]
test eax, eax
jne 0x40b69c
inc eax
leave
ret
push 0
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [esi + 0x38]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
cmp ecx, dword [esi + 0x138]
je 0x40b6bf
xor eax, eax
leave
ret
and dword [esi + 0x138], 0
leave
ret

Function at 0x40b702
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
call fcn.0040b68b
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x40b719
lea edi, [ebp - 4]
push 0
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b738
mov ecx, dword [edi]
add dword [esi + 0x18], ecx
adc dword [esi + 0x1c], 0
pop edi
pop esi
leave
ret 0xc

Function at 0x40bba3
Capabilities:
Hash data with crc32

Disassembly:
mov dword [esi], vtable.CArkExtractorImpl.0
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x4c], 0x428370
mov dword [esi + 0x3c], vtable.CArkCrypto.0
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], ecx
lea eax, [esi + 0x158]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 4
mov dword [eax], vtable.CRecordVector_char__.0
push 0x70
push ecx
lea eax, [esi + 0xe8]
push eax
mov dword [esi + 0x64], 0xff
mov dword [esi + 0x78], ecx
mov dword [esi + 0x74], 0x40819d
mov dword [esi + 4], ecx
mov dword [esi + 0x70], ecx
call fcn.00414a50
add esp, 0xc
mov eax, esi
ret
Function at 0x4113e2
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x42f0a0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x425243
call fcn.00420b15
and dword [ebp - 0x10], 0
mov esi, 0x104
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41144e
cmp eax, esi
jge 0x41144e
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp]
call fcn.00401c7d
and dword [ebp - 4], 0
push 0x427ff0
push ebx
mov ecx, eax
call fcn.0040f7ed
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00401d08
jmp 0x411459
push ebx
mov edi, 0x427ff8
call fcn.00401c7d
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00411d45
add ebp, 0x20c
leave
ret

Function at 0x411c1f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x430a20], 0
push esi
jne 0x411b92
call fcn.00411ab8
test eax, eax
je 0x411bd5
mov eax, dword [0x430a20]
cmp eax, 1
jne 0x411bb3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x411bd5
pop esi
ret
push eax
call dword [0x430a28]
test eax, eax
jne 0x411c1d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x411bd9
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x430a20]
call dword [0x430a28]
mov edi, eax
test edi, edi
je 0x411bfe
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x411c1a
mov edi, esi
add esi, 0xff0
push edi
push dword [0x430a20]
call dword [0x430a24]
add edi, 0x10
cmp edi, esi
jb 0x411c06
mov eax, edi
pop edi
pop esi
ret
jmp 0x411b7f

Function at 0x411d45
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f0a0]
jne 0x411d4f
repz ret
jmp fcn.00414cbc
Function at 0x41cd30
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.00414f3a
and dword [ebp - 4], 0
cmp dword [0x4315e8], 0
mov ebx, eax
jne 0x41cde1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41ce92
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41ce92
push eax
call fcn.00414ec8
mov dword [esp], 0x4274f0
push edi
mov dword [0x4315e8], eax
call esi
push eax
call fcn.00414ec8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4315ec], eax
call esi
push eax
call fcn.00414ec8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4315f0], eax
call esi
push eax
call fcn.00414ec8
pop ecx
mov dword [0x4315f8], eax
test eax, eax
je 0x41cde1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414ec8
pop ecx
mov dword [0x4315f4], eax
mov eax, dword [0x4315f4]
cmp eax, ebx
je 0x41ce39
cmp dword [0x4315f8], ebx
je 0x41ce39
push eax
call fcn.00414f43
push dword [0x4315f8]
mov esi, eax
call fcn.00414f43
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41ce39
test edi, edi
je 0x41ce39
call esi
test eax, eax
je 0x41ce30
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ce30
test byte [ebp - 0xc], 1
jne 0x41ce39
or dword [ebp + 0x10], 0x200000
jmp 0x41ce72
mov eax, dword [0x4315ec]
cmp eax, ebx
je 0x41ce72
push eax
call fcn.00414f43
pop ecx
test eax, eax
je 0x41ce72
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41ce72
mov eax, dword [0x4315f0]
cmp eax, ebx
je 0x41ce72
push eax
call fcn.00414f43
pop ecx
test eax, eax
je 0x41ce72
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4315e8]
call fcn.00414f43
pop ecx
test eax, eax
je 0x41ce92
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ce94
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret