joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x447161
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push edi
mov eax, dword [0x45c5b0]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov esi, ecx
push 0x44de0b
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
call fcn.00401fc0
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.SOFTWAREClassesCLSID9BA878B8_5AF3_43E6_8DB1_E7849E4C6A4BInprocServer32
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x148], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4069a9
call fcn.00406de0
push 0x44e658
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x134], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x406aeb
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0x44de0b
push ecx
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4069ee
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406acc
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x10]
push 0x44e0d0
push edx
call fcn.00402100
add esp, 0xc
call fcn.00412914
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406a1f
push 0x80004005
call fcn.004025c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov byte [esp + 0x134], 1
mov ecx, dword [esp + 0xc]
push 0x5c
push ecx
call fcn.004322d2
add esp, 8
test eax, eax
jne 0x406a4f
or eax, 0xffffffff
jmp 0x406a53
sub eax, dword [esp + 0xc]
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
call fcn.00401b20
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 2
call fcn.004021c0
mov byte [esp + 0x134], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi - 0x10]
mov byte [esp + 0x134], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406acc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x134], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406af7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00430bec
add esp, 0x12c
ret
Function at 0x406de0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftwindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406e37
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00430bec
add esp, 0x114
ret
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.ProgramFilesDir
push edx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406e8b
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00430bec
add esp, 0x114
ret
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00430bec
add esp, 0x114
ret
Function at 0x40be20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x40be30
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40be40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40c690
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x128
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
mov ebp, dword [esp + 0x134]
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea edx, [esp + 0x20]
push edx
xor edi, edi
or eax, 0x2001f
push eax
push edi
push ebp
push ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, edi
jne 0x40c705
xor eax, eax
cmp ecx, edi
je 0x40c6f3
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov esi, eax
mov dword [esp + 0x14], ecx
cmp eax, edi
je 0x40c713
cmp ecx, edi
je 0x40c7b0
push ecx
jmp 0x40c7aa
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x28]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push edi
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40c77e
jmp 0x40c740
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040c690
mov ebp, eax
cmp ebp, edi
jne 0x40c7cd
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
push edx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x40c740
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40c791
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov eax, dword [ebx]
push ebp
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40c7b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00430bec
add esp, 0x128
ret 4
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40c7dc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x40c7b2
Function at 0x410ed0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4474e8
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
mov eax, dword [0x45c5b0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x20]
push 0
lea eax, [esp + 0x24]
push eax
push 9
push 2
lea ecx, [edi + 0x230]
push 0xcb
push ecx
call fcn.0041b38c
mov eax, dword [esp + 0x38]
add esp, 0x18
mov esi, eax
mov dword [esp + 0xc], esi
test eax, eax
je 0x410f2c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [edi + 0xa0]
mov dword [esp + 0x18], 0
call fcn.00401190
test al, al
jne 0x410f7b
push 0
push 0
push str.js.SetDocument___failed.
call fcn.0041339d
mov dword [esp + 0x18], 0xffffffff
test esi, esi
je 0x410f65
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x10
ret 8
mov dword [edi + 0x74], 1
mov dword [edi + 0x78], ebp
cmp ebp, 4
jne 0x410fb8
cmp dword [0x46ca6c], 0
je 0x410fa1
push 0
push 0
mov ecx, 0x46ca5c
call fcn.0041cdb7
push 0x13
lea ecx, [edi + 0x90]
push str.mainframe.addResult
call fcn.00402430
jmp 0x41106e
cmp ebp, 2
jne 0x410fd2
push str.mainframe2.addResult
lea ecx, [edi + 0x90]
call fcn.00402520
jmp 0x41106e
cmp ebp, 3
jne 0x410fec
push str.mainframe3.addResult
lea ecx, [edi + 0x90]
call fcn.00402520
jmp 0x41106e
cmp ebp, 1
jne 0x411003
push str.mainframe1.addResult
lea ecx, [edi + 0x90]
call fcn.00402520
jmp 0x41106e
cmp ebp, 0xa
jne 0x41105c
push str.FTIE
push ebx
call fcn.00401ba0
add esp, 8
test al, al
jne 0x410fd7
push str.FTCT
push ebx
call fcn.00401ba0
add esp, 8
test al, al
jne 0x410fbd
push str.FTKEY
push ebx
call fcn.00401ba0
add esp, 8
lea ecx, [edi + 0x90]
test al, al
je 0x411050
push str.mainframe1.addResult
call fcn.00402520
jmp 0x41106e
push str.mainframe.addResult
call fcn.00402520
jmp 0x41106e
mov eax, dword [esp + 0x24]
push str.PARM_ERR
push eax
call fcn.00402100
add esp, 8
cmp dword [edi + 0x2ac], 0
jne 0x4110ab
lea ecx, [esp + 0x20]
push ecx
push 0
push edi
push 0x40edc0
push 0
push 0
mov dword [edi + 0x2a4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x2ac], 1
jmp 0x4110d3
lea edx, [esp + 0x24]
push edx
push 0
push edi
push 0x40edc0
push 0
push 0
mov dword [edi + 0x2a4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], 0xffffffff
test esi, esi
je 0x4110e7
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov al, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x10
ret 8
Function at 0x4119b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push esi
call fcn.0041528e
mov esi, dword [eax + 8]
test esi, esi
jne 0x4119c3
xor al, al
pop esi
ret 8
movzx eax, word [esp + 8]
push edi
push 0x4502e0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x411a51
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x411a51
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x411a49
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
test esi, esi
je 0x411a43
lea edx, [esp + 0x14]
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
je 0x411a43
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov al, 1
pop esi
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
ret 8
pop edi
xor al, al
pop esi
ret 8

Function at 0x413d92
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x413dbd
call fcn.0041528e
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x413de0
push eax
push dword [esi + 4]
call fcn.00413d18
push esi
push eax
mov ecx, 0x4699c0
call fcn.004139cc
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x415cc7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x415ceb
cmp dword [edi + 0x54], 0
jne 0x415ceb
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041528e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00415c88
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41b0e7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41b12e
call fcn.0041528e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41b12e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41b14a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041ac61
mov esi, eax
test edi, edi
je 0x41b148
test ebx, ebx
je 0x41b148
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41b8c5
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44538c
call fcn.00433c21
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41b8ea
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41b930
lea ecx, [ebp - 0x10]
call fcn.00402590
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c560
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402680
mov eax, esi
call fcn.00433cf9
ret 8

Function at 0x427a9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x427ae4
call fcn.0041528e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x427ae4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x427b27
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x427b10
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x427b10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x427b24
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x430bec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45c5b0]
jne 0x430bf6
repz ret
jmp fcn.004367eb
Function at 0x44113c
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.0043a065
and dword [ebp - 4], 0
cmp dword [0x46c2b4], 0
mov ebx, eax
jne 0x4411ed
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44129e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44d508
push edi
call esi
test eax, eax
je 0x44129e
push eax
call fcn.00439ff3
mov dword [esp], 0x44d4f8
push edi
mov dword [0x46c2b4], eax
call esi
push eax
call fcn.00439ff3
mov dword [esp], 0x44d4e4
push edi
mov dword [0x46c2b8], eax
call esi
push eax
call fcn.00439ff3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46c2bc], eax
call esi
push eax
call fcn.00439ff3
pop ecx
mov dword [0x46c2c4], eax
test eax, eax
je 0x4411ed
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00439ff3
pop ecx
mov dword [0x46c2c0], eax
mov eax, dword [0x46c2c0]
cmp eax, ebx
je 0x441245
cmp dword [0x46c2c4], ebx
je 0x441245
push eax
call fcn.0043a06e
push dword [0x46c2c4]
mov esi, eax
call fcn.0043a06e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x441245
test edi, edi
je 0x441245
call esi
test eax, eax
je 0x44123c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44123c
test byte [ebp - 0xc], 1
jne 0x441245
or dword [ebp + 0x10], 0x200000
jmp 0x44127e
mov eax, dword [0x46c2b8]
cmp eax, ebx
je 0x44127e
push eax
call fcn.0043a06e
pop ecx
test eax, eax
je 0x44127e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44127e
mov eax, dword [0x46c2bc]
cmp eax, ebx
je 0x44127e
push eax
call fcn.0043a06e
pop ecx
test eax, eax
je 0x44127e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46c2b4]
call fcn.0043a06e
pop ecx
test eax, eax
je 0x44129e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4412a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b13
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41607c]
jne 0x401b1d
repz ret
jmp fcn.004029d3

Function at 0x401eb8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x401ec6
mov eax, dword [eax]
push esi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x401f3c
cmp esi, 0xffffffff
je 0x401f3c
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
mov dword [ebp + 8], 0
jb 0x401f00
mov eax, dword [edi]
jmp 0x401f02
mov eax, edi
push 0
lea edx, [ebp + 8]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x401f2d
mov eax, dword [edi + 0x10]
cmp eax, dword [ebp + 8]
jne 0x401f2d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
pop ebp
ret 8
xor al, al
pop esi
pop ebp
ret 8
Function at 0x403df1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41607c]
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.0040d90d
and dword [ebp - 0x14], 0
cmp dword [0x4181ac], 0
mov dword [ebp - 0x18], eax
jne 0x403ea4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403f4c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403f4c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4181ac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4181b0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4181b4], eax
call edi
push eax
call esi
mov dword [0x4181bc], eax
test eax, eax
je 0x403ea4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4181b8], eax
mov eax, dword [0x4181b8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403efd
cmp dword [0x4181bc], ecx
je 0x403efd
push eax
call esi
push dword [0x4181bc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403efd
test ebx, ebx
je 0x403efd
call edi
test eax, eax
je 0x403ef4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x403ef4
test byte [ebp - 8], 1
jne 0x403efd
or dword [ebp + 0x10], 0x200000
jmp 0x403f30
mov eax, dword [0x4181b0]
cmp eax, dword [ebp - 0x18]
je 0x403f30
push eax
call esi
test eax, eax
je 0x403f30
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403f30
mov eax, dword [0x4181b4]
cmp eax, dword [ebp - 0x18]
je 0x403f30
push eax
call esi
test eax, eax
je 0x403f30
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4181ac]
call esi
test eax, eax
je 0x403f4c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403f4e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b13
leave
ret
Function at 0x40614a
Capabilities:
Create thread

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.ESETFunction
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40618c
call eax
push 0
push 0
push 0
push 0x4048a1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x416058]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
ret 8
mov eax, 0x3e6
ret 8

Function at 0x406197
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406413
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41607c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x411424
mov eax, dword [0x41730c]
mov edx, dword [eax + 0xc]
lea edi, [esi + 4]
mov ecx, 0x41730c
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 1
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x406200
xor ecx, ecx
jmp 0x406216
mov ecx, eax
lea ebx, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x406207
sub ecx, ebx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004077c0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406eba
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x41607c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x218], ax
push 0x20a
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0040ee6d
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x406fb8
xor eax, eax
mov word [ebp - 0x428], ax
push 0x208
push 0
lea ecx, [ebp - 0x426]
push ecx
call fcn.0040ee6d
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
push 0x225
push 0x4112c4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x406fb8
push 0
push 0x100
push 2
push 0
push 1
push 0x10000000
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 0xffffffff
je 0x406fb8
lea edx, [ebp - 0x440]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov dword [ebp - 0x430], 0
push 0
lea eax, [ebp - 0x430]
push eax
push 0x10
lea ecx, [ebp - 0x440]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b13
mov esp, ebp
pop ebp
ret