joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afae1
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
mov edi, ecx
cmp dword [edi + 0x64], 0
je 0x4afaf8
push dword [edi + 0x64]
call esi
cmp dword [edi + 0x70], 0
je 0x4afb03
push dword [edi + 0x70]
call esi
xor ebp, ebp
cmp dword [edi + 0x78], ebp
je 0x4afbf1
push 0x537910
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
test al, 1
je 0x4afb2c
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [edi + 0x78]
test al, 2
je 0x4afb40
push dword [edi + 0x80]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
mov eax, dword [edi + 0x78]
pop ecx
test al, 4
je 0x4afb51
push dword [edi + 0x84]
call dword [sym.imp.VCRUNTIME140.dll__set_purecall_handler]
pop ecx
mov ebx, dword [0x537930]
mov eax, dword [ebx + 4]
add eax, 0xfffffffc
cmp dword [eax], edi
jne 0x4afb66
mov dword [ebx + 4], eax
jmp 0x4afbb7
push str.warning:_removing_Breakpad_handler_out_of_order_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
pop ecx
push eax
call fcn.004ac9a0
mov ebx, dword [0x537930]
pop ecx
pop ecx
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
cmp esi, eax
je 0x4afbb7
lea ebp, [esi + 4]
cmp dword [esi], edi
jne 0x4afba8
mov eax, dword [ebx + 4]
sub eax, ebp
push eax
push ebp
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
add dword [ebx + 4], 0xfffffffc
jmp 0x4afbae
add esi, 4
add ebp, 4
mov eax, dword [ebx + 4]
cmp esi, eax
jne 0x4afb8e
xor ebp, ebp
mov ecx, dword [ebx]
cmp ecx, eax
jne 0x4afbe6
test ecx, ecx
je 0x4afbd6
mov edx, dword [ebx + 8]
sub edx, ecx
and edx, 0xfffffffc
call fcn.0040b940
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
push 0xc
push ebx
call fcn.004b43aa
pop ecx
pop ecx
mov dword [0x537930], ebp
push 0x537910
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [edi + 0xc], ebp
jne 0x4afc37
push 1
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [edi + 0x90]
mov dword [edi + 0x88], ebp
push eax
call ebx
push dword [edi + 0xa8]
call esi
push dword [edi + 0xac]
call esi
push 0x537928
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4afc4d
push 0x537910
call ebx
lea ecx, [edi + 0xc0]
call fcn.004b05aa
lea ecx, [edi + 0x40]
call fcn.0040a900
lea ecx, [edi + 0x28]
call fcn.0040a900
lea ecx, [edi + 0x10]
call fcn.0040a900
mov ecx, dword [edi + 0xc]
pop edi
pop esi
pop ebp
pop ebx
test ecx, ecx
je 0x4afc81
push ecx
call fcn.004b05e3
ret
Function at 0x4b084a
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
sub esp, 0xa0
push ebx
mov ebx, ecx
push ebp
push esi
lea ebp, [ebx + 0x348]
cmp dword [ebp + 0x14], 8
jb 0x4b0864
mov ebp, dword [ebp]
mov esi, dword [ebx + 0x24]
push edi
mov edi, dword [ebx + 0x360]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x4c], eax
xorps xmm0, xmm0
lea eax, [ebx + 0x38]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], eax
xor esi, esi
lea eax, [ebx + 0x3c]
mov dword [esp + 0x48], 1
mov dword [esp + 0x58], eax
lea eax, [ebx + 0x40]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x20]
push esi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x14]
push eax
push 0x34
lea eax, [esp + 0x20]
mov dword [esp + 0x74], esi
push eax
push 0x34
lea eax, [esp + 0x5c]
mov dword [esp + 0x80], esi
push eax
push dword [esp + 0xcc]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
pop edi
test eax, eax
je 0x4b09c2
cmp dword [esp + 0x10], 2
jne 0x4b09c2
cmp dword [esp + 0x14], esi
je 0x4b09c2
cmp dword [esp + 0x30], esi
je 0x4b09c2
cmp dword [esp + 0x34], esi
je 0x4b09c2
cmp dword [esp + 0x38], esi
je 0x4b09c2
push esi
lea eax, [esp + 0x10]
mov dword [esp + 0x80], esi
push eax
push 0x34
lea eax, [esp + 0x84]
mov dword [esp + 0x8c], esi
push eax
push dword [esp + 0xc0]
xorps xmm0, xmm0
mov dword [esp + 0x98], esi
movups xmmword [esp + 0x9c], xmm0
mov dword [esp + 0xbc], esi
movups xmmword [esp + 0xac], xmm0
mov dword [esp + 0x8c], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b09c2
mov ecx, dword [esp + 0x30]
mov al, 1
mov dword [ebx + 0x28], ecx
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x30], ecx
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x34], ecx
jmp 0x4b09c4
xor al, al
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 4
Function at 0x4b1660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e90d0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x532008]
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
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4b1747
cmp byte [eax + 0x54], 0
je 0x4b1747
add eax, 0x1c
lea ecx, [ebp - 0x34]
push eax
call fcn.0040f1b0
push 0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00476de0
add esp, 4
mov byte [ebp - 4], 1
lea edi, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [esi]
cmovae edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
cmp dword [eax + 0x14], 8
jb 0x4b16e2
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4b172c
push 2
push 0
push 0
push esi
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x2c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0040a1a0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f200
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b40ec
mov esp, ebp
pop ebp
ret 4
Function at 0x4bb710
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e990e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.004c04f0
lea esi, [edi + 4]
mov dword [edi], vtable.Poco::JSON::ParseHandler.0
push 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004b40fd
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 2
call fcn.00482ab0
mov al, byte [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov byte [edi + 0x34], al
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c4940
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e9980
push eax
mov dword fs:[0], esp
sub esp, 0x88
push esi
mov esi, ecx
lea eax, [esi + 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [esi + 8], ecx
test ecx, ecx
je 0x4c49a5
mov eax, dword [esi + 0x10]
pop esi
test eax, eax
je 0x4c4995
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x4c49d5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push str.cannot_create_thread
lea ecx, [ebp - 0x24]
call fcn.0040a260
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.004c3b80
push 0x52e680
lea eax, [ebp - 0x68]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.cannot_set_thread_priority
lea ecx, [ebp - 0x3c]
call fcn.0040a260
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x94]
call fcn.004c3b80
push 0x52e680
lea eax, [ebp - 0x94]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x10002003
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10008fa0]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10008ad0]
je 0x10002030
inc eax
cmp eax, 0x12
jb 0x10002021
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10008ad0]
jne 0x10002164
mov eax, dword [0x1000936c]
cmp eax, 1
je 0x1000213f
cmp eax, edx
jne 0x10002060
cmp dword [0x10009370], 1
je 0x1000213f
cmp ecx, 0xfc
je 0x10002164
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10002099
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.10003810
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.10003910
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100020db
lea eax, [ebp - 0x10c]
push eax
call fcn.10003910
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x10006958
push edi
call fcn.10003de0
add esp, 0x10
push edi
call fcn.10003910
push dword [esi + 0x10008ad4]
mov ebx, eax
call fcn.10003910
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10001fc0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10003810
push edi
push ebx
call fcn.10003820
push 0x10006938
push ebx
call fcn.10003820
push dword [esi + 0x10008ad4]
push ebx
call fcn.10003820
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10003cdd
add esp, 0x2c
jmp 0x10002164
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x10008ad4]
push dword [esi]
call fcn.10003910
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.10003f35
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4014c5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
lea eax, [ebp - 8]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebx, ebx
lea eax, [ebp - 0x28]
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x20
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x401527
push 7
lea eax, [ebp - 0x28]
push str.PKBACK
push eax
call fcn.00401028
add esp, 0xc
test eax, eax
jne 0x401527
mov al, byte [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmp al, bl
je 0x401523
cmp al, 0x2e
je 0x401523
cmp al, 0x20
je 0x401523
mov al, byte [ecx + 1]
inc ecx
jmp 0x401511
cmp byte [ecx], bl
jne 0x40152d
or ax, 0xffff
jmp 0x401559
mov al, byte [ecx]
cmp al, 0x30
jb 0x401537
cmp al, 0x39
jbe 0x40153a
inc ecx
jmp 0x40152d
xor eax, eax
mov dl, byte [ecx]
cmp dl, bl
je 0x401559
movzx edx, dl
lea eax, [eax + eax*4]
shl eax, 1
sub edx, 0x30
js 0x401559
cmp edx, 9
jg 0x401559
add eax, edx
inc ecx
jmp 0x40153c
pop ebx
leave
ret 4

Function at 0x4016f6
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [0x409300]
mov edx, ecx
dec ecx
test edx, edx
je 0x401729
push edi
lea edx, [ecx + 1]
mov ecx, dword [esp + 8]
push esi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x408f00]
xor eax, esi
inc ecx
dec edx
jne 0x40170f
pop esi
pop edi
mov dword [0x409300], eax
ret

Function at 0x401a9f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
clc
div ecx
test edx, edx
je 0x401aad
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004017bf
cmpsd dword [esi], dword es:[edi]
and cl, ch
int3

Function at 0x401ba8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lahf
adc esi, eax
inc ebp
mov al, byte [0xa145c633]
mov byte cs:[ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004017cf
invalid
call dword [eax + 0x56]
Function at 0x401d0c
Capabilities:
Inspect section memory permissions

Disassembly:
adc byte [eax], al
add bh, bh
jne 0x401cdc
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x401fb8
test bh, dl
add al, byte [eax]
add bh, bh
mov ch, 0x4c
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.00401730
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x401d2f
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
ror dword [ebx + 0x408b1448], 0xc
ror dword [ebx + 0x408b1448], 0xc
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.00401730
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x401cfc
call fcn.004017bf
push ss
jne 0x401cca
insd dword es:[edi], dx
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x401fae
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x401d64
cmp dword [eax + 0xc], ebx
Function at 0x401d5e
Capabilities:
Inspect section memory permissions

Disassembly:
je 0x401e07
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.004017bf
xor eax, 0x390df433
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
call fcn.004017bf
and dword [eax], edx
jae 0x401e21
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x401e73
add eax, esi
cmp dword [eax], ebx
je 0x401e73
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
push eax
add al, 0x8d
dec eax
or byte [ebx], al
ror byte [ecx - 0x35c4f7b3], 1
jae 0x401e6e
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x401e58
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x401e60
cmp edx, ebx
jne 0x401fae
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x401e2f
add eax, dword [eax + 4]
jmp 0x401e1c
mov dword [ebp + 0xc], ebx
jmp 0x401e7e
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x401e96
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x401eb4
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x401f12
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x401ef9
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x401f02
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x401f0c
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x401eee
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x401e78
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x401f5f
dec eax
je 0x401f56
sub eax, 3
je 0x401f4d
mov dword [ebp - 4], 0x40
jmp 0x401f7c
mov dword [ebp - 4], 4
jmp 0x401f62
mov dword [ebp - 4], 0x20
jmp 0x401f62
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x401fae
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x401f2e
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004017bf
mov edx, eax
mov eax, dword [0x1475ff5a]
push 1
push esi
call edi
mov eax, esi
jmp 0x401fba
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401fed
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add dh, al
test dword [eax + 0x62fffffc], esi
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.004017cf
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00401784
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.004017cf
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00401784
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.004017cf
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00401784
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.004017bf
push eax
arpl word [ecx - 0x335a7fce], dx
cli
invalid

Function at 0x403bf6
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec eax
neg eax
sbb eax, eax
neg eax
ret
Function at 0x403c17
Capabilities:
Get common file path
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
push ebx
push esi
push edi
xor ebx, ebx
push 4
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
cmp eax, ebx
jne 0x403daa
push dword [ebp + 8]
lea eax, [ebp - 0x520]
push 0x408b58
push str._hs_hs_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, str._Rename__r_n
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x10
mov dword [ebp - 4], eax
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x120]
push 0x104
push eax
mov dword [ebp - 8], ebx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x120]
push eax
call fcn.00401163
pop ecx
lea eax, [ebp - 0x120]
push str.WinInit.Ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x8000080
push 4
push ebx
push ebx
lea eax, [ebp - 0x120]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0xc], esi
je 0x403daa
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
lea eax, [edi + eax + 0xa]
push eax
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x403d92
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], esi
je 0x403d86
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00406130
pop ecx
cmp eax, ebx
pop ecx
jne 0x403d33
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + edi]
push 0x408b30
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add edi, eax
mov dword [ebp - 8], edi
jmp 0x403d64
push 0xa
push eax
call fcn.00406070
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x403d61
mov eax, dword [ebp + 8]
inc esi
add eax, edi
sub eax, esi
push eax
mov eax, dword [ebp - 4]
add eax, esi
push esi
push eax
call fcn.00405d20
add esp, 0xc
sub esi, dword [ebp + 8]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
push dword [ebp - 4]
lea eax, [ebp - 0x520]
push eax
mov eax, dword [ebp - 8]
add eax, esi
push eax
call fcn.00401000
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add edi, dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0xc]
push ebx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret