joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463720
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c7d43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004bb293
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0xf72e08
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0xf72d50
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4ca134]
push eax
mov ecx, edi
call fcn.004c0931
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004c1e4d
test eax, eax
je 0x46383c
mov ecx, dword [esp + 0x3c]
call fcn.004c095e
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4ca600]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x463800
push edi
mov ecx, esi
call fcn.004bdfc4
mov ecx, esi
call fcn.004639e0
cmp dword [esp + 0x38], 1
jne 0x463835
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004be0ff
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x465a20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x465a53
push esi
call fcn.00473de0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x465a4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x465ad9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x465ac2
mov eax, dword [esi + 8]
test eax, eax
je 0x465a77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x465abe
cmp eax, 2
je 0x465ac2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x465a6a
cmp eax, 3
je 0x465a9d
cmp eax, 1
jne 0x465a6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x465a6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x465a6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00465b00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x465ae8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00465b00
add esp, 4
pop esi
ret
Function at 0x48fc10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c82d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0048f7c0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0048f840
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0048f840
lea ecx, [esi + 0xc]
call fcn.004b9c45
lea ecx, [esi + 0x10]
call fcn.004b9c45
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00490dd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00490dd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00490dd0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004b9cba
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004b9cba
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x493ed0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x115c040]
xor edx, edx
cmp eax, edx
jne 0x493ef6
xor eax, eax
mov byte [eax + 0x115bf40], al
inc eax
cmp eax, 0x100
jl 0x493ede
mov dword [0x115c040], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x115bf40
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x493f87
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x493f5a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x493f28
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x494000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x494053
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49403a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49aa00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c86ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0049b320
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x10f8824
call fcn.004b99fb
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x49aa93
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b99fb
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x49aa8c
push 0
mov ecx, eax
call fcn.00491b00
mov dword [esi + 0xc], eax
jmp 0x49aa95
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x49aa95
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x470a29c4
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6b9a4253
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x405f00
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x464ad8]
sub esp, 8
push ebp
xor ebp, ebp
cmp eax, ebp
jle 0x405fd0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov dword [esp + 0xc], ebp
push edi
mov eax, dword [0x464c00]
add eax, ebp
je 0x405fb0
mov ecx, dword [eax]
cmp ecx, 0x1f
jne 0x405f5b
mov eax, dword [eax + 0xa10]
test eax, eax
je 0x405fb0
mov eax, dword [eax + 0x24]
test eax, eax
je 0x405fb0
lea edx, [eax + 8]
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405f50
jmp 0x405fa9
cmp ecx, 0x1b
jne 0x405fb0
mov eax, dword [eax + 0xa10]
test eax, eax
je 0x405fb0
mov esi, dword [eax + 0x24]
test esi, esi
je 0x405fb0
lea edx, [esi + 8]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405f80
sub eax, edi
je 0x405f90
push edx
call ebx
lea edx, [esi + 0x110]
mov eax, edx
lea esi, [eax + 1]
jmp 0x405fa0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405fa0
sub eax, esi
je 0x405fb0
push edx
call ebx
mov eax, dword [esp + 0x10]
add eax, 1
add ebp, 0x1008
cmp eax, dword [0x464ad8]
mov dword [esp + 0x10], eax
jl 0x405f20
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret

Function at 0x406d00
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
push esi
push edi
push eax
xor ebp, ebp
xor ebx, ebx
xor esi, esi
call fcn.00428d00
mov edi, eax
add esp, 4
test edi, edi
jne 0x406d2a
mov ebp, 1
jmp 0x406ddd
lea ecx, [esp + 0x10]
push ecx
push edi
call fcn.004284d0
add esp, 8
test eax, eax
je 0x406d46
mov ebp, 2
jmp 0x406ddd
push edi
call fcn.00428860
add esp, 4
test eax, eax
je 0x406d5d
mov ebp, 3
jmp 0x406ddd
push 0x10000
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x406d7e
mov ebp, 5
jmp 0x406ddd
push edi
call fcn.00428ec0
add esp, 4
test eax, eax
je 0x406d92
mov ebp, 6
jmp 0x406ddd
mov edx, dword [esp + 0x20]
push 0x453580
push edx
call fcn.0043bc13
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x406db1
mov ebp, 7
jmp 0x406ddd
push 0x10000
push esi
push edi
call fcn.00428ad0
add esp, 0xc
test eax, eax
jl 0x406e2d
jle 0x406ddd
push ebx
push 1
push eax
push esi
call fcn.0043bac2
add esp, 0x10
cmp eax, 1
je 0x406db1
mov ebp, 9
push edi
call fcn.00428c80
add esp, 4
test edi, edi
je 0x406df3
push edi
call fcn.00428e80
add esp, 4
test esi, esi
je 0x406e11
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
je 0x406e1e
push ebx
call fcn.0043b92c
add esp, 4
pop edi
xor eax, eax
pop esi
test ebp, ebp
pop ebp
sete al
pop ebx
add esp, 8
ret
mov ebp, 8
jmp 0x406ddd

Function at 0x40a3c0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, dword [esp]
pop ecx
ret
Function at 0x40a3f0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp]
pop ecx
ret

Function at 0x40a600
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4630e0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
push str.IJL11.DLL
xor ebp, ebp
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40a648
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043b76b
add esp, 0x108
ret
push edi
push 0x104
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0xc]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40a660
mov cx, word [0x4536b0]
lea eax, [esp + 0xc]
mov word [edi], cx
add eax, 0xffffffff
jmp 0x40a680
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x40a680
mov edx, dword [str.IJL11.DLL]
mov ecx, dword [0x4536b8]
mov dword [eax], edx
mov dx, word [0x4536bc]
mov dword [eax + 4], ecx
mov ecx, dword [0x460004]
mov word [eax + 8], dx
mov eax, dword [0x464d10]
push 0
push eax
push ecx
call fcn.0040a3a0
add esp, 0xc
cmp eax, dword [0x464d10]
jne 0x40a77a
mov edx, dword [0x464d14]
push esi
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x40a744
mov eax, dword [0x464d14]
mov ecx, dword [0x460004]
push eax
push esi
push ecx
call fcn.0040a3c0
add esp, 0xc
cmp eax, dword [0x464d14]
jne 0x40a744
lea edx, [esp + 0x10]
push 0x1000
push edx
call fcn.0040a330
mov ebx, eax
add esp, 8
test ebx, ebx
jl 0x40a744
mov eax, dword [0x464d14]
push eax
push esi
push ebx
call fcn.0040a3f0
add esp, 0xc
cmp eax, dword [0x464d14]
jne 0x40a744
push ebx
call fcn.0040a380
add esp, 4
or ebx, 0xffffffff
test eax, eax
je 0x40a749
mov ebp, 1
test esi, esi
je 0x40a767
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp ebx, 0xffffffff
pop esi
jle 0x40a776
push ebx
call fcn.0040a380
add esp, 4
test ebp, ebp
je 0x40a793
mov ecx, dword [0x4652d8]
push 0
push 0x45354b
push str.WARNING:_Could_not_install_the_JPEG_viewing_library_to_system_directory
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043b76b
add esp, 0x108
ret
Function at 0x40dc90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x318
mov eax, dword [0x4630e0]
xor eax, esp
mov dword [esp + 0x314], eax
mov eax, dword [esp + 0x31c]
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edi
mov edi, dword [esp + 0x32c]
lea ecx, [esp + 0x1c]
push ecx
xor ebp, ebp
lea edx, [esp + 0x10]
push edx
push ebp
push 0x20019
push ebp
push 0x45354b
push ebp
push eax
push 0x80000000
mov dword [esp + 0x34], 0x100
mov dword [esp + 0x30], ebp
call esi
test eax, eax
je 0x40dd00
push 0x79
call fcn.0040ab70
add esp, 4
mov ebp, 1
jmp 0x40ddf5
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0x45354b
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40dd39
push 0x79
call fcn.0040ab70
add esp, 4
mov ebp, 1
jmp 0x40ddf5
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push edx
mov byte [esp + ecx + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x124]
push str._s_shellopencommand
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0x20019
push 0
push 0x45354b
push 0
lea ecx, [esp + 0x13c]
push ecx
push 0x80000000
call esi
test eax, eax
je 0x40dda9
push 0xaa
call fcn.0040ab70
add esp, 4
mov ebp, 1
jmp 0x40ddf5
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push edi
lea eax, [esp + 0x20]
push eax
push 0
push 0x45354b
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40dde3
push 0x79
call fcn.0040ab70
add esp, 4
mov ebp, 1
jmp 0x40ddf5
push 0x20
push edi
call fcn.0043afd0
add esp, 8
test eax, eax
je 0x40ddf5
mov byte [eax], 0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40de04
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x320]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.0043b76b
add esp, 0x318
ret
Function at 0x40e8d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x508
mov eax, dword [0x4630e0]
xor eax, esp
mov dword [esp + 0x504], eax
cmp byte [0x464aec], 0
push esi
je 0x40e99b
mov esi, dword [esp + 0x510]
mov eax, dword [0x464c00]
imul esi, esi, 0x1008
cmp byte [esi + eax + 0x84], 0
je 0x40e99b
lea ecx, [esp + 4]
push ecx
push str..htm
call fcn.0040dc90
add esp, 8
test eax, eax
je 0x40e92f
push 0xa5
jmp 0x40e9a0
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov ebx, eax
call edi
mov edi, eax
mov eax, dword [0x464c00]
lea edx, [esp + 0x310]
push edx
lea ecx, [esi + eax + 0x84]
push ecx
call fcn.004086b0
push eax
push edi
push ebx
push 0x464aec
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x12c]
push str._s__ssdx_dsdy_dphonehomename_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push 1
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
pop edi
pop ebx
jae 0x40e9a8
push 0x7a
jmp 0x40e9a0
push 0x95
call fcn.0040ab70
add esp, 4
mov ecx, dword [esp + 0x508]
pop esi
xor ecx, esp
call fcn.0043b76b
add esp, 0x508
ret
Function at 0x411aa0
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4630e0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x4652d4]
push esi
push str.helptextfile
push str.helptextfile
push eax
mov byte [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x411c4e
mov ecx, dword [0x4652d4]
push ebx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 1
jl 0x411c4d
mov edx, dword [0x4652d4]
push ebp
push edi
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x411c2e
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x411c2e
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x411b36
sub eax, edx
cmp byte [esp + eax + 0xf], 0x5c
lea eax, [esp + eax + 0xf]
jne 0x411b4e
mov byte [eax], cl
lea eax, [esp + 0x10]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x411b55
mov ecx, dword [str.enchelp.htm]
mov edx, dword [0x45398c]
mov dword [eax], ecx
mov ecx, dword [0x453990]
mov dword [eax + 4], edx
mov dl, byte [0x453994]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x10]
push 0x1000
push eax
call fcn.0040a330
mov esi, eax
add esp, 8
test esi, esi
jl 0x411c20
push ebx
push edi
push esi
call fcn.0040a3f0
add esp, 0xc
cmp eax, ebx
jne 0x411c20
push esi
call fcn.0040a380
add esp, 4
test eax, eax
jne 0x411c2e
lea ecx, [esp + 0x114]
push ecx
push str..htm
call fcn.0040dc90
add esp, 8
test eax, eax
je 0x411bdf
push 0xa5
call fcn.0040ab70
jmp 0x411c2b
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x220]
push str._s__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 1
lea edx, [esp + 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x411c40
push 0x7a
call fcn.0040ab70
jmp 0x411c2b
cmp esi, 0xffffffff
jle 0x411c2e
push esi
call fcn.0040a380
add esp, 4
cmp byte [esp + 0x10], 0
je 0x411c40
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebp, ebp
je 0x411c4b
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40c]
pop esi
xor ecx, esp
call fcn.0043b76b
add esp, 0x40c
ret
Function at 0x413810
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x52c
mov eax, dword [0x4630e0]
xor eax, esp
mov dword [esp + 0x528], eax
test byte [0x464bf8], 8
je 0x413852
mov eax, dword [esp + 0x530]
push eax
call fcn.0040e8d0
add esp, 4
mov ecx, dword [esp + 0x528]
xor ecx, esp
call fcn.0043b76b
add esp, 0x52c
ret
cmp byte [0x464aec], 0
push ebx
je 0x41387f
mov ebx, dword [esp + 0x534]
test ebx, ebx
jl 0x4138a2
mov edx, dword [0x464c00]
mov ecx, ebx
imul ecx, ecx, 0x1008
cmp byte [ecx + edx + 0x84], 0
jne 0x4138ab
push 0x95
call fcn.0040ab70
add esp, 4
mov ecx, dword [esp + 0x52c]
pop ebx
xor ecx, esp
call fcn.0043b76b
add esp, 0x52c
ret
cmp dword [0x464bec], 0
jl 0x41387f
lea eax, [esp + 0x228]
push eax
push str..htm
call fcn.0040dc90
add esp, 8
test eax, eax
je 0x4138cb
push 0xa5
jmp 0x413884
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov ebp, eax
call esi
mov dword [esp + 0xc], eax
xor eax, eax
mov cl, byte [eax + 0x464aec]
mov byte [esp + eax + 0x30], cl
add eax, 1
test cl, cl
jne 0x4138e3
lea eax, [esp + 0x30]
lea edx, [eax + 1]
jmp 0x413900
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413900
push edi
lea ecx, [esp + 0x34]
sub eax, edx
push 0x3f
push ecx
mov esi, eax
call fcn.0043afd0
add esp, 8
test eax, eax
je 0x413946
cmp byte [esp + esi + 0x33], 0x26
je 0x413963
lea edi, [esp + 0x34]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x413930
mov dx, word [0x453824]
mov word [edi], dx
jmp 0x413963
lea edi, [esp + 0x34]
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x413950
mov ax, word [0x453820]
mov word [edi], ax
test ebx, ebx
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
pop edi
jl 0x41398e
mov ecx, dword [0x464c00]
imul ebx, ebx, 0x1008
lea edx, [ebx + ecx + 0x84]
push edx
push 0x4539cc
lea eax, [esp + 0x18]
push eax
jmp 0x41399f
mov ecx, dword [0x464bec]
push ecx
push 0x4539c8
lea edx, [esp + 0x18]
push edx
call esi
mov ecx, dword [esp + 0x18]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push ecx
push ebp
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x240]
push eax
lea ecx, [esp + 0x348]
push str._s__ssdx_dsdy_dvectorid_s
push ecx
call esi
add esp, 0x1c
push 1
lea edx, [esp + 0x338]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
pop esi
pop ebp
jae 0x41388c
push 0x7a
jmp 0x413884