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

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov ecx, dword [ebp + 0x3ac]
cmp ecx, dword [0x421380]
mov eax, dword [0x4204c4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x412143
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4213a0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x412143
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x412017
xor eax, eax
jmp 0x412157
test al, 0x20
je 0x41202a
push 2
push 0
push 0
push ecx
call fcn.00414bad
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4120bf
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x412120
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x412084
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x412075
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x412057
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
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 0x4120e4
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x4120ed
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x41204c
jmp 0x4120ed
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4120e4
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x4120ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x41213e
cmp dword [ebp - 0x68], eax
je 0x41211d
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x412112
mov dword [0x420f50], 9
mov dword [0x420f54], eax
jmp 0x412154
push dword [ebp - 0x68]
call fcn.00414b49
pop ecx
jmp 0x412154
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x412132
cmp byte [edi], 0x1a
je 0x412010
mov dword [0x420f50], 0x1c
jmp 0x41214d
sub eax, dword [ebp - 0x7c]
jmp 0x412157
mov dword [0x420f50], 9
and dword [0x420f54], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
pop ebx
call fcn.0040d00b
add ebp, 0x3a4
leave
ret
Function at 0x412993
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4204c4]
mov ecx, dword [ebp + 0x98]
push ebx
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4207a8]
je 0x4129c8
inc eax
cmp eax, 0x13
jb 0x4129b9
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4207a8]
jne 0x412aeb
mov eax, dword [0x420f00]
cmp eax, 1
je 0x412ac6
cmp eax, edx
jne 0x4129f8
cmp dword [0x420774], 1
je 0x412ac6
cmp ecx, 0xfc
je 0x412aeb
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 0x412a2e
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00410410
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00410510
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x412a62
mov eax, edi
push eax
call fcn.00410510
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x41d22c
push edi
call fcn.0040dc30
add esp, 0x10
push edi
call fcn.00410510
push dword [esi + 0x4207ac]
mov ebx, eax
call fcn.00410510
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040dae0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00410410
push edi
push ebx
call fcn.00410420
push 0x41d228
push ebx
call fcn.00410420
push dword [esi + 0x4207ac]
push ebx
call fcn.00410420
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004131bf
add esp, 0x2c
jmp 0x412aeb
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4207ac]
push dword [esi]
call fcn.00410510
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]
mov ecx, dword [ebp + 0x8c]
call fcn.0040d00b
pop edi
pop esi
pop ebx
add ebp, 0x90
leave
ret
Function at 0x4131bf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x421104], ebx
push esi
push edi
jne 0x41323f
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41327a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x421104], eax
je 0x41327a
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x421108], eax
call esi
cmp dword [0x420f5c], 2
mov dword [0x42110c], eax
jne 0x41323f
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x421114], eax
je 0x41323f
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x421110], eax
mov eax, dword [0x421110]
test eax, eax
je 0x413284
call eax
test eax, eax
je 0x41326b
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x421114]
test eax, eax
je 0x41326b
test byte [ebp - 8], 1
jne 0x413284
cmp dword [0x420f68], 4
jb 0x41327e
or byte [ebp + 0x12], 0x20
jmp 0x4132a3
xor eax, eax
jmp 0x4132b3
or byte [ebp + 0x12], 4
jmp 0x4132a3
mov eax, dword [0x421108]
test eax, eax
je 0x4132a3
call eax
mov ebx, eax
test ebx, ebx
je 0x4132a3
mov eax, dword [0x42110c]
test eax, eax
je 0x4132a3
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x421104]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415a29
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x415a42
or eax, 0xffffffff
jmp 0x415aa3
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x415a9f
push 0x3d
push esi
call fcn.00416735
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x415a9f
cmp esi, eax
je 0x415a9f
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x420f7c]
sete cl
cmp eax, dword [0x420f80]
mov dword [ebp - 8], ecx
jne 0x415a85
mov edi, eax
call fcn.004159c3
mov dword [0x420f7c], eax
cmp eax, ebx
jne 0x415ade
cmp dword [ebp + 0xc], ebx
je 0x415aa7
cmp dword [0x420f84], ebx
je 0x415aa7
call fcn.004128fe
test eax, eax
je 0x415ade
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x415ab0
xor eax, eax
jmp 0x415aa2
push 4
call fcn.0040dea4
cmp eax, ebx
pop ecx
mov dword [0x420f7c], eax
je 0x415a9f
mov dword [eax], ebx
cmp dword [0x420f84], ebx
jne 0x415ade
push 4
call fcn.0040dea4
cmp eax, ebx
pop ecx
mov dword [0x420f84], eax
je 0x415a9f
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x420f7c]
call fcn.00415971
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x415b3f
cmp dword [esi], ebx
je 0x415b3f
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040ddeb
cmp dword [ebp - 8], ebx
pop ecx
jne 0x415b22
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x415b80
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x415b19
mov eax, edi
shl eax, 2
push eax
push dword [0x420f7c]
call fcn.0041611c
cmp eax, ebx
pop ecx
pop ecx
je 0x415b80
jmp 0x415b7b
cmp dword [ebp - 8], ebx
jne 0x415beb
cmp edi, ebx
jge 0x415b4e
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x420f7c]
call fcn.0041611c
cmp eax, ebx
pop ecx
pop ecx
je 0x415a9f
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x420f7c], eax
cmp dword [ebp + 0xc], ebx
je 0x415bd5
push dword [ebp - 4]
call fcn.00410510
inc eax
inc eax
push eax
call fcn.0040dea4
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x415bd5
push dword [ebp - 4]
push esi
call fcn.00410410
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x415bce
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040ddeb
pop ecx
cmp dword [ebp - 8], ebx
je 0x415be3
push dword [ebp - 4]
call fcn.0040ddeb
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x415aa2
push dword [ebp - 4]
call fcn.0040ddeb
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x415aac
Function at 0x4163ab
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040dae0
mov eax, dword [0x4204c4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x421380]
mov dword [ebp - 4], eax
jae 0x4164f4
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x4213a0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x4164f4
push 1
push esi
push ebx
call fcn.0041345a
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x4164fe
push 2
push esi
push ebx
call fcn.0041345a
add esp, 0xc
cmp eax, 0xffffffff
je 0x4164fe
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41649e
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00415230
push 0x8000
push ebx
call fcn.004167a1
add esp, 0x14
mov dword [ebp - 0x100c], eax
mov eax, 0x1000
cmp edi, eax
jge 0x41645a
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00411fa3
add esp, 0xc
cmp eax, 0xffffffff
je 0x416478
sub edi, eax
test edi, edi
jg 0x41644f
jmp 0x41648e
cmp dword [0x420f54], 5
jne 0x41648b
mov dword [0x420f50], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push ebx
call fcn.004167a1
pop ecx
pop ecx
jmp 0x4164de
jge 0x4164de
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0041345a
push ebx
call fcn.00414dee
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x4164de
mov dword [0x420f50], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x420f54], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0041345a
add esp, 0xc
mov eax, esi
pop edi
jmp 0x416501
mov dword [0x420f50], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040d00b
leave
ret
Function at 0x416512
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x421380]
push edi
jae 0x4166e7
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4213a0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x4166e7
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4165bd
test dl, 2
jne 0x4165bd
test dl, 0x48
je 0x416587
cmp byte [eax + 5], 0xa
je 0x416587
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4165d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4165b8
mov dword [0x420f54], ecx
jmp 0x4166ee
cmp eax, 0x6d
jne 0x4165c4
xor eax, eax
jmp 0x4166fb
push eax
call fcn.00414b49
pop ecx
jmp 0x4166f8
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x4166e2
test eax, eax
je 0x4165f7
cmp byte [ebx], 0xa
jne 0x4165f7
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x416600
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x4166dc
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x4166cc
cmp al, 0xd
je 0x416632
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x4166be
dec ecx
cmp dword [ebp - 8], ecx
jae 0x41664c
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x416647
add dword [ebp - 8], 2
jmp 0x4166a0
mov dword [ebp - 8], eax
jmp 0x4166ba
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416674
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4166ba
cmp dword [ebp - 0x10], 0
je 0x4166ba
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x416695
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4166a0
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4166bd
cmp ebx, dword [ebp + 0xc]
jne 0x4166a5
cmp byte [ebp - 1], 0xa
jne 0x4166a5
mov byte [ebx], 0xa
jmp 0x4166bd
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041345a
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4166be
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x416616
jmp 0x4166dc
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4166dc
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x4166fb
and dword [0x420f54], 0
mov dword [0x420f50], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x108]
mov dword [ebp - 4], eax
mov dword [ebp - 0x108], 0
xor eax, eax
push fcn.00401ef0
push ebp
push 0x413390
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push 1
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
xor cx, cx
mov edx, 0xff
call fcn.00408f50
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 4]
call fcn.00417520
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00401ef0
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov dword [0x456bb0], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x456bac]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x456bb0], edx
cmp eax, 0x26f
jl 0x40e358
mov dword [0x445e10], 0x270
ret

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

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x456bb4]
mov ebx, dword [eax*4 + 0x456bb0]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x4571e4]
mov dword [eax*4 + 0x456bb0], edx
cmp eax, 0xe2
jl 0x40e398
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x456bb4]
mov ebx, dword [eax*4 + 0x456bb0]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x456824]
mov dword [eax*4 + 0x456bb0], edx
cmp eax, 0x26e
jl 0x40e3e8
mov edx, dword [0x456bb0]
mov ecx, dword [0x45756c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x4571e0]
mov dword [0x45756c], eax
mov dword [0x445e10], 0
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, dword [0x445e10]
add dword [0x445e10], 1
mov eax, dword [0x455750]
cmp eax, dword [0x445560]
jne 0x40e493
cmp ebx, 0x271
jb 0x40e4b4
mov eax, dword [0x455750]
call fcn.0040e350
not dword [0x455750]
mov eax, dword [0x455750]
mov dword [0x445560], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40e4d0
call fcn.0040e390
xor ebx, ebx
mov dword [0x445e10], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x456bb0]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x40ffa0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x4452c0]
cmp ax, 0xcb
je 0x4100ac
cmp ax, 0xcc
je 0x4100ac
lea esi, [esi]
mov edx, dword [0x4577b0]
test edx, edx
je 0x40ffd5
mov eax, dword [0x457660]
call edx
mov ebx, eax
jmp 0x40ffda
mov ebx, 0x457664
cmp word [0x457650], 0
jle 0x410000
mov eax, 0x457630
call fcn.00410210
mov eax, ebx
call fcn.0040fb60
mov eax, ebx
call fcn.0040fbd0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x410022
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x41001d
mov edx, edi
mov eax, ebx
call fcn.0040efd0
jmp 0x410020
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x410008
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x457650], 0
jle 0x4100ac
mov edx, 0x457570
mov eax, ebx
call fcn.0040f110
mov edi, eax
test edi, edi
je 0x41007c
mov eax, dword [0x457604]
mov dword [edi + 0xc], eax
cmp dword [0x457604], 0
je 0x410070
mov eax, dword [0x457604]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x457604], eax
nop
sub word [0x457650], 1
cmp word [0x457650], 0
sete bl
mov eax, 0x457630
call fcn.00410230
test bl, bl
je 0x4100ac
mov eax, 0x457630
call fcn.00410200
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x411fc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00411fa0
push ebp
push 0x413390
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x4120ea
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040ae60
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x41204f
mov edx, 0x456a30
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x4120a1
call sub.kernel32.dll_GetLastError
call fcn.00404050
lea eax, [ebp - 0x10]
call fcn.00409c70
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040a110
mov edx, dword [ebp - 0x14]
mov ecx, 0x448964
lea eax, [ebp - 0x10]
call fcn.00409fa0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040a850
jmp 0x412138
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x4120ba
cmp eax, ecx
je 0x4120c4
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040ae60
cmp byte [0x445530], 0
jne 0x412138
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040b3b0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040a890
lea esi, [esi]
jmp 0x412138
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040ae60
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x41210e
mov eax, 0x456a30
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x445530], 0
jne 0x412138
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040b3b0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040a890
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00411fa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412510
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x456990], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.004126f0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x456990]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.004035f0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x445330], eax
mov ebx, eax
jmp 0x4126b3
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x412598
cmp byte [ebx], 0
je 0x4126bc
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x412613
mov al, byte [ebx]
cmp al, 1
jb 0x412608
sub al, 0x20
jbe 0x4125d8
sub al, 2
je 0x4125ec
jmp 0x412608
mov al, byte [ebp - 0x114]
test al, al
je 0x412618
add dword [ebp - 0x110], 1
jmp 0x412610
cmp byte [ebx + 1], 0x22
je 0x412603
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x412610
add ebx, 1
jmp 0x412610
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x4125c8
test dword [ebp - 0x10c], 0xffffffff
je 0x4126ac
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.004126f0
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x456990]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x4126a3
mov al, byte [ebx]
cmp al, 1
jb 0x412698
sub al, 0x20
jbe 0x412668
sub al, 2
je 0x41267c
jmp 0x412698
mov al, byte [ebp - 0x114]
test al, al
je 0x4126a8
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x4126a0
cmp byte [ebx + 1], 0x22
je 0x412693
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x4126a0
add ebx, 1
jmp 0x4126a0
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x412658
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x41259b
mov ebx, dword [ebp - 0x10c]
mov dword [0x456980], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x456990
call fcn.0040fde0
mov eax, dword [0x456990]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret