joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ec0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
push ebp
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x404edb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x20
xor eax, eax
mov ax, word [edi]
cmp eax, 0x4d42
je 0x404eee
cmp eax, 0x4142
jne 0x404ef3
add edi, 0xe
jmp 0x404edb
mov bx, word [edi + 0xa]
mov dx, word [edi + 8]
cmp bx, dx
mov ax, bx
ja 0x404f06
mov ax, dx
mov ecx, eax
mov ebp, 0
and ecx, 0xffff
cmp bx, 0x18
je 0x404f20
mov ebp, 1
shl ebp, cl
lea eax, [ebp*4 + 0x28]
xor esi, esi
mov si, word [edi + 4]
mov ecx, ebx
and ecx, 0xffff
mov dword [esp + 0x10], eax
imul esi, ecx
add esi, 0x1f
xor eax, eax
mov ax, word [edi + 6]
and esi, 0xffffffe7
shr esi, 3
mov ecx, edx
imul esi, eax
and ecx, 0xffff
mov eax, dword [esp + 0x10]
imul esi, ecx
add eax, esi
mov dword [esp + 0x14], eax
add eax, 0x83
shr eax, 5
push eax
push 0x7ffe
call fcn.004015d0
mov ebx, eax
test ebx, ebx
jne 0x404f88
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x20
mov eax, dword [esp + 0x10]
push 0
add eax, ebx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
push ecx
push ebx
call fcn.00405230
xor ecx, ecx
xor edx, edx
mov dword [ebx], 0x28
mov cx, word [edi + 4]
mov dword [ebx + 4], ecx
mov dx, word [edi + 6]
mov dword [ebx + 8], edx
mov ax, word [edi + 8]
test ebp, ebp
mov word [ebx + 0xc], ax
mov cx, word [edi + 0xa]
mov word [ebx + 0xe], cx
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x20], ebp
mov dword [ebx + 0x24], ebp
je 0x404fea
xor eax, eax
mov ax, word [ebx + 0xe]
push eax
mov eax, dword [edi]
add eax, edi
push eax
mov eax, dword [ebx]
add eax, ebx
push eax
call fcn.004051f0
lea eax, [ebp + ebp*2 + 0xc]
push esi
add eax, edi
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00405280
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [ecx], ebx
mov ecx, dword [esp + 0x10]
mov dword [edx], ebx
mov edx, dword [esp + 0x34]
mov dword [eax], ecx
mov eax, dword [esp + 0x38]
mov dword [edx], ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov dword [eax], edx
mov eax, dword [esp + 0x14]
pop ebp
mov dword [ecx], esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x20
Function at 0x405040
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push ebp
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x40505b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x20
mov eax, dword [esp + 0x24]
mov ax, word [eax]
and eax, 0xffff
cmp eax, 0x4142
jne 0x40507b
mov edi, dword [esp + 0x24]
xor eax, eax
mov ax, word [edi + 0xe]
add edi, 0xe
cmp eax, 0x4d42
jne 0x4051d8
mov dx, word [edi + 0x16]
mov eax, dword [edi + 0xa]
mov bx, word [edi + 0x18]
add edi, 0xa
add edi, 4
mov dword [esp + 0x1c], eax
cmp dx, bx
mov ax, dx
ja 0x4050a6
mov ax, bx
mov ecx, eax
mov ebp, 0
and ecx, 0xffff
cmp bx, 0x18
je 0x4050c0
mov ebp, 1
shl ebp, cl
lea eax, [ebp*4 + 0x28]
xor esi, esi
mov si, word [edi + 4]
mov ecx, ebx
and ecx, 0xffff
mov dword [esp + 0x10], eax
imul esi, ecx
add esi, 0x1f
xor eax, eax
mov ax, word [edi + 6]
and esi, 0xffffffe7
shr esi, 3
mov ecx, edx
imul esi, eax
and ecx, 0xffff
mov eax, dword [esp + 0x10]
imul esi, ecx
add eax, esi
mov dword [esp + 0x14], eax
add eax, 0x83
shr eax, 5
push eax
push 0x7ffe
call fcn.004015d0
mov ebx, eax
test ebx, ebx
jne 0x405128
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x20
mov eax, dword [esp + 0x10]
push 0
add eax, ebx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
push ecx
push ebx
call fcn.00405230
xor ecx, ecx
xor edx, edx
mov dword [ebx], 0x28
mov cx, word [edi + 4]
mov dword [ebx + 4], ecx
mov dx, word [edi + 6]
mov dword [ebx + 8], edx
mov ax, word [edi + 8]
test ebp, ebp
mov word [ebx + 0xc], ax
mov cx, word [edi + 0xa]
mov word [ebx + 0xe], cx
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x20], ebp
mov dword [ebx + 0x24], ebp
je 0x40518a
xor eax, eax
mov ax, word [ebx + 0xe]
push eax
mov eax, dword [edi]
add eax, edi
push eax
mov eax, dword [ebx]
add eax, ebx
push eax
call fcn.004051f0
mov eax, dword [esp + 0x1c]
push esi
add eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00405280
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [ecx], ebx
mov ecx, dword [esp + 0x10]
mov dword [edx], ebx
mov edx, dword [esp + 0x38]
mov dword [eax], ecx
mov eax, dword [esp + 0x3c]
mov dword [edx], ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov dword [eax], edx
mov eax, dword [esp + 0x14]
pop ebp
mov dword [ecx], esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x20
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x20
Function at 0x406e70
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
sub esp, 0x90
push ebx
push esi
mov esi, dword [esp + 0x9c]
push edi
push ebp
push esi
call fcn.004020b0
test eax, eax
jne 0x406e92
xor eax, eax
jmp 0x406fcc
push 0x8001
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push 0
call edi
cmp esi, 0x20
jae 0x406eb8
xor eax, eax
jmp 0x406fcc
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x406ee3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x406fcc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0xa8], 0
mov dword [esp + 0x14], eax
je 0x406f37
mov ebx, dword [esp + 0xb4]
push 0x105
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
push ebx
call fcn.00402420
push str._ins1163.tmp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x406f3e
mov ebx, dword [esp + 0xb4]
lea eax, [esp + 0x18]
push 0x1001
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_OpenFile]
push ebx
call ebp
mov ebp, eax
test ebp, ebp
jge 0x406f79
push ebx
push 0
push 0xfffffecd
call fcn.00407780
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x406fcc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll__lwrite]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll__lclose]
call ebp
test eax, eax
jge 0x406fb9
push ebx
push 0
push 0xfffffecd
call fcn.00407780
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x406fcc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x90
ret 0x14
Function at 0x407120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 4
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
push 0x8001
call esi
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push 0
call esi
cmp ebp, 0x20
jae 0x407154
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40717c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x10], eax
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov ecx, dword [esp + 0x18]
lea eax, [ebx + 2]
mov edx, dword [ecx]
push eax
push edx
call fcn.004015d0
mov edi, eax
test edi, edi
jne 0x4071bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor ecx, ecx
test ebx, ebx
je 0x4071cd
mov al, byte [esi + ecx]
inc ecx
cmp ecx, ebx
mov byte [edi + ecx - 1], al
jb 0x4071c1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call ebp
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x4082a1
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x409438
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x40e4ec], eax
mov al, ah
and eax, 0xff
mov dword [0x40e4f8], eax
mov eax, dword [0x40e4ec]
shr dword [0x40e4ec], 0x10
and eax, 0xff
mov dword [0x40e4f4], eax
shl eax, 8
add eax, dword [0x40e4f8]
mov dword [0x40e4f0], eax
call fcn.0040938d
mov dword [ebp - 4], 0
call fcn.0040929f
call fcn.00409294
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40cd1c], eax
call fcn.00408e08
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x40e2a0], eax
call fcn.00408d3d
call fcn.004089bc
mov esi, dword [0x40cd1c]
mov al, byte [esi]
cmp al, 0x22
je 0x408355
cmp al, 0x20
jbe 0x408381
inc esi
cmp byte [esi], 0x20
ja 0x40834d
jmp 0x408381
inc esi
cmp byte [esi], 0x22
je 0x408380
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x40837b
movzx eax, bl
push eax
call fcn.00408cfa
add esp, 4
test eax, eax
je 0x408375
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x40835e
cmp byte [esi], 0x22
jne 0x408381
inc esi
cmp byte [esi], 0
je 0x408391
cmp byte [esi], 0x20
ja 0x408391
inc esi
cmp byte [esi], 0
jne 0x408386
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4083b1
movzx eax, word [ebp - 0x40]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.004089ec
jmp 0x4083ed
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408a0e
Capabilities:
Terminate process

