joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f9be1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100f97e6

Function at 0x100f9bec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100f9967

Function at 0x10101ebd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10101697

Function at 0x10101ec8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101018d2

Function at 0x1010bcf3
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1010ba7a

Function at 0x1010eaa3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x18]
xor edi, edi
xor esi, esi
push dword [ebp + 0x1c]
inc edi
mov dword [ebp - 8], esi
push edi
call fcn.1011e666
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x1010ead0
xor eax, eax
jmp 0x1010ebcc
mov eax, dword [ebp - 4]
mov ecx, SysReAllocString
push 0x40
push 0x100bfc9d
mov dword [eax + 0x2a4], ecx
mov eax, dword [ebp - 4]
push dword [ebp - 4]
mov dword [eax + 0x2a8], ecx
call fcn.10110532
push esi
push eax
call fcn.100bfcb0
add esp, 0x14
test eax, eax
je 0x1010eb0b
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call fcn.1011e825
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.10110514
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.1011246e
add esp, 0x28
test eax, eax
jne 0x1010eb42
mov dword [ebp - 8], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
cmp dword [ebp - 8], esi
jne 0x1010eb83
mov eax, dword [ebp - 4]
push dword [eax + 0xb4]
push dword [ebp - 4]
call fcn.1011e7f6
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], esi
jne 0x1010eb7e
mov dword [ebp - 8], edi
cmp dword [ebp - 8], esi
je 0x1010ebb3
mov eax, dword [ebp - 4]
push dword [eax + 0xb0]
push dword [ebp - 4]
call fcn.1011e737
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp - 4]
mov dword [eax + 0xb0], esi
call fcn.1011e6ef
add esp, 0x14
jmp 0x1010eac9
push esi
push esi
push esi
push dword [ebp - 4]
call fcn.1011e5b5
push dword [ebp - 4]
call fcn.1010eec6
mov eax, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1011210e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x10112144
push edi
mov edi, 0x10c
cmp dword [ebp + 0xc], edi
jae 0x10112137
push eax
call fcn.1011e6db
push 2
call fcn.1011e652
pop ecx
pop ecx
mov dword [esi], eax
push edi
push 0
push eax
call fcn.100bf790
add esp, 0xc
pop edi
pop esi
pop ebp
ret
Function at 0x10113e82
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x18]
xor edi, edi
xor esi, esi
push dword [ebp + 0x1c]
inc edi
mov dword [ebp - 8], esi
push edi
call fcn.1011e666
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x10113eaf
xor eax, eax
jmp 0x10114053
mov eax, dword [ebp - 4]
mov ecx, SysReAllocString
push 0x40
push 0x100bfc9d
mov dword [eax + 0x2a4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2a8], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2ac], esi
mov eax, dword [ebp - 4]
push dword [ebp - 4]
mov dword [eax + 0x2b0], esi
call fcn.10110532
push esi
push eax
call fcn.100bfcb0
add esp, 0x14
test eax, eax
je 0x10113efc
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call fcn.1011e825
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.10110514
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.1011246e
add esp, 0x28
test eax, eax
jne 0x10113f33
mov dword [ebp - 8], edi
cmp dword [ebp - 8], esi
jne 0x10113f6f
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
mov eax, dword [ebp - 4]
push dword [eax + 0xb4]
push dword [ebp - 4]
call fcn.1011e7f6
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], esi
jne 0x10113f6f
mov dword [ebp - 8], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0x98], 0x1011267d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x9c], fcn.101126cc
mov eax, dword [ebp - 4]
mov dword [eax + 0xa0], ecx
cmp dword [ebp - 8], esi
jne 0x10113fef
mov eax, dword [ebp - 4]
push 0x38
add eax, 0x78
push str.1.2.5
push eax
call fcn.10126fa6
add esp, 0xc
cmp eax, 0xfffffffa
je 0x10113fd8
cmp eax, 0xfffffffc
je 0x10113fd1
cmp eax, 0xfffffffe
je 0x10113fca
test eax, eax
je 0x10113fea
push str.Unknown_zlib_error
jmp 0x10113fdd
push str.zlib_stream_error
jmp 0x10113fdd
push str.zlib_memory_error
jmp 0x10113fdd
push str.zlib_version_error
push dword [ebp - 4]
call fcn.1011054e
pop ecx
mov dword [ebp - 8], edi
pop ecx
cmp dword [ebp - 8], esi
je 0x1011401f
mov eax, dword [ebp - 4]
push dword [eax + 0xb0]
push dword [ebp - 4]
call fcn.1011e737
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp - 4]
mov dword [eax + 0xb0], esi
call fcn.1011e6ef
add esp, 0x14
jmp 0x10113ea8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push esi
push esi
mov eax, dword [eax + 0xb0]
mov dword [ecx + 0x84], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push dword [ebp - 4]
mov eax, dword [eax + 0xb4]
mov dword [ecx + 0x88], eax
call fcn.1011a1b3
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1012742d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x1012743a
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.10127533
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x438c84
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
mov edi, edx
call fcn.00438cbc
push edx
mov edi, dword [esp]
add esp, 4
dec edx
xor dword [ecx], eax
add edx, 0xd35023b1
or edi, edi
inc ecx
or edi, edi
add edx, edx
cmp ecx, esi
jne fcn.00438c84
sub edx, 0x5ee734a6
sub edi, 0x3c053bd8
or edi, edi
ret
Function at 0x401940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401959
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401994
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401990
lea ebx, [ebx]
cmp esi, eax
jae 0x401994
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401980
cmp esi, eax
jb 0x40199a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403bb0
Capabilities:
Delete service
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x483df0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x403dbd
push SysReAllocStringLen
push str.DesUpdateSvcTmp
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x403d86
mov eax, dword [esp + 0x34]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push esi
mov dword [eax], 1
mov dword [esp + 0x28], 0
call edi
test eax, eax
jne 0x403d5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x403d5f
mov edx, dword [esp + 0x18]
push edx
call fcn.00443d36
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push eax
push ecx
push ebp
push esi
call edi
test eax, eax
je 0x403d56
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.00401ed0
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
jg 0x403c90
or edi, 0xffffffff
jmp 0x403cae
push 0x22
push ecx
call fcn.004624d3
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x403ca8
or edi, 0xffffffff
jmp 0x403cae
sub eax, ecx
sar eax, 1
mov edi, eax
cmp dword [ecx - 0xc], 1
jg 0x403cb9
or eax, 0xffffffff
jmp 0x403cd6
add ecx, 2
push 0x22
push ecx
call fcn.004624d3
add esp, 8
test eax, eax
jne 0x403cd0
or eax, 0xffffffff
jmp 0x403cd6
sub eax, dword [esp + 0x14]
sar eax, 1
dec eax
push eax
inc edi
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
call fcn.00404b10
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x34], 1
call fcn.00402050
call fcn.0043d580
add esp, 4
test eax, eax
jne 0x403d44
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x10000
push str.DesUpdateSvcTmp
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x403d2f
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov eax, dword [esp + 0x34]
push str.DesUpdateSvcTmp_service_error.
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esp + 0x1c]
call fcn.0042fe50
lea ecx, [esp + 0x14]
call fcn.0042fe50
push ebp
call fcn.00443d41
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x403d9d
mov ecx, dword [esp + 0x34]
mov dword [ecx], 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4044e0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push esi
push edi
mov ebx, eax
lea eax, [esp + 0x10]
push eax
xor edi, edi
push edi
push edi
push 1
push ebx
xor esi, esi
mov dword [esp + 0x24], edi
call ebp
test eax, eax
jne 0x40453d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x404527
push str.GetTokenInformation_failed__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x10]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push eax
push edi
push 1
push ebx
call ebp
test eax, eax
jne 0x404558
push str.GetTokenInformation_failed__r_n
jmp 0x4045d0
mov ebp, dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x2c], 8
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov ebx, dword [edi]
push eax
push ebx
push eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x4045c7
cmp eax, 0x104
jae 0x4045c7
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x4045c7
cmp eax, 0x104
ja 0x4045c7
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
push ebx
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x4045d6
push str.LookupAccountSid_failed__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, edi
je 0x4045ea
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x404600
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x481778
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x4a4720]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x43c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x450]
mov dword [esp + 0x24], eax
xor ebx, ebx
push 0x206
mov dword [esp + 0x448], ebx
lea edx, [esp + 0x2e]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov word [esp + 0x34], cx
call fcn.00464a00
push 0x206
lea ecx, [esp + 0x242]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x248], ax
call fcn.00464a00
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x18
lea esp, [esp]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 1
push ebx
push ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
cmp eax, ebx
jne 0x4046c4
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4046a0
cmp dword [esp + 0x1c], ebx
jle 0x404760
xor esi, esi
mov eax, dword [esp + 0x14]
cmp dword [esi + eax + 8], 0
jne 0x404748
mov eax, dword [esi + eax]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [ecx], eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x4046fc
push str.WTSQueryUserToken_failed__r_n
call ebp
jmp 0x404748
lea eax, [esp + 0x230]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
call fcn.004044e0
mov edx, dword [esp + 0x20]
add esp, 8
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x40472f
push str.GetTokenUserInfo_failed__r_n
call ebp
jmp 0x404748
mov ecx, dword [esp + 0x44c]
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.004619f9
add esp, 8
test eax, eax
je 0x404758
inc ebx
add esi, 0xc
cmp ebx, dword [esp + 0x1c]
jl 0x4046d0
jmp 0x404760
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x14]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp esi, ebx
jne 0x404788
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4046a0
mov dword [esp + 0x444], 0xffffffff
mov eax, dword [esp + 0x44c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x43c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.00461706
add esp, 0x434
ret
Function at 0x407560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00446e68

Function at 0x408b10
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x4a4720]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor ebx, ebx
push 0x3e
mov edi, edx
mov esi, ecx
lea edx, [ebp - 0x4a]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0xc0], eax
mov byte [ebp - 0x54], bl
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xbc], 0x67452301
mov dword [ebp - 0xb8], 0xefcdab89
mov dword [ebp - 0xb4], 0x98badcfe
mov dword [ebp - 0xb0], 0x10325476
mov word [ebp - 0x4c], cx
call fcn.00464a00
mov eax, str.DES_CLIENT_UNINSTALL
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408b90
sub eax, edx
sar eax, 1
add eax, eax
push str.DES_CLIENT_UNINSTALL
lea ecx, [ebp - 0xbc]
call fcn.0043b410
mov eax, dword [ebp + 8]
push eax
push str._08x
lea edx, [ebp - 0x4c]
call fcn.0040e530
lea eax, [ebp - 0x4c]
add esp, 8
lea edx, [eax + 2]
jmp 0x408bd0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408bd0
sub eax, edx
lea ecx, [ebp - 0x4c]
sar eax, 1
push ecx
add eax, eax
lea ecx, [ebp - 0xbc]
call fcn.0043b410
mov edx, dword [ebp + 0xc]
push edx
push str._08x
lea edx, [ebp - 0x4c]
call fcn.0040e530
lea eax, [ebp - 0x4c]
add esp, 8
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408c10
sub eax, edx
lea ecx, [ebp - 0x4c]
sar eax, 1
push ecx
add eax, eax
lea ecx, [ebp - 0xbc]
call fcn.0043b410
push 0xa
push esi
lea edx, [ebp - 0x4c]
push 0x20
push edx
call fcn.00462666
lea eax, [ebp - 0x4c]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408c47
sub eax, edx
lea ecx, [ebp - 0x4c]
sar eax, 1
push ecx
add eax, eax
lea ecx, [ebp - 0xbc]
call fcn.0043b410
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408c70
sub eax, edx
sar eax, 1
add eax, eax
push edi
lea ecx, [ebp - 0xbc]
call fcn.0043b410
lea ecx, [ebp - 0xbc]
call fcn.0043b500
lea ebx, [ebp - 0xbc]
call fcn.0043b610
mov edi, eax
test edi, edi
je 0x408ce4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jg 0x408ce4
lea eax, [ebx + ebx]
call fcn.00467510
mov esi, esp
test esi, esi
je 0x408ce4
push ebx
push esi
push 0xffffffffffffffff
xor edx, edx
push edi
push edx
push 3
mov word [esi], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x408ce6
xor eax, eax
push 6
push eax
mov eax, dword [ebp - 0xc0]
push 7
push eax
call fcn.00462666
add esp, 0x10
xor esi, esi
lea esp, [esp]
mov ebx, dword [ebp - 0xc0]
movzx ecx, word [ebx + esi*2]
push ecx
call fcn.0046284f
mov word [ebx + esi*2], ax
inc esi
add esp, 4
cmp esi, 6
jb 0x408d00
push edi
call fcn.00443d41
add esp, 4
mov eax, 1
lea esp, [ebp - 0xcc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00461706
mov esp, ebp
pop ebp
ret
Function at 0x40ab30
Capabilities:
Create thread

Disassembly:
push ecx
mov ecx, dword [edx + 0x134]
xor eax, eax
dec ecx
mov dword [esp], eax
cmp ecx, 4
ja case.0x40ab42.4
jmp dword [ecx*4 + 0x40aba4]
mov ecx, 0x40ac70
jmp 0x40ab63
mov ecx, 0x40b330
jmp 0x40ab63
mov ecx, 0x40b5e0
jmp 0x40ab63
mov ecx, 0x40b970
test ecx, ecx
je case.0x40ab42.4
lea eax, [esp]
push eax
push 0
push edx
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40ab8d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ecx
ret 4
mov ecx, dword [esp + 8]
push 0x15
push 0x48f728
call fcn.00401da0
xor eax, eax
pop ecx
ret 4

Function at 0x40abc0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x20
cmp dword [esi + 0x560], 0
jne 0x40ac23
push 1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.Global_HkApp.exe_SetupMap
push 8
push 0
push 0x8000004
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x20]
push 0
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x560], eax
mov eax, dword [esi + 0x560]
test eax, eax
je 0x40ac6a
push 8
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x40ac53
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
add esp, 0x20
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esi + 0x560]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x560], 0
add esp, 0x20
ret 4
Function at 0x40c0b0
Capabilities:
Get common file path
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4a4720]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3ac]
push ebx
push esi
push edi
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp + 0x196]
push edx
mov dword [ebp - 0x7c], eax
mov word [ebp + 0x194], cx
call fcn.00464a00
add esp, 0xc
push str._HkApp.exe_LocalDBName
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
push 0x208
push 0
test ebx, ebx
jne 0x40c177
lea ecx, [ebp - 0x76]
push ecx
mov word [ebp - 0x78], ax
call fcn.00464a00
add esp, 0xc
push 0x104
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [ebp - 0x78]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40c136
mov ecx, 7
mov esi, str.hkdefault.db
lea eax, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c154
mov ecx, dword [ebp - 0x7c]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00401da0
xor eax, eax
jmp 0x40c258
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x40c197
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40c258
mov ecx, 0x82
mov esi, eax
lea edi, [ebp + 0x194]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x194]
shr ecx, 8
test cl, cl
je 0x40c202
lea edx, [ebp + 0x194]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x40c1cf
xor eax, eax
jmp 0x40c1e9
lea eax, [esi + esi]
call fcn.00467510
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x194]
push ecx
push eax
call fcn.0040e860
lea edx, [ebp + 0x194]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40c1f1
jmp 0x40c233
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x40c233
lea esi, [eax + eax]
mov eax, esi
call fcn.00467510
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x194]
push ecx
push eax
call fcn.0040e650
mov ecx, dword [ebp - 0x7c]
lea edx, [ebp + 0x194]
push edx
call fcn.00401e90
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
call fcn.00461706
add ebp, 0x3a4
mov esp, ebp
pop ebp
ret 4