joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4064ed
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x40b44a
call fcn.0040a100
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404536
xor ebx, ebx
lea ecx, [ebp - 0x14]
inc ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push str.___L_
add esi, 0x14c0
lea eax, [ebp - 0x18]
push esi
push eax
mov byte [ebp - 4], 3
call fcn.00403f6e
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call dword [0x40c138]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call dword [0x40c124]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.00404572
test eax, eax
je 0x4065c5
cmp dword [ebp + 8], ebx
jne 0x4065d2
push ebx
push ecx
mov eax, esp
mov dword [ebp + 0xc], esp
push str.Command_
lea ecx, [ebp + 0x10]
push ecx
push eax
call fcn.00403f6e
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.0040465c
test eax, eax
je 0x4065c5
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x40cd38
mov byte [ebp - 4], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0040490e
test eax, eax
jne 0x4065c7
xor ebx, ebx
mov dword [ebp - 4], 2
mov esi, ebx
jmp 0x40661e
push str.Command_
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00403f6e
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push eax
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
lea ecx, [ebp + 0xc]
call dword [0x40c124]
lea ecx, [ebp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push edi
call esi
jmp 0x4065c7
lea ecx, [ebp - 0x14]
call dword [0x40c124]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004049d6
lea ecx, [ebp + 0x10]
call dword [0x40c124]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc

Function at 0x406bb8
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1614]
mov eax, dword [edi]
xor ebp, ebp
cmp eax, ebp
je 0x406bda
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x406bda
mov dword [edi], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
lea edi, [esi + 0x1618]
mov eax, dword [edi]
cmp eax, ebp
je 0x406bf6
push ebp
push eax
call ebx
test eax, eax
je 0x406bf6
mov dword [edi], ebp
lea edi, [esi + 0x1610]
mov eax, dword [edi]
cmp eax, ebp
je 0x406c0e
push ebp
push dword [eax + 0x2c]
call ebx
test eax, eax
je 0x406c0e
mov dword [edi], ebp
lea ecx, [esi + 0xc8]
call fcn.004057ac
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x40f434
push ebp
mov ebx, 0x401
push ebx
push dword [esi + 0x14e4]
call edi
push 0x40f428
push 1
push ebx
push dword [esi + 0x14e4]
call edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406e5e
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
push dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
mov edi, eax
lea eax, [edi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406ec7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x10]
mov ebx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push edi
push eax
push ebx
call dword [sym.imp.MSVCR71.dll__mbsnbcpy]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
ret 4

Function at 0x406f1b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x40b51f
call fcn.0040a100
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], esi
call sub.MFC71.DLL_CFile::CFile
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push esi
push 0x1001
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [ebp - 0x24]
call sub.MFC71.DLL_CFile::Open
cmp eax, esi
je 0x406fbe
call sub.MFC71.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
push 0x40f5a8
push 0x98
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
lea ecx, [ebp - 0x24]
call sub.MFC71.DLL_CFile::Write
lea ecx, [ebp - 0x24]
call sub.MFC71.DLL_CFile::Close
xor esi, esi
mov dword [ebp - 4], 2
inc esi
jmp 0x406fbe
lea ecx, [ebp - 0x14]
call dword [0x40c124]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00409fbe
lea ecx, [ebp + 8]
call dword [0x40c124]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4089d7
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40b8ac
call fcn.0040a100
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ebx
push str.CLSID88d969c0_f192_11d4_a65f_0040963251e5InProcServer32
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.0040714a
mov ecx, dword [eax]
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x408a13
call fcn.0040583c
jmp 0x408a15
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
push 1
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
mov esi, eax
mov byte [ebp - 4], 0
je 0x408a3a
call fcn.004077f8
cmp esi, ebx
jne 0x408a95
push 0x40cd38
lea ecx, [ebp - 0x1c]
mov dword [0x41427c], 0x104
call fcn.0040714a
mov ecx, dword [eax]
cmp ecx, ebx
mov byte [ebp - 4], 2
je 0x408a66
call fcn.0040583c
jmp 0x408a68
xor eax, eax
push 0x41427c
mov esi, 0x414178
push esi
push ebx
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
mov edi, eax
mov byte [ebp - 4], 0
je 0x408a91
call fcn.004077f8
cmp edi, ebx
je 0x408aa6
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call sub.MSVCR71.dll_strlen
pop ecx
mov esi, eax
cmp esi, ebx
jl 0x408ac8
cmp byte [esi + 0x414178], 0x5c
je 0x408ac8
dec esi
jmp 0x408ab8
push 0x40f918
lea ecx, [ebp - 0x20]
call fcn.0040714a
mov ecx, dword [eax]
or dword [ebp - 0x14], 1
cmp ecx, ebx
mov byte [ebp - 4], 3
je 0x408aea
call fcn.0040583c
jmp 0x408aec
xor eax, eax
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [esi + 0x414179]
push eax
call dword [sym.imp.MSVCR71.dll_sscanf]
add esp, 0xc
test eax, eax
je 0x408b19
fld qword [ebp - 0x2c]
fcomp qword [0x40f910]
fnstsw ax
test ah, 5
jnp 0x408b19
xor bl, bl
jmp 0x408b1b
mov bl, 1
test byte [ebp - 0x14], 1
je 0x408b2d
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x408b2d
call fcn.004077f8
xor eax, eax
test bl, bl
sete al
jmp 0x408a97
Function at 0x40a2de
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x40fe50
call fcn.0040a1b4
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40a31e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a31e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40a336
cmp eax, 0x20b
je 0x40a323
mov dword [ebp - 0x1c], ebx
jmp 0x40a34a
cmp dword [ecx + 0x84], 0xe
jbe 0x40a31e
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x40a344
cmp dword [ecx + 0x74], 0xe
jbe 0x40a31e
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x414314], 0xffffffff
or dword [0x414318], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x4142cc]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x4142c8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x414310], eax
call fcn.0040a5f2
call fcn.0040a692
cmp dword [0x41408c], ebx
jne 0x40a3aa
push fcn.0040a692
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0040a680
push 0x414024
push 0x414020
call sub.MSVCR71.dll__initterm
push 0x40a636
call fcn.0040a27a
mov eax, dword [0x4142c4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4142c0]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x40a3fe
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x41401c
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40a47c
cmp al, bl
je 0x40a428
cmp dword [ebp - 0x20], ebx
jne 0x40a47c
mov al, byte [esi]
cmp al, bl
je 0x40a438
cmp al, 0x20
ja 0x40a438
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40a428
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x40a454
movzx eax, word [ebp - 0x54]
jmp 0x40a457
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.0040ac3a
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x40a474
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x40a4d1
cmp al, 0x22
jne 0x40a48b
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x40a49e
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x40a416
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040a1ef
ret
Function at 0x401019
Capabilities:
Get common file path

Disassembly:
jmp 0x405642
push 0x558
mov eax, 0x432444
call fcn.0040ac58
mov eax, dword [ebp + 8]
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [ebp - 0x564], eax
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.0040b920
add esp, 0xc
push esi
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x52c], 0xf
mov dword [ebp - 0x530], ebx
mov byte [ebp - 0x540], bl
lea eax, [ebp - 0x540]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x560], esp
push str.ADVID
mov dword [ebp - 4], ebx
call fcn.0040136b
mov edi, 0x440a98
push ebx
mov ecx, edi
call fcn.00401294
push esi
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.0040b920
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x548], 0xf
mov dword [ebp - 0x54c], ebx
mov byte [ebp - 0x55c], bl
lea eax, [ebp - 0x55c]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x560], esp
push str.CasinoName
mov byte [ebp - 4], 1
call fcn.0040136b
push ebx
mov ecx, edi
call fcn.00401294
mov esi, 0x30b
push esi
lea eax, [ebp - 0x523]
push ebx
push eax
mov byte [ebp - 0x524], bl
call fcn.0040b920
mov ecx, dword [ebp - 0x55c]
add esp, 0xc
cmp dword [ebp - 0x548], 0x10
jae 0x405764
lea ecx, [ebp - 0x55c]
cmp dword [ebp - 0x52c], 0x10
mov eax, dword [ebp - 0x540]
jae 0x405779
lea eax, [ebp - 0x540]
push ecx
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x218]
push eax
push str.File:__s_nCWD:__s_nADVID:__s_nCasino_Name:__s_n
lea eax, [ebp - 0x524]
push esi
push eax
call fcn.0040bcac
add esp, 0x1c
push ebx
push str.Program_Information
lea eax, [ebp - 0x524]
push eax
push dword [ebp - 0x564]
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
push 1
lea ecx, [ebp - 0x55c]
call fcn.004012cb
push ebx
push 1
lea ecx, [ebp - 0x540]
call fcn.004012cb
call fcn.0040acdb
ret
Function at 0x401131
Capabilities:
Write file on windows

Disassembly:
jmp 0x405234
push 0x48
mov eax, 0x432382
call fcn.0040ac58
mov eax, dword [ebp + 8]
sub esp, 0x1c
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x4c], esp
push str._BINDATA_
mov dword [ebp - 0x50], eax
call fcn.0040136b
mov esi, 0x440a98
mov ecx, esi
call fcn.004012b7
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jge 0x40527a
xor eax, eax
call fcn.0040acdb
ret
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push dword [ebp - 0x54]
call fcn.0040136b
push edi
mov ecx, esi
call fcn.004010a0
cmp eax, ebx
jl 0x405272
push 0xf
pop ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004010c8
test al, al
jne 0x4052df
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004012cb
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004012cb
jmp 0x405272
push 0x437f5c
push dword [ebp - 0x50]
call fcn.0040b164
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
jne 0x405313
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004012cb
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004012cb
mov eax, esi
jmp 0x405274
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40531f
lea eax, [ebp - 0x2c]
push esi
push dword [ebp - 0x1c]
push 1
push eax
call fcn.0040bc32
push esi
call fcn.0040ae9e
xor esi, esi
add esp, 0x14
inc esi
jmp 0x4052f6

Function at 0x402f07
Capabilities:
Check if file exists
Create directory
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43f330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0040b460
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0040b2f0
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x10
test eax, eax
je 0x402f8a
push 0x5c
inc eax
push eax
jmp 0x402f7d
lea eax, [ebp - 0x108]
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402f76
push 0
lea eax, [ebp - 0x108]
push eax
call edi
test eax, eax
je 0x402ff8
mov byte [esi], 0x5c
push 0x5c
inc esi
push esi
call fcn.0040b2f0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x402f4e
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402fab
push 0
lea eax, [ebp - 0x108]
push eax
call edi
test eax, eax
je 0x402ff8
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040b460
lea eax, [ebp - 0x20c]
push str._tst77357
push eax
call fcn.0040b470
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jle 0x402ff8
lea eax, [ebp - 0x20c]
push eax
call esi
xor eax, eax
inc eax
jmp 0x402ffa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040abe0
leave
ret
Function at 0x40391d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x43f330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x14c]
push esi
push eax
call fcn.0040b920
mov dword [ebp - 0x14c], edi
xor edi, edi
inc edi
mov eax, edi
add esp, 0xc
xor ebx, ebx
cmp dword [0x43f1b0], 0x10
mov word [ebp - 0x11c], ax
mov eax, dword [0x43f19c]
mov dword [ebp - 0x120], edi
jae 0x403976
mov eax, 0x43f19c
push str.CStart.exe
push eax
lea eax, [ebp - 0x108]
push str.__s_s___install
push eax
call fcn.0040b760
add esp, 0x10
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x14c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
jne 0x4039cb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 4
jl 0x403990
xor eax, eax
jmp 0x4039cd
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040abe0
leave
ret
Function at 0x404614
Capabilities:
Create directory
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x43f330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x108]
xor ebx, ebx
push eax
mov byte [ebp - 0x311], bl
mov byte [ebp - 0x108], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x404671
lea eax, [ebp - 0x108]
push str.Program_Files_
push eax
mov byte [ebp - 0x105], bl
call fcn.0040b470
pop ecx
pop ecx
mov byte [ebp - 0x311], 1
push str.SHELL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
je 0x40471c
push str.SHGetSpecialFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40471c
push 0x103
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.0040b920
add esp, 0xc
push 1
push 0x26
lea eax, [ebp - 0x20c]
push eax
push ebx
call esi
test al, al
je 0x40471c
lea eax, [ebp - 0x20c]
push eax
call fcn.00409f10
pop ecx
test eax, eax
je 0x40471c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040b460
lea eax, [ebp - 0x108]
push eax
call fcn.00409f10
mov al, byte [ebp + eax - 0x109]
add esp, 0xc
cmp al, 0x5c
je 0x40471c
cmp al, 0x2f
je 0x40471c
lea eax, [ebp - 0x108]
push 0x437e24
push eax
call fcn.0040b470
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0040b460
lea eax, [ebp - 0x310]
push str.tst77537
push eax
call fcn.0040b470
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
add esp, 0x10
lea eax, [ebp - 0x310]
push eax
call esi
push ebx
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jle 0x40476f
lea eax, [ebp - 0x310]
push eax
call esi
jmp 0x404782
lea eax, [ebp - 0x108]
push 0x437e14
push eax
call fcn.0040b460
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call fcn.00409f10
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
mov ecx, edi
call fcn.004010e1
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x311]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040abe0
leave
ret
Function at 0x40abe0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43f330]
jne 0x40abea
repz ret
jmp fcn.0040e29c

Function at 0x41e694
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43f330]
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.0040dc8b
and dword [ebp - 0x14], 0
cmp dword [0x54f520], 0
mov dword [ebp - 0x18], eax
jne 0x41e747
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41e7ef
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41e7ef
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x54f520], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x54f524], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x54f528], eax
call edi
push eax
call esi
mov dword [0x54f530], eax
test eax, eax
je 0x41e747
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x54f52c], eax
mov eax, dword [0x54f52c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41e7a0
cmp dword [0x54f530], ecx
je 0x41e7a0
push eax
call esi
push dword [0x54f530]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41e7a0
test ebx, ebx
je 0x41e7a0
call edi
test eax, eax
je 0x41e797
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41e797
test byte [ebp - 8], 1
jne 0x41e7a0
or dword [ebp + 0x10], 0x200000
jmp 0x41e7d3
mov eax, dword [0x54f524]
cmp eax, dword [ebp - 0x18]
je 0x41e7d3
push eax
call esi
test eax, eax
je 0x41e7d3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41e7d3
mov eax, dword [0x54f528]
cmp eax, dword [ebp - 0x18]
je 0x41e7d3
push eax
call esi
test eax, eax
je 0x41e7d3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x54f520]
call esi
test eax, eax
je 0x41e7ef
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41e7f1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040abe0
leave
ret
Function at 0x1000176f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x10001844
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x10001844
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x10001844
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x100017ca
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x10001844
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x1000180f
test dl, dl
je 0x1000180b
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x1000180f
add ecx, 2
add eax, 2
test dl, dl
jne 0x100017ef
xor eax, eax
jmp 0x10001814
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10001826
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x10001831
inc esi
cmp esi, ebp
jae 0x10001844
mov edx, dword [esp + 0x10]
jmp 0x100017e5
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x10001aa8
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x10001ab3
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x10001ac7
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x10001acb
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x10001b04
cmp dword [edi + ecx], 0x4550
jne 0x10001b04
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x10001b04
test byte [edi + ecx + 0x16], 2
je 0x10001b04
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x10001b09
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x10001b45
xor eax, eax
jmp 0x10001b28
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x10001b4e
inc edx
movzx eax, dx
cmp eax, edi
jl 0x10001b28
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret