joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dc96
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41dfa7
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov dword [ebp - 0x10], ecx
push edi
mov esi, ecx
lea ecx, [ecx + 0x18]
call fcn.00441779
mov dword [ebp - 4], 0
lea ecx, [esi + 0x1c]
call fcn.00441779
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
call fcn.00441779
mov byte [ebp - 4], 2
lea ecx, [esi + 0x24]
call fcn.00441779
push 0x472e60
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 3
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0044194c
push 0x472e5c
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 4
lea ebx, [esi + 0x48]
call fcn.0044194c
push 0x472e58
mov ecx, ebx
mov byte [ebp - 4], 5
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 1
lea edi, [esi + 0x4c]
call fcn.0044194c
push 0x472e54
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0044194c
lea ecx, [esi + 0x50]
push str.M_d_yy
mov byte [ebp - 4], 7
call fcn.0044194c
lea ecx, [esi + 0x54]
push str.intl
mov byte [ebp - 4], 8
call fcn.0044194c
lea ecx, [esi + 0x58]
push str.iDate
mov byte [ebp - 4], 9
call fcn.0044194c
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x5c]
push str.iTime
call fcn.0044194c
lea ecx, [esi + 0x60]
push str.iTLZero
mov byte [ebp - 4], 0xb
call fcn.0044194c
lea ecx, [esi + 0x64]
push str.s1159
mov byte [ebp - 4], 0xc
call fcn.0044194c
lea ecx, [esi + 0x68]
push str.s2359
mov byte [ebp - 4], 0xd
call fcn.0044194c
lea ecx, [esi + 0x6c]
push str.sDate
mov byte [ebp - 4], 0xe
call fcn.0044194c
lea ecx, [esi + 0x70]
push str.sTime
mov byte [ebp - 4], 0xf
call fcn.0044194c
lea ecx, [esi + 0x74]
push 0x472e08
mov byte [ebp - 4], 0x10
call fcn.0044194c
lea ecx, [esi + 0x78]
push 0x472e04
mov byte [ebp - 4], 0x11
call fcn.0044194c
lea ecx, [esi + 0x7c]
push 0x472e00
mov byte [ebp - 4], 0x12
call fcn.0044194c
lea ecx, [esi + 0x80]
push 0x472dfc
mov byte [ebp - 4], 0x13
call fcn.0044194c
mov byte [ebp - 4], 0x14
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
mov dword [esi], eax
mov eax, dword [esi + 0x3c]
mov dword [esi + 4], ecx
mov ecx, dword [esi + 0x40]
mov dword [esi + 8], edx
mov edx, dword [esi + 0x44]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x34]
mov dword [esi + 0x10], ecx
push eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], edx
call fcn.004419d7
lea ecx, [esi + 0x38]
push ecx
lea ecx, [esi + 0x1c]
call fcn.004419d7
push ebx
lea ecx, [esi + 0x20]
call fcn.004419d7
push edi
lea ecx, [esi + 0x24]
call fcn.004419d7
sub esp, 4
mov dword [ebp - 0x14], esp
push 1
push 0
mov ecx, dword [ebp - 0x14]
call fcn.0043f8cb
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0x14
mov ecx, esi
call fcn.0041dfc0
mov eax, esi
pop edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4543da
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [0x47c31c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x454400
jmp 0x454516
push 0
mov eax, dword [ebp + 8]
push eax
call dword [0x47c2bc]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0xffffffff
jne 0x454420
jmp 0x454516
lea eax, [ebp - 0x10]
push eax
call dword [0x47c18c]
mov al, byte [ebp - 4]
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00458999
add esp, 4
mov dword [0x47a0a0], 0
mov dword [ebp - 0x420], 0x646c6f47
mov dword [ebp - 0x41c], 0x6f736e65
mov byte [ebp - 0x418], 0x66
mov dword [ebp - 0x20], 0
jmp 0x45446d
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 9
jge 0x45448d
mov eax, dword [ebp - 0x20]
movsx eax, byte [eax + ebp - 0x420]
xor al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov byte [ecx + ebp - 0x420], al
jmp 0x45446a
mov al, byte [ebp - 0x1c]
mov byte [ebp - 0x417], al
push 0xa
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x47c318]
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x424]
push eax
call dword [0x47c2c4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4544f5
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0045853c
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x47c318]
jmp 0x4544a9
mov eax, dword [ebp - 0x18]
push eax
call dword [0x47c2c8]
mov eax, dword [ebp - 0x424]
push eax
call dword [0x47c2c8]
mov eax, dword [ebp + 8]
push eax
call dword [0x47c25c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x458f27
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [0x47c27c]
mov dword [ebp - 4], eax
push 2
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [0x47c27c]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x458ffc
cmp dword [ebp - 8], 0
jne 0x458ffc
lea eax, [ebp - 0x18]
push eax
call dword [0x47c18c]
mov al, byte [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
push eax
call fcn.00458999
add esp, 4
mov dword [ebp - 0x41c], 0x646c6f47
mov dword [ebp - 0x418], 0x6f736e65
mov byte [ebp - 0x414], 0x66
mov dword [ebp - 0x1c], 0
jmp 0x458fb4
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 9
jge 0x458fd6
mov eax, dword [ebp - 0x1c]
movsx eax, byte [eax + ebp - 0x41c]
mov ecx, dword [ebp + 0xc]
xor al, byte [ecx]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + ebp - 0x41c], al
jmp 0x458fb1
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
mov byte [ebp - 0x413], al
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xa
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [0x47c280]
jmp 0x45900e
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [0x47c27c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45c9df
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax + 8]
push 0xfffffffffffffff0
add ecx, 0x646c6f47
pop esi
xor word [eax + 0xc], cx
xor word [eax + 0xe], cx
xor dword [eax + 0x110], ecx
xor byte [eax + 0x114], cl
mov dword [ebp + 8], ecx
lea ecx, [eax + 0x10]
sub esi, eax
mov edi, 0x100
lea eax, [ecx + esi]
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + ebp + 8]
xor byte [ecx], al
inc ecx
dec edi
jne 0x45ca15
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x45ca2d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov eax, dword [eax + 8]
mov dword [ebp + 0x10], 0x100
add eax, 0x646c6f47
xor edi, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 7]
mov eax, edi
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + ebp - 4]
xor al, byte [esi + edi]
inc edi
mov byte [ecx], al
inc ecx
dec dword [ebp + 0x10]
jne 0x45ca57
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45cad5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov byte [esi], 0x4d
mov byte [esi + 1], 0x48
mov eax, dword [edi]
mov cl, byte [eax]
mov al, byte [eax + 1]
mov byte [esi + 3], al
mov eax, dword [edi + 8]
mov byte [esi + 2], cl
mov eax, dword [eax]
mov dword [esi + 4], eax
call fcn.0045cb72
mov dword [esi + 8], eax
lea ecx, [eax + 0x646c6f47]
mov eax, dword [edi]
mov dword [ebp + 8], ecx
mov dx, word [eax + 2]
xor dx, cx
mov word [esi + 0xc], dx
mov edx, dword [eax + 0x12]
mov edx, dword [edx]
xor edx, ecx
mov dword [esi + 0x110], edx
mov dx, word [eax + 8]
xor dx, cx
mov word [esi + 0xe], dx
mov dl, byte [eax + 0x16]
xor dl, cl
mov byte [esi + 0x114], dl
mov dx, word [eax + 4]
test dx, dx
jbe 0x45cb6e
mov edi, dword [eax + 0xe]
push ebx
movzx eax, dx
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [ebp + 0xc], eax
mov eax, ebx
push 4
cdq
pop esi
idiv esi
mov al, byte [edx + ebp + 8]
xor al, byte [edi + ebx]
inc ebx
mov byte [ecx], al
inc ecx
dec dword [ebp + 0xc]
jne 0x45cb55
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x45cbc5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add dword [ebp + 0x10], 0x646c6f47
mov eax, dword [eax]
mov dx, word [eax + 6]
test dx, dx
jbe 0x45cc0c
push ebx
push esi
mov esi, dword [eax + 0xa]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
lea ecx, [eax + 7]
movzx eax, dx
mov dword [ebp + 8], eax
mov eax, edi
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + ebp + 0x10]
xor al, byte [ecx]
mov byte [esi + edi], al
inc edi
inc ecx
dec dword [ebp + 8]
jne 0x45cbf1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x45cfc4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push es
mov ax, 0x101f
mov es, ax
xor eax, eax
mov esi, eax
mov ecx, 0x8000
xor al, byte es:[esi]
inc esi
loop 0x45cfda
pop es
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
test al, al
jne 0x45cfed
add al, 0x55
mov ecx, dword [ebp + 8]
pop esi
mov byte [ecx], al
xor al, al
leave
ret
Function at 0x401126
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x40119c
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push 0x452403
push ecx
call fcn.0043ad3c
add esp, 8
xor esi, esi
test eax, eax
je 0x401229
mov edi, eax
push 2
push 0
push eax
call fcn.004393b9
add esp, 0xc
push edi
call fcn.00439708
add esp, 4
test eax, eax
js 0x401220
mov ebp, eax
push edi
call fcn.0043c906
add esp, 4
lea eax, [ebp + 1]
push eax
call dword [0x45d004]
add esp, 4
test eax, eax
je 0x401220
mov ebx, eax
push edi
push ebp
push 1
push eax
call fcn.0043bf83
add esp, 0x10
test eax, eax
je 0x40120e
mov ebp, eax
push edi
call fcn.0043bad0
add esp, 4
test eax, eax
je 0x401230
push edi
call fcn.0043b94b
add esp, 4
push ebx
call dword [section..data]
jmp 0x401226
push edi
call fcn.0043b94b
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.0043b94b
add esp, 4
mov byte [ebx + ebp], 0
mov esi, ebx
jmp 0x401229

Function at 0x40231e
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push edi
push esi
test edx, edx
je 0x402346
mov edi, 0x1505
xor esi, esi
movzx ebx, byte [ecx + esi]
test ebx, ebx
je 0x40234d
mov eax, edi
shl eax, 5
add eax, edi
add eax, ebx
inc esi
mov edi, eax
cmp edx, esi
jne 0x40232c
jmp 0x40234f
mov eax, 0x1505
jmp 0x40234f
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x4081d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov ebp, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov edi, esp
mov ecx, 5
mov esi, 0x452764
rep movsd dword es:[edi], dword [esi]
cmp ebp, 0x40
jb 0x408250
shr ebp, 6
xor ebx, ebx
mov esi, edx
xor edi, edi
movzx eax, byte [esi + edi]
mov dword [esp + edi + 0x14], eax
movzx ecx, byte [esi + edi + 1]
shl ecx, 8
or ecx, eax
mov dword [esp + edi + 0x14], ecx
movzx eax, byte [esi + edi + 2]
shl eax, 0x10
or eax, ecx
mov dword [esp + edi + 0x14], eax
movzx ecx, byte [esi + edi + 3]
shl ecx, 0x18
or ecx, eax
mov dword [esp + edi + 0x14], ecx
add edi, 4
cmp edi, 0x40
jne 0x4081fb
mov ecx, esp
lea edx, [esp + 0x14]
call fcn.004082ea
inc ebx
lea edx, [esi + edi]
cmp ebx, ebp
jne 0x4081f7
add esi, edi
mov edx, esi
mov ebp, dword [esp + 0x6c]
xor ebx, ebx
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov esi, ebp
and esi, 0x3f
je 0x408284
xor eax, eax
movzx edi, byte [edx + eax]
mov ecx, ebx
and cl, 0x18
shl edi, cl
mov ecx, eax
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x14], edi
inc eax
add ebx, 8
cmp esi, eax
jne 0x408268
lea ebx, [ebp*8]
mov ecx, ebx
and cl, 0x18
or cl, 7
xor eax, eax
inc eax
shl eax, cl
mov ecx, ebp
and ecx, 0x3c
xor dword [esp + ecx + 0x14], eax
cmp esi, 0x38
jb 0x4082bc
mov ecx, esp
lea edi, [esp + 0x14]
mov edx, edi
call fcn.004082ea
xor eax, eax
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x70]
lea edx, [esp + 0x14]
mov dword [edx + 0x38], ebx
shr ebp, 0x1d
mov dword [edx + 0x3c], ebp
mov ecx, esp
call fcn.004082ea
xor eax, eax
mov ecx, dword [esp + eax*4]
mov dword [esi + eax*4], ecx
inc eax
cmp eax, 5
jne 0x4082d6
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40d728
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x40d827
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x40d820
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebp, esi
sub ebp, eax
xor edx, edx
cmp ebp, 8
mov dword [esp], esi
jb 0x40d7d1
xor esi, esi
mov eax, esi
movzx edx, byte [ebx + esi]
add edx, edi
add ecx, edx
movzx esi, byte [ebx + esi + 1]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 2]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 3]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 4]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 5]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 6]
add edx, esi
add ecx, edx
movzx edi, byte [ebx + eax + 7]
add edi, edx
add ecx, edi
lea esi, [eax + 8]
add eax, 0xf
cmp eax, ebp
jb 0x40d771
mov edx, ebp
and edx, 0x1ff8
add ebx, esi
mov esi, dword [esp]
mov eax, ebp
sub eax, edx
jbe 0x40d7eb
xor edx, edx
movzx esi, byte [ebx + edx]
add edi, esi
add ecx, edi
inc edx
cmp eax, edx
jne 0x40d7d9
add ebx, eax
mov esi, dword [esp]
mov eax, edi
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
mov eax, ecx
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, ebp
mov ebp, 0x15b0
jne 0x40d765
shl ecx, 0x10
or ecx, edi
jmp 0x40d82a
xor ecx, ecx
inc ecx
mov eax, ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40d834
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
not ebx
cmp ecx, 4
jb 0x40d8a9
mov eax, 0xff
mov esi, ebx
shr esi, 8
movzx edi, byte [edx]
and ebx, eax
xor ebx, edi
xor esi, dword [ebx*4 + 0x4527ac]
mov edi, esi
shr edi, 8
movzx ebx, byte [edx + 1]
and esi, eax
xor esi, ebx
xor edi, dword [esi*4 + 0x4527ac]
mov esi, edi
shr esi, 8
movzx ebx, byte [edx + 2]
and edi, eax
xor edi, ebx
xor esi, dword [edi*4 + 0x4527ac]
mov ebx, esi
shr ebx, 8
movzx edi, byte [edx + 3]
and esi, eax
xor esi, edi
xor ebx, dword [esi*4 + 0x4527ac]
add edx, 4
add ecx, 0xfffffffc
cmp ecx, 3
ja 0x40d84f
test ecx, ecx
je 0x40d8cd
xor esi, esi
mov eax, ebx
shr eax, 8
movzx edi, byte [edx + esi]
movzx ebx, bl
xor ebx, edi
xor eax, dword [ebx*4 + 0x4527ac]
inc esi
mov ebx, eax
cmp ecx, esi
jne 0x40d8b1
jmp 0x40d8cf
mov eax, ebx
not eax
pop esi
pop edi
pop ebx
ret
Function at 0x41d236
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x1c]
xor ebp, ebp
dec ebp
cmp byte [eax + ebp + 1], 0
lea ebp, [ebp + 1]
jne 0x41d244
mov ebx, ebp
shr ebx, 1
push ebx
call fcn.0043c534
add esp, 4
mov esi, eax
mov eax, 0xfffffffc
sub ebp, 1
jb 0x41d2af
mov dword [esp], ebx
shr ebp, 1
inc ebp
xor edi, edi
mov eax, dword [esp + 0x1c]
movsx eax, byte [eax + edi*2]
push eax
call fcn.0041d20c
add esp, 4
mov ebx, eax
shl bl, 4
mov eax, dword [esp + 0x1c]
movsx eax, byte [eax + edi*2 + 1]
push eax
call fcn.0041d20c
add esp, 4
or al, bl
mov byte [esi + edi], al
inc edi
cmp ebp, edi
jne 0x41d26f
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [esp]
add eax, 0xfffffffc
je 0x41d2c8
xor ecx, ecx
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 4]
xor dl, byte [esi + ecx + 4]
mov byte [esi + ecx], dl
inc ecx
cmp eax, ecx
jne 0x41d2b1
jmp 0x41d2ca
xor eax, eax
mov byte [esi + eax], 0
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41d2d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [esp + 0x20]
xor edi, edi
dec edi
cmp word [eax + edi*2 + 2], 0
lea edi, [edi + 1]
jne 0x41d2e6
mov esi, edi
shr esi, 1
push esi
call fcn.0043c534
add esp, 4
mov ebp, eax
mov ecx, edi
sub ecx, 1
jb 0x41d34e
mov dword [esp], esi
shr ecx, 1
inc ecx
mov dword [esp + 4], ecx
xor esi, esi
mov eax, dword [esp + 0x20]
movsx eax, byte [eax + esi*4]
push eax
call fcn.0041d20c
add esp, 4
mov ebx, eax
shl bl, 4
mov eax, dword [esp + 0x20]
movsx eax, byte [eax + esi*4 + 2]
push eax
call fcn.0041d20c
add esp, 4
or al, bl
mov byte [ebp + esi], al
inc esi
cmp dword [esp + 4], esi
jne 0x41d313
mov eax, dword [ebp]
mov esi, dword [esp]
mov dword [esp + 8], eax
push edi
push 1
call fcn.0043b940
add esp, 8
mov edi, eax
cmp esi, 4
je 0x41d382
lea eax, [esi - 4]
xor ecx, ecx
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 8]
xor dl, byte [ebp + ecx + 4]
movsx edx, dl
mov word [edi + ecx*2], dx
inc ecx
cmp eax, ecx
jne 0x41d369
mov word [edi + esi*2 - 8], 0
push ebp
call fcn.0043c186
add esp, 4
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x427198
Capabilities:
Create process on windows
Get file size
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, esp
mov dword [esi + 0xc], 0xd818de76
mov eax, 0xd818de76
mov ebx, dword [esi + 0x14]
cmp eax, 0x1ec15ad3
jle 0x4271f6
cmp eax, 0x27d54626
jle 0x427227
cmp eax, 0x410b6d0c
jle 0x427270
cmp eax, 0x410b6d0d
jne 0x427343
imul ebx, ebx, 0xc6
add ebx, 0x1f2
mov eax, 0x27d54627
cmp ebx, 0x54
je 0x4271b5
mov eax, 0xa8c75e36
jmp 0x4271b5
cmp eax, 0xd818de75
jg 0x42724d
cmp eax, 0x89170e67
je 0x427329
cmp eax, 0xb5726028
jne 0x427336
mov eax, dword [esi + 0x10]
lea eax, [eax*8 - 0x449]
mov dword [esi + 0x10], eax
mov eax, 0xfd691bec
jmp 0x4271b5
cmp eax, 0x1ec15ad4
je 0x4272aa
cmp eax, 0x25b4543f
jne 0x4271b5
mov eax, dword [esi + 0x10]
shr eax, 7
and eax, 0x1fffff
mov dword [esi + 0x10], eax
mov eax, 0x89170e67
jmp 0x4271b5
cmp eax, 0xd818de76
je 0x427313
cmp eax, 0xfd691bec
jne 0x4271b5
mov eax, dword [esi + 0x1c]
mov eax, 0x7ccb0544
jmp 0x4271b5
cmp eax, 0x27d54627
jne 0x4271b5
push eax
sub esp, 0x1fc
mov eax, esp
mov dword [esi + 8], eax
sub esp, 8
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov dword [esi + 4], eax
push eax
sub esp, 0x64
mov eax, esp
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x18]
mov eax, 0x25b4543f
jmp 0x4271b5
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x200
push dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov eax, dword [esi + 4]
push dword [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, 0xffffffff
adc eax, 0xffffffff
mov edx, dword [esi + 4]
mov dword [edx], ecx
mov dword [edx + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, 0xb5726028
jmp 0x4271b5
push eax
sub esp, 0x7fc
mov eax, esp
mov dword [esi + 0x18], eax
mov eax, 0x27d54627
jmp 0x4271b5
mov eax, dword [esi + 8]
mov eax, 0x1ec15ad4
jmp 0x4271b5
cmp eax, 0xa8c75e36
jne 0x4271b5
jmp 0x42739d
cmp eax, 0x5e8de54a
je 0x4273b1
cmp eax, 0x7ccb0544
jne 0x4271b5
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
push 0x68
push str.cmd.exe__c_timeout__nobreak__t_3__fsutil_file_setZeroData_offset0_length_lu___s___erase___s___exit
push dword [esi + 0x1c]
call fcn.004321d0
add esp, 0xc
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push ecx
push ecx
push dword [eax]
push dword [esi + 0x1c]
push 0x800
push dword [esi + 0x18]
call fcn.004273c5
add esp, 0x18
xor edi, edi
push edi
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WinExec]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [esi + 0xc], eax
add ebx, 0xffffff7c
shr ebx, 9
add ebx, 0xffffffdd
shr ebx, 0x13
jmp 0x4273bd
mov dword [esi + 0xc], eax
shl ebx, 9
add ebx, 0x1b693
mov dword [esi + 0x14], ebx
call fcn.00427198
Function at 0x438785
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004389dc
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4388fd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4388fd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4388ac
jg 0x4387de
test eax, eax
je 0x4388a2
push 1
push 0x1000
call fcn.00444370
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x438804
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x438899
push 0x8000
push ebx
call fcn.0043ab88
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x438830
jg 0x43882b
cmp ecx, 0x1000
jb 0x438830
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00444404
add esp, 0x10
cmp eax, 0xffffffff
je 0x438875
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43882b
jl 0x43885c
test ecx, ecx
jne 0x43881d
push dword [ebp - 0xc]
push ebx
call fcn.0043ab88
push esi
call fcn.00442264
add esp, 0xc
xor edi, edi
jmp 0x43890e
cmp byte [edi + 0x24], 0
je 0x43888c
cmp dword [edi + 0x20], 5
jne 0x43888c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x438897
mov edi, dword [edi + 0x18]
jmp 0x438899
xor edi, edi
push esi
call fcn.00442264
pop ecx
jmp 0x43890e
test ecx, ecx
jg 0x43886e
jl 0x4388ac
test eax, eax
jae 0x43886e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00444efa
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4388cf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43886e
jmp 0x438906
push ebx
call fcn.00443f3c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43886e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x43890e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43890b
mov edi, dword [edi + 0x18]
jmp 0x43890e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00444efa
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret