joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42641c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x448d00]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42645c
cmp byte [ebx], 0xa
jne 0x42645c
or byte [eax + edi + 0x28], 4
jmp 0x426461
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42655f
mov al, byte [edx]
cmp al, 0x1a
je 0x426541
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x426490
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4264b5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4264bf
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x426472
jmp 0x42655f
push 0
lea eax, [ebp - 0xc]
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 0x42653c
cmp dword [ebp - 0xc], 0
je 0x42653c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x448d00]
test byte [eax + edi + 0x28], 0x48
je 0x426516
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x426501
mov byte [esi], dl
jmp 0x426512
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x448d00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42655f
cmp byte [ebp - 1], 0xa
jne 0x426525
cmp esi, ebx
jne 0x426525
mov byte [esi], 0xa
jmp 0x42655e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00426f9c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42655f
mov byte [esi], 0xd
jmp 0x42655e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x448d00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42655b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42655f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x426568
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x448d00]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4265ab
cmp word [esi], dx
jne 0x4265ab
or byte [edi + eax + 0x28], 4
jmp 0x4265b0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x426703
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4266e3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4265f2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x426628
cmp eax, edx
jae 0x426634
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4265ca
jmp 0x426703
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4266df
cmp dword [ebp - 0x14], 0
je 0x4266df
mov eax, dword [ebx*4 + 0x448d00]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4266b7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x426680
mov word [esi], cx
jmp 0x4266b3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x448d00]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x448d00]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x448d00]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x426703
pop ebx
cmp word [ebp - 4], bx
jne 0x4266c8
cmp esi, dword [ebp + 0xc]
jne 0x4266c8
mov word [esi], bx
jmp 0x426700
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00426f9c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x426703
push 0xd
jmp 0x4266fc
mov ecx, dword [ebx*4 + 0x448d00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4266fa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x426703
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42c7a3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42c840
push ebx
push esi
call fcn.0042c76c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042b3f1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42c7ed
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42c83f
push edi
push eax
call fcn.00427c09
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42c80d
call fcn.00423f60
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42c83e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042b3f1
add esp, 0x20
test eax, eax
jne 0x42c82c
push edi
call fcn.00423f60
jmp 0x42c834
push ebx
call fcn.00423f60
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x433d20
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.00433c9c
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x433e98
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x433e98
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x433e47
jg 0x433d79
test eax, eax
je 0x433e3d
push 1
push 0x1000
call fcn.00423f9a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x433d9f
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x433e34
push 0x8000
push ebx
call fcn.0042134d
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 0x433dcb
jg 0x433dc6
cmp ecx, 0x1000
jb 0x433dcb
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004257fb
add esp, 0x10
cmp eax, 0xffffffff
je 0x433e10
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 0x433dc6
jl 0x433df7
test ecx, ecx
jne 0x433db8
push dword [ebp - 0xc]
push ebx
call fcn.0042134d
push esi
call fcn.00423f60
add esp, 0xc
xor edi, edi
jmp 0x433ea9
cmp byte [edi + 0x24], 0
je 0x433e27
cmp dword [edi + 0x20], 5
jne 0x433e27
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x433e32
mov edi, dword [edi + 0x18]
jmp 0x433e34
xor edi, edi
push esi
call fcn.00423f60
pop ecx
jmp 0x433ea9
test ecx, ecx
jg 0x433e09
jl 0x433e47
test eax, eax
jae 0x433e09
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00426f9c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x433e6a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x433e09
jmp 0x433ea1
push ebx
call fcn.0042cf95
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x433e09
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 0x433ea9
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x433ea6
mov edi, dword [edi + 0x18]
jmp 0x433ea9
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00426f9c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403338
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x50c028
jmp 0x40332c
mov eax, 0x4ce3fe
call fcn.00492ff0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0040346e
mov eax, dword [0x507494]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 0xa0], eax
push 1
lea ecx, [esi + 0xa8]
pop ebx
mov byte [ebp - 4], bl
call fcn.004b7c9c
lea ecx, [esi + 0xbc]
mov byte [ebp - 4], 2
call fcn.00417f97
lea ecx, [esi + 0xe8]
mov byte [ebp - 4], 3
call fcn.00417f97
mov eax, dword [0x507494]
mov dword [esi + 0x11c], eax
push 0xa
mov dword [esi], 0x4d62cc
or dword [esi + 0x20], 0xffffffff
or dword [esi + 0x1c], 0xffffffff
pop eax
mov dword [esi + 0x28], edi
push 0x64
mov dword [esi + 0x58], eax
mov dword [esi + 0x60], eax
pop eax
mov dword [esi + 0x24], edi
push 0x50c024
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], 2
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], edi
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], 0x3e8
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], 0xc0
mov dword [esi + 0x84], 0x6c
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x9c], edi
call fcn.004bc165
push 0x50c024
lea ecx, [esi + 0x11c]
mov dword [esi + 0xa4], edi
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
call fcn.004bc165
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x404012
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4ce53c
call fcn.00492ff0
sub esp, 0x22c
push ebx
push esi
mov dword [ebp - 0x2c], ecx
mov esi, 0x50c2b0
push str.DataFile_Types
mov ecx, esi
call fcn.004cb7e4
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x404048
xor eax, eax
jmp 0x404190
mov eax, dword [0x507494]
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x24], 0x100
mov dword [ebp - 0x20], ebx
call edi
cmp eax, 0x103
je 0x404160
lea eax, [ebp - 0x238]
push eax
push str.DataFile_Types
lea eax, [ebp - 0x10]
push 0x4f6d64
push eax
call fcn.004b5f69
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, esi
push ebx
push str.Name
push dword [ebp - 0x10]
push eax
call fcn.004cb896
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004bc115
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004bbfce
push ebx
push str.Extension
push dword [ebp - 0x10]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004cb896
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004bc115
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004bbfce
push 0xffffffffffffffff
push str.Icon
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004cb82a
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
je 0x404139
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 8], ebx
je 0x404139
cmp eax, 0xffffffff
je 0x404139
push eax
push edx
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00404292
lea eax, [ebp - 0x38]
inc dword [ebp - 0x20]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x24], 0x100
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
jmp 0x404084
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004bbfce
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004bbfce
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004bbfce
push 1
pop eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40bd2e
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push edi
mov ebx, ecx
push eax
push 0
push dword [ebx + 0x1c]
mov edi, 0x4d7828
mov dword [ebp - 8], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, 0x2b4
lea eax, [ebp - 0x2bc]
push esi
push 0
push eax
call fcn.00493250
lea eax, [ebp - 8]
add esp, 0xc
neg eax
sbb eax, eax
lea ecx, [ebp - 4]
and eax, ecx
push 0x4009
lea ecx, [ebp - 0x2bc]
push esi
mov eax, dword [eax]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
push 0
push 0x1109
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
neg ecx
sbb ecx, ecx
mov dword [ebp - 8], edi
and ecx, eax
call fcn.0040baca
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c1c8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
mov esi, 0x2b4
push edi
push esi
lea eax, [ebp - 0x2b4]
push 0
mov edi, ecx
push eax
call fcn.00493250
mov eax, dword [ebp + 8]
add esp, 0xc
or ax, 0x4008
push eax
lea eax, [ebp - 0x2b4]
push esi
push eax
push 0
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b0]
pop edi
pop esi
leave
ret 4
Function at 0x40c8dd
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4cf330
call fcn.00492ff0
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x34]
xor ebx, ebx
mov eax, dword [esi + 0x1c]
push ecx
mov edi, 0x4d7828
push 0x11
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push ebx
push ebx
push 0x110a
mov dword [ebp - 4], ebx
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.0040cac9
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x40ca9e
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.004bc042
push 0x50c024
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004bc042
mov eax, dword [0x507494]
mov dword [ebp - 0x14], eax
push 0x5c
push 0x2f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004b5871
mov ebx, 0x4f6e1c
lea ecx, [ebp - 0x18]
push ebx
call fcn.004b5f7c
and dword [ebp - 0x20], 0
and dword [ebp + 8], 0
push dword [ebp - 0x1c]
push 2
push 0x1102
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x5c
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push dword [ebp - 0x18]
push eax
call fcn.004bcf08
test eax, eax
je 0x40ca77
push ebx
lea ecx, [ebp - 0x10]
call fcn.004b5f7c
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
jne 0x40c9e2
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004bc273
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004bc3fb
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
jmp 0x40ca04
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004bc2e7
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.004bc3fb
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004bbfce
and dword [ebp - 0x2c], 0
push 0
mov byte [ebp - 4], 6
push dword [ebp - 0x10]
mov dword [ebp - 0x30], edi
call fcn.0040b85c
pop ecx
mov dword [ebp - 0x2c], eax
pop ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
mov ecx, esi
mov byte [ebp - 4], 7
push eax
call fcn.0040cac9
test eax, eax
mov dword [ebp - 0x20], eax
je 0x40ca5f
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
neg ecx
sbb ecx, ecx
lea eax, [ebp - 0x2c]
and ecx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x30], edi
call fcn.0040baca
inc dword [ebp + 8]
jmp 0x40c980
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x2c]
neg ecx
sbb ecx, ecx
mov byte [ebp - 4], 3
and ecx, eax
mov dword [ebp - 0x30], edi
call fcn.0040baca
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004bbfce
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004bbfce
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004bbfce
mov ebx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
neg ecx
sbb ecx, ecx
lea eax, [ebp - 0x34]
and ecx, eax
mov dword [ebp - 0x38], edi
call fcn.0040baca
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40d236
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
push dword [esi + 0x74]
call dword [eax + 0xb8]
xor edi, edi
mov dword [esi + 0x48], edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push 1
push edi
push edi
call ebx
push edi
push 1
push edi
push edi
mov dword [esi + 0x40], eax
call ebx
mov dword [esi + 0x44], eax
lea eax, [ebp - 4]
push eax
push 2
push esi
push 0x40d1dd
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x5c]
cmp eax, edi
jbe 0x40d29c
push 0x11
push edi
push dword [esi + 0x40]
push 5
push eax
call dword [sym.imp.WINMM.dll_timeSetEvent]
mov dword [esi + 0x58], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e112
Capabilities:
Check os version

