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

Disassembly:
push 4
mov eax, 0x424642
call fcn.0041fef5
mov eax, dword [0x42f98c]
mov ecx, 0x42f98c
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.004050e6
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.00401c3a
xor eax, eax
call fcn.0041ff94
ret 4

Function at 0x404e6d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebx + 0xc], 0x202
jne 0x404ec3
push esi
push edi
mov esi, eax
lea edi, [ebx + 0x18]
add esi, 0x270
push edi
call fcn.00410938
lea eax, [ebp - 4]
push eax
call fcn.0041095a
mov eax, dword [edi]
push edi
mov dword [ebx + 0x1c], eax
call fcn.00410938
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.00401c3a
pop edi
pop esi
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
leave
ret 8

Function at 0x404ecf
Capabilities:
Check os version

Disassembly:
push ebx
push esi
lea esi, [eax + 0x288]
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 0x404efc
jne 0x404f20
test eax, eax
jbe 0x404f20
mov eax, dword [esi]
test eax, eax
je 0x404f0b
and dword [esi], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
push 0x42a134
push 0x17
push 0
push 0x42540c
call dword [sym.imp.ole32.dll_CoCreateInstance]
or dword [esi + 4], 0xffffffff
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x4052cb
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 + 0x18]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
je 0x405355
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 0x4052f8
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 0x4053a9
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 + 0x18]
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 0x4053ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42e070]
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.004053a9
inc edi
cmp edi, 0xc
mov byte [esi], bl
jl 0x40540c
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.0041110d
leave
ret 8

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

Disassembly:
push esi
mov esi, eax
test esi, esi
jne 0x405756
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 0x405793
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x40578f
call fcn.00405d93
mov esi, eax
test esi, esi
je 0x40578f
push esi
call edi
push esi
mov ebx, eax
call fcn.00411556
pop ecx
cmp ebx, 0xffffffff
jne 0x405793
xor eax, eax
jmp 0x40579c
movzx eax, bl
shr eax, 4
and eax, 1
pop edi
pop ebx
pop esi
ret

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

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

Function at 0x4057be
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 0x4057fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x4057fa
call fcn.00405d93
mov esi, eax
test esi, esi
je 0x4057fa
push esi
call edi
push esi
mov ebx, eax
call fcn.00411556
pop ecx
cmp ebx, 0xffffffff
jne 0x4057fe
xor eax, eax
jmp 0x405809
not bl
movzx eax, bl
shr eax, 4
and eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x405919
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x42e070]
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 0x405aee
cmp word [ebx], 0
je 0x405aee
push ebx
call fcn.0040588b
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 0x405972
movzx ecx, word [eax]
cmp cx, 0x2f
je 0x405978
cmp cx, 0x5c
je 0x405978
dec eax
dec eax
cmp eax, esi
jne 0x405961
jmp 0x40597d
xor ecx, ecx
mov word [eax], cx
push esi
call fcn.00411f19
and dword [ebp - 0x14], 0
mov esi, 0x4299d8
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 0x4059ad
push ebx
call esi
jmp 0x4059af
mov eax, ecx
inc eax
push eax
push 2
call fcn.00412229
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x405aee
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x18]
call fcn.00412269
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x405ac0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x405a3a
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx]
cmp ax, 0x5c
jne 0x405a19
cmp word [ecx + 2], ax
jne 0x405a19
push 0x4299e0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push esi
call edi
jmp 0x405a9c
cmp ax, 0x2f
jne 0x405a26
push 0x4299e8
jmp 0x405a31
cmp ax, 0x5c
jne 0x405a42
push 0x426fd8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x405a42
push 0x426fd8
push esi
call edi
push ebx
push esi
call edi
mov eax, esi
call fcn.0040574c
test eax, eax
jne 0x405a9c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405a9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
cmp eax, 3
je 0x405a74
cmp eax, 0xce
jne 0x405ac0
cmp dword [0x43068c], 0
je 0x405ac0
call fcn.00405d93
mov ebx, eax
test ebx, ebx
je 0x405a9c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
test eax, eax
je 0x405aba
call fcn.00411556
pop ecx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
call fcn.00412269
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4059e7
jmp 0x405ac0
call fcn.00411556
pop ecx
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
call fcn.0040574c
test eax, eax
jne 0x405ad1
xor edi, edi
push dword [ebp - 0x18]
call fcn.00411556
push dword [ebp - 0x10]
call fcn.00411556
push esi
call fcn.00411556
add esp, 0xc
mov eax, edi
jmp 0x405af0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041110d
leave
ret
Function at 0x40826f
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x42412b
call fcn.0041fef5
mov edi, ecx
push dword [ebp + 8]
call fcn.0040588b
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
jne 0x408298
xor eax, eax
call fcn.0041ff94
ret 0xc
mov dword [ebp + 8], esi
mov dword [ebp - 4], ebx
cmp dword [edi + 0x60], 0xffffffff
je 0x4082ab
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
cmp dword [ebp + 0x10], ebx
je 0x4082c3
push 0xffffffffffffffff
push esi
push 0x12c
push dword [ebp + 0x10]
call fcn.00411713
add esp, 0x10
push dword [ebp + 0xc]
mov eax, esi
call fcn.0040833d
test eax, eax
jne 0x408302
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00405919
pop ecx
test eax, eax
jne 0x4082e9
push esi
call fcn.00411556
pop ecx
jmp 0x40828e
push dword [ebp + 0xc]
mov eax, esi
call fcn.0040833d
test eax, eax
jne 0x408302
push esi
call fcn.00411556
pop ecx
mov eax, ebx
jmp 0x408290
push esi
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
call fcn.00411f19
pop ecx
mov dword [edi + 0x64], eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
cmp dword [edi + 0xc], ebx
jne 0x408338
lea eax, [ebp + 0xc]
push eax
push ebx
push edi
push 0x408621
push ebx
push ebx
mov dword [ebp + 0xc], ebx
call fcn.004130b6
add esp, 0x18
mov dword [edi + 0xc], eax
xor ebx, ebx
inc ebx
jmp 0x4082f7

Function at 0x40833d
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 0x4083e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
cmp eax, 5
jne 0x4083ad
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 0x4083e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
jmp 0x4083e3
cmp eax, 3
jne 0x4083e3
cmp dword [0x43068c], 0
je 0x4083e3
call fcn.00405d93
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x4083e3
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.00411556
cmp dword [edi + 0x60], 0xffffffff
pop ecx
jne 0x4083e7
xor eax, eax
jmp 0x4083ea
xor eax, eax
inc eax
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4085c4
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 0x408631
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
push esi
push edi
push 0x10000
call fcn.00411633
pop ecx
mov dword [ebp - 4], eax
lea esi, [ebx + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x10]
mov edi, dword [ebx + 0x2c]
test eax, eax
jne 0x4086ca
cmp dword [ebx + 0x14], eax
jne 0x4086ca
mov ecx, 0x10000
cmp edi, ecx
jl 0x4086c6
mov edi, ecx
push 1
push dword [ebp - 4]
lea esi, [ebx + 0x18]
call fcn.0040b43f
mov eax, dword [ebx + 0x2c]
lea esi, [ebx + 0x38]
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x4086f8
push 0
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
push dword [ebx + 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4086e6
cmp dword [ebp - 8], edi
jne 0x4086e6
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
add dword [ebx + 0x30], eax
push esi
adc dword [ebx + 0x34], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x408703
xor edi, edi
jmp 0x4086d9
mov ecx, 0x10000
cmp edi, ecx
jl 0x4086d5
mov edi, ecx
test edi, edi
jne 0x40866f
test eax, eax
je 0x40867c
mov dword [ebp - 0xc], 1
jmp 0x40867c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x58], 1
jmp 0x408703
push 2
push dword [ebx + 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
cmp dword [ebx + 0x14], edi
je 0x408720
cmp dword [ebx + 0x58], edi
jne 0x408714
cmp dword [ebp - 0x10], edi
jne 0x408720
push dword [ebx + 0x54]
mov dword [ebx + 0x14], edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 0xc], edi
je 0x40864e
push dword [ebp - 4]
call fcn.00411556
pop ecx
pop edi
pop esi
leave
ret
Function at 0x40ab49
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 0x40ab74
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40ab74
push eax
call fcn.00411633
pop ecx
mov dword [esi + 0x10], eax
cmp ebx, edi
jg 0x40ab9f
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0x1c]
push ebx
push eax
push dword [ebp + 8]
call fcn.004148c0
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 0x40ac6d
mov eax, dword [ebp + 0xc]
and dword [eax], 0
test edi, edi
jle 0x40abdc
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0x1c]
push edi
push eax
push dword [ebp + 8]
call fcn.004148c0
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 0x40ac1d
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
jne 0x40abfe
xor eax, eax
jmp 0x40ac70
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 0x40ac6d
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 0x40abfa
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40ac6d
cmp ebx, eax
jb 0x40ac47
mov ebx, eax
test ebx, ebx
je 0x40ac6d
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0x1c]
push ebx
push eax
push dword [ebp - 4]
call fcn.004148c0
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 0x40aedc
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.00419230
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 0x40af96
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x38], edi
jne 0x40afa5
xor eax, eax
jmp 0x40afcc
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 0x40b127
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
xor ecx, ecx
cmp dword [esp + 0x14], eax
push eax
push eax
setne cl
push 2
push eax
mov ebp, 0x40000000
push ecx
push ebp
push esi
call ebx
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x40b1d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
cmp eax, 5
jne 0x40b19f
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 + 0xc], eax
cmp eax, 0xffffffff
jne 0x40b1d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
jmp 0x40b1d5
cmp eax, 3
jne 0x40b1d5
cmp dword [0x43068c], 0
je 0x40b1d5
call fcn.00405d93
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x40b1d5
push eax
push eax
push 2
push eax
push 1
push ebp
push esi
call ebx
push esi
mov dword [edi + 0xc], eax
call fcn.00411556
cmp dword [edi + 0xc], 0xffffffff
pop ecx
jne 0x40b1d9
xor eax, eax
jmp 0x40b1dc
xor eax, eax
inc eax
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40b1e2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x138]
test eax, eax
jne 0x40b1f3
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 0x40b216
xor eax, eax
leave
ret
and dword [esi + 0x138], 0
leave
ret

