joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46aa25
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5564a4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x46aa65
push 0x50a798
push 4
push eax
call fcn.0047c4d1
push eax
call fcn.00401000
add esp, 0x10
jmp 0x46aa77
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x46aae5
push edi
call fcn.0047b052
mov edi, dword [eax]
call fcn.0047b052
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00476eea
add esp, 0x18
mov ebx, eax
call fcn.0047b052
cmp dword [eax], 0
je 0x46aac5
call fcn.0047b052
push dword [eax]
call fcn.00458591
pop ecx
jmp 0x46aacc
call fcn.0047b052
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x46aae5
cmp ebx, esi
jae 0x46aae5
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x46aae7
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004752ab
leave
ret
Function at 0x4752ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5564a4]
jne 0x4752b5
repz ret
jmp fcn.0047f47d

Function at 0x476869
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x476896
call fcn.0047b065
mov dword [eax], esi
call fcn.0047b052
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00475f71
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x476872
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4768c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047b078
pop ecx
call fcn.0047b052
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4768ec
test al, 1
je 0x4768ec
test byte [esp + 0xc], 2
je 0x4768ec
call fcn.0047b065
mov dword [eax], 5
call fcn.0047b052
mov dword [eax], 0xd
jmp 0x4768bc
xor eax, eax
pop esi
ret
Function at 0x4781b8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4781f5
cmp dword [ebp + 0x14], edi
je 0x4781f5
cmp ecx, edi
jne 0x4781fc
call fcn.0047b052
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00475f71
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x478210
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x478231
cmp ebx, 0xffffffff
je 0x478220
push ebx
push edi
push ecx
call fcn.00476f10
add esp, 0xc
cmp esi, edi
je 0x4781dd
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4781dd
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x47824d
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x478254
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x478345
test word [esi + 0xc], 0x10c
je 0x4782a8
mov eax, dword [esi + 4]
test eax, eax
je 0x4782a8
jl 0x4783a6
cmp ebx, eax
mov edi, ebx
jb 0x478279
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x47834d
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0047492a
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x47833d
cmp ebx, dword [ebp - 0xc]
jb 0x478315
cmp dword [ebp - 0xc], 0
je 0x4782d2
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x4782c7
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4782ce
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4782dd
mov eax, bind
cmp ebx, eax
ja 0x4782dd
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x478379
push eax
push dword [ebp - 8]
push esi
call fcn.00481af4
pop ecx
push eax
call fcn.004793a9
add esp, 0xc
test eax, eax
je 0x4783b8
cmp eax, 0xffffffff
je 0x4783a6
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x47833d
push esi
call fcn.004843da
cmp eax, 0xffffffff
pop ecx
je 0x4783aa
cmp dword [ebp - 4], 0
je 0x478379
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x47825c
mov eax, dword [ebp + 0x14]
jmp 0x4781f7
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x478364
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00476f10
add esp, 0xc
call fcn.0047b052
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4781ed
cmp dword [ebp + 0xc], 0xffffffff
je 0x47838f
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00476f10
add esp, 0xc
call fcn.0047b052
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4781ed
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4781f7
or dword [esi + 0xc], 0x10
jmp 0x4783aa
Function at 0x47dd33
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5568a8]
je 0x47dd4e
inc edi
cmp edi, 0x17
jb 0x47dd3f
cmp edi, 0x17
jae 0x47dece
push ebp
push 3
call fcn.0048938d
cmp eax, 1
pop ecx
je 0x47de9a
push 3
call fcn.0048938d
test eax, eax
pop ecx
jne 0x47dd82
cmp dword [0x5565e0], 1
je 0x47de9a
cmp ebx, 0xfc
je 0x47decd
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x572f70
push ebp
call fcn.0047c4d1
add esp, 0xc
test eax, eax
je 0x47ddb8
push esi
push esi
push esi
push esi
push esi
call fcn.00475e75
add esp, 0x14
push 0x104
mov esi, 0x572f89
push esi
push 0
mov byte [0x57308d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47ddfc
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0047c4d1
add esp, 0xc
test eax, eax
je 0x47ddfc
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00475e75
add esp, 0x14
push esi
call fcn.0047c2c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x47de41
push esi
call fcn.0047c2c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x573284
push 0x50c15c
sub ecx, eax
push ecx
push eax
call fcn.0047b096
add esp, 0x14
test eax, eax
je 0x47de41
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00475e75
add esp, 0x14
jmp 0x47de43
xor esi, esi
push 0x50c158
push ebx
push ebp
call fcn.0047c536
add esp, 0xc
test eax, eax
je 0x47de63
push esi
push esi
push esi
push esi
push esi
call fcn.00475e75
add esp, 0x14
push dword [edi*8 + 0x5568ac]
push ebx
push ebp
call fcn.0047c536
add esp, 0xc
test eax, eax
je 0x47de85
push esi
push esi
push esi
push esi
push esi
call fcn.00475e75
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004891d0
add esp, 0xc
jmp 0x47decd
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x47decd
cmp ebp, 0xffffffff
je 0x47decd
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5568ac]
push dword [esi]
call fcn.0047c2c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4891d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0048057f
xor ebx, ebx
cmp dword [0x57386c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4892a6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x489386
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x50cbc0
push edi
call esi
cmp eax, ebx
je 0x489386
push eax
call fcn.00480511
mov dword [esp], 0x50cbb0
push edi
mov dword [0x57386c], eax
call esi
push eax
call fcn.00480511
mov dword [esp], 0x50cb9c
push edi
mov dword [0x573870], eax
call esi
push eax
call fcn.00480511
mov dword [0x573874], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047a281
test eax, eax
pop ecx
pop ecx
je 0x489274
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00475e75
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4892a6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00480511
cmp eax, ebx
pop ecx
mov dword [0x57387c], eax
je 0x4892a6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00480511
pop ecx
mov dword [0x573878], eax
mov eax, dword [0x573878]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x48932b
cmp dword [0x57387c], ecx
je 0x48932b
push eax
call fcn.00480588
push dword [0x57387c]
mov esi, eax
call fcn.00480588
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x48932b
cmp edi, ebx
je 0x48932b
call esi
cmp eax, ebx
je 0x4892f8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4892f8
test byte [ebp - 0x18], 1
jne 0x48932b
lea eax, [ebp - 0x10]
push eax
call fcn.0047a2b8
test eax, eax
pop ecx
je 0x489313
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00475e75
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x489322
or dword [ebp + 0x10], 0x200000
jmp 0x489366
or dword [ebp + 0x10], 0x40000
jmp 0x489366
mov eax, dword [0x573870]
cmp eax, dword [ebp - 8]
je 0x489366
push eax
call fcn.00480588
cmp eax, ebx
pop ecx
je 0x489366
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x489366
mov eax, dword [0x573874]
cmp eax, dword [ebp - 8]
je 0x489366
push eax
call fcn.00480588
cmp eax, ebx
pop ecx
je 0x489366
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x57386c]
call fcn.00480588
cmp eax, ebx
pop ecx
je 0x489386
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x489388
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48c856
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
cmp dword [ebp + 8], 0
jne 0x48c86a
xor eax, eax
jmp 0x48c933
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0x4550
je 0x48c88e
xor eax, eax
jmp 0x48c933
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x78]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x48c931
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
add edx, dword [ecx + 0x24]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
jmp 0x48c8e6
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x18]
jae 0x48c931
mov edx, dword [ebp + 0xc]
and edx, 0xffff
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor esi, esi
mov si, word [ecx + eax*2]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x48c92f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + edx*2]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x1c]
jmp 0x48c933
jmp 0x48c8dd
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48da7a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50dda0
push 0x48e5d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x48dae7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x48db95
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
jmp 0x48db2d
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, 1
je 0x48db52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x48db95
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x557880
mov ecx, dword [ebp - 0x20]
push ecx
call sub.VERSION.dll_VerQueryValueA
cmp eax, 1
je 0x48db78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x48db95
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
mov dword [edx], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
call fcn.0048dba3
jmp 0x48dbbd
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48e0f5
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5564a4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0048e08a
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00476f10
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x48e144
cmp dword [ebp - 0x1c], 5
jb 0x48e15c
jmp 0x48e158
cmp dword [ebp - 0x10], 1
jne 0x48e15c
cmp dword [ebp - 0x1c], 4
ja 0x48e158
jne 0x48e15c
cmp dword [ebp - 0x18], 0
jbe 0x48e15c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x50ddd4
call fcn.0048df5e
test eax, eax
jge 0x48e17d
mov byte [0x557900], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004752ab
add ebp, 0x78
leave
ret
Function at 0x40ece0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x5d4470], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x5d446c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x5d4470], edx
cmp eax, 0x26f
jl 0x40ece8
mov dword [0x566fa0], 0x270
ret

Function at 0x40ed20
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 + 0x5d4474]
mov ebx, dword [eax*4 + 0x5d4470]
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 + 0x5d4aa4]
mov dword [eax*4 + 0x5d4470], edx
cmp eax, 0xe2
jl 0x40ed28
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x5d4474]
mov ebx, dword [eax*4 + 0x5d4470]
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 + 0x5d40e4]
mov dword [eax*4 + 0x5d4470], edx
cmp eax, 0x26e
jl 0x40ed78
mov edx, dword [0x5d4470]
mov ecx, dword [0x5d4e2c]
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 [0x5d4aa0]
mov dword [0x5d4e2c], eax
mov dword [0x566fa0], 0
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, dword [0x566fa0]
add dword [0x566fa0], 1
mov eax, dword [0x5d3020]
cmp eax, dword [0x5666f0]
jne 0x40ee23
cmp ebx, 0x271
jb 0x40ee44
mov eax, dword [0x5d3020]
call fcn.0040ece0
not dword [0x5d3020]
mov eax, dword [0x5d3020]
mov dword [0x5666f0], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40ee60
call fcn.0040ed20
xor ebx, ebx
mov dword [0x566fa0], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x5d4470]
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 0x4109b0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x566440]
cmp ax, 0xcb
je 0x410abc
cmp ax, 0xcc
je 0x410abc
lea esi, [esi]
mov edx, dword [0x5d5070]
test edx, edx
je 0x4109e5
mov eax, dword [0x5d4f20]
call edx
mov ebx, eax
jmp 0x4109ea
mov ebx, 0x5d4f24
cmp word [0x5d4f10], 0
jle 0x410a10
mov eax, 0x5d4ef0
call fcn.00410c20
mov eax, ebx
call fcn.00410570
mov eax, ebx
call fcn.004105e0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x410a32
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x410a2d
mov edx, edi
mov eax, ebx
call fcn.0040f9e0
jmp 0x410a30
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x410a18
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x5d4f10], 0
jle 0x410abc
mov edx, 0x5d4e30
mov eax, ebx
call fcn.0040fb20
mov edi, eax
test edi, edi
je 0x410a8c
mov eax, dword [0x5d4ec4]
mov dword [edi + 0xc], eax
cmp dword [0x5d4ec4], 0
je 0x410a80
mov eax, dword [0x5d4ec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x5d4ec4], eax
nop
sub word [0x5d4f10], 1
cmp word [0x5d4f10], 0
sete bl
mov eax, 0x5d4ef0
call fcn.00410c40
test bl, bl
je 0x410abc
mov eax, 0x5d4ef0
call fcn.00410c10
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x412c60
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00412c50
push ebp
push 0x4142a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, esi
test esi, esi
jne 0x412c99
mov eax, 0x5d42f0
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
lea edx, [ebx - 1]
lea eax, [ebp - 0xc]
call fcn.0040b5b0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412cbc
mov eax, 0x5d42f0
push eax
push ebx
mov eax, esi
test esi, esi
jne 0x412cc9
mov eax, 0x5d42f0
push eax
call sub.kernel32.dll_GetFullPathNameW
mov edx, eax
test edx, edx
je 0x412d8e
jmp 0x412ce3
sub edx, 1
cmp edx, 3
jbe 0x412cf4
mov eax, dword [ebp - 0xc]
cmp word [eax + edx*2 - 2], 0x5c
je 0x412ce0
mov eax, ebx
mov edi, 0
sub eax, 1
sbb edi, 0
mov ecx, edx
xor ebx, ebx
cmp edi, ebx
jne 0x412d0d
cmp eax, ecx
je 0x412d18
lea eax, [ebp - 0xc]
call fcn.0040b5b0
lea esi, [esi]
mov eax, 0x4011e0
mov edx, dword [ebp - 0xc]
call fcn.00412bd0
mov edx, dword [0x5d5070]
test edx, edx
je 0x412d38
mov eax, dword [0x5d4160]
call edx
jmp 0x412d3d
mov eax, 0x5d4164
cmp word [eax], 0
jne 0x412d9a
mov eax, esi
test esi, esi
je 0x412d4d
mov eax, dword [eax - 4]
cmp eax, 2
jle 0x412d9a
cmp word [esi + 2], 0x3a
jne 0x412d9a
mov word [ebp - 8], 0x3d
mov ax, word [esi]
mov word [ebp - 6], ax
mov word [ebp - 4], 0x3a
mov word [ebp - 2], 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x412d7f
mov eax, 0x5d42f0
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_SetEnvironmentVariableW
lea esi, [esi]
jmp 0x412d9a
mov eax, 0x4011e0
mov edx, esi
call fcn.00412bd0
mov edx, dword [0x5d5070]
test edx, edx
je 0x412dad
mov eax, dword [0x5d4160]
call edx
jmp 0x412db2
mov eax, 0x5d4164
cmp word [eax], 2
jne 0x412dd8
mov edx, dword [0x5d5070]
test edx, edx
je 0x412dcc
mov eax, dword [0x5d4160]
call edx
jmp 0x412dd1
mov eax, 0x5d4164
mov word [eax], 3
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00412c50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412e10
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.00412df0
push ebp
push 0x4142a0
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x412f3a
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.0040b5b0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x412e9f
mov edx, 0x5d42f0
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x412ef1
call sub.kernel32.dll_GetLastError
call fcn.004040b0
lea eax, [ebp - 0x10]
call fcn.0040a190
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040a630
mov edx, dword [ebp - 0x14]
mov ecx, 0x582324
lea eax, [ebp - 0x10]
call fcn.0040a4c0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040ae80
jmp 0x412f88
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x412f0a
cmp eax, ecx
je 0x412f14
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040b5b0
cmp byte [0x5666c0], 0
jne 0x412f88
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bb50
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040af10
lea esi, [esi]
jmp 0x412f88
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b5b0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x412f5e
mov eax, 0x5d42f0
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x5666c0], 0
jne 0x412f88
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bb50
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040af10
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00412df0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret