joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406323
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x430fd8], esi
jle 0x406377
mov eax, dword [0x430fd4]
lea ecx, [ebp - 0xc]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.0041141e
lea eax, [ebp - 0xc]
push eax
call fcn.00405f4e
mov eax, dword [0x430fd4]
pop ecx
push dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call fcn.00419919
inc esi
pop ecx
cmp esi, dword [0x430fd8]
jl 0x406334
pop esi
leave
ret

Function at 0x406390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push 0x4279ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x430eb8], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0040a37c
call fcn.0040478c
push 3
call fcn.004041e0
push 0x28
mov dword [0x430e7c], eax
call fcn.004041e0
push 2
mov dword [0x430ebc], eax
call fcn.004041e0
push 5
mov dword [0x430e78], eax
call fcn.004041e0
push 0x15
mov dword [0x430e84], eax
call fcn.004041e0
push 0x16
mov dword [0x430e88], eax
call fcn.004041e0
push 0x17
mov dword [0x430e8c], eax
call fcn.004041e0
add esp, 0x1c
mov dword [0x430e94], eax
xor ebx, ebx
mov dword [0x430e90], ebx
mov esi, ebx
mov dword [0x430e80], ebx
push ebx
push esi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x406484
push esi
lea eax, [ebp - 0x5c]
push str.SfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040575f
add esp, 0x18
mov edi, ebx
cmp dword [edi + 0x4303c4], esi
jne 0x40647c
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [edi + 0x4303c8]
call fcn.0040575f
add esp, 0xc
add edi, 8
cmp edi, 0x28
jb 0x40645e
inc esi
cmp esi, 0x40
jl 0x406423
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407763
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.0041b776
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.0040768e
add esp, 0x1c
leave
ret
Function at 0x408cc7
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov esi, 0x4b6
push eax
push esi
mov edi, ecx
call fcn.00408423
mov eax, dword [ebp - 4]
mov ecx, edi
sub eax, dword [ebp - 0xc]
push 1
add eax, 2
push esi
mov dword [edi + 0x58], eax
call fcn.00409cf5
push 1
lea ebx, [esi + 1]
mov ecx, edi
push ebx
call fcn.00409cf5
mov esi, 0x2b4
lea eax, [ebp - 0x2c4]
push esi
push 0
push eax
call fcn.00416940
add esp, 0xc
lea eax, [ebp - 0x4d0]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push esi
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push ebx
push dword [edi + 4]
mov dword [edi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407d7f
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, edi
mov dword [edi + 0x54], eax
call fcn.00408759
mov ecx, edi
mov esi, eax
call fcn.004097cf
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x409ca6
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.00408506
test eax, eax
jne 0x409cc4
push eax
push eax
push esi
push 0x409eea
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
push dword [0x430e78]
mov ecx, esi
push dword [esi + 4]
call fcn.004099d4
push 0x2d
call fcn.004041e0
pop ecx
push eax
push 0x4b2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, esi
call fcn.004099d4
pop esi
ret

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

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x40a384
mov dword [edx*4 + 0x433ce0], ecx
inc edx
cmp edx, 0x100
jb 0x40a37f
mov esi, 0x800
jmp 0x40a3cc
mov ecx, dword [edx*4 + 0x4338e0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x433ce0]
mov dword [edx*4 + 0x433ce0], ecx
inc edx
cmp edx, esi
jb 0x40a3b0
mov eax, 0x424b80
mov esi, 0x424aa0
mov dword [0x433cc0], eax
mov dword [0x433cb8], eax
mov dword [0x433cbc], esi
call fcn.0040fdd3
mov ecx, dword [0x433cb8]
test eax, eax
cmove ecx, esi
mov dword [0x433cb8], ecx
pop esi
ret
Function at 0x410129
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41014f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41014f
xor al, al
jmp 0x410163
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x41338b
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x4133c1
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x4133b4
cmp esi, ecx
jae 0x4134a4
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x41343a
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
movzx eax, al
shr ecx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x4282f8]
xor ecx, eax
or ecx, edx
jmp 0x41348a
cmp edi, 6
jbe 0x41348a
cmp edx, 4
jne 0x41348a
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4133d3
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x413fd0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x41fc0a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041f8ac
Function at 0x404330
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40436f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40436f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40436f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40436f
cmp dword [ecx + 0x74], 0xe
jbe 0x40436f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407aa9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041a640
mov eax, dword [0x423940]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040c9ea
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x407aeb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x407c47
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041a590
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x425d30]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00410042
mov ecx, dword [esi*4 + 0x425d30]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x407c40
cmp eax, dword [ecx + edi + 0x24]
jne 0x407c40
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407c40
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00410042
add esp, 0x14
test edx, edx
jl 0x407c40
jg 0x407bb6
test eax, eax
jb 0x407c40
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x407c40
jl 0x407bd0
cmp dword [ebp - 0x1008], eax
ja 0x407c40
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x407bee
test ebx, ebx
je 0x407c27
cmp ecx, edi
jae 0x407c27
mov al, byte [ecx]
cmp al, 0xd
jne 0x407c08
lea eax, [edi - 1]
cmp ecx, eax
jae 0x407c14
cmp byte [ecx + 1], 0xa
jne 0x407c14
inc ecx
jmp 0x407c14
movzx eax, al
movsx eax, byte [eax + 0x423b88]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x407bee
cmp edx, ebx
jne 0x407bee
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x407c45
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404665
leave
ret

Function at 0x40dda5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c620
push 0x41c618
push str.FlsAlloc
push 0x1f
call fcn.0040dc64
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ddd9
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b120]
call esi
jmp 0x40dddf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4100be
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 + 0x425d30]
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 0x4100fe
cmp byte [ebx], 0xa
jne 0x4100fe
or byte [edi + eax + 0x28], 4
jmp 0x410103
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 0x410202
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4101e5
inc eax
cmp dl, 0xd
je 0x41012f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x410155
cmp eax, ecx
jae 0x410163
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 0x410117
jmp 0x410202
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 0x4101e0
cmp dword [ebp - 0x10], 0
je 0x4101e0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x425d30]
test byte [eax + edi + 0x28], 0x48
je 0x4101ba
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4101a5
mov byte [esi], dl
jmp 0x4101b6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x425d30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x410202
cmp byte [ebp - 1], 0xa
jne 0x4101c9
cmp esi, ebx
jne 0x4101c9
mov byte [esi], 0xa
jmp 0x410201
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00410060
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x410202
mov byte [esi], 0xd
jmp 0x410201
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x425d30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4101ff
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x410202
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41020b
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 + 0x425d30]
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 0x410251
cmp word [ebx], dx
jne 0x410251
or byte [eax + edi + 0x28], 4
jmp 0x410256
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 0x4103b9
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 0x410399
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x410297
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4102cd
cmp eax, edx
jae 0x4102db
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 0x410272
jmp 0x4103b9
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 0x410394
cmp dword [ebp - 0x18], 0
je 0x410394
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x425d30]
test byte [eax + edi + 0x28], 0x48
je 0x41036a
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 0x41032e
mov word [esi], cx
jmp 0x410365
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x425d30]
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 + 0x425d30]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x425d30]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4103b9
pop eax
cmp word [ebp - 4], ax
jne 0x41037a
cmp esi, ebx
jne 0x41037a
mov word [esi], ax
jmp 0x4103b6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00410060
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4103b9
push 0xd
pop eax
jmp 0x410375
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x425d30]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4103b3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4103b9
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 0x409f00
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470cc1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebp
lea ecx, [esp + 4]
call fcn.004152e0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], 0
lea ecx, [eax + 0x3f8]
mov dword [esp + 0x40], ecx
call fcn.00418c30
mov ecx, dword [esp + 0x44]
add ecx, 0x2c0
call fcn.00418eb0
mov ebp, eax
test ebp, ebp
je 0x40a10f
push ebx
push esi
push edi
push pe_nt_image_headers32
call fcn.00461f3a
add esp, 4
mov dword [esp + 0x50], eax
test eax, eax
mov byte [esp + 0x44], 1
je 0x409f7e
mov ecx, eax
call fcn.00403bb0
mov ebx, eax
jmp 0x409f80
xor ebx, ebx
test ebx, ebx
mov byte [esp + 0x44], 0
je 0x40a0fb
lea edx, [ebp + 0x70]
lea ecx, [ebx + 0x74]
push edx
call fcn.004159b0
lea eax, [ebp + 0x9c]
lea ecx, [ebx + 0xa0]
push eax
call fcn.004159b0
lea edi, [ebx + 0xcc]
push 0x4983e0
mov ecx, edi
call fcn.00415970
mov eax, dword [ebp + 0xc8]
test eax, eax
je 0x40a06e
xor ecx, ecx
xor esi, esi
mov cl, byte [eax]
xor eax, eax
mov dword [ebx + 0x70], ecx
mov edx, dword [ebp + 0xc8]
mov al, byte [edx + 1]
add eax, 2
je 0x40a06e
test esi, esi
jne 0x409ff3
push 0x487c5c
jmp 0x40a01a
cmp esi, 1
jne 0x409fff
push str.__Len:
jmp 0x40a01a
cmp esi, 2
jne 0x40a00b
push str.__Data:
jmp 0x40a01a
mov ecx, esi
and ecx, 7
cmp cl, 2
jne 0x40a021
push 0x487c34
mov ecx, edi
call fcn.00415880
mov edx, dword [ebp + 0xc8]
xor eax, eax
lea ecx, [esp + 0x10]
mov al, byte [edx + esi]
push eax
push str._02X
push ecx
call fcn.00416930
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x4870c0
push 0
call fcn.00416510
push eax
mov ecx, edi
call fcn.00415900
mov edx, dword [ebp + 0xc8]
xor eax, eax
inc esi
mov al, byte [edx + 1]
add eax, 2
cmp esi, eax
jb 0x409fe8
lea ecx, [ebp + 0x10]
call fcn.00418eb0
mov edi, eax
test edi, edi
je 0x40a0f1
push 0x64
call fcn.00461f3a
mov esi, eax
add esp, 4
mov dword [esp + 0x50], esi
test esi, esi
je 0x40a0b8
mov dword [esi], 0x4777ac
lea ecx, [esi + 0xc]
mov byte [esp + 0x44], 3
call fcn.004152e0
lea ecx, [esi + 0x38]
mov byte [esp + 0x44], 4
call fcn.004152e0
mov dword [esi], 0x4777b8
jmp 0x40a0ba
xor esi, esi
test esi, esi
mov byte [esp + 0x44], 0
je 0x40a0e4
lea ecx, [edi + 0xc]
push ecx
lea ecx, [esi + 0xc]
call fcn.004159b0
lea edx, [edi + 0x38]
lea ecx, [esi + 0x38]
push edx
call fcn.004159b0
push esi
lea ecx, [ebx + 0x10]
call fcn.00418d00
mov ecx, edi
call fcn.00418fc0
mov edi, eax
test edi, edi
jne 0x40a07c
mov ecx, dword [esp + 0x4c]
push ebx
call fcn.00418d00
mov ecx, ebp
call fcn.00418fc0
mov ebp, eax
test ebp, ebp
jne 0x409f59
pop edi
pop esi
pop ebx
lea ecx, [esp + 4]
mov dword [esp + 0x38], 0xffffffff
call fcn.00415380
mov ecx, dword [esp + 0x30]
pop ebp
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x415130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x472288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004152e0
mov eax, dword [esi]
mov dword [esp + 0x38], 0
test eax, eax
jne 0x415185
lea ecx, [esp + 4]
mov dword [esp + 0x38], 0xffffffff
call fcn.00415380
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push eax
mov eax, dword [esi + 0xc]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x64696963
lea ecx, [esp + 8]
push 0x48a004
push ecx
call fcn.00416930
add esp, 0xc
lea ecx, [esp + 4]
push 0
call fcn.00416510
mov edx, dword [esi + 0xc]
push eax
push edx
call dword [sym.imp.USER32.dll_RemovePropW]
lea ecx, [esp + 4]
mov dword [esi], 0
mov dword [esp + 0x38], 0xffffffff
call fcn.00415380
mov ecx, dword [esp + 0x30]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4151f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4722a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004152e0
mov eax, dword [esi]
mov dword [esp + 0x38], 0
test eax, eax
jne 0x415245
lea ecx, [esp + 4]
mov dword [esp + 0x38], 0xffffffff
call fcn.00415380
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push eax
mov eax, dword [esi + 0xc]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x64697061
lea ecx, [esp + 8]
push 0x48a004
push ecx
call fcn.00416930
add esp, 0xc
lea ecx, [esp + 4]
push 0
call fcn.00416510
mov edx, dword [esi + 0xc]
push eax
push edx
call dword [sym.imp.USER32.dll_RemovePropW]
lea ecx, [esp + 4]
mov dword [esi], 0
mov dword [esp + 0x38], 0xffffffff
call fcn.00415380
mov ecx, dword [esp + 0x30]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x417120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477938
push 0x46202c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edx, edx
mov dword [ebp - 4], edx
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54], 0x3c
cmp dword [ebp + 0x18], 1
mov eax, 0x48a0a0
je 0x41716c
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x50], edx
lea edx, [ebp - 0x54]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x4171c7
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x417270
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4723e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.0043a2c0
xor ebx, ebx
lea ecx, [esp + 0x74]
mov dword [esp + 0xec], ebx
call fcn.004152e0
mov eax, dword [esp + 0x114]
mov esi, dword [esp + 0xf4]
mov ebp, 1
mov byte [esp + 0xec], 1
cmp eax, ebp
je 0x4173bf
cmp esi, ebx
je 0x4173bf
push 0x48a094
push esi
call fcn.00462e2e
add esp, 8
test eax, eax
jne 0x4173bf
mov edx, dword [esp + 0xf8]
mov ecx, 0x11
lea edi, [esp + 0xa0]
push edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
mov cx, word [esp + 0x104]
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
push 0x48a084
mov dword [esp + 0x28], eax
lea eax, [esp + 0x80]
push eax
mov dword [esp + 0xb0], 0x44
mov word [esp + 0xe0], cx
mov dword [esp + 0xdc], ebp
call fcn.00416930
mov eax, dword [esp + 0x10c]
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0xa0]
push ecx
push edx
push eax
push ebx
push 0x200
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x98]
call fcn.00416510
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4173ab
lea ecx, [esp + 0x74]
mov byte [esp + 0xec], bl
call fcn.00415380
lea ecx, [esp + 0x20]
mov dword [esp + 0xec], 0xffffffff
call fcn.0043a2f0
xor eax, eax
jmp 0x4174ba
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
jmp 0x417441
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x38], 0x3c
cmp eax, ebp
mov dword [esp + 0x44], 0x48a0a0
je 0x4173ef
mov dword [esp + 0x44], 0x487ae4
mov edx, dword [esp + 0xf8]
mov eax, dword [esp + 0x100]
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x104]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x38]
or edx, 0x40
push eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x417380
mov esi, dword [esp + 0x70]
cmp esi, ebx
je 0x417380
push ebx
push esi
lea ecx, [esp + 0x28]
call fcn.0043a430
mov eax, dword [esp + 0x10c]
push ebx
cmp eax, ebp
jne 0x417465
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call fcn.0043a570
jmp 0x417471
push ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.0043a4b0
lea ecx, [esp + 0x20]
call fcn.0043a450
mov eax, dword [esp + 0x108]
cmp eax, ebx
je 0x41748d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x74]
mov byte [esp + 0xec], bl
call fcn.00415380
lea ecx, [esp + 0x20]
mov dword [esp + 0xec], 0xffffffff
call fcn.0043a2f0
mov eax, ebp
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe0
ret 0x24