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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004ae060
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41144d
push ecx
lea edx, [ebp - 0x1004]
mov ecx, ebx
call fcn.00412c60
add esp, 4
test al, al
je 0x41144d
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, 0xffffffff
pop esi
setne al
xor ecx, ebp
pop ebx
call fcn.00493864
mov esp, ebp
pop ebp
ret

Function at 0x411470
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004ae060
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4114cd
push ecx
lea edx, [ebp - 0x1004]
mov ecx, ebx
call fcn.00412c60
add esp, 4
test al, al
je 0x4114cb
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00493864
mov esp, ebp
pop ebp
ret

Function at 0x4114e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004ae060
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x411548
push ecx
lea edx, [ebp - 0x1004]
mov ecx, esi
call fcn.00412c60
add esp, 4
test al, al
je 0x411548
push edi
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493864
mov esp, ebp
pop ebp
ret

Function at 0x411560
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004ae060
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x4115c2
push ecx
lea edx, [ebp - 0x1004]
mov ecx, esi
call fcn.00412c60
add esp, 4
test al, al
je 0x4115c2
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00493864
mov esp, ebp
pop ebp
ret
Function at 0x411730
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1268
call fcn.004ae060
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x125c]
push edi
mov edi, edx
mov dword [ebp - 0x1260], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x1264], ebx
cmp ebx, 0xffffffff
jne 0x4117e7
push ecx
lea edx, [ebp - 0x100c]
mov ecx, edi
call fcn.00412c60
add esp, 4
test al, al
je 0x4117a6
lea eax, [ebp - 0x125c]
push eax
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x1264], eax
cmp ebx, 0xffffffff
jne 0x4117e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4117c2
cmp eax, 3
je 0x4117c2
cmp eax, 0x12
je 0x4117c2
mov eax, 1
jmp 0x4117c4
xor eax, eax
mov byte [esi + 0x1044], al
mov eax, ebx
mov dword [esi + 0x1040], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
push 0x7ff
push edi
push esi
call fcn.00493f28
add esp, 0xc
xor eax, eax
mov ecx, esi
mov word [esi + 0xffe], ax
call fcn.004125e0
mov ebx, eax
mov edi, 0x800
mov ecx, ebx
sub ecx, esi
sar ecx, 1
sub edi, ecx
je 0x411832
lea ecx, [edi - 1]
push ecx
lea eax, [ebp - 0x1230]
push eax
push ebx
call fcn.00493f28
add esp, 0xc
xor eax, eax
mov word [ebx + edi*2 - 2], ax
mov ecx, dword [ebp - 0x1240]
xor eax, eax
add eax, dword [ebp - 0x123c]
mov edi, dword [ebp - 0x1258]
mov ebx, dword [ebp - 0x1250]
adc ecx, 0
mov edx, dword [ebp - 0x1254]
mov dword [esi + 0x1000], eax
mov eax, dword [ebp - 0x125c]
mov dword [esi + 0x1008], eax
mov eax, dword [ebp - 0x1260]
mov dword [esi + 0x1028], edi
mov edi, dword [ebp - 0x1260]
mov dword [esi + 0x1004], ecx
mov ecx, dword [ebp - 0x1248]
mov dword [esi + 0x1030], ebx
mov dword [eax + 0x1038], ecx
mov dword [esi + 0x102c], edx
mov esi, dword [ebp - 0x124c]
mov dword [eax + 0x1034], esi
mov eax, dword [ebp - 0x1244]
mov dword [edi + 0x103c], eax
mov dword [edi + 0x1010], ecx
mov ecx, edi
mov edi, dword [ebp - 0x1258]
mov dword [ecx + 0x1014], eax
mov eax, dword [ebp - 0x1264]
mov dword [ecx + 0x1018], edi
mov dword [ecx + 0x101c], edx
mov dword [ecx + 0x1020], ebx
mov dword [ecx + 0x1024], esi
mov dword [ecx + 0x1040], 0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493864
mov esp, ebp
pop ebp
ret
Function at 0x413720
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b2088
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4d77ac]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esi]
mov ecx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
call eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], 0
mov edx, dword [esi + 0xc30]
add edx, dword [esi + 0xc40]
mov edi, dword [esi]
mov ecx, dword [esi + 0xc34]
adc ecx, dword [esi + 0xc44]
cmp dword [edi + 4], 0xffffffff
je 0x4137c2
mov eax, ecx
mov dword [esp + 0x10], ecx
sar eax, 0x1f
push 0
lea eax, [esp + 0x14]
push eax
push edx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4137c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4137c2
cmp byte [edi + 0x14], 0
je 0x4137c2
push ecx
call fcn.0040d190
mov edi, dword [esi + 0xc48]
mov ecx, 0x10000
mov edx, dword [esi + 0xc38]
sub ecx, edi
sub edx, dword [esi + 0xc40]
mov eax, dword [esi + 0xc3c]
sbb eax, dword [esi + 0xc44]
test eax, eax
ja 0x4137fd
jb 0x4137f1
cmp edx, ecx
jae 0x4137fd
mov ecx, dword [esi + 0xc38]
sub ecx, dword [esi + 0xc40]
mov edx, dword [esi]
cmp byte [edx + 0x980b], 0
je 0x41380b
and ecx, 0xfffffff0
test ecx, ecx
je 0x41385d
mov eax, dword [esi + 0x10]
push ecx
add eax, edi
mov ecx, edx
push eax
call fcn.00410ad0
mov edi, eax
test edi, edi
jle 0x41385d
mov eax, dword [esi]
cmp byte [eax + 0x980b], 0
je 0x413846
mov eax, edi
lea ecx, [esi + 0x18]
and eax, 0xfffffff0
push eax
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc48]
push eax
call fcn.0040c030
mov eax, edi
cdq
add dword [esi + 0xc40], eax
adc dword [esi + 0xc44], edx
add dword [esi + 0xc48], edi
jmp 0x41385f
xor edi, edi
mov dword [esp + 0x30], 0xffffffff
mov ecx, ebx
mov edx, dword [ebx]
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [edx + 0xc]
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413890
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0x10000
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0xc4c]
sub eax, edx
cmp eax, 0x100
jae 0x4138df
mov ecx, dword [edi + 0x10]
mov esi, dword [edi + 0xc48]
sub esi, edx
push esi
lea eax, [ecx + edx]
push eax
push ecx
call fcn.004985a0
add esp, 0xc
mov dword [edi + 0xc4c], 0
mov ecx, edi
mov dword [edi + 0xc48], esi
call fcn.00413720
mov ecx, dword [edi + 0xc4c]
lea eax, [ecx + 7]
cmp eax, dword [edi + 0xc48]
ja 0x413a79
mov esi, dword [ebp + 8]
mov ebx, dword [edi + 0x10]
add ebx, ecx
add dword [esi + 4], 7
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jbe 0x41390f
mov ecx, esi
call fcn.00404b60
mov ecx, dword [esi + 0x14]
add ecx, dword [esi]
mov eax, dword [ebx]
mov dword [ecx], eax
mov ax, word [ebx + 4]
mov word [ecx + 4], ax
mov al, byte [ebx + 6]
mov byte [ecx + 6], al
add dword [esi + 0x14], 7
add dword [edi + 0xc4c], 7
mov ebx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea eax, [ebx + 3]
cmp eax, edx
jae 0x413970
mov ecx, dword [esi]
add ecx, ebx
movzx eax, byte [ecx + 3]
shl eax, 8
mov dword [ebp + 8], eax
movzx eax, byte [ecx + 2]
add dword [ebp + 8], eax
shl dword [ebp + 8], 8
movzx eax, byte [ecx + 1]
add dword [ebp + 8], eax
movzx eax, byte [ecx]
shl dword [ebp + 8], 8
add dword [ebp + 8], eax
lea eax, [ebx + 4]
mov dword [esi + 0x18], eax
jmp 0x413977
mov dword [ebp + 8], 0
mov eax, 4
cmp edx, eax
jbe 0x413991
mov ecx, dword [esi]
test byte [ecx + eax], 0x80
je 0x413a52
inc eax
cmp eax, edx
jb 0x413982
xor ebx, ebx
mov ecx, esi
call fcn.00414a30
mov ecx, eax
lea eax, [ebx - 3]
add eax, ecx
mov dword [ebp - 4], eax
js 0x413a72
test ebx, ebx
je 0x413a72
or ecx, edx
je 0x413a72
mov ecx, dword [edi + 0xc48]
sub ecx, dword [edi + 0xc4c]
mov dword [ebp - 0xc], ecx
test eax, eax
jle 0x413a5a
cmp ecx, eax
mov ebx, eax
cmovb ebx, ecx
mov ecx, dword [edi + 0x10]
add ecx, dword [edi + 0xc4c]
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x413a13
add dword [esi + 4], ebx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jbe 0x4139fd
mov ecx, esi
call fcn.00404b60
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 0x14]
add eax, dword [esi]
push ebx
push ecx
push eax
call fcn.004985a0
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [esi + 0x14], ebx
add dword [edi + 0xc4c], ebx
sub eax, ebx
mov dword [ebp - 4], eax
test eax, eax
jle 0x413a5a
mov ecx, edi
mov dword [edi + 0xc4c], 0
mov dword [edi + 0xc48], 0
call fcn.00413720
mov ecx, dword [ebp - 0xc]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x4139d1
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ebx, [eax - 3]
jmp 0x413993
mov ecx, esi
call fcn.00414b50
xor ecx, ecx
cmp dword [ebp + 8], eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [edi + 0xc24], 0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x413dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0x8000
push edi
mov edi, dword [ebp + 0xc]
cmp edi, eax
mov dword [ebp - 4], ecx
cmovb eax, edi
mov dword [ecx + 4], 0
push eax
push esi
push dword [ecx + 0xc]
mov dword [ecx], 0
call fcn.004985a0
mov eax, 1
add esp, 0xc
xor bl, bl
cmp edi, eax
jbe 0x413e18
nop
xor bl, byte [eax + esi]
inc eax
cmp eax, edi
jb 0x413e10
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0x10]
mov ecx, dword [edx + 4]
add ecx, 8
mov eax, ecx
and ecx, 7
shr eax, 3
add dword [edx], eax
mov dword [edx + 4], ecx
mov edx, dword [ebp + 8]
mov dword [esi + 0x14], 0
cmp bl, byte [edx]
jne 0x413e6a
push edi
or ecx, 0xffffffff
call fcn.0040a6f0
add esp, 4
xor edx, edx
not eax
xor ecx, ecx
cmp dword [ecx + 0x4d8bd4], eax
jne 0x413e61
cmp dword [ecx + 0x4d8bd0], edi
je 0x413e8b
add ecx, 0xc
inc edx
cmp ecx, 0x48
jb 0x413e51
inc dword [esi + 4]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
cmp ecx, edx
jbe 0x413f17
mov eax, dword [esi + 0xc]
test eax, eax
je 0x413eea
cmp ecx, eax
jbe 0x413eea
jmp 0x413f82
lea eax, [edx + edx*2]
mov edi, dword [eax*4 + 0x4d8bd8]
test edi, edi
je 0x413e6a
inc dword [esi + 4]
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jbe 0x413eab
mov ecx, esi
call fcn.004147c0
mov ecx, dword [esi + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x14], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi]
mov dword [eax + ecx*8], 0x28
mov dword [eax + ecx*8 + 0x18], 3
mov dword [eax + ecx*8 + 8], 3
lea ecx, [eax + ecx*8]
lea eax, [ecx + 0xc]
mov dword [eax], edi
pop edi
mov dword [ecx + 0x14], eax
lea eax, [ecx + 0x1c]
pop esi
mov dword [ecx + 0x24], eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, edx
lea edi, [edx + 0x20]
shr eax, 2
add edi, eax
cmp ecx, edi
cmova edi, ecx
lea eax, [edi + edi*4]
shl eax, 3
push eax
push dword [esi]
call fcn.0049395e
add esp, 8
test eax, eax
je 0x413f9a
mov dword [esi], eax
mov dword [esi + 8], edi
mov ecx, dword [esi + 0x14]
xor edi, edi
lea eax, [ecx + 1]
mov dword [esi + 0x14], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi]
mov dword [eax + ecx*8], 0x16
mov dword [eax + ecx*8 + 0x18], 3
mov dword [eax + ecx*8 + 8], 3
lea ecx, [eax + ecx*8]
lea eax, [ecx + 0xc]
mov dword [ecx + 0x14], eax
lea eax, [ecx + 0x1c]
mov dword [ecx + 0x24], eax
cmp dword [esi + 0x14], edi
jle 0x413f79
xor edx, edx
mov ecx, dword [esi]
add ecx, edx
cmp dword [ecx + 0x14], 0
jne 0x413f64
lea eax, [ecx + 0xc]
mov dword [ecx + 0x14], eax
cmp dword [ecx + 0x24], 0
jne 0x413f70
lea eax, [ecx + 0x1c]
mov dword [ecx + 0x24], eax
inc edi
add edx, 0x28
cmp edi, dword [esi + 0x14]
jl 0x413f54
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
push str.Maximum_allowed_array_size___u__is_exceeded
push 0x4d8a18
call fcn.0040d1c0
add esp, 0xc
call fcn.0040d130
call fcn.0040d130
int3
Function at 0x415660
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
mov edx, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
movdqu xmm2, xmmword [esi + 8]
lea edi, [esi + 0x18]
jbe 0x4156e6
lea esp, [esp]
mov ecx, dword [ebp + 8]
mov eax, ecx
add ecx, 0x10
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 4]
movdqu xmm3, xmmword [eax]
mov eax, ecx
dec ecx
add eax, eax
movdqu xmm1, xmmword [edi + eax*8]
pxor xmm1, xmm3
test ecx, ecx
jle 0x4156c1
mov eax, ecx
shl eax, 4
add eax, edi
jmp 0x4156b0
movdqu xmm0, xmmword [eax]
dec ecx
lea eax, [eax - 0x10]
aesdec xmm1, xmm0
test ecx, ecx
jg 0x4156b0
cmp byte [esi + 1], 0
movdqu xmm0, xmmword [edi]
aesdeclast xmm1, xmm0
je 0x4156d4
pxor xmm1, xmm2
mov eax, edx
movdqa xmm2, xmm3
add edx, 0x10
dec dword [ebp + 0xc]
movdqu xmmword [eax], xmm1
jne 0x415680
pop edi
movdqu xmmword [esi + 8], xmm2
pop esi
pop ecx
pop ebp
ret 0xc
Function at 0x415960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ecx + 4], edi
jle 0x415a91
push ebx
lea eax, [ecx + 0x28]
push esi
mov dword [ebp - 0x18], eax
lea esi, [ecx + 0x2c]
lea ecx, [ecx]
xor eax, eax
jmp 0x4159a0
movzx ecx, byte [esi - 1]
movzx edx, byte [esi - 2]
movzx ebx, byte [eax + ecx*4 + 0x4e08d0]
xor bl, byte [eax + edx*4 + 0x4e0cd0]
movzx ecx, byte [esi - 3]
movzx edx, byte [esi + 2]
xor bl, byte [eax + ecx*4 + 0x4e00d0]
movzx ecx, byte [esi - 4]
xor bl, byte [eax + ecx*4 + 0x4debd0]
movzx ecx, byte [esi + 3]
mov byte [ebp + eax - 0x14], bl
movzx ebx, byte [eax + ecx*4 + 0x4e08d0]
xor bl, byte [eax + edx*4 + 0x4e0cd0]
movzx ecx, byte [esi + 1]
movzx edx, byte [esi + 6]
xor bl, byte [eax + ecx*4 + 0x4e00d0]
movzx ecx, byte [esi]
xor bl, byte [eax + ecx*4 + 0x4debd0]
movzx ecx, byte [esi + 7]
mov byte [ebp + eax - 0x10], bl
movzx ebx, byte [eax + ecx*4 + 0x4e08d0]
xor bl, byte [eax + edx*4 + 0x4e0cd0]
movzx ecx, byte [esi + 5]
movzx edx, byte [esi + 0xa]
xor bl, byte [eax + ecx*4 + 0x4e00d0]
movzx ecx, byte [esi + 4]
xor bl, byte [eax + ecx*4 + 0x4debd0]
movzx ecx, byte [esi + 0xb]
mov byte [ebp + eax - 0xc], bl
movzx ebx, byte [eax + ecx*4 + 0x4e08d0]
movzx ecx, byte [esi + 9]
xor bl, byte [eax + edx*4 + 0x4e0cd0]
xor bl, byte [eax + ecx*4 + 0x4e00d0]
movzx ecx, byte [esi + 8]
xor bl, byte [eax + ecx*4 + 0x4debd0]
mov byte [ebp + eax - 8], bl
inc eax
cmp eax, 4
jl 0x4159a0
mov ecx, dword [ebp - 0x18]
inc edi
movdqu xmm0, xmmword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
add esi, 0x10
movdqu xmmword [ecx], xmm0
add ecx, 0x10
mov dword [ebp - 0x18], ecx
cmp edi, dword [eax + 4]
jl 0x415990
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00493864
mov esp, ebp
pop ebp
ret
Function at 0x415fc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov edx, dword [0x4dc888]
mov dword [ebp - 4], esi
test edx, edx
jne 0x416043
cmp byte [0x4dc884], dl
jne 0x416043
push str.Crypt32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4dc880], eax
test eax, eax
je 0x41602e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptProtectMemory
push eax
call esi
push str.CryptUnprotectMemory
push dword [0x4dc880]
mov dword [0x4dc888], eax
call esi
mov esi, dword [ebp - 4]
mov ecx, eax
mov edx, dword [0x4dc888]
mov dword [0x4dc88c], ecx
mov byte [0x4dc884], 1
jmp 0x416049
mov ecx, dword [0x4dc88c]
mov edx, dword [0x4dc888]
mov byte [0x4dc884], 1
jmp 0x416049
mov ecx, dword [0x4dc88c]
mov eax, edi
mov ebx, edi
and eax, 0xf
sub ebx, eax
cmp byte [ebp + 8], 0
je 0x416068
test edx, edx
je 0x416078
push 0
push ebx
push esi
call edx
test eax, eax
jne 0x41609d
jmp 0x4160a4
test ecx, ecx
je 0x416078
push 0
push ebx
push esi
call ecx
test eax, eax
jne 0x41609d
jmp 0x4160d7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test edi, edi
je 0x41609d
add bl, 0x4b
lea esp, [esp]
lea ecx, [edx + esi]
lea eax, [edx + ebx]
inc edx
xor byte [ecx], al
cmp edx, edi
jb 0x416090
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.CryptProtectMemory_failed
push 0x4d8a18
call fcn.0040d1c0
add esp, 8
mov ecx, 0x4d8a18
push 2
call fcn.0040d200
push 0x4d43f0
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call fcn.00498c7b
push str.CryptUnprotectMemory_failed
push 0x4d8a18
call fcn.0040d1c0
add esp, 8
mov ecx, 0x4d8a18
push 2
call fcn.0040d200
push 0x4d43f0
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call fcn.00498c7b
int3
Function at 0x4174b0
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
ret
Function at 0x417b10
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
mov esi, dword [edi + 0x20]
lea ebx, [edi + 0x2c]
mov ecx, dword [edi + 0x20]
and esi, 0x3f
mov edx, dword [edi + 0x24]
shld edx, ecx, 3
mov dword [edi + 0x28], ebx
mov byte [esi + edi + 0x2c], 0x80
inc esi
shl ecx, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
cmp esi, 0x38
je 0x417b64
and esi, 0x3f
jne 0x417b54
mov ecx, edi
call fcn.00417500
mov byte [ebx + esi], 0
inc esi
cmp esi, 0x38
jne 0x417b48
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, edx
shld edx, ecx, 8
shr eax, 0x18
mov byte [esi + edi + 0x2c], al
mov eax, edx
shl ecx, 8
shld edx, ecx, 8
shr eax, 0x18
mov byte [esi + edi + 0x2d], al
mov eax, edx
shl ecx, 8
shld edx, ecx, 8
shr eax, 0x18
mov byte [esi + edi + 0x2e], al
mov eax, edx
shl ecx, 8
shld edx, ecx, 8
shr eax, 0x18
mov byte [esi + edi + 0x2f], al
mov eax, edx
shl ecx, 8
shld edx, ecx, 8
shr eax, 0x18
mov byte [esi + edi + 0x30], al
mov eax, edx
shl ecx, 8
shld edx, ecx, 8
shr eax, 0x18
mov byte [esi + edi + 0x31], al
mov eax, edx
shl ecx, 8
mov dword [ebp - 0x10], ecx
mov ecx, edi
shr eax, 0x18
shr edx, 0x10
mov byte [esi + edi + 0x32], al
mov byte [esi + edi + 0x33], dl
call fcn.00417500
mov esi, dword [ebp - 0x14]
xor edx, edx
mov eax, edx
mov ecx, 3
and eax, 3
sub ecx, eax
mov eax, edx
shr eax, 2
shl ecx, 3
mov eax, dword [edi + eax*4]
shr eax, cl
mov byte [edx + esi], al
inc edx
cmp edx, 0x20
jb 0x417be3
mov dword [edi], 0x6a09e667
xor ecx, ecx
mov dword [edi + 4], 0xbb67ae85
mov dword [edi + 8], 0x3c6ef372
mov dword [edi + 0xc], 0xa54ff53a
mov dword [edi + 0x10], 0x510e527f
mov dword [edi + 0x14], 0x9b05688c
mov dword [edi + 0x18], 0x1f83d9ab
mov dword [edi + 0x1c], 0x5be0cd19
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call fcn.00417500
mov eax, 0x40
mov byte [ebx], 0
lea ebx, [ebx + 1]
dec eax
jne 0x417c56
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418210
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x418264
push edi
lea edi, [esi + 4]
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x4182a0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41826a
mov dword [edi], eax
inc dword [esi + 0x84]
mov eax, dword [0x4db4dc]
test eax, eax
je 0x41825b
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x418224
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.CreateThread_failed
push 0x4d8a18
call fcn.0040d1c0
add esp, 8
mov ecx, 0x4d8a18
push 2
call fcn.0040d200
push 0x4d43f0
lea eax, [ebp - 4]
mov dword [ebp - 4], 2
push eax
call fcn.00498c7b
int3
Function at 0x422f30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b225e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d77ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x8003
mov byte [edi + 0xc], 0
call fcn.00492db5
push 0x8003
push 0
push eax
mov dword [edi + 0x10], eax
call fcn.0049c630
mov dword [ebp - 4], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
push 0x80
lea esi, [edi + 0x4b38]
push 0
push esi
call fcn.0049c630
push 0x80
lea eax, [esi + 0x80]
push 0
push eax
call fcn.0049c630
mov dword [edi + 0xe35c], 0
mov dword [edi + 0x9f14], 0
mov dword [edi + 0x9f1c], 0
mov dword [edi + 0x9f18], 0
mov byte [ebp - 4], 5
push 0x8003
mov byte [edi + 0xe680], 0
call fcn.00492db5
push 0x8003
push 0
push eax
mov dword [edi + 0xe684], eax
call fcn.0049c630
mov dword [edi + 0xe688], 0
mov byte [ebp - 4], 6
push 0x8003
mov byte [edi + 0xe6b8], 0
call fcn.00492db5
push 0x8003
push 0
push eax
mov dword [edi + 0xe6bc], eax
call fcn.0049c630
add esp, 0x48
mov dword [edi + 0xe6c0], 0
mov dword [edi + 0xe6c4], 0
mov dword [edi + 0xe6c8], 0
mov dword [edi + 0xe6cc], 0
mov dword [edi + 0xe6d0], 0
mov dword [edi + 0xe6d4], 0
mov dword [edi + 0xe6d8], 0
mov dword [edi + 0xe6dc], 0
mov dword [edi + 0xe6e0], 0
mov dword [edi + 0xe6e4], 0
mov dword [edi + 0xe6e8], 0
mov dword [edi + 0xe6ec], 0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xa
mov dword [edi], eax
mov dword [edi + 0x4b34], 0
mov byte [edi + 0x4c38], 0
mov word [edi + 0x4c48], 0
mov byte [edi + 0x4c4a], 0
mov dword [edi + 0x1c], 1
call fcn.00417f10
push 0
mov ecx, edi
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0xe6f4], 0
mov dword [edi + 0xe6f8], 0
call fcn.004235c0
push 0
mov ecx, edi
call fcn.0041d4b0
call fcn.0041d550
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x424120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x424139
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x424174
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x424170
lea ebx, [ebx]
cmp esi, edx
jae 0x424174
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x424160
cmp esi, edx
jb 0x42417b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret