joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422245
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041952e
xor ebx, ebx
cmp dword [0x434f88], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42231a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x422285
xor eax, eax
jmp 0x4223de
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42a150
push edi
call esi
cmp eax, ebx
je 0x42227e
push eax
call fcn.004194cb
mov dword [esp], 0x42a140
push edi
mov dword [0x434f88], eax
call esi
push eax
call fcn.004194cb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x434f8c], eax
call esi
push eax
call fcn.004194cb
mov dword [0x434f90], eax
lea eax, [ebp - 8]
push eax
call fcn.0041dc81
test eax, eax
pop ecx
pop ecx
je 0x4222e8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041697b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42231a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004194cb
cmp eax, ebx
pop ecx
mov dword [0x434f98], eax
je 0x42231a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004194cb
pop ecx
mov dword [0x434f94], eax
mov eax, dword [0x434f94]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x422393
cmp dword [0x434f98], esi
je 0x422393
push eax
call fcn.00419537
pop ecx
call eax
cmp eax, ebx
je 0x422360
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x434f98]
call fcn.00419537
pop ecx
call eax
test eax, eax
je 0x422360
test byte [ebp - 0x18], 1
jne 0x422393
lea eax, [ebp - 0xc]
push eax
call fcn.0041dcb8
test eax, eax
pop ecx
je 0x42237b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041697b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42238a
or dword [ebp + 0x10], 0x200000
jmp 0x4223c4
or dword [ebp + 0x10], 0x40000
jmp 0x4223c4
mov eax, dword [0x434f8c]
cmp eax, esi
je 0x4223c4
push eax
call fcn.00419537
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4223c4
mov eax, dword [0x434f90]
cmp eax, esi
je 0x4223c4
push dword [ebp - 4]
push eax
call fcn.00419537
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434f88]
call fcn.00419537
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e44
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov esi, edx
mov ebx, eax
lea edi, [ebp - 4]
xor eax, eax
push ebp
push 0x402f3f
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x402e98
push 0x105
lea eax, [ebp - 0x10d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x10d]
mov eax, esi
call fcn.0040161c
jmp 0x402f26
call sub.kernel32.dll_GetCommandLineA
mov dword [edi], eax
mov eax, dword [edi]
call fcn.00402dcc
mov dword [edi], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi]
call fcn.00402df4
mov dword [edi], eax
test ebx, ebx
je 0x402ec6
dec ebx
test ebx, ebx
jl 0x402ec6
mov eax, dword [edi]
cmp eax, dword [ebp - 8]
jne 0x402e9f
push esi
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 8]
call fcn.0040165c
mov eax, dword [ebp - 0x114]
mov ecx, dword [edi]
sub ecx, dword [ebp - 8]
mov edx, 1
call fcn.004018f8
mov eax, dword [esi]
call fcn.004016a4
cmp eax, 2
jl 0x402f26
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x402f26
mov eax, dword [esi]
call fcn.004016a4
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x22
jne 0x402f26
push esi
mov eax, dword [esi]
call fcn.004016a4
mov ecx, eax
sub ecx, 2
mov eax, dword [esi]
mov edx, 2
call fcn.004018f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f46
lea eax, [ebp - 0x114]
call fcn.00401530
ret

Function at 0x403128
Capabilities:
Get common file path

Disassembly:
push eax
sub esp, 0x108
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov edx, esp
mov eax, dword [esp + 0x108]
call fcn.0040165c
add esp, 0x108
pop edx
mov eax, dword [edx]
call fcn.004030a4
ret

Function at 0x4031dc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40329c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00407980
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x403286
cmp dword [ebp - 8], 0
jbe 0x403284
mov eax, dword [ebp - 8]
inc eax
call fcn.004010d4
mov ebx, eax
xor esi, esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x403262
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040165c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00407970
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumKeyExA
cmp eax, 0x103
jne 0x403245
mov eax, ebx
call fcn.004010ec
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4032a3
lea eax, [ebp - 0x10]
call fcn.00401530
ret
Function at 0x4032ac
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40336c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00407980
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x403356
cmp dword [ebp - 8], 0
jbe 0x403354
mov eax, dword [ebp - 8]
inc eax
call fcn.004010d4
mov ebx, eax
xor esi, esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x403332
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040165c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00407970
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumValueA
cmp eax, 0x103
jne 0x403315
mov eax, ebx
call fcn.004010ec
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403373
lea eax, [ebp - 0x10]
call fcn.00401530
ret

Function at 0x40346c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
cmp byte [ebx + 0x18], 0
jne 0x4034e8
mov byte [ebp - 0x1004], 0
mov eax, dword [ebx + 0x19]
call fcn.0040189c
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov eax, esi
call fcn.0040189c
push eax
mov eax, dword [ebp - 4]
call fcn.0040189c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040189c
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
je 0x4034df
mov eax, edi
lea edx, [ebp - 0x1004]
mov ecx, 0x1000
call fcn.0040168c
jmp 0x403519
mov eax, edi
call fcn.00401530
jmp 0x403519
mov eax, edi
mov edx, esi
call fcn.00401584
mov eax, dword [ebx + 0x19]
call fcn.0040189c
push eax
mov eax, esi
call fcn.0040189c
push eax
mov eax, dword [ebp - 4]
call fcn.0040189c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040189c
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405f44
Capabilities:
Get file attributes