Disassembly:
mov dword [0x40e524], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x40e520], bl
jne 0x408a6a
cmp dword [0x40cd18], 0
je 0x408a58
mov esi, dword [0x40cd10]
sub esi, 4
cmp dword [0x40cd18], esi
ja 0x408a58
mov eax, dword [esi]
test eax, eax
je 0x408a4d
call eax
sub esi, 4
cmp dword [0x40cd18], esi
jbe 0x408a45
push 0x40f080
push 0x40f078
call fcn.00408a8d
add esp, 8
push 0x40f088
push 0x40f084
call fcn.00408a8d
add esp, 8
test ebx, ebx
jne 0x408a8a
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x409887
Capabilities:
Write file on windows

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov ebp, esp
sub esp, 0x410
cmp eax, dword [0x40e7d0]
push ebx
push esi
push edi
jb 0x4098bd
mov dword [0x40e4e0], 9
mov dword [0x40e4e4], 0
mov eax, 0xffffffff
jmp 0x409a19
xor esi, esi
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], esi
jne 0x4098ce
xor eax, eax
jmp 0x409a19
mov eax, dword [ebp + 8]
test byte [eax + 0x40e7d8], 0x20
je 0x4098e7
push 2
push 0
push eax
call fcn.0040a2aa
add esp, 0xc
mov eax, dword [ebp + 8]
test byte [eax + 0x40e7d8], 0x80
je 0x409971
mov dword [ebp - 0xc], 0
mov edi, dword [ebp + 0xc]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x4099a9
lea ebx, [ebp - 0x410]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x40993b
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x409927
inc esi
mov byte [ebx], 0xd
inc ebx
lea ecx, [ebp - 0x410]
mov byte [ebx], al
inc ebx
mov eax, ebx
sub eax, ecx
cmp eax, 0x400
jl 0x409911
lea eax, [ebp - 0x410]
push 0
sub ebx, eax
lea ecx, [ebp - 0x410]
lea eax, [ebp - 4]
push eax
push ebx
push ecx
mov eax, dword [ebp + 8]
push dword [eax*4 + 0x40e818]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4099a0
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
cmp eax, ebx
jge 0x4098fd
jmp 0x4099a9
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax*4 + 0x40e818]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4099a0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x4099a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
jne 0x409a14
cmp dword [ebp - 0xc], 0
je 0x4099e1
cmp dword [ebp - 0xc], 5
jne 0x4099cf
mov dword [0x40e4e0], 9
mov eax, dword [ebp - 0xc]
mov dword [0x40e4e4], eax
jmp 0x4099da
push dword [ebp - 0xc]
call fcn.0040968c
add esp, 4
mov eax, 0xffffffff
jmp 0x409a19
mov eax, dword [ebp + 8]
test byte [eax + 0x40e7d8], 0x40
je 0x4099f9
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4099f9
xor eax, eax
jmp 0x409a19
mov dword [0x40e4e0], 0x1c
mov dword [0x40e4e4], 0
mov eax, 0xffffffff
jmp 0x409a19
mov eax, dword [ebp - 8]
sub eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409a51
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
cmp esi, dword [0x40e7d0]
jb 0x409a83
mov dword [0x40e4e0], 9
mov dword [0x40e4e4], 0
mov eax, 0xffffffff
jmp 0x409c44
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], 0
test edx, edx
je 0x409c42
mov al, byte [esi + 0x40e7d8]
test al, 2
jne 0x409c42
test al, 0x48
je 0x409ac6
mov al, byte [esi + str._n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_nd]
cmp al, 0xa
je 0x409ac6
dec edx
mov byte [ecx], al
mov dword [ebp - 8], 1
mov byte [esi + str._n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_nd], 0xa
inc ecx
push 0
lea eax, [ebp - 0x10]
push eax
push edx
push ecx
push dword [esi*4 + 0x40e818]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409b1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x409b03
mov dword [0x40e4e0], 9
mov dword [0x40e4e4], eax
mov eax, 0xffffffff
jmp 0x409c44
cmp eax, 0x6d
je 0x409c42
push eax
call fcn.0040968c
add esp, 4
mov eax, 0xffffffff
jmp 0x409c44
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov al, byte [esi + 0x40e7d8]
test al, 0x80
je 0x409c3d
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0xa
jne 0x409b3f
or al, 4
jmp 0x409b41
and al, 0xfb
mov ebx, dword [ebp + 0xc]
mov byte [esi + 0x40e7d8], al
mov edi, ebx
mov eax, dword [ebp - 8]
add eax, ebx
mov dword [ebp - 0xc], eax
cmp ebx, eax
jae 0x409c37
mov al, byte [edi]
cmp al, 0x1a
je 0x409c25
cmp al, 0xd
je 0x409b72
inc edi
mov byte [ebx], al
jmp 0x409c19
mov ecx, dword [ebp - 0xc]
dec ecx
cmp ecx, edi
jbe 0x409b96
lea ecx, [edi + 1]
cmp byte [ecx], 0xa
jne 0x409b8d
add edi, 2
mov byte [ebx], 0xa
jmp 0x409c19
mov edi, ecx
mov byte [ebx], al
jmp 0x409c19
inc edi
push 0
lea eax, [ebp - 0x10]
lea ecx, [ebp - 1]
mov dword [ebp - 8], 0
push eax
push 1
push ecx
push dword [esi*4 + 0x40e818]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409bc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x409c16
cmp dword [ebp - 0x10], 0
je 0x409c16
test byte [esi + 0x40e7d8], 0x48
je 0x409bf3
cmp byte [ebp - 1], 0xa
jne 0x409be4
mov byte [ebx], 0xa
jmp 0x409c19
mov byte [ebx], 0xd
inc ebx
mov al, byte [ebp - 1]
mov byte [esi + str._n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_nd], al
jmp 0x409c1a
cmp dword [ebp + 0xc], ebx
jne 0x409c03
cmp byte [ebp - 1], 0xa
jne 0x409c03
mov byte [ebx], 0xa
jmp 0x409c19
push 1
push 0xffffffffffffffff
push esi
call fcn.0040a2aa
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x409c1a
mov byte [ebx], 0xd
inc ebx
cmp edi, dword [ebp - 0xc]
jb 0x409b5c
jmp 0x409c37
mov al, byte [esi + 0x40e7d8]
test al, 0x40
jne 0x409c37
or al, 2
mov byte [esi + 0x40e7d8], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x409c44
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a31f
Capabilities:
Clear file content

Disassembly:
push ebp
mov eax, 0x1008
mov ebp, esp
call fcn.0040a790
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [0x40e7d0], esi
ja 0x40a350
mov dword [0x40e4e0], 9
jmp 0x40a447
push 1
push 0
push esi
call fcn.0040a2aa
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40a447
push 2
push 0
push esi
call fcn.0040a2aa
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a447
mov ecx, dword [ebp + 0xc]
mov ebx, ecx
sub ebx, eax
test ebx, ebx
jle 0x40a3f4
lea edi, [ebp - 0x1008]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.0040a713
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebx, eax
jge 0x40a3b4
mov eax, ebx
push eax
lea ecx, [ebp - 0x1008]
push ecx
push esi
call fcn.00409887
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a3d2
sub ebx, eax
test ebx, ebx
jg 0x40a3a9
jmp 0x40a3e8
cmp dword [0x40e4e4], 5
jne 0x40a3e5
mov dword [0x40e4e0], 0xd
mov dword [ebp - 4], eax
push edi
push esi
call fcn.0040a713
add esp, 8
jmp 0x40a434
jge 0x40a434
push 0
push ecx
push esi
call fcn.0040a2aa
add esp, 0xc
push esi
call fcn.00409802
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ecx, ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xffffffff
jne 0x40a434
mov dword [0x40e4e0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40e4e4], eax
push 0
push dword [ebp - 8]
push esi
call fcn.0040a2aa
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x40a44c
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xb72095b
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x4c712806
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10001fa0
Capabilities:
Check mutex on windows
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
call fcn.10003ad0
lea eax, [ebp - 0x2c]
push 0xc
push 0x101021be
push 0x22
push 0x1010219c
push eax
call fcn.1000ae10
add esp, 0x14
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
cmp edi, 7
ja 0x10001fed
test edi, edi
je 0x10002028
xor edx, edx
nop dword [eax]
cmp byte [ebx + edx], 0
je 0x10001ffd
inc edx
cmp edi, edx
jne 0x10001fe0
jmp 0x10002028
push edi
push ebx
push 0
call fcn.100e11a0
add esp, 0xc
test eax, eax
je 0x10002028
cmp esi, 0x80000000
je 0x10002041
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x1c]
push 0x101021d4
push 0x1010213c
push eax
push 0
push 1
call fcn.100dc670
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
push eax
call fcn.100d1340
add esp, 4
mov ebx, eax
mov edi, edx
push ebx
push 0
push 0
call sub.kernel32.dll_CreateMutexA
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
je 0x10002169
mov dword [ebp - 0x20], ebx
call fcn.1000b340
push 0x7d0
call fcn.1000a5c0
add esp, 4
mov esi, dword [0x106b6680]
movzx eax, byte [esi]
push 1
push 0x58d800
call fcn.1000d070
add esp, 8
test eax, eax
je 0x10002186
mov ebx, eax
push 0x58d800
push 0x101021e4
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
nop word [eax + eax]
mov ecx, eax
and ecx, 0x1f
movzx ecx, byte [ecx + 0x1068f9e4]
xor byte [ebx + eax], cl
inc eax
cmp eax, 0x58d800
jne 0x100020b0
push 0xfa0
call fcn.1000a5c0
add esp, 4
lea eax, [ebp - 0x1c]
push eax
call fcn.10009260
add esp, 4
mov eax, dword [ebp - 0x1c]
cmp eax, 0x80000000
je 0x100020fc
test eax, eax
je 0x100020fc
push 1
push eax
push dword [ebp - 0x18]
call fcn.1000d080
add esp, 0xc
movzx eax, byte [esi]
push 1
push 0x58d800
call fcn.1000d070
add esp, 8
test eax, eax
je 0x10002186
mov esi, eax
push 0x58d800
push ebx
push eax
call sub.msvcrt.dll_memcpy
sub esp, 0xc
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x58d800
call fcn.1000c1d0
add esp, 0x18
push 1
push 0x58d800
push esi
call fcn.1000d080
add esp, 0xc
push 1
push 0x58d800
push ebx
call fcn.1000d080
add esp, 0xc
mov ebx, dword [ebp - 0x20]
test edi, edi
mov byte [ebx], 0
je 0x1000217e
push 1
push edi
push ebx
call fcn.1000d080
add esp, 0x2c
jmp 0x10002181
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x58d800
push 1
call fcn.100d0890
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x10005230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x101010b8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
movzx eax, byte [eax]
cmp al, 1
jne 0x10005258
call fcn.100055c0
jmp 0x1000542f
mov eax, dword [edx + 8]
movdqu xmm0, xmmword [ecx + 0x30]
test eax, eax
je 0x1000542a
movdqu xmm7, xmmword [ecx]
mov esi, dword [edx]
movdqu xmm5, xmmword [ecx + 0x10]
movdqu xmm3, xmmword [ecx + 0x20]
mov edx, dword [edx + 4]
xor edi, edi
movdqa xmmword [esp], xmm7
nop word cs:[eax + eax]
nop dword [eax]
mov ebx, 0xa
movdqa xmm4, xmm5
movdqa xmm6, xmm0
movdqa xmm2, xmm3
nop word cs:[eax + eax]
nop dword [eax + eax]
paddd xmm7, xmm5
dec ebx
pxor xmm6, xmm7
movdqa xmm1, xmm6
pslld xmm6, 0x10
psrld xmm1, 0x10
por xmm6, xmm1
paddd xmm3, xmm6
pxor xmm5, xmm3
movdqa xmm1, xmm5
pslld xmm5, 0xc
psrld xmm1, 0x14
por xmm5, xmm1
paddd xmm7, xmm5
pxor xmm6, xmm7
pshufd xmm7, xmm7, 0x93
movdqa xmm1, xmm6
pslld xmm6, 8
psrld xmm1, 0x18
por xmm6, xmm1
paddd xmm3, xmm6
pshufd xmm6, xmm6, 0x4e
pxor xmm5, xmm3
pshufd xmm3, xmm3, 0x39
movdqa xmm1, xmm5
pslld xmm5, 7
psrld xmm1, 0x19
por xmm5, xmm1
paddd xmm7, xmm5
pxor xmm6, xmm7
movdqa xmm1, xmm6
pslld xmm6, 0x10
psrld xmm1, 0x10
por xmm6, xmm1
paddd xmm3, xmm6
pxor xmm5, xmm3
movdqa xmm1, xmm5
pslld xmm5, 0xc
psrld xmm1, 0x14
por xmm5, xmm1
paddd xmm7, xmm5
pxor xmm6, xmm7
pshufd xmm7, xmm7, 0x39
movdqa xmm1, xmm6
pslld xmm6, 8
psrld xmm1, 0x18
por xmm6, xmm1
paddd xmm3, xmm6
pshufd xmm6, xmm6, 0x4e
pxor xmm5, xmm3
pshufd xmm3, xmm3, 0x93
movdqa xmm1, xmm5
pslld xmm5, 7
psrld xmm1, 0x19
por xmm5, xmm1
jne 0x100052b0
mov ebx, edi
paddd xmm6, xmm0
paddd xmm3, xmm2
movdqa xmmword [esp + 0x10], xmm0
movdqa xmm0, xmm2
movdqa xmm2, xmmword [esp]
paddd xmm5, xmm4
inc edi
shl ebx, 6
cmp eax, edi
movdqu xmm1, xmmword [esi + ebx + 0x30]
paddd xmm7, xmm2
pxor xmm6, xmm1
movdqu xmm1, xmmword [esi + ebx + 0x20]
pxor xmm3, xmm1
movdqu xmm1, xmmword [esi + ebx + 0x10]
pxor xmm5, xmm1
movdqu xmm1, xmmword [esi + ebx]
pxor xmm7, xmm1
movdqu xmmword [edx + ebx], xmm7
movdqu xmmword [edx + ebx + 0x10], xmm5
movdqu xmmword [edx + ebx + 0x20], xmm3
movdqa xmm3, xmm0
movdqa xmm0, xmmword [esp + 0x10]
movdqa xmm7, xmm2
movdqa xmm5, xmm4
movdqu xmmword [edx + ebx + 0x30], xmm6
paddd xmm0, xmmword [0x106906c0]
jne 0x10005290
movd dword [ecx + 0x30], xmm0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret