joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e170
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x548
mov eax, dword [0x45a1b4]
push ebx
push esi
push edi
mov dword [esp + 0x54c], eax
xor eax, eax
xor esi, esi
mov word [esp + 0x138], si
mov ecx, 0x81
lea edi, [esp + 0x13a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x138]
push 0x104
push eax
call dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHService::GetWorkDirectory_wchar_t__const__unsigned_short_int_]
mov word [esp + 0x348], si
mov esi, dword [sym.imp.MSVCR71.dll__snwprintf]
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x34a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x140]
push ecx
push str._sPhraseInfo.ini
lea edx, [esp + 0x350]
push 0x104
push edx
stosw word es:[edi], ax
call esi
xor ecx, ecx
mov edx, dword [ebp + 8]
mov dword [esp + 0x32], ecx
mov dword [esp + 0x36], ecx
mov dword [esp + 0x3a], ecx
mov dword [esp + 0x3e], ecx
mov dword [esp + 0x42], ecx
mov dword [esp + 0x46], ecx
mov dword [esp + 0x4a], ecx
xor eax, eax
mov word [esp + 0x4e], cx
mov word [esp + 0x50], ax
mov word [esp + 0x30], ax
mov ecx, 0x3f
lea edi, [esp + 0x52]
rep stosd dword es:[edi], eax
add esp, 0x18
push edx
lea ecx, [esp + 0x18]
mov bl, 1
stosw word es:[edi], ax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x14]
mov dword [esp + 0x55c], 0
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::TrimLeft]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::TrimRight]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
nop
movzx eax, bl
push eax
push str.Phrase_d
lea ecx, [esp + 0x20]
push 0x10
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x340]
push edx
push 0x80
lea eax, [esp + 0x40]
push eax
push 0x445114
lea ecx, [esp + 0x28]
push ecx
push str.ServerChatShort
call edi
cmp word [esp + 0x38], 0
je 0x42e329
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x10]
mov byte [esp + 0x55c], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::TrimLeft]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::TrimRight]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_CWinThread::CommonConstruct]
test eax, eax
lea ecx, [esp + 0x10]
je 0x42e358
inc bl
mov byte [esp + 0x55c], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
cmp word [esp + 0x38], 0
je 0x42e329
cmp bl, 0x10
jb 0x42e280
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor al, al
mov ecx, dword [esp + 0x554]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x54c]
call fcn.0043eeed
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov al, bl
jmp 0x42e335
Function at 0x430400
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x442ef9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x2f80]
lea ebp, [esi + 0x2f80]
mov ecx, ebp
mov dword [esp + 0x14], esi
call dword [eax + 0x14]
mov ecx, dword [esi + 0xc0]
mov edx, dword [ecx]
mov dword [esp + 8], eax
call dword [edx + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc8]
shr eax, 4
test al, 1
je 0x430482
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x14]
cmp ax, 0x64
jb 0x430482
mov eax, dword [esp + 0x28]
pop esi
mov word [eax + 8], 0
mov word [eax + 0xa], 0x64
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
mov eax, dword [ebp]
push ebx
xor esi, esi
push edi
mov ecx, ebp
mov dword [esp + 0x14], esi
call dword [eax + 0x10]
test ax, ax
mov edi, dword [esp + 0x30]
jbe 0x430597
nop
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x10]
movzx ecx, ax
movzx eax, word [edi + 6]
movzx edx, si
add eax, edx
cdq
idiv ecx
cmp word [esp + 0x18], dx
mov word [edi + 8], dx
je 0x43057d
mov eax, dword [ebp]
push edx
mov ecx, ebp
call dword [eax + 0x40]
mov esi, eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x28]
cmp al, 1
je 0x43057d
cmp byte [edi + 4], 1
jne 0x4304f5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
cmp al, 1
je 0x43057d
mov edx, dword [esi]
lea ebx, [edi + 0xa]
push ebx
mov ecx, esi
call dword [edx + 8]
mov esi, eax
test si, si
jbe 0x43057d
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
xor ecx, ecx
mov cx, word [ebx]
xor edx, edx
mov dx, word [edi + 8]
lea eax, [esp + 0x30]
push eax
push 0
mov dword [esp + 0x30], 0
push ecx
mov ecx, dword [esp + 0x28]
push edx
call fcn.0042d9b0
test al, al
je 0x43056b
cmp byte [edi], 1
jne 0x430545
cmp si, 1
je 0x4305b9
cmp byte [edi + 1], 1
jne 0x430551
cmp si, 2
je 0x4305b9
cmp byte [edi + 3], 1
jne 0x43055e
cmp si, word [esp + 0x10]
jb 0x4305b9
cmp byte [edi + 2], 1
jne 0x43056b
cmp si, word [esp + 0x10]
je 0x4305b9
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov esi, dword [esp + 0x14]
mov eax, dword [ebp]
inc esi
mov ecx, ebp
mov dword [esp + 0x14], esi
call dword [eax + 0x10]
cmp si, ax
jb 0x4304a0
mov eax, 0xffff
mov word [edi + 8], ax
mov word [edi + 0xa], ax
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x20]
pop edi
pop ebx
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x437030
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x45a1b4]
mov edx, dword [ebp + 0x14]
push esi
push edi
mov dword [esp + 0x94], eax
mov esi, ecx
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x1f
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, edi
mov dword [ecx], eax
mov dword [ecx + 4], eax
push edx
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
push 0x40
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x445114
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x10], 0
je 0x4370f3
lea ecx, [esp + 0xc]
lea eax, [esp + 0x10]
push ecx
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.00436fc0
lea edx, [esp + 0xc]
push edx
mov ecx, esi
mov dword [edi], eax
call fcn.00436fc0
mov dword [edi + 4], eax
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00436fc0
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [edi + 8], eax
call fcn.00436fc0
mov dword [edi + 0xc], eax
mov al, 1
mov ecx, dword [esp + 0x94]
call fcn.0043eeed
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x94]
xor al, al
call fcn.0043eeed
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x437110
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x45a1b4]
mov edx, dword [ebp + 0x14]
push esi
push edi
mov dword [esp + 0x94], eax
mov esi, ecx
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x1f
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ecx, edi
mov dword [ecx], eax
push 0x40
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x445114
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x10], 0
je 0x4371af
lea ecx, [esp + 0xc]
lea eax, [esp + 0x10]
push ecx
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.00436fc0
lea edx, [esp + 0xc]
push edx
mov ecx, esi
mov dword [edi], eax
call fcn.00436fc0
mov dword [edi + 4], eax
mov al, 1
mov ecx, dword [esp + 0x94]
call fcn.0043eeed
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x94]
xor al, al
call fcn.0043eeed
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4371d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x45a1b4]
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [esp + 0x94], eax
mov esi, ecx
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x1f
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push 0x40
lea ecx, [esp + 0x18]
push ecx
push 0x445114
push edx
push eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x10], 0
je 0x437285
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], ecx
push edx
mov ecx, esi
call fcn.00436fc0
xor ebx, ebx
mov bh, al
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00436fc0
mov bl, al
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
shl ebx, 8
call fcn.00436fc0
movzx edx, al
or ebx, edx
mov dword [edi], ebx
mov al, 1
mov ecx, dword [esp + 0x94]
call fcn.0043eeed
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x94]
xor al, al
call fcn.0043eeed
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43dd30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4437be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call sub.MFC71U.DLL_CWnd::CWnd
xor ebx, ebx
mov dword [esi], 0x4500b8
mov dword [esp + 0x60], ebx
mov dword [esi + 0x94], 0x4500b0
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
push ebx
push ebx
mov eax, 0xffff
push ebx
mov word [esi + 0x56], ax
mov word [esi + 0x58], ax
mov word [esi + 0x5a], ax
push ebx
lea eax, [esi + 0x80]
push eax
mov byte [esi + 0x54], bl
mov dword [esi + 0x90], ebx
call dword [sym.imp.USER32.dll_SetRect]
cmp dword [0x46032c], ebx
jne 0x43ddbd
mov dword [0x46032c], esi
lea ecx, [esp + 0x28]
call fcn.00406d70
mov byte [esp + 0x60], 2
call sub.MFC71U.DLL_AfxGetModuleShortFileName
mov eax, dword [eax + 8]
push 0x2000
push ebx
push ebx
push ebx
push 0xbb
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
call fcn.004044d0
mov ecx, dword [esp + 0x34]
mov eax, 0x55555556
imul ecx
mov eax, dword [esp + 0x38]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
call dword [sym.imp.SkinControl.dll_public:_static_class_CSkinRenderManager____cdecl_CSkinRenderManager::GetInstance_void_]
mov edx, dword [esi + 0x7c]
mov edi, eax
lea eax, [edx + edx - 1]
push eax
push 2
lea ecx, [esp + 0x30]
call fcn.0043d820
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call dword [sym.imp.SkinControl.dll_public:_struct_COLORHSB___thiscall_CSkinRenderManager::RGBToHSB_unsigned_long_int_]
mov ecx, dword [eax]
lea edx, [esi + 0x60]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov eax, dword [eax + 0x14]
lea ecx, [esp + 0x28]
mov dword [edx + 0x14], eax
call fcn.00407690
mov ecx, dword [esp + 0x58]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret
Function at 0x43eca6
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x450210
call fcn.0043f268
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x43ece6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43ece6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x43ecfe
cmp eax, 0x20b
je 0x43eceb
mov dword [ebp - 0x1c], edi
jmp 0x43ed12
cmp dword [ecx + 0x84], 0xe
jbe 0x43ece6
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x43ed0c
cmp dword [ecx + 0x74], 0xe
jbe 0x43ece6
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4603bc], 0xffffffff
or dword [0x4603c0], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x460344]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x460340]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4603b8], eax
call fcn.0043f2c0
call fcn.0043f360
cmp dword [0x45a1e0], edi
jne 0x43ed72
push fcn.0043f360
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0043f34e
push 0x45a084
push 0x45a080
call sub.MSVCR71.dll__initterm
push 0x43f304
call fcn.0043ef36
mov eax, dword [0x46033c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x460338]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x43edc6
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x45a07c
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x43edf0
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x43eeaa
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x43ee5f
cmp ax, di
je 0x43ee06
cmp dword [ebp - 0x20], edi
jne 0x43ee5f
mov ax, word [esi]
cmp ax, di
je 0x43ee1b
cmp ax, 0x20
ja 0x43ee1b
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x43ee06
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x43ee37
movzx eax, word [ebp - 0x54]
jmp 0x43ee3a
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.0043f5b6
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x43ee57
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x43eea4
cmp ax, 0x22
jne 0x43ee70
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x43edf0
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0043f2a3
ret
Function at 0xebc1b0
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.00ebc140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ebc140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ebc140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ebc140
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 0xebcbfa
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 0xebcc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xece87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xebcc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xebcc52
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x272b457e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..rdata
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x4a1720b4
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1bd37040
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1ba94083
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4046f9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x7e52cbc0
xor ecx, ebp
loop 0x404701
pop ebp
ret

Function at 0x40526c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42bfe8], 0x44
push eax
xor eax, eax
push 0x42bfe8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4052a7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405331
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055e0
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405365
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ebe8], eax
jmp 0x4054f9
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405383
test eax, eax
je 0x4054a4
test byte [ebp + 0xc], 2
je 0x4054a4
mov esi, 0x42afe8
push edi
push esi
call fcn.00405a0c
test ebx, ebx
je 0x4053a0
push 0x409328
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4053a6
push edi
call fcn.00405546
cmp byte [edi], 0
jne 0x4053b4
cmp byte [0x42afe8], 0x5c
jne 0x4053bf
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40549a
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040552a
cmp byte [eax], 0
je 0x405405
cmp byte [ebp - 0x18], 0
je 0x405405
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40541b
mov al, byte [esi + 1]
test al, al
je 0x405479
cmp al, 0x2e
jne 0x40541b
cmp byte [esi + 2], 0
je 0x405479
push esi
push ebx
call fcn.00405a0c
test byte [ebp - 0x148], 0x10
je 0x405440
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405479
push dword [ebp + 0xc]
push edi
call fcn.00405331
jmp 0x405479
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405471
test byte [ebp + 0xc], 4
je 0x405469
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push 0
push edi
call fcn.0040575a
jmp 0x405479
inc dword [0x42ebe8]
jmp 0x405479
push edi
push 0xfffffffffffffff2
call fcn.00404daa
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053e3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4054a4
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054f9
cmp dword [ebp - 8], esi
jne 0x4054b9
inc dword [0x42ebe8]
jmp 0x4054f9
push edi
call fcn.00405d07
test eax, eax
je 0x4054f9
push edi
call fcn.004054ff
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054f1
test byte [ebp + 0xc], 4
je 0x4054b1
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push esi
push edi
call fcn.0040575a
jmp 0x4054f9
push edi
push 0xffffffffffffffe5
call fcn.00404daa
pop edi
pop esi
leave
ret 8
Function at 0x10001650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100163f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x14], 0
test esi, esi
jne 0x10001684
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003a18
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x1000169b
lea eax, [edi - 2]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003a18
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
jne 0x100016c5
pop edi
mov eax, 0xfffffffc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003a18
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x14]
push eax
push 1
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x14]
test eax, eax
mov edx, 0xfffffffd
cmove ecx, edx
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10003a18
mov esp, ebp
pop ebp
ret