Function at 0x40b259
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
call fcn.0040b1e2
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x40b270
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 0x40b28f
mov ecx, dword [edi]
add dword [esi + 0x18], ecx
adc dword [esi + 0x1c], 0
pop edi
pop esi
leave
ret 0xc

Function at 0x40b6da
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 + 0x58], 0x427358
mov dword [esi + 0x3c], vtable.CArkCrypto.0
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], ecx
lea eax, [esi + 0x168]
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 + 0xf8]
push eax
mov dword [esi + 0x70], 0xff
mov dword [esi + 0x88], ecx
mov dword [esi + 0x84], 0x4080a7
mov dword [esi + 4], ecx
mov dword [esi + 0x80], ecx
call fcn.00413c20
add esp, 0xc
mov eax, esi
ret
Function at 0x410fc8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x42f9e0], 0
push esi
jne 0x410f3b
call fcn.00410e61
test eax, eax
je 0x410f7e
mov eax, dword [0x42f9e0]
cmp eax, 1
jne 0x410f5c
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x410f7e
pop esi
ret
push eax
call dword [0x42f9e8]
test eax, eax
jne 0x410fc6
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 0x410f82
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x42f9e0]
call dword [0x42f9e8]
mov edi, eax
test edi, edi
je 0x410fa7
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x410fc3
mov edi, esi
add esi, 0xff0
push edi
push dword [0x42f9e0]
call dword [0x42f9e4]
add edi, 0x10
cmp edi, esi
jb 0x410faf
mov eax, edi
pop edi
pop esi
ret
jmp 0x410f28

Function at 0x41110d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e070]
jne 0x411117
repz ret
jmp fcn.00413e8c

Function at 0x41c130
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.0041410a
and dword [ebp - 4], 0
cmp dword [0x4305a8], 0
mov ebx, eax
jne 0x41c1e1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41c292
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41c292
push eax
call fcn.00414098
mov dword [esp], 0x4264d8
push edi
mov dword [0x4305a8], eax
call esi
push eax
call fcn.00414098
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4305ac], eax
call esi
push eax
call fcn.00414098
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4305b0], eax
call esi
push eax
call fcn.00414098
pop ecx
mov dword [0x4305b8], eax
test eax, eax
je 0x41c1e1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414098
pop ecx
mov dword [0x4305b4], eax
mov eax, dword [0x4305b4]
cmp eax, ebx
je 0x41c239
cmp dword [0x4305b8], ebx
je 0x41c239
push eax
call fcn.00414113
push dword [0x4305b8]
mov esi, eax
call fcn.00414113
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41c239
test edi, edi
je 0x41c239
call esi
test eax, eax
je 0x41c230
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41c230
test byte [ebp - 0xc], 1
jne 0x41c239
or dword [ebp + 0x10], 0x200000
jmp 0x41c272
mov eax, dword [0x4305ac]
cmp eax, ebx
je 0x41c272
push eax
call fcn.00414113
pop ecx
test eax, eax
je 0x41c272
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41c272
mov eax, dword [0x4305b0]
cmp eax, ebx
je 0x41c272
push eax
call fcn.00414113
pop ecx
test eax, eax
je 0x41c272
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4305a8]
call fcn.00414113
pop ecx
test eax, eax
je 0x41c292
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41c294
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ad525f6
Capabilities:
Encode data using xor

Disassembly:
push 8
call dword [esp + 0x58]
inc dword [ebp - 0xc3]
call dword [esp + 0x58]
xor edx, esi
xchg ecx, eax
push esp
call dword [esp + 0x5c]
call dword [esp + 0x5c]
cmp eax, ebp
call dword [esp + 0x58]
dec cl
call edi
mov cl, 0x69
cmp esi, eax
je fcn.4ad525f6
lea edx, [esi - 0x4e]
inc edx
inc ecx
xchg esi, esi
push eax
sbb esi, esp
rdtsc
pop esi
ret