joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402190
Capabilities:
Create directory

Disassembly:
sub esp, 0x420
mov eax, dword [0x416044]
xor eax, esp
mov dword [esp + 0x41c], eax
mov eax, dword [esp + 0x424]
push ebx
push ebp
push esi
lea edx, [esp + 0x14]
push edi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4021b5
push 2
lea eax, [esp + 0x1c]
push 0x41402c
push eax
mov byte [esp + 0x23], cl
xor bl, bl
call fcn.0040380d
add esp, 0xc
test eax, eax
jne 0x4021e4
mov bl, 1
lea ecx, [esp + 0x18]
push 0x5c
push ecx
call fcn.00402d95
mov esi, eax
add esp, 8
test esi, esi
je 0x4022bf
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esp, [esp]
xor edx, edx
lea eax, [esp + 0x18]
mov word [esi], dx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402220
sub eax, edx
sar eax, 1
cmp eax, 2
jbe case.0x402259.161
push 0
lea eax, [esp + 0x1c]
push eax
call ebp
test eax, eax
jne case.0x402259.161
call edi
lea ecx, [eax - 5]
cmp ecx, 0xb2
ja case.0x402259.6
movzx ecx, byte [ecx + 0x402304]
jmp dword [ecx*4 + 0x4022f4]
lea edx, [esp + 0x18]
push 0x5c
push edx
call fcn.00402d95
add esp, 8
test eax, eax
jne 0x4022ed
jmp case.0x402259.161
test bl, bl
je 0x4022ed
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp word [esi], 0
je 0x40228f
mov byte [esp + 0x17], 1
push 0x5c
push esi
call fcn.00402d95
mov esi, eax
add esp, 8
test esi, esi
jne 0x402210
cmp byte [esp + 0x17], al
je 0x4022bf
push eax
lea ecx, [esp + 0x1c]
push ecx
call ebp
test eax, eax
jne 0x4022bf
call edi
cmp eax, 0xb7
jne 0x4022ed
mov eax, 1
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402d86
add esp, 0x420
ret 4
push eax
push str.KXAPI::CreateDirectory___failed__ld_n
call fcn.00401060
add esp, 8
xor eax, eax
jmp 0x4022c4
Function at 0x402260
Capabilities:
Create directory

Disassembly:
sub esp, 0x420
mov eax, dword [0x416044]
xor eax, esp
mov dword [esp + 0x41c], eax
mov eax, dword [esp + 0x424]
push ebx
push ebp
push esi
lea edx, [esp + 0x14]
push edi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4021b5
push 2
lea eax, [esp + 0x1c]
push 0x41402c
push eax
mov byte [esp + 0x23], cl
xor bl, bl
call fcn.0040380d
add esp, 0xc
test eax, eax
jne 0x4021e4
mov bl, 1
lea ecx, [esp + 0x18]
push 0x5c
push ecx
call fcn.00402d95
mov esi, eax
add esp, 8
test esi, esi
je 0x4022bf
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esp, [esp]
xor edx, edx
lea eax, [esp + 0x18]
mov word [esi], dx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402220
sub eax, edx
sar eax, 1
cmp eax, 2
jbe case.0x402259.161
push 0
lea eax, [esp + 0x1c]
push eax
call ebp
test eax, eax
jne case.0x402259.161
call edi
lea ecx, [eax - 5]
cmp ecx, 0xb2
ja case.0x402259.6
movzx ecx, byte [ecx + 0x402304]
jmp dword [ecx*4 + 0x4022f4]
lea edx, [esp + 0x18]
push 0x5c
push edx
call fcn.00402d95
add esp, 8
test eax, eax
jne 0x4022ed
jmp case.0x402259.161
test bl, bl
je 0x4022ed
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp word [esi], 0
je 0x40228f
mov byte [esp + 0x17], 1
push 0x5c
push esi
call fcn.00402d95
mov esi, eax
add esp, 8
test esi, esi
jne 0x402210
cmp byte [esp + 0x17], al
je 0x4022bf
push eax
lea ecx, [esp + 0x1c]
push ecx
call ebp
test eax, eax
jne 0x4022bf
call edi
cmp eax, 0xb7
jne 0x4022ed
mov eax, 1
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402d86
add esp, 0x420
ret 4
push eax
push str.KXAPI::CreateDirectory___failed__ld_n
call fcn.00401060
add esp, 8
xor eax, eax
jmp 0x4022c4
Function at 0x402720
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ecx
push edi
push esi
push str.KXAPI::DeleteFile_____s__n
call fcn.00401140
add esp, 8
push 0x80
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4027c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40276b
push str.KXAPI::DeleteFile___ERROR_FILE_NOT_FOUND_n
call fcn.00401060
add esp, 4
mov eax, edi
pop edi
pop ecx
ret 4
cmp eax, 3
jne 0x402784
push str.KXAPI::DeleteFile___Can_not_find_the_file_path._n
call fcn.00401060
add esp, 4
mov eax, edi
pop edi
pop ecx
ret 4
mov eax, dword [esp + 0xc]
cmp byte [eax + 0xc], 0
je 0x4027a7
push str.WIN9X___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.00401060
mov edi, 2
add esp, 4
mov eax, edi
pop edi
pop ecx
ret 4
push str.WINNT___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.00401060
add esp, 4
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, 2
mov eax, edi
pop edi
pop ecx
ret 4

Function at 0x402890
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push esi
push edi
push str.IsWow64Process
push str.kernel32
mov edi, 0x20019
mov dword [esp + 0x24], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [esp + 0x10], 0
test esi, esi
je 0x4028e9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x10], 0
je 0x4028e9
mov edi, 0x20119
lea ecx, [esp + 0x14]
push ecx
push edi
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402956
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.Debug
push edx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x402941
push str.Debug
push eax
push str.GetRegValueLong___Get_value_error____ld_for__s_n
call fcn.00401140
add esp, 0xc
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x1c
ret
push ebx
push eax
push str.GetRegValueLong___Open_registry_error____ld_for__s_n
call fcn.00401140
mov eax, dword [esp + 0x18]
add esp, 0xc
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x402d86
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416044]
jne 0x402d90
repz ret
jmp fcn.00403ae8

Function at 0x40c0d1
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.00404668
and dword [ebp - 4], 0
cmp dword [0x417d44], 0
mov ebx, eax
jne 0x40c182
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c233
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c233
push eax
call fcn.004045f6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x417d44], eax
call esi
push eax
call fcn.004045f6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x417d48], eax
call esi
push eax
call fcn.004045f6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x417d4c], eax
call esi
push eax
call fcn.004045f6
pop ecx
mov dword [0x417d54], eax
test eax, eax
je 0x40c182
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004045f6
pop ecx
mov dword [0x417d50], eax
mov eax, dword [0x417d50]
cmp eax, ebx
je 0x40c1da
cmp dword [0x417d54], ebx
je 0x40c1da
push eax
call fcn.00404671
push dword [0x417d54]
mov esi, eax
call fcn.00404671
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c1da
test edi, edi
je 0x40c1da
call esi
test eax, eax
je 0x40c1d1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c1d1
test byte [ebp - 0xc], 1
jne 0x40c1da
or dword [ebp + 0x10], 0x200000
jmp 0x40c213
mov eax, dword [0x417d48]
cmp eax, ebx
je 0x40c213
push eax
call fcn.00404671
pop ecx
test eax, eax
je 0x40c213
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c213
mov eax, dword [0x417d4c]
cmp eax, ebx
je 0x40c213
push eax
call fcn.00404671
pop ecx
test eax, eax
je 0x40c213
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x417d44]
call fcn.00404671
pop ecx
test eax, eax
je 0x40c233
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c235
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c7e0
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 0x41c805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x41c878
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 0x41c83a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x41c86d
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 0x41c86b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x41c831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x41c7fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x401b7b
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
jne 0x401b88
xor eax, eax
pop edi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.0040382a
test esi, esi
pop ecx
jle 0x401bb4
mov ecx, eax
sub edi, eax
mov edx, esi
push ebx
mov bl, byte [edi + ecx]
xor bl, 0x5b
mov byte [ecx], bl
inc ecx
dec edx
jne 0x401ba7
pop ebx
mov byte [eax + esi], 0
pop esi
pop edi
ret

Function at 0x401bbb
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x401bdc
mov eax, dword [esp + 4]
add eax, ecx
mov edx, dword [eax]
xor edx, dword [esp + 0xc]
add edx, ecx
add ecx, 4
cmp ecx, dword [esp + 8]
mov dword [eax], edx
jb 0x401bc3
ret

Function at 0x401bdd
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x401bfe
mov eax, dword [esp + 4]
add eax, ecx
mov edx, dword [eax]
sub edx, ecx
xor edx, dword [esp + 0xc]
add ecx, 4
cmp ecx, dword [esp + 8]
mov dword [eax], edx
jb 0x401be5
ret

Function at 0x40219b
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.00402158
pop ecx
pop ecx
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x402232
cmp eax, 0xffffffff
je 0x402232
push ebx
push esi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
mov esi, 0xf01ff
push 1
push 1
push 1
push esi
lea ecx, [ebp - 0x44]
push ecx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
cmp ebx, edi
je 0x4021f8
cmp ebx, 0xffffffff
jne 0x40220e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x40221e
xor edi, edi
inc edi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 4]
call esi
pop esi
mov eax, edi
pop ebx
jmp 0x402234
xor eax, eax
pop edi
leave
ret

Function at 0x402237
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push edi
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
call fcn.00402158
pop ecx
pop ecx
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
je 0x4022b0
cmp ebx, 0xffffffff
je 0x4022b0
push esi
push 0xf01ff
lea eax, [ebp - 0x5c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
je 0x4022a4
cmp esi, 0xffffffff
je 0x4022a4
lea eax, [ebp - 0x1c]
push eax
inc edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40229d
xor edi, edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop esi
jmp 0x4022b2
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x4023c5
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push edi
call esi
push 0x7d0
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
sub eax, edi
cmp eax, 0x5dc
pop edi
pop esi
ja 0x4023f1
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
xor eax, eax
ret

Function at 0x4026dc
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push esi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.00403d7d
pop ecx
mov esi, str.ws2_32.dll
push esi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push str.WSAStartup
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea ecx, [ebp - 0x194]
push ecx
push 2
call eax
push 0xa365
push 0x232
push 0x10
push 0
push str.__srvmgr32
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, str.ZwQueryService
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00402540
test eax, eax
je 0x40277b
call fcn.004031c5
test eax, eax
jne 0x402782
xor eax, eax
jmp 0x402829
call fcn.004032f0
push dword [0x406060]
call fcn.0040219b
mov dword [esp], 0x40103d
push 0xbb8
push 0x161
push dword [0x40606c]
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.0040349f
test eax, eax
jne 0x4027bd
call fcn.00403525
call fcn.00401b60
call fcn.00401b46
push 0x5c
push dword [0x406060]
call fcn.00403852
push eax
call fcn.00402347
push 0x5c
push dword [0x406064]
call fcn.00403852
push eax
call fcn.00402347
push 0x5c
push dword [0x406068]
call fcn.00403852
push eax
call fcn.00402347
call fcn.00402339
push esi
call fcn.00402362
push 0x5c
push dword [0x406064]
call fcn.00403852
push eax
call fcn.00402362
add esp, 0x34
call fcn.004026bc
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x4032f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0x80000000
push dword [0x406064]
call fcn.00403804
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
jne 0x403317
xor eax, eax
jmp 0x4033f8
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
push edi
mov dword [ebp - 4], edi
call fcn.0040382a
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push edi
push esi
push ebx
call dword [0x40603c]
push ebx
call dword [0x40604c]
push edi
push esi
call fcn.004032ba
test eax, eax
pop ecx
pop ecx
je 0x4033d7
mov edx, dword [eax + esi + 4]
lea edi, [eax + esi]
mov ecx, dword [edi]
push ecx
push edx
lea eax, [eax + esi + 8]
push eax
call fcn.0040328d
add esp, 0xc
mov dword [edi], eax
push dword [0x406064]
call dword [0x406040]
mov edi, 0x40000000
push edi
push dword [0x406064]
call fcn.00403804
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
jne 0x4033db
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push edi
push dword [0x406064]
call fcn.00403804
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
jne 0x4033db
push 0x1388
call dword [sym.imp.KERNEL32.DLL_Sleep]
push edi
push dword [0x406064]
call fcn.00403804
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
jne 0x4033db
xor eax, eax
jmp 0x4033f6
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push ebx
call dword [0x406050]
push ebx
call dword [0x40604c]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4033fb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push 0xff
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push str.qmopt.dll
lea eax, [ebp - 0x100]
push eax
push str._s_system32_s
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
leave
ret

Function at 0x403e19
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push edi
lea ecx, [ebp - 8]
call fcn.00401ed3
lea eax, [ebp - 0xc]
push eax
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403ea5
push 0x7f
pop ecx
mov byte [ebp - 0x214], al
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x405448
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 0x200
mov dword [ebp - 0x10], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
push ecx
lea eax, [ebp - 0x214]
mov ecx, esp
push eax
call fcn.00401f24
lea ecx, [ebp - 8]
call fcn.00402074
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00401ef4
lea ecx, [ebp - 8]
call fcn.00401f55
mov eax, dword [ebp + 8]
pop edi
leave
ret
Function at 0x404048
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ebp, str.System32_
push ebp
call edi
mov esi, dword [esp + 0x1c]
push esi
mov dword [esp + 0x14], eax
call fcn.0040382a
pop ecx
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push ebx
call edi
sub esi, dword [esp + 0x10]
cmp eax, esi
jg 0x404095
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push ebx
call fcn.0040383e
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0xdaf6f6a
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x1db0cc2
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401830
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x407a15
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push esi
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call fcn.00401000
mov ecx, dword [esp + 0x220]
lea eax, [esp + 0xc]
push 0x200
push eax
push ecx
mov dword [esp + 0x220], 1
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 0xc]
lea ecx, [esp + 4]
push edx
mov byte [esp + eax + 0x10], 0
call fcn.00401340
mov esi, dword [esp + 0x21c]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.00401020
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x214], 0
call fcn.004010a0
mov ecx, dword [esp + 0x20c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x214
ret
Function at 0x4066e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b478
cmp edx, dword [eax]
je 0x40670b
add eax, 8
inc ecx
cmp eax, 0x40b508
jl 0x4066fc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b478]
jne 0x406839
mov eax, dword [0x40b924]
cmp eax, 1
je 0x406813
test eax, eax
jne 0x40673c
cmp dword [0x409074], 1
je 0x406813
cmp edx, 0xfc
je 0x406839
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406773
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004070c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405130
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4067b6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405130
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408510
push edi
call fcn.004033e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004070c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004070d0
lea eax, [ebp - 0xa0]
push 0x4084f0
push eax
call fcn.004070d0
push dword [esi + 0x40b47c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004070d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004071b0
add esp, 0x2c
pop edi
jmp 0x406839
lea eax, [ebp + 8]
lea esi, [esi + 0x40b47c]
push 0
push eax
push dword [esi]
call fcn.00405130
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x43b654
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
push ebx
pop ebx
call fcn.0043b691
sub eax, 0x14325b80
mov eax, 0xe4e9ecbb
xor dword [esi], ecx
add ebx, eax
add eax, 0x896a4ea5
sub esp, 4
mov dword [esp], eax
pop eax
inc esi
push 0x58dd0ffc
pop ebx
cmp esi, edx
jne fcn.0043b654
dec eax
and ebx, eax
and ebx, ebx
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x4cae03c1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x6c0f78ba
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data_1
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219