Disassembly:
mov eax, 0x4cf4cf
call fcn.00492ff0
sub esp, 0x118
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x1c]
mov esi, ecx
mov dword [ebp - 0x10], esi
push ebx
call fcn.004bc9bb
mov eax, dword [0x507494]
mov dword [ebp - 4], ebx
mov dword [esi + 0x64], eax
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
mov dword [esi], 0x4d80d0
jne 0x40e198
mov edi, 0x114
lea eax, [ebp - 0x124]
push edi
push ebx
push eax
call fcn.00493250
add esp, 0xc
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x40e191
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x40e198
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.00493a0c
cmp eax, ebx
pop ecx
mov dword [esi + 0x5c], eax
jne 0x40e1ad
call fcn.004b6657
push dword [ebp + 0x20]
mov ecx, esi
push ebx
call fcn.0040e372
push eax
call fcn.00493250
push 0x200002
call fcn.004b8458
mov dword [esi + 0xe8], eax
mov word [eax], bx
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [esi + 0x60], eax
lea edi, [esi + 0x68]
neg eax
sbb eax, eax
mov ecx, esi
add eax, 0x7005
mov word [edi], bx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x3c], eax
call fcn.0040e372
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, esi
call fcn.0040e372
mov ecx, dword [esi + 0xe8]
mov dword [eax + 0x1c], ecx
mov ecx, esi
call fcn.0040e372
mov ecx, esi
mov dword [eax + 0x20], 0x100000
call fcn.0040e372
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x3c], ecx
mov ecx, esi
call fcn.0040e372
mov ecx, esi
mov dword [eax + 0x24], edi
call fcn.0040e372
mov ecx, esi
mov dword [eax + 0x28], 0x40
call fcn.0040e372
mov ecx, dword [ebp + 0x14]
add eax, 0x34
or ecx, 0x880020
or dword [eax], ecx
test byte [ebp + 0x14], 0x40
je 0x40e26a
mov ecx, esi
call fcn.0040e372
add eax, 0x34
and byte [eax + 2], 0x7f
call fcn.004cb63f
mov edi, dword [eax + 0xc]
mov ecx, esi
call fcn.0040e372
mov ecx, esi
mov dword [eax + 8], edi
call fcn.0040e372
cmp dword [ebp + 0x10], ebx
mov dword [eax + 0x44], 0x40df9b
je 0x40e2a3
push 0x100000
push dword [ebp + 0x10]
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x40e2e2
push dword [ebp + 0x18]
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.004bc165
push ebx
mov ecx, edi
call fcn.004bc413
push 0x7c
push eax
call fcn.004939e3
pop ecx
cmp eax, ebx
pop ecx
je 0x40e2d5
mov word [eax], bx
push 0x7c
add eax, 2
jmp 0x40e2bf
mov edi, dword [esi + 0x64]
mov ecx, esi
call fcn.0040e372
mov dword [eax + 0xc], edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x416307
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x417602
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4cfa34
call fcn.00492ff0
push ecx
mov eax, dword [0x507494]
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x18], eax
mov eax, dword [0x507494]
and dword [ebp - 4], 0
mov dword [esi + 0x20], eax
mov eax, dword [0x507494]
mov dword [esi + 0x24], eax
mov eax, dword [0x507494]
mov dword [esi + 0x28], eax
mov eax, dword [0x507494]
mov dword [esi + 0x2c], eax
mov eax, dword [0x507494]
mov dword [esi + 0x30], eax
mov eax, dword [0x507494]
mov dword [esi + 0x34], eax
mov eax, dword [0x507494]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 7
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], 0x4d8f64
mov dword [esi + 0xc], eax
call fcn.0041a354
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x41862c
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
lea esi, [ecx + 4]
add ecx, 0x14
push esi
xor ebx, ebx
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x418655
or eax, 0xffffffff
jmp 0x4186c8
cmp dword [ebp + 0xc], ebx
push edi
je 0x418693
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x10]
je 0x418677
push 0x64
push dword [esi]
call edi
test eax, eax
je 0x41869d
jmp 0x418661
push 0x2710
push dword [esi]
call edi
cmp eax, 0x102
jne 0x41869d
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x41869d
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
pop edi
cmp eax, ebx
je 0x4186ae
cmp dword [eax], ebx
je 0x4186ae
push 1
pop eax
jmp 0x4186c8
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
pop esi
pop ebx
pop ebp
ret 0xc