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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56f470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00502c3b
and dword [ebp - 0x14], 0
cmp dword [0x5774d0], 0
mov dword [ebp - 0x18], eax
jne 0x511c5b
push 0x52ca08
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x511d03
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x54f398
push ebx
call edi
test eax, eax
je 0x511d03
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x54f388
push ebx
mov dword [0x5774d0], eax
call edi
push eax
call esi
push 0x54f374
push ebx
mov dword [0x5774d4], eax
call edi
push eax
call esi
push 0x54f358
push ebx
mov dword [0x5774d8], eax
call edi
push eax
call esi
mov dword [0x5774e0], eax
test eax, eax
je 0x511c5b
push 0x54f340
push ebx
call edi
push eax
call esi
mov dword [0x5774dc], eax
mov eax, dword [0x5774dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x511cb4
cmp dword [0x5774e0], ecx
je 0x511cb4
push eax
call esi
push dword [0x5774e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x511cb4
test ebx, ebx
je 0x511cb4
call edi
test eax, eax
je 0x511cab
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x511cab
test byte [ebp - 8], 1
jne 0x511cb4
or dword [ebp + 0x10], 0x200000
jmp 0x511ce7
mov eax, dword [0x5774d4]
cmp eax, dword [ebp - 0x18]
je 0x511ce7
push eax
call esi
test eax, eax
je 0x511ce7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x511ce7
mov eax, dword [0x5774d8]
cmp eax, dword [ebp - 0x18]
je 0x511ce7
push eax
call esi
test eax, eax
je 0x511ce7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5774d0]
call esi
test eax, eax
je 0x511d03
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x511d05
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fa36f
leave
ret

Function at 0x282300e
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 0x40]
jne 0x1578119
push 0xd65d5291
jmp 0x158940f
Function at 0x40100a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
jne 0x401021
xor eax, eax
jmp 0x4011f2
mov ecx, dword [ebp + 8]
xor ecx, 0xffffffff
mov dword [ebp + 8], ecx
cmp dword [ebp + 0x10], 8
jl 0x4011aa
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x4257bc]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x4257bc]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x4257bc]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x4257bc]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x4257bc]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x4257bc]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x4257bc]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x4257bc]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
sub edx, 8
mov dword [ebp + 0x10], edx
jmp 0x40102a
cmp dword [ebp + 0x10], 0
je 0x4011ec
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp + 8]
xor edx, ecx
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
mov ecx, dword [edx*4 + 0x4257bc]
xor ecx, eax
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x4011b0
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x406092
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00422a30
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4060da
jmp 0x40619b
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
push 0x431fdc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x1014], eax
cmp dword [ebp - 0x1014], 0
jne 0x406109
jmp 0x406199
mov edx, 1
test edx, edx
je 0x40615c
mov eax, dword [ebp - 0x1014]
push eax
push 0x1000
push 1
lea ecx, [ebp - 0x1010]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40613b
jmp 0x40615c
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040100a
add esp, 0xc
mov edx, dword [ebp - 4]
add edx, eax
mov dword [ebp - 4], edx
jmp 0x406109
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [ebp - 0x1018], 1
cmp dword [ebp - 0x1014], 0
je 0x406191
mov edx, dword [ebp - 0x1014]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebp - 0x1014], 0
mov eax, dword [ebp - 0x1018]
jmp 0x40619d
jmp 0x40616e
jmp 0x40616e
mov esp, ebp
pop ebp
ret
Function at 0x40671f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 0xa0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x406768
jmp 0x4067bb
push 0
lea ecx, [ebp - 4]
push ecx
push 0x233e
push 0x42d430
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x406794
cmp dword [ebp - 4], 0x233e
je 0x406796
jmp 0x4067b9
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0xffffffff
je 0x4067b4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x4067bd
jmp 0x40679d
jmp 0x40679d
mov esp, ebp
pop ebp
ret
Function at 0x407afb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 0xa0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x407b44
jmp 0x407b97
push 0
lea ecx, [ebp - 4]
push ecx
push 0x2800
push 0x42f770
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x407b70
cmp dword [ebp - 4], 0x2800
je 0x407b72
jmp 0x407b95
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0xffffffff
je 0x407b90
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x407b99
jmp 0x407b79
jmp 0x407b79
mov esp, ebp
pop ebp
ret
Function at 0x407efa
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4237a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x424
push edi
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov byte [ebp - 0x110], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x424]
call fcn.0041d630
mov dword [ebp - 4], 0
mov al, byte [0x43965c]
mov byte [ebp - 0x318], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x317]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0x439660]
mov byte [ebp - 0x214], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dl, byte [0x439664]
mov byte [ebp - 0x41c], dl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x41b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x318]
push eax
push 0x104
push 0x432308
call fcn.00405071
add esp, 0xc
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x407fde
jmp 0x4080cc
push 0x432310
push 0x80000002
lea ecx, [ebp - 0x424]
call fcn.0041d66d
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x408007
jmp 0x4080cc
push 0x432348
lea ecx, [ebp - 0x424]
call fcn.0041d9b9
mov dword [ebp - 0x428], eax
lea ecx, [ebp - 0x424]
call fcn.0041d6c6
push 0x432350
push 0x80000002
lea ecx, [ebp - 0x424]
call fcn.0041d66d
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x40804e
jmp 0x4080cc
push 0x432380
lea ecx, [ebp - 0x424]
call fcn.0041d9b9
mov dword [ebp - 0x428], eax
push 0x104
lea ecx, [ebp - 0x41c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x428], eax
lea edx, [ebp - 0x41c]
push edx
push str._s__c
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
push 0x432394
lea ecx, [ebp - 0x424]
call fcn.0041d752
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x4080c2
jmp 0x4080cc
mov dword [ebp - 0x42c], 1
lea ecx, [ebp - 0x424]
call fcn.0041d6c6
mov edx, dword [ebp - 0x42c]
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.0041d651
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40810a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push edi
mov dword [ebp - 0x310], 0
mov byte [ebp - 0x208], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x414], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x413]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x61c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x61b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x720], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x71f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x30c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x30b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x824], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x823]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x518], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x517]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x518]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea ecx, [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x518]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
jne 0x40822f
push 0
push 0x4323a0
call fcn.00410257
add esp, 8
push 0x4323e0
lea eax, [ebp - 0x61c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
lea ecx, [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x208]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x104
lea eax, [ebp - 0x720]
push eax
lea ecx, [ebp - 0x518]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
jne 0x408290
push 0
push str._SetRebootProcess_WINME_GetShortPathName_WindowsTempPath_Fail
call fcn.00410257
add esp, 8
push str.CopyFile.BAT
lea edx, [ebp - 0x720]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x720]
push eax
lea ecx, [ebp - 0x104]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea edx, [ebp - 0x208]
push edx
call fcn.00407afb
add esp, 4
test eax, eax
jne 0x4082e0
push 0
push str.Reboot_GenCopyFileProgram_Failed.
call fcn.00410257
add esp, 8
xor eax, eax
jmp 0x4082ea
call fcn.00407efa
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40c71d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push edi
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x11c], 0
xor eax, eax
mov dword [ebp - 0x11b], eax
mov dword [ebp - 0x117], eax
mov word [ebp - 0x113], ax
mov dword [ebp - 0x124], 0
mov cl, byte [0x4397b4]
mov byte [ebp - 0x110], cl
xor edx, edx
mov dword [ebp - 0x10f], edx
mov dword [ebp - 0x10b], edx
mov word [ebp - 0x107], dx
mov byte [ebp - 0x105], dl
mov al, byte [0x4397b8]
mov byte [ebp - 0x104], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x128], 0
push 0
push 0x3f8
mov ecx, dword [ebp - 0x12c]
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 0
push 0x3ff
mov ecx, dword [ebp - 0x12c]
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
mov ecx, dword [ebp - 0x12c]
mov dword [ecx + 0x2f0], 0
mov dword [0x4397a0], 0
call fcn.00412472
test eax, eax
je 0x40c81d
call fcn.0041247c
push 1
mov ecx, dword [ebp - 0x12c]
add ecx, 0xa0
call sub.MFC42.DLL_CWnd::EnableWindow
jmp 0x40c926
mov ecx, dword [ebp - 0x12c]
add ecx, 0x160
call fcn.0040d130
push 0x3ff
mov ecx, dword [ebp - 0x12c]
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call fcn.0040cfe0
test eax, eax
jne 0x40c855
mov dword [ebp - 0x124], 1
jmp 0x40c85f
mov dword [ebp - 0x124], 0
lea edx, [ebp - 0x104]
push edx
push 0x104
push 0x4326b8
call fcn.00405071
add esp, 0xc
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x40c88c
jmp 0x40c92c
mov eax, dword [ebp - 0x124]
push eax
push 0x4326c4
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x110]
push eax
push 0x4326c8
push 0x4326d8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x40c8d7
jmp 0x40c92a
lea ecx, [ebp - 0x120]
push ecx
push 0
mov edx, dword [ebp - 0x124]
push edx
push 0x40c69c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x12c]
mov dword [ecx + 0x300], eax
mov edx, dword [ebp - 0x12c]
cmp dword [edx + 0x300], 0
jne 0x40c913
jmp 0x40c928
push 0
mov ecx, dword [ebp - 0x12c]
add ecx, 0xa0
call sub.MFC42.DLL_CWnd::EnableWindow
jmp 0x40c92e
jmp 0x40c926
jmp 0x40c926
jmp 0x40c926
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40cc6a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
mov dword [ebp - 0x114], ecx
mov al, byte [0x4397bc]
mov byte [ebp - 0x104], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x10c], 0
lea ecx, [ebp - 0x104]
push ecx
push 0x104
push 0x4326f0
call fcn.00405071
add esp, 0xc
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x40ccdf
jmp 0x40cd23
lea edx, [ebp - 0x104]
push edx
push 1
push 0x4326fc
push 0x43270c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], 1
cmp dword [ebp - 0x108], 0
jne 0x40cd1b
mov dword [ebp - 0x10c], 1
mov eax, dword [ebp - 0x10c]
jmp 0x40cd25
jmp 0x40cd08
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40f4ab
Capabilities:
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push str.in_GetVirusDBFileVersionEx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x18c], 0xffffffff
mov word [ebp - 0x178], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x188], 0
push 0
push 0xa7
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0xffffffff
jne 0x40f53e
jmp 0x40f68e
push 0
lea ecx, [ebp - 0x174]
push ecx
push 0x170
lea edx, [ebp - 0x170]
push edx
mov eax, dword [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
jne 0x40f574
jmp 0x40f68c
cmp dword [ebp - 0x174], 0x170
je 0x40f585
jmp 0x40f68a
mov ecx, dword [ebp - 0x11c]
shr ecx, 8
and ecx, 0xff
mov word [ebp - 0x178], cx
mov edx, dword [ebp - 0x11c]
and edx, 0xffff0000
mov eax, dword [ebp - 0x178]
and eax, 0xffff
add edx, eax
mov dword [ebp - 0x184], edx
mov ecx, dword [ebp - 0x11c]
and ecx, 0xff
mov word [ebp - 0x178], cx
mov edx, dword [ebp - 0x178]
and edx, 0xffff
shl edx, 0x10
mov dword [ebp - 0x180], edx
movsx eax, byte [ebp - 0x121]
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
shl ecx, 8
mov dword [ebp - 0x188], ecx
movsx edx, byte [ebp - 0x122]
mov eax, dword [ebp - 0x188]
or eax, edx
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
and ecx, 0xff
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x190], 1
cmp dword [ebp + 0xc], 0
je 0x40f640
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x184]
mov dword [edx], eax
cmp dword [ebp + 0x10], 0
je 0x40f651
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x180]
mov dword [ecx], edx
cmp dword [ebp + 0x14], 0
je 0x40f662
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x188]
mov dword [eax], ecx
cmp dword [ebp - 0x18c], 0xffffffff
je 0x40f682
mov edx, dword [ebp - 0x18c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18c], 0xffffffff
mov eax, dword [ebp - 0x190]
jmp 0x40f690
jmp 0x40f62f
jmp 0x40f62f
jmp 0x40f62f
mov esp, ebp
pop ebp
ret
Function at 0x40f694
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xa4], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0xffffffff
jne 0x40f705
jmp 0x40f781
mov dword [ebp - 8], 0x94
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40f73b
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
je 0x40f73d
jmp 0x40f77f
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x64]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x60]
mov dword [ecx], edx
mov dword [ebp - 0xa8], 1
cmp dword [ebp - 0xa4], 0xffffffff
je 0x40f777
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa4], 0xffffffff
mov eax, dword [ebp - 0xa8]
jmp 0x40f783
jmp 0x40f757
jmp 0x40f757
mov esp, ebp
pop ebp
ret
Function at 0x410943
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push edi
mov dword [ebp - 0x32c], ecx
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], str.KANCSvr.INI
mov dword [ebp - 0x21c], 0x433a3c
mov dword [ebp - 0x220], 0x433a48
mov byte [ebp - 4], 0
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x214], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x324], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x323]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [ebp + 8], 0
jne 0x4109e9
jmp 0x410b82
push 0x104
lea eax, [ebp - 0x214]
push eax
call fcn.0040ea68
add esp, 8
mov ecx, dword [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x214]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x410ac3
lea edx, [ebp - 0x214]
push edx
push 0x104
lea eax, [ebp - 0x324]
push eax
push 0x439a08
push 0x433a4c
push 0x433a58
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x410a83
jmp 0x410b80
push 0x439a0c
lea ecx, [ebp - 0x324]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x410aa0
jmp 0x410b7e
push 0x433a64
lea edx, [ebp - 0x324]
push edx
push 0x433a88
push 0x433a90
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
cmp dword [ebp - 0x110], 0
jne 0x410ad1
jmp 0x410b7c
cmp dword [ebp + 8], 0
jne 0x410adc
jmp 0x410b7a
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 1
jge 0x410af9
jmp 0x410b78
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x218]
mov al, byte [edx - 1]
mov byte [ebp - 4], al
movsx ecx, byte [ebp - 4]
cmp ecx, 0x5c
je 0x410b64
movsx edx, byte [ebp - 4]
cmp edx, 0x2f
je 0x410b64
mov eax, dword [ebp - 0x218]
add eax, 1
cmp eax, dword [ebp + 0xc]
jle 0x410b2a
jmp 0x410b76
push 0x5c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x410b4b
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x218]
mov byte [edx], 0x5c
jmp 0x410b57
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x218]
mov byte [eax], 0x2f
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x218]
mov byte [ecx + 1], 0
mov dword [ebp - 0x328], 1
mov eax, dword [ebp - 0x328]
jmp 0x410b84
jmp 0x410b6e
jmp 0x410b6e
jmp 0x410b6e
jmp 0x410b6e
jmp 0x410b6e
jmp 0x410b6e
jmp 0x410b6e
pop edi
mov esp, ebp
pop ebp
ret 8