joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4244d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0
jne 0x42458b
mov eax, dword [edi]
push ebx
mov ebx, edx
mov byte [esp + 8], dl
shr ebx, 8
mov byte [esp + 9], bl
test al, 0x10
je 0x424512
push esi
lea ecx, [edi + 0x38]
call fcn.00424460
mov dl, bl
mov byte [esp + 0xc], al
lea ecx, [edi + 0x38]
call fcn.00424460
mov byte [esp + 0xd], al
mov eax, dword [edi]
pop esi
pop ebx
test al, 1
je 0x424553
mov edx, dword [edi + 0x28]
mov ecx, edx
mov eax, dword [edi + 0x2c]
add ecx, 2
adc eax, 0
cmp eax, dword [edi + 0x34]
jb 0x42453d
ja 0x424531
cmp ecx, dword [edi + 0x30]
jb 0x42453d
mov dword [edi + 0x20], 0xb
pop edi
add esp, 8
ret
mov ecx, dword [edi + 4]
mov ax, word [esp + 4]
mov word [edx + ecx], ax
add dword [edi + 0x28], 2
adc dword [edi + 0x2c], 0
jmp 0x42457c
push 0
lea eax, [esp + 0xc]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424575
cmp dword [esp + 8], 2
je 0x42457c
mov dword [edi + 0x20], 3
test dword [edi], 0x40000000
je 0x42458b
mov dword [edi + 0x20], 0x14
pop edi
add esp, 8
ret

