joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c6a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4261e8
call fcn.0040d190
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00423164
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41c6e1
call fcn.00423164
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41c6ef
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41c6fd
or eax, 0xffffffff
jmp 0x41c7e5
mov ecx, esi
call fcn.0041c618
mov dword [ebp - 0x14], eax
call fcn.0041d4d4
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41c734
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41c734
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041d488
push dword [ebp - 0x14]
call fcn.0041cfb9
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041c3b0
cmp eax, edi
je 0x41c7a7
test byte [esi + 0x24], 0x10
je 0x41c775
push 4
mov ecx, esi
pop ebx
call fcn.0041f5a3
test ah, 1
je 0x41c76d
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041efdb
cmp dword [esi + 0x1c], edi
je 0x41c7a7
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041f689
jmp 0x41c7a7
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41c7bb
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41c7d4
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41c7d4
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041c652
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41ee89
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41eecb
call fcn.00423164
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41eecb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41eec2
xor eax, eax
jmp 0x41eed3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041eed9
pop edi
pop esi
pop ebx
ret 4
Function at 0x42391d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42394b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x423969
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00423883
jmp 0x423969
mov eax, dword [esi + 0x14]
test eax, eax
je 0x423969
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00423883
test edi, edi
mov eax, edi
jne 0x423953
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4012f8
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push esi
push edi
push 0x40fad0
push eax
push dword [0x412c48]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 8], eax
cmp edi, esi
jne 0x401331
xor al, al
jmp 0x401382
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x40132d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x80
push 2
push esi
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
cmp edi, esi
je 0x401380
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebp
ret

Function at 0x401386
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x40d9b1
call fcn.00409743
mov eax, dword [0x41204c]
mov ecx, 0x41204c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x40fae0
lea ecx, [ebp - 0x14]
call fcn.004010f5
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401857
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402037
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
push eax
push 0x82
call fcn.004012f8
pop ecx
mov bl, al
pop ecx
lea eax, [esi - 0x10]
call fcn.00402037
mov al, bl
call fcn.004097e2
ret

Function at 0x4013f9
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x40d986
call fcn.00409743
mov eax, dword [0x41204c]
mov ecx, 0x41204c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push str.RootGenius.zip
lea ecx, [ebp - 0x14]
call fcn.004010f5
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401857
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402037
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
lea eax, [ebp - 0x10]
push eax
push 0x84
call fcn.004012f8
mov bl, al
pop ecx
pop ecx
test bl, bl
je 0x4014a0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x40fc9c
call fcn.004010f5
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.00401bc6
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0
call fcn.00402067
add esp, 0xc
push edi
mov bl, al
call esi
lea eax, [edi - 0x10]
call fcn.00402037
mov al, bl
call fcn.004097e2
ret
Function at 0x40161e
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx edi, ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x40fb54
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x10], 0x80000000
and eax, 0x7fffffff
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], esi
fild qword [ebp - 0x24]
fild qword [ebp - 0x14]
fchs
faddp st(1)
fld qword [0x40fcd8]
fmul st(1), st(0)
fmulp st(1)
fcomp qword [0x40fcd0]
fnstsw ax
test ah, 5
jp 0x4016b8
push 4
mov eax, edi
pop ecx
and eax, 0x3ff
push 0x30
cmp cx, ax
jne 0x4016ab
push 0x40fb5c
push 0x40fb64
jmp 0x4016b5
push str.Warning
push str.C_disk_space_will_cause_the_software_can_not_be_used_
push esi
call ebx
mov byte [ebp - 5], 1
call fcn.00401386
test al, al
jne 0x4016ca
mov byte [ebp - 5], al
jmp 0x401742
push 0x40fae0
lea ecx, [ebp - 0x10]
call fcn.004010f5
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop ecx
push dword [eax]
call esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402037
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004013f9
test al, al
je 0x401731
call fcn.004014b0
test al, al
je 0x401731
push str.RootGenius.dll
lea ecx, [ebp - 0x10]
call fcn.004010f5
pop ecx
push dword [eax]
call esi
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402037
jmp 0x401735
mov byte [ebp - 5], 0
call fcn.00401561
cmp byte [ebp - 5], 0
jne 0x40176b
xor esi, esi
push 4
pop eax
and edi, 0x3ff
push 0x30
cmp ax, di
jne 0x40175e
push 0x40fc24
push str.Root
jmp 0x401768
push str.Error
push str.Root_Genius_failed_to_initialize_
push esi
call ebx
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401e37
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401e4e
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401e83
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401e7f
cmp edi, eax
jae 0x401e83
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401e71
cmp edi, eax
jb 0x401e87
xor eax, eax
jmp 0x401e90
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x402aaa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411020]
jne 0x402ab4
repz ret
jmp fcn.0040349c

Function at 0x40799c
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.00403614
and dword [ebp - 4], 0
cmp dword [0x412b60], 0
mov ebx, eax
jne 0x407a4d
push 0x40f104
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407afe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40f0f8
push edi
call esi
test eax, eax
je 0x407afe
push eax
call fcn.004035a2
mov dword [esp], 0x40f0e8
push edi
mov dword [0x412b60], eax
call esi
push eax
call fcn.004035a2
mov dword [esp], 0x40f0d4
push edi
mov dword [0x412b64], eax
call esi
push eax
call fcn.004035a2
mov dword [esp], 0x40f0b8
push edi
mov dword [0x412b68], eax
call esi
push eax
call fcn.004035a2
pop ecx
mov dword [0x412b70], eax
test eax, eax
je 0x407a4d
push 0x40f0a0
push edi
call esi
push eax
call fcn.004035a2
pop ecx
mov dword [0x412b6c], eax
mov eax, dword [0x412b6c]
cmp eax, ebx
je 0x407aa5
cmp dword [0x412b70], ebx
je 0x407aa5
push eax
call fcn.0040361d
push dword [0x412b70]
mov esi, eax
call fcn.0040361d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407aa5
test edi, edi
je 0x407aa5
call esi
test eax, eax
je 0x407a9c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407a9c
test byte [ebp - 0xc], 1
jne 0x407aa5
or dword [ebp + 0x10], 0x200000
jmp 0x407ade
mov eax, dword [0x412b64]
cmp eax, ebx
je 0x407ade
push eax
call fcn.0040361d
pop ecx
test eax, eax
je 0x407ade
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407ade
mov eax, dword [0x412b68]
cmp eax, ebx
je 0x407ade
push eax
call fcn.0040361d
pop ecx
test eax, eax
je 0x407ade
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x412b60]
call fcn.0040361d
pop ecx
test eax, eax
je 0x407afe
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407b00
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40127c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4010a8
call fcn.004014bc
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4012b7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4012b7
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4012cf
cmp eax, 0x20b
je 0x4012bc
mov dword [ebp - 0x1c], edi
jmp 0x4012e3
cmp dword [ecx + 0x84], 0xe
jbe 0x4012b7
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4012dd
cmp dword [ecx + 0x74], 0xe
jbe 0x4012b7
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x402018], 0xffffffff
or dword [0x40201c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x402014]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x402010]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x402020], eax
call fcn.004014b2
cmp dword [section..data], edi
jne 0x401340
push fcn.004014b2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040149b
push 0x401078
push 0x401074
call sub.msvcrt.dll__initterm
mov eax, dword [0x40200c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x402008]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x401070
push 0x40106c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x4013a6
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x401460
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x4013f4
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x4013c2
cmp ax, 0x22
jne 0x4013af
cmp word [esi], 0x22
jne 0x4013cd
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x4013db
cmp ax, 0x20
jbe 0x4013c8
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x401401
movzx eax, word [ebp - 0x50]
jmp 0x401404
cmp word [esi], 0x20
jbe 0x4013cd
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x4013f4
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x401425
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40145a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004014f7
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x67e1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0067e140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0067e140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0067e140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0067e140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x67ebfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x67ec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x69087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x67ec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x67ec52
xor eax, eax
pop esi
leave
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov eax, 0x2058
call fcn.00401170
push 0x400
lea eax, [esp + 0x85c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
js 0x40103c
cmp word [esp + eax*2 + 0x858], 0x5c
je 0x401032
dec eax
jns 0x401022
jmp 0x40103c
xor ecx, ecx
mov word [esp + eax*2 + 0x858], cx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
mov word [esp + 0x105c], ax
lea eax, [esp + 0x85c]
push edi
push eax
lea eax, [esp + 0x1064]
push eax
call esi
push str.HotA_DataRMG_Template_Editor.exe
lea eax, [esp + 0x1064]
push eax
call esi
xor eax, eax
mov word [esp + 0x1860], ax
lea eax, [esp + 0x860]
push eax
lea eax, [esp + 0x1864]
push eax
call esi
push str.HotA_Data
lea eax, [esp + 0x1864]
push eax
call esi
xor eax, eax
mov word [esp + 0x60], ax
lea eax, [esp + 0x60]
push 0x40b1a0
push eax
call esi
lea eax, [esp + 0x1060]
push eax
lea eax, [esp + 0x64]
push eax
call esi
push 0x40b1a0
lea eax, [esp + 0x64]
push eax
call esi
lea eax, [esp + 8]
push eax
push dword [esp + 0x2070]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 8], 1
mov edi, eax
jle 0x401105
push 0x40b1a4
lea eax, [esp + 0x64]
push eax
call esi
push dword [edi + 4]
lea eax, [esp + 0x64]
push eax
call esi
push 0x40b1a0
lea eax, [esp + 0x64]
push eax
call esi
push 0x44
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004011a0
add esp, 0xc
mov dword [esp + 0x1c], 0x44
lea eax, [esp + 0xc]
xorps xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1868]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
pop edi
pop esi
add esp, 0x2058
ret 0x10
Function at 0x404725
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x410cd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004027f6
mov dword [ebp - 0x14], eax
cmp dword [0x411bf0], esi
jne 0x404818
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4047a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4048f8
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4048f8
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4048f8
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x411bf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x411bf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x411bf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x411c00], eax
test eax, eax
je 0x404815
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x411bfc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40483d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404830
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x404852
push 4
pop eax
jmp 0x4048fa
cmp dword [ebp - 0x14], esi
je 0x404852
push dword [0x411bf0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x404837
mov eax, dword [0x411bfc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4048b0
cmp dword [0x411c00], edi
je 0x4048b0
push eax
call ebx
push dword [0x411c00]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4048b0
test eax, eax
je 0x4048b0
call ecx
test eax, eax
je 0x4048a5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4048a5
test byte [ebp - 8], 1
jne 0x4048b0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4048e0
mov eax, dword [0x411bf4]
cmp eax, edi
je 0x4048dd
push eax
call ebx
test eax, eax
je 0x4048dd
call eax
mov esi, eax
test esi, esi
je 0x4048dd
mov eax, dword [0x411bf8]
cmp eax, edi
je 0x4048dd
push eax
call ebx
test eax, eax
je 0x4048dd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x411bf0]
call ebx
test eax, eax
je 0x4048f8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4048fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040490b
mov esp, ebp
pop ebp
ret
Function at 0x402a04
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404090
test esi, esi
jne 0x402a3a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404180
jmp 0x402a58
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402918
mov edi, eax
test esi, esi
je 0x402a58
cmp dword [ebx], 0
je 0x402a58
dec esi
jmp 0x402a41
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403134
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x488020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031ac
xor eax, eax
push ebp
push 0x4031a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4031e8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4031ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x488020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x488020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e90
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48a048], 0
je 0x403ef1
cmp word [0x48a21c], 0xd7b2
jne 0x403eb9
cmp dword [0x48a224], 0
jbe 0x403eb9
mov eax, 0x48a218
call dword [0x48a234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48806c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f18
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x488030], 0
jne 0x403f0d
push 0
push 0x488064
push 0x48806c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404044
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026dc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48a049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40400c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc