joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004038a4
xor eax, eax
push ebp
push 0x412c9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x412c7c
test byte [ebp - 0xc], 0x10
jne 0x412c80
xor eax, eax
jmp 0x412c82
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412ca2
lea eax, [ebp - 4]
call fcn.00403498
ret

Function at 0x413238
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0x80
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 4]
call fcn.004069ac
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x413ff4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403498
cmp dword [ebp - 4], 0
je 0x414052
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jle 0x414052
mov edx, dword [ebp - 0xc]
dec edx
mov eax, dword [ebp - 8]
call fcn.004039c4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004038b4
push eax
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov esp, ebp
pop ebp
ret

Function at 0x418dc0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov byte [ebp - 1], 0
push 0x41b6f0
push 4
push 0
push 0x417b64
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x41b6ec], eax
xor eax, eax
push ebp
push 0x418e7b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x41b70a], 0
jne 0x418e09
mov eax, 0x418e94
call fcn.00418af8
jmp 0x418e14
mov eax, dword [0x41b6ec]
push eax
call sub.kernel32.dll_ResumeThread
call fcn.00414bac
lea eax, [ebp - 8]
push eax
mov eax, dword [0x41b6ec]
push eax
call sub.kernel32.dll_GetExitCodeThread
cmp dword [ebp - 8], 0x103
je 0x418e14
cmp dword [ebp - 8], 0
je 0x418e3e
call fcn.00403050
jmp 0x418e82
mov dl, 1
mov eax, dword [0x41b6fc]
call fcn.0040fab4
mov eax, dword [0x41b6d0]
call fcn.00413238
mov eax, dword [0x41b704]
call fcn.00413238
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418e82
mov eax, dword [0x41b6ec]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop ebp
ret

Function at 0x418ea4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
xor eax, eax
push ebp
push 0x418f0b
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
push 0
lea eax, [ebp - 4]
mov ecx, dword [0x41b6f8]
mov edx, 0x418f20
call fcn.0040373c
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
mov eax, dword [0x41b700]
call fcn.004038b4
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
push 0x3e8
call sub.kernel32.dll_Sleep
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418f12
lea eax, [ebp - 4]
call fcn.00403498
ret
Function at 0x13335ce
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, 0x5a4d
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
cmp word [esi], ax
jne 0x1333731
mov ebx, dword [esi + 0x3c]
add ebx, esi
cmp dword [ebx], 0x4550
jne 0x1333731
mov eax, dword [edi + 0x684]
test eax, eax
je 0x1333731
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0xffffffffffffffff
call eax
test eax, eax
je 0x1333731
mov eax, 0x1c0
cmp word [ebp - 4], ax
je 0x1333636
mov eax, 0xaa64
cmp word [ebp - 4], ax
jne 0x1333731
cmp dword [ebx + 8], 0x27debf2c
jne 0x1333661
push 0x4b2e8f83
push 0x4b2e8de3
push 0x4b280000
mov edx, esi
mov ecx, edi
call fcn.01333548
add esp, 0xc
xor eax, eax
jmp 0x1333736
cmp dword [ebx + 8], 0x88330560
jne 0x1333676
push 0x4b3fabde
push 0x4b3fa92b
jmp 0x1333649
cmp dword [ebx + 8], 0xe892dd44
jne 0x133368b
push 0x4b406b8e
push 0x4b4068db
jmp 0x1333649
and dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push 0
push 1
push ecx
push 0x2bcd03a7
push esi
mov ecx, edi
call fcn.01334000
test eax, eax
js 0x1333736
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1333731
lea eax, [ebx - 0x140]
mov dword [ebp - 0x1c], 0x3f3f3fe8
push 8
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x18], 0x843f
push ecx
mov edx, 0x140
mov byte [ebp - 0x16], 0xc0
mov ecx, eax
mov dword [ebp - 0x24], 0x1b8
mov word [ebp - 0x20], 0x8400
mov byte [ebp - 0x1e], 0xc0
mov dword [ebp - 0x10], eax
call fcn.01334598
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1333701
mov ecx, dword [ebp - 0x10]
mov edx, 0x140
jmp 0x133371e
push 7
lea eax, [ebp - 0x1c]
mov edx, 0x200
push eax
mov ecx, ebx
call fcn.01334598
test eax, eax
jne 0x133373b
mov edx, 0x200
mov ecx, ebx
push 8
lea eax, [ebp - 0x24]
push eax
call fcn.01334598
test eax, eax
jne 0x133365a
mov eax, 0xe0010001
pop edi
pop esi
pop ebx
leave
ret
push eax
push dword [ebp - 0x14]
push esi
jmp 0x133364e

Function at 0x1334420
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x133443e
mov eax, dword [ecx + 0x3c]
cmp eax, 0x400
jg 0x133443e
add eax, ecx
cmp dword [eax], 0x4550
je 0x1334440
xor eax, eax
ret
Function at 0x1337800
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov edx, 1
push ebx
push esi
push edi
xor esi, esi
mov eax, edx
mov dword [ebp + esi*4 - 0x808], edx
and al, 0x80
mov dword [ebp + edx*4 - 0x408], esi
movzx ecx, al
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
inc esi
and ecx, 0x1b
xor ecx, eax
xor ecx, edx
movzx edx, cl
cmp esi, 0x100
jl 0x1337813
mov esi, 1
mov edx, 0x133eab8
nop dword [eax]
mov eax, esi
mov dword [edx], esi
and al, 0x80
movzx ecx, al
lea eax, [esi + esi]
neg ecx
sbb ecx, ecx
add edx, 4
and ecx, 0x1b
xor ecx, eax
movzx esi, cl
cmp edx, 0x133eae0
jl 0x1337850
mov eax, 1
mov byte [0x133c8b8], 0x63
mov byte [0x133da1b], 0
mov dword [ebp - 4], eax
nop dword [eax]
mov ecx, dword [ebp + eax*4 - 0x408]
lea eax, [ebp - 0x40c]
shl ecx, 2
sub eax, ecx
mov ebx, dword [eax]
mov ecx, ebx
sar ecx, 7
lea eax, [ebx + ebx]
or ecx, eax
movzx eax, cl
xor ebx, eax
mov ecx, eax
shr ecx, 7
add eax, eax
or ecx, eax
movzx eax, cl
xor ebx, eax
mov ecx, eax
add eax, eax
shr ecx, 7
or ecx, eax
movzx edx, cl
mov ecx, edx
shr ecx, 7
lea eax, [edx + edx]
or ecx, eax
xor ecx, 0x63
movzx eax, cl
xor eax, edx
xor ebx, eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x133c8b8], bl
mov byte [ebx + 0x133d9b8], al
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x100
jl 0x1337890
mov ebx, 0xff
xor esi, esi
mov dword [ebp - 8], ebx
movzx edx, byte [esi + 0x133c8b8]
mov eax, edx
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx eax, cl
mov ecx, eax
xor ecx, edx
shl ecx, 8
xor ecx, edx
shl ecx, 8
xor ecx, edx
shl ecx, 8
xor ecx, eax
mov dword [esi*4 + 0x133c9b8], ecx
rol ecx, 8
mov dword [esi*4 + 0x133cdb8], ecx
rol ecx, 8
mov dword [esi*4 + 0x133d1b8], ecx
rol ecx, 8
mov dword [esi*4 + 0x133d5b8], ecx
movzx ecx, byte [esi + 0x133d9b8]
test ecx, ecx
je 0x13379bf
mov ecx, dword [ebp + ecx*4 - 0x408]
mov eax, dword [ebp - 0x3d0]
add eax, ecx
cdq
idiv ebx
mov eax, dword [ebp - 0x3e4]
add eax, ecx
mov edi, dword [ebp + edx*4 - 0x808]
cdq
idiv ebx
mov eax, dword [ebp - 0x3d4]
add eax, ecx
mov ebx, dword [ebp + edx*4 - 0x808]
cdq
idiv dword [ebp - 8]
mov eax, dword [ebp + edx*4 - 0x808]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x3dc]
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov eax, dword [ebp + edx*4 - 0x808]
jmp 0x13379c8
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ebx
xor eax, eax
shl eax, 8
xor eax, dword [ebp - 4]
shl eax, 8
xor eax, ebx
mov ebx, 0xff
shl eax, 8
xor eax, edi
mov dword [esi*4 + 0x133dab8], eax
rol eax, 8
mov dword [esi*4 + 0x133deb8], eax
rol eax, 8
mov dword [esi*4 + 0x133e2b8], eax
rol eax, 8
mov dword [esi*4 + 0x133e6b8], eax
inc esi
cmp esi, 0x100
jl 0x1337905
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1337a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x18
test al, 0xf
je 0x1337a36
mov eax, 0xffffffde
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1337b8a
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
jne 0x1337ad2
mov ebx, dword [ebp + 0x18]
lea edx, [ecx + 0xf]
dec eax
mov dword [ebp - 8], edx
mov edi, ecx
shr eax, 4
sub edi, esi
inc eax
mov dword [ebp + 0x10], eax
movups xmm0, xmmword [ebx]
push esi
push ebx
push dword [ebp + 8]
movups xmmword [ebp - 0x18], xmm0
call fcn.01338d60
add esp, 0xc
cmp esi, dword [ebp - 8]
ja 0x1337aa3
lea eax, [esi + 0xf]
cmp eax, dword [ebp + 0x14]
jb 0x1337aa3
mov ecx, esi
mov edx, 0x10
nop
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x1337a90
mov eax, dword [ebp + 0x14]
jmp 0x1337ab3
mov eax, dword [ebp + 0x14]
movups xmm0, xmmword [esi]
movups xmm1, xmmword [eax]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
movups xmm0, xmmword [ebp - 0x18]
add esi, 0x10
add ebx, 0x10
sub edi, 0x10
sub dword [ebp + 0x10], 1
movups xmmword [eax], xmm0
jne 0x1337a66
pop edi
pop esi
pop ebx
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x18]
lea edx, [eax - 1]
mov ebx, ecx
shr edx, 4
sub ebx, edi
mov dword [ebp - 4], esi
inc edx
mov dword [ebp + 0x10], ebx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
nop dword [eax]
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x1337afe
lea eax, [esi + 0xf]
cmp eax, edi
jae 0x1337b0c
lea eax, [ecx + 0xf]
cmp esi, eax
ja 0x1337b3d
lea eax, [esi + 0xf]
cmp eax, ecx
jb 0x1337b3d
mov ebx, esi
mov ecx, edi
mov esi, dword [ebp + 0x10]
sub ebx, edi
mov edx, 0x10
nop word [eax + eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub edx, 1
jne 0x1337b20
mov esi, dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
jmp 0x1337b4a
movups xmm1, xmmword [ecx]
movups xmm0, xmmword [edi]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
cmp dword [ebp + 0xc], 1
push esi
push esi
push edx
jne 0x1337b5a
call fcn.013392f0
jmp 0x1337b5f
call fcn.01338d60
movups xmm0, xmmword [esi]
mov ecx, dword [ebp + 0x14]
sub ebx, 0x10
mov edx, dword [ebp + 8]
add esi, 0x10
add esp, 0xc
mov dword [ebp + 0x10], ebx
add edi, 0x10
mov dword [ebp - 4], esi
sub dword [ebp - 8], 1
movups xmmword [ecx], xmm0
jne 0x1337af0
pop edi
pop esi
pop ebx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1337bd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
push edi
push dword [ebp + 0x10]
xor eax, eax
lea edi, [ebp - 0x118]
push dword [ebp + 0xc]
mov ecx, 0x46
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
lea esi, [edi + 8]
mov dword [edi + 4], esi
call fcn.01337dd0
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jne 0x1337dc4
mov ecx, dword [ebp - 0x118]
mov dword [edi], ecx
shl ecx, 4
add ecx, dword [ebp - 0x114]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
sub ecx, 0x10
mov dword [esi + 0xc], eax
add esi, 0x10
mov edi, dword [edi]
dec edi
test edi, edi
jle 0x1337dab
push ebx
nop dword [eax]
movzx eax, byte [ecx + 3]
dec edi
movzx edx, byte [eax + 0x133c8b8]
movzx eax, byte [ecx + 2]
mov edx, dword [edx*4 + 0x133e6b8]
movzx eax, byte [eax + 0x133c8b8]
xor edx, dword [eax*4 + 0x133e2b8]
movzx eax, byte [ecx + 1]
movzx eax, byte [eax + 0x133c8b8]
xor edx, dword [eax*4 + 0x133deb8]
movzx eax, byte [ecx]
movzx eax, byte [eax + 0x133c8b8]
xor edx, dword [eax*4 + 0x133dab8]
mov dword [esi], edx
mov ebx, dword [ecx + 4]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x133c8b8]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x133e2b8]
movzx eax, byte [eax + 0x133c8b8]
xor edx, dword [eax*4 + 0x133deb8]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x133c8b8]
xor edx, dword [eax*4 + 0x133e6b8]
movzx eax, bl
movzx eax, byte [eax + 0x133c8b8]
xor edx, dword [eax*4 + 0x133dab8]
mov dword [esi + 4], edx
mov ebx, dword [ecx + 8]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x133c8b8]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x133e2b8]
movzx eax, byte [eax + 0x133c8b8]
xor edx, dword [eax*4 + 0x133deb8]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x133c8b8]
xor edx, dword [eax*4 + 0x133e6b8]
movzx eax, bl
movzx eax, byte [eax + 0x133c8b8]
xor edx, dword [eax*4 + 0x133dab8]
mov dword [esi + 8], edx
mov ebx, dword [ecx + 0xc]
mov eax, ebx
shr eax, 0x10
sub ecx, 0x10
movzx eax, al
movzx edx, byte [eax + 0x133c8b8]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x133e2b8]
movzx eax, byte [eax + 0x133c8b8]
xor edx, dword [eax*4 + 0x133deb8]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x133c8b8]
xor edx, dword [eax*4 + 0x133e6b8]
movzx eax, bl
movzx eax, byte [eax + 0x133c8b8]
xor edx, dword [eax*4 + 0x133dab8]
mov dword [esi + 0xc], edx
add esi, 0x10
test edi, edi
jg 0x1337c50
pop ebx
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1339880
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], 0x6b25
mov edx, 0x6b41
mov word [ebp - 0x38], dx
mov eax, 0x6b47
mov word [ebp - 0x36], ax
mov ecx, 0x6b49
mov eax, 0x6b42
mov word [ebp - 0x34], ax
mov eax, 0x6b4d
mov word [ebp - 0x32], ax
mov eax, 0x6b40
mov word [ebp - 0x30], ax
mov eax, 0x6b55
mov word [ebp - 0x2e], cx
mov word [ebp - 0x2c], ax
mov eax, 0x6b0b
mov word [ebp - 0x2a], ax
xor eax, eax
mov word [ebp - 0x28], dx
xor edx, edx
mov word [ebp - 0x26], cx
mov word [ebp - 0x24], cx
mov word [ebp - 0x22], ax
mov ax, word [ebp - 0x38]
nop dword [eax]
mov ax, word [ebp + edx*2 - 0x38]
movzx ecx, ax
movzx eax, word [ebp - 0x3c]
xor ecx, eax
mov word [ebp + edx*2 - 0x38], cx
inc edx
cmp edx, 0xb
jb 0x13398f0
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [edi + 0x6a0]
call eax
mov edx, eax
test edx, edx
jne 0x1339931
pop edi
mov eax, 0xe0d00721
pop esi
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x1e], 0x55
xor ecx, ecx
mov byte [ebp - 0x1d], 0x71
mov byte [ebp - 0x1c], 0x76
mov byte [ebp - 0x1b], 0x71
mov byte [ebp - 0x1a], 0x4c
mov byte [ebp - 0x19], 0x7d
mov byte [ebp - 0x18], 0x75
mov byte [ebp - 0x17], 0x78
mov byte [ebp - 0x16], 0x5f
mov byte [ebp - 0x15], 0x7a
mov byte [ebp - 0x14], 0x71
mov byte [ebp - 0x13], 0x7c
mov byte [ebp - 0x12], 0x6d
mov byte [ebp - 0x11], 0x4c
mov byte [ebp - 0x10], 0x7d
mov byte [ebp - 0xf], 0x75
mov byte [ebp - 0xe], 0x78
mov byte [ebp - 0xd], 0
mov al, byte [ebp - 0x1e]
nop
mov al, byte [ebp + ecx - 0x1e]
movsx eax, al
sub eax, 8
mov byte [ebp + ecx - 0x1e], al
inc ecx
cmp ecx, 0x11
jb 0x1339980
lea eax, [ebp - 0x1e]
push eax
mov eax, dword [edi + 0x6a8]
push edx
call eax
mov esi, eax
test esi, esi
jne 0x13399b2
pop edi
mov eax, 0xe0d00728
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x68c]
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [ebp + 0xc]
call eax
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x13399e3
pop ebx
pop edi
mov eax, 0xe0d00751
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x748]
call eax
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0xc], eax
test ecx, ecx
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
cmove eax, edx
mov dword [ebp - 4], 1
push eax
push dword [ebp + 0x14]
mov eax, dword [edi + 0x75c]
push ebx
call eax
push eax
push 0xffffffffffffffff
call esi
mov ecx, dword [edi + 0x698]
mov esi, eax
push ebx
call ecx
xor ecx, ecx
mov eax, 0xe0d00770
pop ebx
test esi, esi
pop edi
cmovne eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x133bc90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x24]
mov word [edi], cx
test eax, eax
je 0x133be8d
push ebx
mov ebx, dword [esi + 0x24]
test ebx, ebx
je 0x133be8c
mov ecx, 0x27
mov edx, 0x32
nop word [eax + eax]
mov word [ebp - 0x26], cx
mov eax, 0x34
mov word [ebp - 0x24], dx
mov word [ebp - 0x22], ax
mov eax, 0x5a
mov word [ebp - 0x20], ax
xor eax, eax
mov word [ebp - 0x1e], ax
xor ecx, ecx
mov ax, word [ebp - 0x26]
nop word [eax + eax]
mov ax, word [ebp + ecx*2 - 0x26]
movzx eax, ax
add eax, 0xfffffffe
mov word [ebp + ecx*2 - 0x26], ax
inc ecx
cmp ecx, 4
jb 0x133bd00
movsx eax, byte [esi + ebx + 0x28]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [esi + 0x770]
call eax
add esp, 0xc
cmp word [edi], 0
jne 0x133bd87
mov dword [ebp - 0x1c], 0x951e
mov eax, 0x953b
mov word [ebp - 0x18], ax
mov eax, 0x9572
mov word [ebp - 0x16], ax
mov eax, 0x956d
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
xor edx, edx
mov ax, word [ebp - 0x18]
mov ax, word [ebp + edx*2 - 0x18]
movzx ecx, ax
movzx eax, word [ebp - 0x1c]
xor ecx, eax
mov word [ebp + edx*2 - 0x18], cx
inc edx
cmp edx, 3
jb 0x133bd63
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
jmp 0x133bdf3
mov dword [ebp - 0x10], 0x65c3
mov eax, dword [ebp - 0x10]
xor eax, 0x25
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x10]
inc eax
xor eax, 0x6c
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x10]
add eax, 2
xor eax, 0x73
mov word [ebp - 8], ax
mov eax, dword [ebp - 0x10]
add eax, 3
xor eax, 0x2d
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
mov ax, word [ebp - 0xc]
xor eax, eax
nop dword [eax]
mov cx, word [ebp + eax*2 - 0xc]
mov edx, dword [ebp - 0x10]
add edx, eax
movzx ecx, cx
xor edx, ecx
mov word [ebp + eax*2 - 0xc], dx
inc eax
cmp eax, 4
jb 0x133bdd0
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 0x450]
push eax
mov eax, dword [esi + 0x770]
call eax
mov dword [ebp - 0x3c], 0x882e
mov eax, 0x880b
mov word [ebp - 0x38], ax
mov ecx, 0x8842
mov word [ebp - 0x36], cx
mov edx, 0x885d
mov word [ebp - 0x34], dx
add esp, 0xc
mov word [ebp - 0x32], ax
xor eax, eax
mov word [ebp - 0x30], cx
mov word [ebp - 0x2e], dx
xor edx, edx
mov word [ebp - 0x2c], ax
mov ax, word [ebp - 0x38]
mov ax, word [ebp + edx*2 - 0x38]
movzx ecx, ax
movzx eax, word [ebp - 0x3c]
xor ecx, eax
mov word [ebp + edx*2 - 0x38], cx
inc edx
cmp edx, 6
jb 0x133be41
xor eax, eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [esi + 0x770]
push edi
call eax
mov ecx, 0x27
add esp, 0x10
lea edx, [ecx + 0xb]
sub ebx, 1
jne 0x133bcd0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
xor esi, esi
cmp edi, 0xffffffff
je 0x1000287f
test ebx, ebx
je 0x10002873
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x10002878
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002890
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], edx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100028f9
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 4], eax
call fcn.10003030
neg eax
sbb esi, esi
and esi, 3
inc esi
call fcn.10003030
neg eax
push ebx
sbb eax, eax
push ebx
and eax, 0xfffffffa
push ebx
add eax, 8
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x10002902
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x10002948
call fcn.10003030
test eax, eax
jne 0x1000292e
push ecx
lea ecx, [esi + 0x53]
lea edx, [eax + 6]
call fcn.100082a0
add esp, 4
push ecx
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.10002830
add esp, 8
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402f10
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x403488
call fcn.0040323c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043a0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d98
cmp eax, esi
jne 0x402d8b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d9b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402d6f
xor esi, esi
inc esi
cmp dword [0x4043a4], esi
jne 0x402dad
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402de7
cmp dword [0x4043a4], ebx
jne 0x402de1
mov dword [0x4043a4], esi
push 0x4011a8
push 0x40119c
call fcn.00402ec2
pop ecx
pop ecx
test eax, eax
je 0x402de7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402ebc
mov dword [0x404034], esi
cmp dword [0x4043a4], esi
jne 0x402e0a
push 0x401198
push 0x401190
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043a4], 2
test edi, edi
jne 0x402e17
xor eax, eax
mov ecx, 0x4043a0
xchg dword [ecx], eax
cmp dword [0x4043a8], 0
je 0x402e43
push 0x4043a8
call fcn.00403090
pop ecx
test eax, eax
je 0x402e43
push ebx
push 2
push ebx
mov esi, dword [0x4043a8]
mov ecx, esi
call dword [0x40515c]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401a43
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402ea1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402eb5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
call fcn.00403284
ret
call fcn.00403183
jmp 0x402d53

Function at 0x402f94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4034a8
call fcn.0040340c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402ff4
cmp eax, 0xffffffff
je 0x402ff4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402fed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402fed
cmp edx, 0x10000000
jae 0x402fed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402fea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00403451
ret 4

Function at 0x403040
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40307e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403076
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403080
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403066
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret