joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b96
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x404baf
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x404bd2
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x404bd7
inc esi
cmp esi, dword [ebp - 4]
jb 0x404bc9
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x404ccb
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x404c0d
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x404c3a
cmp cl, 0xff
je 0x404c3a
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x404bc4
dec ecx
shl edx, cl
and edx, 7
je 0x404bf3
movzx ecx, byte [edx + 0x41c850]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x41c848], 0
mov cl, byte [ebx + 4]
je 0x404c35
test cl, cl
je 0x404c35
cmp cl, 0xff
jne 0x404bf3
mov dword [ebp + 0xc], eax
jmp 0x404c02
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x404c63
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x404c6a
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x404c9e
movzx edi, byte [edx + 0x41c850]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x404c89
cmp al, 0xff
jne 0x404c9b
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x404c55
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x404bc4
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x408853
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x5223a0], 0
jne 0x40888d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408330
mov eax, dword [eax]
pop ecx
pop ecx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040855b
pop ecx
test esi, esi
pop esi
jmp 0x40889b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4088a1
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x4088a5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x5223a0], 0
jne 0x4088de
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408330
mov eax, dword [eax]
pop ecx
pop ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0040855b
pop ecx
test esi, esi
pop esi
jmp 0x4088eb
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4088f1
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x408e8b
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 0x408eb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x408eb1
xor al, al
jmp 0x408ed1
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00413290
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x413dcf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x413dec
call fcn.00415f02
mov dword [eax], 0x16
xor eax, eax
jmp 0x413e56
push esi
push 0x8c
push 1
call fcn.004179b2
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x413e41
push esi
call fcn.00414983
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x413e1f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x413d3a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x413e55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00413a2d
test ebx, ebx
pop ecx
je 0x413e53
push ebx
call fcn.00415f14
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x414224
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41d010
call fcn.00413e5c
mov edi, 0x94
mov eax, edi
call fcn.004185c0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x522670], ecx
mov eax, dword [esi + 4]
mov dword [0x52267c], eax
mov edx, dword [esi + 8]
mov dword [0x522680], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x522674], esi
cmp ecx, 2
je 0x414284
or esi, 0x8000
mov dword [0x522674], esi
shl eax, 8
add eax, edx
mov dword [0x522678], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4142bf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4142bf
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4142d7
cmp eax, 0x20b
je 0x4142c4
mov dword [ebp - 0x1c], esi
jmp 0x4142eb
cmp dword [ecx + 0x84], 0xe
jbe 0x4142bf
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4142e5
cmp dword [ecx + 0x74], 0xe
jbe 0x4142bf
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00416af8
pop ecx
test eax, eax
jne 0x4142ff
push 0x1c
call fcn.00414200
pop ecx
call fcn.00414b7d
test eax, eax
jne 0x414310
push 0x10
call fcn.00414200
pop ecx
call fcn.0041852b
mov dword [ebp - 4], esi
call fcn.0041832d
test eax, eax
jge 0x414329
push 0x1b
call fcn.004141db
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x525d60], eax
call fcn.0041820b
mov dword [0x5224e8], eax
call fcn.00418169
test eax, eax
jge 0x41434f
push 8
call fcn.004141db
pop ecx
call fcn.00417f36
test eax, eax
jge 0x414360
push 9
call fcn.004141db
pop ecx
push 1
call fcn.004176e1
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x414376
push eax
call fcn.004141db
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00417ed9
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x414397
movzx eax, word [ebp - 0x40]
jmp 0x41439a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401cac
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4143b8
push edi
call fcn.0041780e
call fcn.00417830
jmp 0x4143ea
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00413e97
ret
Function at 0x415c9b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x421a24]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x415cd7
xor eax, eax
jmp 0x415e41
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x5249e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x415d15
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.004193fe
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x415daf
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x415e12
jmp 0x415d39
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x415d74
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x415d65
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x415d45
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415dd3
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x415ddc
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x415d37
jmp 0x415ddc
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415dd3
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x415ddc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x415e3c
cmp dword [ebp - 0x68], eax
je 0x415e0f
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x415e04
call fcn.00415f02
mov dword [eax], 9
call fcn.00415f0b
mov dword [eax], esi
jmp 0x415e37
push dword [ebp - 0x68]
call fcn.00415f14
pop ecx
jmp 0x415e37
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x415e24
cmp byte [edi], 0x1a
jne 0x415e24
xor eax, eax
jmp 0x415e3f
call fcn.00415f02
mov dword [eax], 0x1c
call fcn.00415f0b
and dword [eax], 0
or eax, 0xffffffff
jmp 0x415e3f
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.00418bbe
add ebp, 0x3a4
leave
ret
Function at 0x41774b
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41d1d0
call fcn.00413e5c
push 8
call fcn.00416a3f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x5226b0], esi
jne 0x41777f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x5226ac], esi
mov al, byte [ebp + 0x10]
mov byte [0x5226a8], al
cmp dword [ebp + 0xc], edi
jne 0x4177c9
cmp dword [0x524ae8], edi
je 0x4177b9
mov eax, dword [0x524ae4]
sub eax, 4
mov dword [0x524ae4], eax
cmp eax, dword [0x524ae8]
jb 0x4177b9
mov eax, dword [eax]
cmp eax, edi
je 0x41779a
call eax
jmp 0x41779a
push 0x421060
mov eax, 0x421058
call fcn.004176c9
pop ecx
push 0x42106c
mov eax, 0x421064
call fcn.004176c9
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4177fa
cmp dword [ebp + 0x10], edi
jne 0x417808
mov dword [0x5226b0], esi
push dword [ebp + 8]
call fcn.00417687
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x417807
push 8
call fcn.0041698a
pop ecx
ret
call fcn.00413e97
ret
Function at 0x417a89
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x417ab7
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x417abe
cmp ebx, dword [eax + 4]
jae 0x417abe
xor eax, eax
jmp 0x417cae
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x417acf
xor eax, eax
inc eax
jmp 0x417cad
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x417ae5
cmp ecx, edx
jae 0x417c2a
cmp dword [eax + 4], 0
je 0x417aee
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x417ad6
cmp dword [ebp + 8], 0
je 0x417b10
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x417c2a
cmp eax, esi
jae 0x417c2a
mov eax, dword [0x5226b8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x417b35
cmp dword [esi*4 + 0x5226c0], edi
je 0x417c2e
inc esi
cmp esi, eax
jl 0x417b23
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417caa
cmp dword [ebp - 8], 0x1000000
jne 0x417caa
test byte [ebp - 0xc], 0xcc
je 0x417bb3
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x417caa
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x417caa
cmp word [eax + 0x18], 0x10b
jne 0x417caa
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x417caa
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x417bb3
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x417bb3
test byte [ecx + 0x27], 0x80
jne 0x417c2a
push 1
push 0x522700
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x417ac7
mov ecx, dword [0x5226b8]
test ecx, ecx
mov edx, ecx
jle 0x417be7
lea eax, [ecx*4 + 0x5226bc]
cmp dword [eax], edi
je 0x417be7
dec edx
sub eax, 4
test edx, edx
jg 0x417bdb
test edx, edx
jne 0x417c18
push 0xf
pop ebx
cmp ecx, ebx
jg 0x417bf4
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x417c0c
lea eax, [edx*4 + 0x5226c0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x417bfa
cmp ecx, 0x10
jge 0x417c18
inc ecx
mov dword [0x5226b8], ecx
push 0
push 0x522700
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x417ac7
xor eax, eax
jmp 0x417cad
test esi, esi
jle 0x417ac7
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x522700
call ebx
test eax, eax
jne 0x417ac7
cmp dword [esi*4 + 0x5226c0], edi
je 0x417c84
mov eax, dword [0x5226b8]
lea esi, [eax - 1]
test esi, esi
jl 0x417c72
cmp dword [esi*4 + 0x5226c0], edi
je 0x417c6e
dec esi
jns 0x417c62
test esi, esi
jge 0x417c82
cmp eax, 0x10
jge 0x417c7d
inc eax
mov dword [0x5226b8], eax
lea esi, [eax - 1]
jmp 0x417c84
je 0x417c9c
xor ecx, ecx
test esi, esi
jl 0x417c9c
lea eax, [ecx*4 + 0x5226c0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x417c8a
push 0
push 0x522700
call ebx
jmp 0x417ac7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417d28
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x421a24]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x421be0]
je 0x417d5f
inc eax
cmp eax, 0x13
jb 0x417d50
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x421be0]
jne 0x417e82
mov eax, dword [0x5224f0]
cmp eax, 1
je 0x417e5d
cmp eax, edx
jne 0x417d8f
cmp dword [0x421524], 1
je 0x417e5d
cmp ecx, 0xfc
je 0x417e82
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417dc5
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00419680
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00414150
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x417df9
mov eax, edi
push eax
call fcn.00414150
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x41d5e8
push edi
call fcn.00419780
add esp, 0x10
push edi
call fcn.00414150
push dword [esi + 0x421be4]
mov ebx, eax
call fcn.00414150
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004185c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00419680
push edi
push ebx
call fcn.00419690
push 0x41d5c8
push ebx
call fcn.00419690
push dword [esi + 0x421be4]
push ebx
call fcn.00419690
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00419584
add esp, 0x2c
jmp 0x417e82
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x421be4]
push dword [esi]
call fcn.00414150
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00418bbe
add ebp, 0x90
leave
ret
Function at 0x419584
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x522850], ebx
push esi
push edi
jne 0x419604
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41963f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41ddd4
push edi
call esi
test eax, eax
mov dword [0x522850], eax
je 0x41963f
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x522854], eax
call esi
cmp dword [0x522670], 2
mov dword [0x522858], eax
jne 0x419604
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x522860], eax
je 0x419604
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x52285c], eax
mov eax, dword [0x52285c]
test eax, eax
je 0x419649
call eax
test eax, eax
je 0x419630
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x522860]
test eax, eax
je 0x419630
test byte [ebp - 8], 1
jne 0x419649
cmp dword [0x52267c], 4
jb 0x419643
or byte [ebp + 0x12], 0x20
jmp 0x419668
xor eax, eax
jmp 0x419678
or byte [ebp + 0x12], 4
jmp 0x419668
mov eax, dword [0x522854]
test eax, eax
je 0x419668
call eax
mov ebx, eax
test ebx, ebx
je 0x419668
mov eax, dword [0x522858]
test eax, eax
je 0x419668
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x522850]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x419b09
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004185c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419ba4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x522670]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x419ba4
cmp eax, 1
je 0x419bc5
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419ba4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x419b71
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x419ba0
xor eax, eax
inc eax
jmp 0x419be4
cmp edi, eax
jae 0x419ba8
xor eax, eax
jmp 0x419be4
cmp eax, esi
jae 0x419baf
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x522670]
jmp 0x419bc8
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4346e8
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop edx
mov ecx, dword [ebp - 0x4d4]
mov edx, dword [ecx]
mov dword [ebp - 0x4d4], edx
mov eax, dword [ebp - 0x4d4]
cmp eax, dword [ebp - 0xc20]
je 0x434718
mov ecx, dword [ebp - 0x4d4]
cmp dword [ecx + 0x30], 0
jne 0x4344ce
mov dword [ebp - 0x2e0], 0
Function at 0x404f10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46eeb4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4958b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x18
push eax
lea ecx, [ebp - 0x14]
call fcn.004051f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
call fcn.004053b0
test eax, eax
je 0x404f75
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405270
mov eax, dword [ebp - 0x18]
jmp 0x404fd1
lea ecx, [ebp - 0x24]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0x404aa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x14], 0
jne 0x404fb8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405270
mov eax, dword [ebp - 0x1c]
jmp 0x404fd1
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405270
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x411480
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fe27
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4958b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
push 0x4789bc
lea ecx, [ebp - 0x28]
call fcn.00418330
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.00411370
lea ecx, [ebp - 0x28]
call fcn.0041d550
push eax
push str._CastingStation__CastEngine::isRunOnDx11activateDllPath:_s
call fcn.004172e0
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.0041d550
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411528
lea ecx, [ebp - 0x28]
call fcn.0041d550
push eax
push str._CastingStation__CastEngine::isRunOnDx11activateDllPath_doesnt_exist:_s
call fcn.004172e0
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00418ac0
mov eax, dword [ebp - 0x38]
jmp 0x4115f8
lea ecx, [ebp - 0x28]
call fcn.0041d550
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x41156b
push str._CastingStation__CastEngine::isRunOnDx11Load_activate.dll_fail__
call fcn.004172e0
add esp, 4
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00418ac0
mov eax, dword [ebp - 0x44]
jmp 0x4115f8
mov dword [ebp - 0x30], 0
push str.RunOnDx11
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4115bc
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str._CastingStation__CastEngine::isRunOnDx11GetProcessAddress_RunOnDx11_fail__
call fcn.004172e0
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00418ac0
mov eax, dword [ebp - 0x3c]
jmp 0x4115f8
call dword [ebp - 0x34]
movzx eax, al
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x30]
push edx
push str._CastingStation__CastEngine::isRunOnDx11RunOnDx11:_d
call fcn.004172e0
add esp, 8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00418ac0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c9f3
mov esp, ebp
pop ebp
ret