Disassembly:
call fcn.004028b4
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x405f58
dec eax
and al, 0x10
sete al
ret
Function at 0x406118
Capabilities:
Read .ini file

Disassembly:
or eax, 0
je 0x40610a
lea eax, [esi + 4]
call fcn.00402db8
mov dword [esi], eax
lea edx, [esi + 4]
inc eax
add esi, eax
mov eax, edi
call fcn.00407970
cmp byte [esi + 4], 0
jne 0x4060ed
pop eax
call fcn.004010ec
pop ecx
pop ebx
pop edi
pop esi
ret
push esi
push edi
push ebx
push ecx
mov ebx, eax
mov eax, 0x8003
mov edi, edx
call fcn.004010d4
mov esi, eax
push eax
or byte [ebx + 0x18], 0
jne 0x40614d
push dword [ebx + 0x19]
mov eax, 0x7fff
push eax
lea eax, [esi + 4]
push eax
push dword [ebx + 0x1d]
call sub.kernel32.dll_GetPrivateProfileSectionA
jmp 0x4060e8
push ebx
push esi
push edx
push ebp
mov edx, 0
mov ebp, dword [edi + 0x1c]
mov ebx, 0x7ffd
or ebp, ebp
je 0x40618e
or ebx, ebx
je 0x40618e
push edx
mov eax, edi
call fcn.004079dc
push eax
call fcn.00402db8
pop eax
xor ecx, 0xffffffff
mov edx, esi
sub ebx, ecx
ja 0x406182
add ecx, ebx
xor ebx, ebx
add esi, ecx
call fcn.004011b8
pop edx
inc edx
dec ebp
jmp 0x406160
mov word [esi], 0
pop ebp
pop edx
pop esi
pop ebx
mov eax, ebx
call fcn.0040344c
push dword [ebx + 0x19]
push esi
push dword [ebx + 0x1d]
call sub.kernel32.dll_WritePrivateProfileSectionA
pop eax
call fcn.004010ec
pop ecx
pop ebx
pop edi
pop esi
ret

Function at 0x406f2c
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x37], 0xef
test dl, dl
je 0x406f38
or byte [eax + 0x37], 0x10
mov byte [eax + 0x52], dl
mov ecx, dword [eax + 0x28]
jecxz 0x406f54
push eax
je 0x406f55
call dword [0x40c0fc]
pop eax
push 5
push dword [eax + 0x28]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x174], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x40c0fc]
ret

Function at 0x407ffc
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.00407fb0
je 0x40802e
mov eax, ebx
push edx
call fcn.00404b70
pop edx
cmp eax, edx
je 0x40802e
test edx, edx
mov eax, ebx
jne 0x408020
pop ebx
inc edx
jmp fcn.00404b60
mov byte [ebx + 0x49], dl
xor edx, edx
call fcn.00404b60
xchg ebx, eax
cmp eax, 0
pop ebx
jne fcn.0040804c
ret
Function at 0x409b10
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffc10
mov ebx, edx
push esp
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, dword [esp]
push eax
call sub.ole32.dll_CoTaskMemFree
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x3e9
call fcn.0040168c
add esp, 0x3f0
pop ebx
ret

Function at 0x409d84
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040188c
xor eax, eax
push ebp
push 0x409df5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00405e9c
mov edx, dword [ebp - 8]
mov eax, 0x40d7a0
call fcn.00401584
xor eax, eax
mov dword [0x40d79c], eax
push 0
push 0x409c98
call sub.user32.dll_EnumWindows
mov ebx, dword [0x40d79c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409dfc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401554
ret

Function at 0x409e04
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push ecx
xor ebx, ebx
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
push esp
push esi
call sub.kernel32.dll_GetExitCodeProcess
test esi, esi
je 0x409e33
mov eax, dword [esp]
push eax
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop edx
pop esi
pop ebx
ret

Function at 0x409e0a
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push ecx
xor ebx, ebx
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
push esp
push esi
call sub.kernel32.dll_GetExitCodeProcess
test esi, esi
je 0x409e33
mov eax, dword [esp]
push eax
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop edx
pop esi
pop ebx
ret
Function at 0x40a7c8
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40a86f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40d788]
push dword [eax + 0x28]
push 0x40a884
push ebx
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00401764
mov edx, dword [ebp - 0x24]
mov eax, dword [0x40d784]
call fcn.0040a720
lea eax, [ebp - 0x1e]
mov edx, 0x1e
call fcn.004026d4
mov dword [ebp - 0x1a], 3
mov word [ebp - 0xe], 0x14
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.004030b8
lea eax, [ebp - 0x28]
mov edx, 0x40a890
call fcn.004016ac
mov eax, dword [ebp - 0x28]
call fcn.0040189c
mov dword [ebp - 0x16], eax
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a876
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00401554
ret

Function at 0x40a894
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40a928
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov bl, 1
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004030b8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00405e9c
mov esi, 8
mov edi, 0x40d7a4
mov eax, dword [ebp - 0xc]
mov edx, dword [edi]
call fcn.004017e8
jne 0x40a8ec
xor ebx, ebx
jmp 0x40a8f2
add edi, 4
dec esi
jne 0x40a8dc
test bl, bl
je 0x40a90d
mov eax, dword [ebp - 4]
call fcn.0040189c
push eax
call sub.kernel32.dll_RemoveDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a92f
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00401554
ret
Function at 0x40a93c
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040188c
xor eax, eax
push ebp
push 0x40aa20
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x40aa05
test bl, bl
je 0x40a99c
mov ebx, 8
mov eax, dword [ebp - 4]
call fcn.0040189c
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
test al, 1
je 0x40a994
push 0x80
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
jmp 0x40a9a9
mov ebx, 0xa
mov eax, dword [ebp - 4]
call fcn.0040a894
mov eax, dword [0x40d788]
push dword [eax + ebx*4]
push 0x40aa38
push dword [ebp - 4]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00401764
mov edx, dword [ebp - 8]
mov eax, dword [0x40d784]
call fcn.0040a720
mov ebx, 0xa
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004030cc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004030b8
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.004015c8
mov eax, dword [ebp - 4]
call fcn.0040a894
test al, al
jne 0x40a9a9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aa27
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00401554
ret

Function at 0x40ac9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040188c
mov eax, dword [ebp - 8]
call fcn.0040188c
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x40ad7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor ecx, ecx
mov edx, 0x3c
call fcn.00401218
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
call fcn.0040189c
mov dword [esi + 0x10], eax
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.004030cc
mov eax, dword [ebp - 0x48]
call fcn.0040189c
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
call fcn.0040189c
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 4], 0x200
cmp dword [ebp + 8], 1
jne 0x40ad2b
or dword [esi + 4], 0x40
push esi
call sub.shell32.dll_ShellExecuteExA
jmp 0x40ad3f
mov eax, dword [0x40c45c]
mov eax, dword [eax]
call fcn.0040741c
push 0x32
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x40ad33
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ad84
lea eax, [ebp - 0x48]
call fcn.00401530
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401554
ret
Function at 0x4137e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x413805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x413878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x41383a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x41386d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x41386b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x413831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4137fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x10540058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.105401a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1054007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1054006a
add dl, dl
jne 0x10540089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105400dc
xor eax, eax
add dl, dl
jne 0x10540096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1054017d
add dl, dl
jne 0x105400a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105400b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105400bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105400c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105400d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10540075
mov eax, 1
add dl, dl
jne 0x105400ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105400f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105400e1
sub eax, ebx
mov ebx, 1
jne 0x10540128
mov ecx, 1
add dl, dl
jne 0x1054010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10540119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10540105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10540075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1054013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1054014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10540136
cmp eax, 0x7d00
jae 0x1054016d
cmp eax, 0x500
jb 0x10540168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10540075
cmp eax, 0x7f
ja 0x10540170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10540075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1054019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10540075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42a080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop esi
cmp eax, 0xffffffff
jne 0x401daf
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040813d
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0040813d
mov esp, ebp
pop ebp
ret

Function at 0x401dd0
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42a080]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.TaskKeyHookWD.dll
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401e53
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040813d
mov esp, ebp
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop edi
call fcn.0040813d
mov esp, ebp
pop ebp
ret
Function at 0x401e80
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f7e0
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x25f4
call fcn.00409000
mov eax, dword [0x42a080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x228]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x228]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x331], al
test al, al
jne 0x401ee0
lea edi, [ebp - 0x330]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401f00
mov ecx, 6
lea eax, [ebp - 0x2600]
mov esi, str.TAC2_DATA_tac2config.ini
rep movsd dword es:[edi], dword [esi]
push 0x44
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00409c40
add esp, 0xc
lea eax, [ebp - 0x330]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2500], xmm0
push eax
push 0
push str.LoaderMode
push str.TAC2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, 0x427204
mov dword [ebp - 0x243c], eax
call fcn.00401d30
test eax, eax
jne 0x401f7e
push 0x10
push str.Error
push 0x42721c
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40249e
call fcn.00401dd0
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, 0x1ac10
je 0x401fb7
cmp eax, 0x4b000
jb 0x401fb7
push 0x44
push str.Error
push 0x427268
call edi
push eax
call esi
cmp eax, 6
jne 0x40249e
mov ecx, 0x427354
call fcn.00401d30
test eax, eax
jne 0x401fdb
push 0x10
push str.Error
push 0x427368
call edi
push eax
call esi
jmp 0x40249e
mov eax, dword [ebp - 0x243c]
test eax, eax
jne 0x402040
call fcn.00434048
jmp 0x46f439
cmp eax, 1
jne 0x40249e
call fcn.00434048
jmp 0x4733e2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040813d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10