Function at 0x424590
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x42469f
cmp dword [esi + 0x20], 0
jne 0x42469f
test byte [esi], 0x10
je 0x42462d
mov ecx, dword [esi + 0x44]
mov eax, ecx
test ecx, ecx
je 0x4245d0
cmp dword [esi + 0x48], ebx
jae 0x4245d0
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x44], 0
xor eax, eax
test eax, eax
jne 0x4245f6
lea eax, [ebx + ebx]
push eax
push 0
mov dword [esi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x44], eax
test eax, eax
jne 0x4245f6
mov dword [esi + 0x20], 2
jmp 0x424690
push ebx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor edi, edi
test ebx, ebx
je 0x42462a
push ebp
nop dword [eax + eax]
mov eax, dword [esi + 0x44]
lea ecx, [esi + 0x38]
mov dl, byte [eax + edi]
call fcn.00424460
mov ecx, dword [esi + 0x44]
mov byte [edi + ecx], al
inc edi
cmp edi, ebx
jb 0x424610
pop ebp
mov edi, dword [esi + 0x44]
test byte [esi], 1
je 0x42466d
mov edx, dword [esi + 0x28]
mov ecx, edx
mov eax, dword [esi + 0x2c]
add ecx, ebx
adc eax, 0
cmp eax, dword [esi + 0x34]
jb 0x424654
ja 0x42464b
cmp ecx, dword [esi + 0x30]
jb 0x424654
mov dword [esi + 0x20], 0xb
jmp 0x424690
mov eax, dword [esi + 4]
push ebx
add eax, edx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x28], ebx
adc dword [esi + 0x2c], 0
jmp 0x424690
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424689
cmp dword [esp + 0x10], ebx
je 0x424690
mov dword [esi + 0x20], 3
test dword [esi], 0x40000000
je 0x42469f
mov dword [esi + 0x20], 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x4247e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov eax, dword [esi]
test eax, 0x40000000
je 0x4247ff
pop edi
mov dword [esi + 0x20], 0x14
xor eax, eax
pop esi
pop ebx
pop ecx
ret
test al, al
jns 0x42484a
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
mov edi, dword [esi + 0x68]
cmp eax, dword [esi + 0x6c]
ja 0x42486a
jb 0x424817
cmp ecx, edi
jae 0x42486a
mov eax, dword [esp + 0x14]
sub edi, ecx
mov dword [esp + 0xc], edi
push ebp
mov ebp, edi
cmp edi, eax
jbe 0x424830
mov edi, eax
mov ebp, eax
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x64]
push edi
add eax, ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x70], ebp
adc dword [esi + 0x74], 0
pop ebp
jmp 0x424875
push 0
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
push ebx
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x424871
mov dword [esi + 0x20], 7
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [esp + 0xc]
add dword [esi + 0x58], edi
mov edx, ebx
mov ecx, dword [esi + 0x60]
adc dword [esi + 0x5c], 0
push edi
call fcn.00424320
add esp, 4
mov dword [esi + 0x60], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x426bf0
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
mov dword [ebp - 4], eax
push esi
mov esi, edx
push edi
test eax, eax
je 0x426d75
cmp dword [eax + 0x18], 0
jne 0x426d75
cmp dword [eax + 0x3c], 0
je 0x426d75
cmp dword [eax + 0x1c], 0
je 0x426d75
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x426c30
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
lea ecx, [eax + 8]
cmp eax, ecx
sbb eax, eax
test ecx, eax
je 0x426ce2
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426c60
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
lea ecx, [eax + 8]
cmp eax, ecx
sbb edx, edx
and edx, ecx
mov ecx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426c84
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
lea ecx, [eax + 8]
cmp edx, 0x400
ja 0x426cc1
cmp eax, ecx
sbb eax, eax
and eax, ecx
call fcn.004b8430
mov edi, esp
test edi, edi
je 0x426ce4
mov dword [edi], 0xcccc
add edi, 8
jmp 0x426ce4
cmp eax, ecx
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x426ce4
mov dword [edi], 0xdddd
add edi, 8
jmp 0x426ce4
xor edi, edi
mov edx, edi
mov ecx, ebx
sub edx, ebx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x426cf0
mov ecx, ebx
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x426d04
mov eax, dword [ebp - 4]
push 0
push 0
push 0
push dword [eax + 0x3c]
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
sub ebx, edi
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx + ecx - 2], ax
test ax, ax
jne 0x426d40
test edi, edi
je 0x426d69
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x426d69
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, esi
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427940
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [0x4e7578]
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
test eax, eax
je 0x42795c
cmp dword [eax + 4], 0
jne 0x4279b3
mov eax, dword [eax]
test eax, eax
jne 0x427950
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x427b1e
lea edx, [eax + 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esi, 0x20
nop
mov ecx, dword [eax + 4]
add esi, 0x20
mov dword [edx], ecx
mov dword [eax + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x427990
mov ecx, dword [0x4e7578]
mov dword [eax], ecx
mov dword [0x4e7578], eax
test eax, eax
je 0x427b1e
mov ebx, dword [eax + 4]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ebx
mov ecx, dword [ebx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
call fcn.00427c00
test eax, eax
je 0x427b17
push 0x28
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x427b17
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x18]
and edx, 0xf
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x24]
mov eax, ecx
and eax, 1
shl edx, 3
or edx, eax
mov dword [esi], ebp
mov eax, dword [esi + 0x14]
and eax, 0xffffff80
or edx, eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x14], edx
mov dword [esi + 0x24], eax
test ecx, ecx
je 0x427a6a
mov eax, dword [edi - 5]
mov dword [esi + 0xc], eax
mov ax, word [edi - 1]
mov word [esi + 0x10], ax
mov al, byte [edi + 1]
mov byte [esi + 0x12], al
jmp 0x427a75
mov eax, dword [edi]
mov dword [esi + 0xc], eax
mov al, byte [edi + 4]
mov byte [esi + 0x10], al
shl edx, 0x1f
lea edi, [ebp - 5]
sar edx, 0x1f
lea ecx, [esp + 0x10]
test edx, edx
push ecx
cmove edi, ebp
xor eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test edx, edx
push 0x40
setne al
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [esp + 0x24], eax
call ebp
test eax, eax
jne 0x427ac5
mov ecx, ebx
call fcn.004278d0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x427ae0
mov eax, dword [esi]
mov word [eax], 0xf9eb
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebx
push edi
call ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x427b0d
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ecx, ebx
call fcn.004278d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
Function at 0x427b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
shl ecx, 0x1f
sar ecx, 0x1f
test ecx, ecx
lea edi, [eax - 5]
cmove edi, eax
xor ebx, ebx
test ecx, ecx
lea eax, [esp + 0x10]
push eax
setne bl
push 0x40
lea ebx, [ebx*2 + 5]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x427b7b
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x427b96
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x427b9c
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x427f20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4e9938], ecx
mov eax, 1
nop dword [eax + eax]
mov ecx, dword [eax*4 + 0x4e9934]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
add ecx, eax
mov dword [eax*4 + 0x4e9938], ecx
inc eax
cmp eax, 0x270
jl 0x427f30
mov dword [0x4e5b5c], 1
mov dword [0x4e9934], 1
ret

Function at 0x427f70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4e9934], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x4e9938
jne 0x427f8f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.00427f20
mov eax, dword [0x4e9938]
mov ebx, 0xe3
mov dword [0x4e5b5c], 0x270
mov dword [0x4ea2f8], 0x4e9938
nop dword [eax]
mov edi, dword [esi + 4]
mov ecx, edi
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub ebx, 1
jne 0x427fb0
mov ebp, 0x18c
nop word [eax + eax]
mov ebx, dword [esi + 4]
lea esi, [esi + 4]
mov ecx, ebx
mov eax, ebx
xor ecx, edi
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
mov edi, ebx
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x390]
mov dword [esi - 4], ecx
sub ebp, 1
jne 0x427ff0
mov eax, dword [0x4e9938]
mov ecx, ebx
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, ebx
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
pop ebp
pop ebx
ret

Function at 0x428060
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4e5b5c], 1
jne 0x42806e
call fcn.00427f70
mov eax, dword [0x4ea2f8]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4ea2f8], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x4280b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4e5b5c], 1
jne 0x4280be
call fcn.00427f70
mov eax, dword [0x4ea2f8]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4ea2f8], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4de2a0]
mulsd xmm0, qword [0x4de108]
ret

Function at 0x4288f0
Capabilities:
Write clipboard data

Disassembly:
cmp byte [ecx + 0x17], 0
jne 0x4288f9
mov ecx, dword [ecx + 0xc]
cmp byte [ecx + 0x17], 2
jne 0x428912
cmp dword [0x4e96e4], 0
je 0x428912
mov ecx, 0x4e96d8
jmp fcn.004061f0
mov al, byte [ecx + 0x15]
and al, 0x86
cmp byte [esp + 4], 0
mov byte [ecx + 0x15], al
je 0x428926
or al, 1
mov byte [ecx + 0x15], al
mov eax, 1
ret 4
Function at 0x42ca20
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x4e40f0]
push ebx
push ebp
add eax, 4
imul eax, eax, 0x108
push esi
push edi
push eax
push dword [0x4e68ac]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 8
mov dword [0x4e68ac], eax
test eax, eax
jne 0x42ca50
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [0x4e40f4]
mov edi, eax
push 0x404b20
push 0x4ef6d80
push 0xe
push dword [0x4e69e8]
mov ecx, 0x42
mov dword [0x4e40f4], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
call edi
cmp dword [0x4e9188], 0
jne 0x42ca91
mov ebp, 1
jmp 0x42cb53
mov eax, dword [0x4e40f4]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [eax + 0xec], 0
call esi
cmp byte [0x4e68a5], 0
mov ecx, dword [0x4e40f4]
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0xe0], 0x64
jne 0x42cade
push 0x4049f0
push 0x64
push 0xb
push dword [0x4e69e8]
call edi
test eax, eax
setne byte [0x4e68a5]
mov byte [0x4e9671], 1
call esi
inc dword [0x4e69d0]
push str.Auto_execute
mov dword [0x4e9694], eax
mov dword [0x4e9690], eax
call fcn.0040c090
mov ecx, dword [0x4e9188]
push 0
push 0
push 1
call fcn.0043f280
sub dword [0x4e5aec], 0xc
mov ebp, eax
dec dword [0x4e69d0]
cmp byte [0x4e68a5], 0
je 0x42cb4c
push 0xb
push dword [0x4e69e8]
call dword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x4e68a5]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [0x4e68a5], cl
mov byte [0x4e9671], 0
mov ebx, dword [0x4e40f4]
mov eax, dword [ebx + 0x104]
test eax, eax
je 0x42cba9
cmp dword [eax + 8], 6
jne 0x42cb77
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0x104]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x42cb8e
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebx + 0x104]
add esp, 4
push 0x10
push eax
call fcn.004b74b8
mov dword [ebx + 0x104], 0
add esp, 8
mov ebx, dword [0x4e40f4]
mov ecx, ebx
call fcn.00404be0
push 1
push 0
mov byte [ebx + 0xec], 1
mov ecx, 0x42
mov esi, ebx
mov edi, 0x4e68b0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4e69cc]
push 0xffffffffffffffff
push 0x4bacf8
mov word [ebx + 0xec], 0x101
mov dword [ebx + 0xe0], 0
mov byte [ebx + 0xee], 0
mov dword [ebx + 0x2c], SysReAllocString
call fcn.004a19e0
cmp word [0x4e755c], 0
mov esi, 1
jne 0x42cc46
cmp dword [0x4e7544], 0
jne 0x42cc46
cmp dword [0x4e6a08], 0
jne 0x42cc46
cmp dword [0x4e6a04], 0
jne 0x42cc46
cmp byte [0x4e69f9], 0
jne 0x42cc46
test ebp, ebp
mov ecx, 6
push 0
cmove ecx, esi
push ecx
mov ecx, 0x4e8b78
call fcn.0042cf00
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x42ce00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10230
call fcn.004b8400
cmp dword [0x4e6a54], 0
push esi
push edi
mov esi, ecx
jne 0x42ce8e
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0xc], 1
mov edi, eax
jne 0x42cea8
mov edx, dword [edi]
lea ecx, [esp + 0x10]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x42ce7e
test ax, ax
je 0x42ce7a
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x42ce7e
add ecx, 4
add edx, 4
test ax, ax
jne 0x42ce58
xor eax, eax
jmp 0x42ce83
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42cea8
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [0x4e6a1c]
push str._restart
jmp 0x42cee3
push dword [esi + 0xae0]
lea eax, [esp + 0x21c]
push str._restart___s_
push 0x8010
push eax
call fcn.0049d580
add esp, 0x10
lea eax, [esp + 0x218]
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [0x4e6a1c]
push eax
push dword [esi + 0xaec]
mov ecx, 0x4e8b78
call fcn.00449960
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42cf00
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x124
cmp byte [0x4eaafe], 0
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0xab4], eax
jne 0x42d0be
cmp byte [ebx + 0xaf8], 0
je 0x42d0be
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4e69cc]
push 0
push 1
mov dword [0x4eada8], eax
call fcn.00401640
push 0x7f
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
inc dword [0x4e69d0]
xor eax, eax
mov word [esp + 0x13a], ax
add esp, 0xc
mov eax, dword [0x4e40f4]
mov ecx, 0x42
add eax, 0x108
mov esi, 0x4e68b0
mov edi, eax
mov dword [0x4e40f4], eax
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, 0x4e8b78
mov dword [eax + 0x2c], 0
call fcn.0042c920
cmp dword [0x4e69e4], 0
xorps xmm0, xmm0
movlpd qword [0x4e9680], xmm0
je 0x42cfcc
mov eax, dword [0x4e5b50]
mov ecx, 0x4bac30
test eax, eax
je 0x42cfc5
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [0x4e40ec]
push str.OnExit
mov dword [0x4e40ec], 0
mov byte [0x4eaafe], 1
call fcn.0040c090
mov ecx, dword [ebx + 0xaa8]
mov eax, 1
mov dword [esp + 0xc], eax
mov byte [0x4e5f18], 0
test ecx, ecx
je 0x42d026
call fcn.00401700
test eax, eax
mov eax, dword [esp + 0xc]
je 0x42d026
xor ecx, ecx
movzx eax, al
cmp byte [0x4e5f18], cl
cmove eax, ecx
mov dword [esp + 0xc], eax
mov byte [0x4e5f18], 1
test al, al
je 0x42d087
mov dword [esp + 0x18], 0
call fcn.0045dce0
mov dword [esp + 0x10], eax
lea ecx, [ebx + 0xa74]
mov eax, dword [0x4eada8]
cdq
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [ebx + 0xaa8], eax
mov dword [esp + 0x28], 1
sete al
mov dword [esp + 0x24], edx
push eax
push 2
lea eax, [esp + 0x18]
push eax
call fcn.00490210
mov edx, dword [esp + 0xc]
movzx ecx, dl
xor edx, edx
cmp eax, 3
cmove ecx, edx
mov al, cl
sub dword [0x4e5aec], 0xc
test al, al
mov eax, dword [ebp + 8]
mov byte [0x4eaafe], 0
jne 0x42d10a
cmp eax, 0xffffffff
jle 0x42d10a
lea ecx, [esp + 0x30]
call fcn.00404850
mov dword [0x4e40ec], esi
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [0x4e5f18], 0
jne 0x42d0fa
cmp eax, 6
jne 0x42d0fa
mov eax, dword [0x4e8268]
mov ecx, dword [0x4eada8]
pop edi
pop esi
cmp word [eax], 0
mov eax, 8
mov byte [0x4e5f18], 1
cmovne ecx, dword [ebp + 0xc]
mov dword [0x4eada8], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov byte [0x4e5f18], 0
push eax
call fcn.0042d120
push dword [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0042d120
int3
Function at 0x434020
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov eax, 0x20
mov word [esp + 0xc], ax
mov ebx, ebp
mov ax, word [0x4e5348]
mov word [esp + 0xe], ax
mov dword [esp + 0x10], 0x90028
mov dword [esp + 0x14], 0x3e003c
mov dword [esp + 0x18], 0x3d003a
mov dword [esp + 0x1c], 0x2d002b
mov dword [esp + 0x20], 0x2f002a
mov dword [esp + 0x24], 0x7e0021
mov dword [esp + 0x28], 0x7c0026
mov dword [esp + 0x2c], 0x5b005e
mov dword [esp + 0x30], 0x3f002e
mov dword [esp + 0x34], 0x7b
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
push edi
test ebp, ebp
je 0x4340e5
movzx eax, word [ebp]
test ax, ax
je 0x4340fb
mov esi, eax
nop word [eax + eax]
lea eax, [esp + 0x14]
mov edx, 0x20
nop dword [eax]
cmp si, dx
je 0x4340f5
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x4340c0
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x4340b0
mov esi, dword [esp + 0x10]
xor ebx, ebx
test ebx, ebx
je 0x4340fb
cmp ebx, ebp
lea edi, [ebx - 2]
cmovbe edi, ebx
jmp 0x434115
mov esi, dword [esp + 0x10]
jmp 0x4340e7
mov ecx, ebp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434100
sub ecx, edx
lea edi, [ebp - 2]
sar ecx, 1
lea edi, [edi + ecx*2]
cmp edi, ebp
jbe 0x434134
nop dword [eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x43412d
cmp eax, 9
jne 0x434134
sub edi, 2
cmp edi, ebp
ja 0x434120
mov ebx, edi
sub ebx, ebp
sar ebx, 1
inc ebx
cmp ebx, 0xfd
jbe 0x434163
cmp byte [esp + 0x4c], 0
je 0x434157
push ebp
push str.This_line_does_not_contain_a_recognized_action.
mov ecx, esi
call fcn.00448ad0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
mov esi, dword [esp + 0x44]
push ebx
push ebp
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [esi + ebx*2], ax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
Function at 0x439080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10004
call fcn.004b8400
push esi
push edi
push dword [esp + 0x10018]
lea eax, [esp + 0xc]
push dword [esp + 0x10018]
push 0x4d65c4
push 0x8001
push eax
call fcn.0049d580
add esp, 0x14
mov edi, eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [esp + 0x10010]
cmp eax, 0xffffffff
je 0x439109
test al, 0x10
je 0x439109
lea eax, [edi*4 + 0x408]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x439109
lea ecx, [edi*2 + 2]
push ecx
lea ecx, [esp + 0xc]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esi + 4], edi
pop edi
pop esi
add esp, 0x10004
ret 0xc
pop edi
mov dword [esi], 0x4bac30
pop esi
add esp, 0x10004
ret 0xc