joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401073
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jmp 0x401856
mov eax, 0x405adc
call fcn.004045b0
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
nop
xor ebx, ebx
mov byte [ebp - 0x2c], 0x4b
mov byte [ebp - 0x2b], 0x45
mov byte [ebp - 0x2a], 0x52
mov byte [ebp - 0x29], 0x4e
mov byte [ebp - 0x28], 0x45
mov byte [ebp - 0x27], 0x4c
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x25], 0x32
mov byte [ebp - 0x24], 0x2e
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x6c
mov byte [ebp - 0x20], bl
nop
push str.HeapFree
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push 0x407e78
push eax
mov byte [ebp - 0x3c], 0x47
mov byte [ebp - 0x3b], 0x65
mov byte [ebp - 0x3a], 0x74
mov byte [ebp - 0x39], 0x50
mov byte [ebp - 0x38], 0x72
mov byte [ebp - 0x37], 0x6f
mov byte [ebp - 0x36], 0x63
mov byte [ebp - 0x35], 0x65
mov byte [ebp - 0x34], 0x73
mov byte [ebp - 0x33], 0x73
mov byte [ebp - 0x32], 0x48
mov byte [ebp - 0x31], 0x65
mov byte [ebp - 0x30], 0x61
mov byte [ebp - 0x2f], 0x70
mov byte [ebp - 0x2e], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0x25
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, 0x401928
ret
Function at 0x4023cf
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0x405b24
call fcn.004045b0
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [ebp - 0x10], esp
mov ebx, str.kernel32.dll
push str.VirtualFree
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.VirtualProtect
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x20], 0
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
lea edi, [ecx + eax + 0x18]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x20], eax
jge 0x402544
mov esi, dword [edi + 0x24]
mov eax, esi
mov ecx, esi
shr eax, 0x1d
shr ecx, 0x1e
mov edx, esi
and eax, 1
and ecx, 1
shr edx, 0x1f
test esi, 0x2000000
je 0x402485
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push 0x407e78
push eax
mov dword [ebp - 0x24], 0x4b
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
push 0x4000
push dword [eax + 0x10]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 0x40252f
ret
lea eax, [ecx + eax*2]
test esi, 0x4000000
lea eax, [edx + eax*2]
mov eax, dword [eax*4 + 0x41e638]
mov dword [ebp - 0x1c], eax
je 0x4024a1
or byte [ebp - 0x1b], 2
mov edi, dword [edi + 0x10]
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x4024f4
lea eax, [ebp - 0x28]
push 0x407e78
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], 0x10
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x24]
test al, 0x40
je 0x4024db
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
jmp 0x4024e7
test al, 0x80
je 0x4024ea
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x18], eax
mov eax, 0x4024f0
ret
cmp dword [ebp - 0x18], 0
jbe 0x402533
lea eax, [ebp - 0x2c]
push 0x407e78
push eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x2c], 0xf
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [eax + 0x10]
push dword [eax + 8]
call dword [ebp - 0x30]
mov eax, 0x40252f
ret
mov edi, dword [ebp - 0x14]
inc dword [ebp - 0x20]
add edi, 0x28
mov dword [ebp - 0x14], edi
jmp 0x402420
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x438c9a
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
mov ebx, dword [esp]
add esp, 4
dec ecx
and edi, ecx
inc edi
call fcn.00438cf7
sub esp, 4
mov dword [esp], 0x10ee7a3
mov ecx, dword [esp]
add esp, 4
and ecx, ecx
and edi, edi
xor dword [eax], ebx
sub esp, 4
mov dword [esp], 0xa587bbf7
mov ecx, dword [esp]
add esp, 4
sub edi, 0x8a83d2ca
add eax, 1
mov ecx, 0xd2d74264
and ecx, edi
cmp eax, esi
jne fcn.00438c9a
mov ecx, edi
or ecx, ecx
mov edi, 0xf43f2df7
ret
Function at 0x401fc3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x40a58c], 0
push esi
jne 0x401ffa
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 0x401fd4
mov dword [ecx*4 + 0x40a588], eax
inc ecx
cmp ecx, 0x100
jl 0x401fcf
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40202b
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 + 0x40a588]
xor eax, esi
inc ecx
dec edx
jne 0x40200d
pop edi
not eax
pop esi
ret 0xc
Function at 0x4038d1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403943
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x40391c
cmp dword [ebp + 0x10], ebx
jne 0x40394a
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.004038d1
test eax, eax
jne 0x40392e
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x403903
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x403943
Function at 0x4044f8
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x435000], 0
push ebx
push ebp
push esi
push edi
mov edi, pe_overlay
mov ebx, 0x435000
je 0x404517
push ebx
call fcn.0040681c
jmp 0x40451d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x42ec64]
test esi, esi
je 0x404570
mov ecx, dword [0x42ec28]
mov ecx, dword [ecx + 0x5c]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x42ec60]
add ecx, edx
dec esi
mov bp, word [ecx]
xor bp, ax
and ebp, edi
test bp, bp
je 0x404555
test esi, esi
jne 0x40453f
jmp 0x404570
mov edx, dword [ecx + 2]
mov dword [0x42e400], edx
mov edx, dword [ecx + 6]
mov dword [0x42eca4], edx
lea edx, [ecx + 0xa]
mov dword [0x42e3fc], edx
cmp dword [0x42e3fc], 0
jne 0x40458b
cmp di, 0xffff
jne 0x404587
mov edi, 0x3ff
jmp 0x40451f
xor edi, edi
jmp 0x40451f
movzx eax, word [ecx]
push eax
push ebx
call fcn.00406803
push 0xfffffffffffffffe
push 0x42e420
call fcn.004068b1
push eax
push dword [0x42b5f8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406273
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x42ce20], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x406297
test al, 0x10
jne 0x40629a
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x42ce20
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4062c5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x40633c
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040648e
test eax, eax
je 0x4063a0
test byte [ebp + 0xc], 1
push esi
je 0x406389
mov eax, dword [0x42ec24]
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x20], eax
call sub.KERNEL32.dll_lstrlenA
and byte [eax + esi + 1], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
mov word [ebp - 0x10], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
jmp 0x4063a0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4063a0
test byte [ebp + 0xc], 2
je 0x4063a0
push eax
push esi
call fcn.004065e2
pop esi
leave
ret 8
Function at 0x40648e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42ca20
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.0040643f
test eax, eax
jne 0x4064ad
xor eax, eax
jmp 0x4064f6
test byte [0x42ec30], 0x80
je 0x4064c1
mov cl, byte [eax]
test cl, cl
je 0x4064a9
cmp cl, 0x5c
je 0x4064a9
mov edi, eax
sub edi, esi
jmp 0x4064db
call fcn.00406b93
test eax, eax
je 0x4064d5
test byte [eax], 0x10
je 0x4064a9
push esi
call fcn.004063ed
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4064c7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40656b
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40659a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4065de
test edi, edi
jne 0x4065a5
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4065d8
Function at 0x4065e2
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40661a
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40661a
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40675f
mov eax, dword [0x40933c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov dword [0x42d7a8], eax
mov edi, 0x400
mov ebp, 0x42d7a8
je 0x40665e
push 1
push 0
push esi
call fcn.0040656b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406765
cmp eax, edi
jg 0x406765
mov esi, 0x42d3a8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406765
cmp eax, edi
jg 0x406765
push esi
push ebp
push str._s_s_r_n
push 0x42cfa8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40675f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x406747
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x40673b
push str._Rename__r_n
push edi
call fcn.004064fb
test eax, eax
jne 0x40676c
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call sub.KERNEL32.dll_lstrcpyA
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x42cfa8
push eax
call fcn.00406547
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42ec90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409314
push eax
call fcn.004064fb
test eax, eax
je 0x406722
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x406795
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x406788
sub eax, edi
jmp 0x406724
Function at 0x406799
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4067fd
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4067ec
cmp dword [ebp + 0x14], 1
je 0x4067ee
cmp dword [ebp + 0x14], 2
je 0x4067ee
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x401fcb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0x14]
mov dword [esi], 0x4052c0
cmp dword [edi], ebx
je 0x402070
push str._mozilla.org_observer_service_1
mov edx, 0x4058e0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 4]
call fcn.004013a3
mov eax, dword [ebp - 4]
test eax, eax
je 0x402050
mov ecx, dword [eax]
push ebx
push str.profile_change_net_teardown
push ebx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_change_teardown
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_qm
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_telemetry
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
xor edx, edx
mov ecx, edi
call fcn.0040133b
mov eax, dword [ebp - 4]
test eax, eax
je 0x402070
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4020a7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.xul.dll_NS_ShutdownXPCOM]
pop ecx
mov ecx, eax
shr ecx, 0x1f
test cl, 1
je 0x4020a7
push eax
push str.XPCOM_shutdown_failed_with_code_0x_x
call fcn.00402d39
pop ecx
pop ecx
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push dword [esi + 8]
push str.Finished_running__s_tests._n
call fcn.004037a0
pop ecx
pop ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4020c3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4020d0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x4020dc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x10]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x4020ec
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esp, ebp
pop ebp
ret
Function at 0x64681725
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 - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x6468181e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x64681864
mov dword [esp], str.malloc_failed
call sym._puts
mov eax, 0
jmp 0x646818ad
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
je 0x646818aa
mov dword [esp], str.ReadFile_failed
call sym._puts
mov eax, 0
jmp 0x646818ad
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x64681ad4
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 0x64681e60
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6468603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x64686034]
sub esp, 4
test ebx, ebx
je 0x64681eab
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 0x64681ea4
test esi, esi
je 0x64681ea4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x64681e80
mov dword [esp], 0x6468603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x64682090
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], 0x646841a8
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 0x646820e0
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 0x646821b8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x6468211e
cmp eax, 4
jne 0x64682140
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 0x6468212e
cmp edx, 4
je 0x6468212e
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.64682090
Function at 0x406ba0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x406bad
xor eax, eax
pop esi
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x406bbf
pop esi
ret
cmp ecx, 1
jne 0x406bcd
cmp byte [esi], 0x5c
jne 0x406bcd
xor eax, eax
pop esi
ret
push esi
call fcn.00406950
add esp, 4
test eax, eax
je 0x406be1
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402fef
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40302e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40302e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40302e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40302e
cmp dword [ecx + 0x74], 0xe
jbe 0x40302e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42db1e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42db4c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42db6a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042da88
jmp 0x42db6a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42db6a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042da88
test edi, edi
mov eax, edi
jne 0x42db54
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44617c]
test ecx, ecx
je 0x42dc1d
jmp 0x42db1d
ret 8