joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d1b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x18]
test edi, edi
je 0x405ddc
mov eax, dword [esi + 0x1c]
mov ebx, dword [ebp + 0xc]
mov edx, dword [esi + 0x20]
lea ecx, [eax + ebx]
cmp ecx, edx
jb 0x405dc5
lea eax, [edx + edx]
cmp eax, ecx
cmovbe eax, ecx
xor edi, edi
push edi
push eax
push edi
push 4
push edi
push 0xffffffffffffffff
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x405d6f
mov eax, 0x300
jmp 0x405e07
push dword [ebp + 0xc]
push edi
push edi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x405d92
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405d65
push dword [esi + 0x20]
push dword [esi + 0x18]
push edi
call fcn.0045c3a0
add esp, 0xc
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x18], edi
push ebx
push dword [ebp + 8]
lea ecx, [edi + eax]
push ecx
call fcn.0045c3a0
add esp, 0xc
mov eax, ebx
add dword [esi + 0x1c], ebx
jmp 0x405e07
mov eax, dword [esi]
test eax, eax
je 0x405dfe
xor edi, edi
lea ecx, [ebp - 4]
push edi
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
jmp 0x405e07
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x406047
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x64]
test ecx, ecx
je 0x406091
mov eax, dword [edi + 0x6c]
mov esi, dword [edi + 0x68]
cmp eax, esi
jae 0x4060cc
sub esi, eax
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.0045c3a0
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x58]
add dword [edi + 0x6c], esi
add dword [edi + 0x54], esi
push esi
call fcn.00405831
add esp, 0x10
mov dword [edi + 0x58], eax
mov eax, esi
jmp 0x4060ce
cmp dword [edi + 0x5c], 0
je 0x4060c5
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4060cc
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x58]
add dword [edi + 0x54], esi
push esi
call fcn.00405831
pop ecx
jmp 0x40608a
mov dword [edi + 0xc], 0x1000000
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x4069b2
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4a8404]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x406858
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406ab4
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x406ab4
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x406ab4
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x406ab4
push str..ACP
push ebx
call fcn.0046565c
pop ecx
pop ecx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 8
push eax
mov dword [ebp - 0x18], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.00406951
sub esp, 0xc
call fcn.00407483
mov edi, 0x4acc7c
test eax, eax
js 0x406a90
call fcn.004075ec
mov ecx, edi
call fcn.00458d30
push str.IsRunAdmin
mov ecx, edi
call fcn.00457e20
test eax, eax
jne 0x406aa8
cmp dword [0x4acc78], ebx
je 0x406aae
push esi
call fcn.00407792
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459f73
leave
ret 0x10
Function at 0x406aee
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x4a8404]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0xc]
push str.RtlGetVersion
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x10]
push str.ntdll.dll
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x128], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 9
mov dword [ebp - 0x124], eax
lea edi, [ebp - 0x158]
pop eax
mov ecx, eax
xor ebx, ebx
xor eax, eax
push 0x118
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.0045c240
mov eax, dword [ebp - 0x124]
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
test eax, eax
je 0x406b8c
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
jns 0x406ba1
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406d2e
test esi, esi
je 0x406bb6
mov edi, dword [ebp - 0x128]
lea esi, [ebp - 0x120]
push 0x47
pop ecx
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx esi, word [ebp - 0xc]
xor ecx, ecx
cmp dword [ebp - 0x140], 0x21d8
push 2
sete cl
pop edx
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x110], edx
jne 0x406cd4
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jne 0x406c13
cmp dword [ebp - 0x118], ebx
jne 0x406d07
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0x11
jmp 0x406d07
cmp eax, 6
jne 0x406c79
mov eax, dword [ebp - 0x118]
cmp eax, 3
jne 0x406c34
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0xf
jmp 0x406d07
cmp eax, edx
jne 0x406c49
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0xd
jmp 0x406d07
cmp eax, 1
jne 0x406c5e
xor ebx, ebx
cmp byte [ebp - 6], al
setne bl
add ebx, 0xb
jmp 0x406d07
test eax, eax
jne 0x406d07
xor ebx, ebx
cmp byte [ebp - 6], 1
push 9
setne bl
pop eax
add ebx, eax
jmp 0x406d07
cmp eax, 5
jne 0x406cca
mov eax, dword [ebp - 0x118]
cmp eax, edx
jne 0x406cb9
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x406c98
push 8
jmp 0x406cb0
cmp byte [ebp - 6], 1
jne 0x406cae
push 9
pop eax
cmp word [ebp - 0x158], ax
jne 0x406cae
push 6
jmp 0x406cb0
push 7
mov ecx, dword [ebp - 0x124]
pop ebx
jmp 0x406d07
cmp eax, 1
jne 0x406cc2
push 6
jmp 0x406cd1
test eax, eax
jne 0x406d07
push 5
jmp 0x406cd1
cmp eax, 4
ja 0x406d07
push 4
pop ebx
jmp 0x406d07
cmp dword [ebp - 0x110], 1
jne 0x406d07
cmp dword [ebp - 0x11c], 4
jne 0x406d07
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x406cf5
xor ebx, ebx
inc ebx
jmp 0x406d07
cmp eax, 0xa
jne 0x406cfe
mov ebx, edx
jmp 0x406d07
push 3
cmp eax, 0x5a
pop edx
cmove ebx, edx
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x406d13
mov dword [eax], ebx
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x406d1f
mov dword [eax], esi
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x406d2b
mov dword [eax], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459f73
leave
ret
Function at 0x406d3d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x3c
lea eax, [ebp - 0x3c]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.0045c240
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x3c]
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], str.runas
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
push eax
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
leave
ret

Function at 0x4074ff
Capabilities:
Create process on windows

Disassembly:
push 0xc
mov eax, 0x48443c
call fcn.0045ae1e
call fcn.0040210e
push eax
lea ecx, [ebp - 0x18]
call fcn.004018d5
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040210e
push eax
lea ecx, [ebp - 0x14]
call fcn.004018d5
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040c34b
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040cdda
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004021b2
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
call fcn.00406aee
add esp, 0x10
lea ecx, [ebp - 0x10]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
je 0x407576
push str.Shell64.dll
jmp 0x40757b
push str.Shell.dll
call fcn.00401b39
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00401632
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004021b2
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push edi
push str._s___s_
push eax
call fcn.0040c8af
mov esi, dword [ebp - 0x18]
add esp, 0xc
push ebx
push ebx
push esi
push str.regsvr32.exe
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
lea ecx, [edi - 0x10]
cmp eax, 0x20
setg bl
call fcn.004021b2
lea ecx, [esi - 0x10]
call fcn.004021b2
mov eax, ebx
call fcn.0045ade7
ret 4
Function at 0x4078e3
Capabilities:
Check if file exists

Disassembly:
push 0x10
mov eax, 0x4844a2
call fcn.0045ae1e
xor edx, edx
lea ecx, [ebp - 0x18]
call fcn.00409fa4
and dword [ebp - 4], 0
push str.AppTest.txt
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040cefe
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.004021b2
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004021b2
test esi, esi
je 0x407943
push str.ExecAutoUpdate
call fcn.00409c6d
pop ecx
push 0x493e0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00407a71
xor esi, esi
inc esi
test eax, eax
je 0x4079c2
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.00409fa4
push str.Dumps.zip
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
call fcn.0040cefe
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.004021b2
push dword [ebp - 0x10]
call fcn.00407cae
test eax, eax
je 0x40799c
push dword [ebp - 0x10]
call fcn.00407fa5
mov eax, dword [0x4acc74]
test eax, eax
je 0x4079b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x4acc74], 0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004021b2
call fcn.004079de
test eax, eax
je 0x4079d6
push esi
call fcn.00407aec
call fcn.00407a59
call fcn.0045ade7
ret 4

Function at 0x4079de
Capabilities:
Check mutex on windows

Disassembly:
push 8
mov eax, 0x4844c5
call fcn.0045ae1e
push str.6789Zip
lea ecx, [ebp - 0x10]
call fcn.00401b39
push str._Update
lea eax, [ebp - 0x10]
xor esi, esi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], esi
push eax
call fcn.0040cefe
add esp, 0xc
push dword [eax]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
add ecx, 0xfffffff0
mov dword [0x4acc70], esi
call fcn.004021b2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004021b2
test esi, esi
jne 0x407a41
xor eax, eax
jmp 0x407a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
call fcn.0045ade7
ret

Function at 0x407a71
Capabilities:
Check mutex on windows

Disassembly:
push 8
mov eax, 0x4844c5
call fcn.0045ae1e
push str.6789Zip
lea ecx, [ebp - 0x10]
call fcn.00401b39
push str._UpLoadDumps
lea eax, [ebp - 0x10]
xor esi, esi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], esi
push eax
call fcn.0040cefe
add esp, 0xc
push dword [eax]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
add ecx, 0xfffffff0
mov dword [0x4acc74], esi
call fcn.004021b2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004021b2
test esi, esi
jne 0x407ad4
xor eax, eax
jmp 0x407ae6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
call fcn.0045ade7
ret
Function at 0x40810e
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4a8404]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x228
xor esi, esi
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.0045c240
add esp, 0xc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40815b
xor eax, eax
jmp 0x4081df
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4081d6
push ebx
mov ebx, dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
je 0x408195
lea eax, [ebp - 0x20c]
push str.PopMgr.exe
push eax
call fcn.0045bedb
pop ecx
pop ecx
test eax, eax
jne 0x4081a9
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40816e
jmp 0x4081d5
push ebx
push esi
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4081d5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
neg eax
push ebx
sbb esi, esi
and esi, 0xe
add esi, 0xfffffff2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00459f73
leave
ret 4
Function at 0x408251
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x278
mov eax, 0x484646
call fcn.0045ae52
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x274], ebx
call fcn.0040210e
push eax
lea ecx, [ebp - 0x268]
call fcn.004018d5
and dword [ebp - 4], 0
push esi
call fcn.00401a02
pop ecx
push eax
push esi
lea ecx, [ebp - 0x268]
call fcn.00401e19
mov edi, dword [ebp - 0x268]
cmp dword [edi - 0xc], 0
je 0x408496
push str..
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.0040cefe
add esp, 0xc
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x27c]
add ecx, 0xfffffff0
mov dword [ebp - 0x270], eax
call fcn.004021b2
cmp dword [ebp - 0x270], 0xffffffff
je 0x408496
mov edi, dword [ebp - 0x270]
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x264]
call fcn.00401b39
push 0x49c5d0
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.00408c97
push 0x49d220
lea ecx, [ebp - 0x264]
call fcn.00408c97
test eax, eax
je 0x40845c
push 0x49d218
lea ecx, [ebp - 0x264]
call fcn.00408c97
test eax, eax
je 0x40845c
test byte [ebp - 0x260], 0x10
je 0x4083aa
push esi
lea ecx, [ebp - 0x26c]
call fcn.00401b39
mov byte [ebp - 4], 2
lea eax, [ebp - 0x26c]
push dword [ebp - 0x264]
push esi
push str._s_s_
push eax
call fcn.0040c8af
add esp, 0x10
mov ecx, 0x4ac550
push ebx
push dword [ebp - 0x26c]
call fcn.00408251
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.004021b2
jmp 0x40845c
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax - 0xc]
lea eax, [ecx - 4]
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x264]
call fcn.0040c44c
mov esi, dword [ebp - 0x280]
push 0x49d224
push esi
call fcn.0045fbd1
pop ecx
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 1
mov ebx, eax
call fcn.004021b2
test ebx, ebx
jne 0x408450
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.0040ce3f
add esp, 0xc
mov ebx, dword [ebp - 0x274]
mov byte [ebp - 4], 4
mov esi, dword [ebx + 4]
cmp dword [ebx + 8], esi
je 0x408437
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004012d8
add eax, 0x10
mov dword [esi], eax
add dword [ebx + 4], 4
pop ecx
jmp 0x408440
push eax
push esi
mov ecx, ebx
call fcn.00408cf3
mov ecx, dword [ebp - 0x284]
lea ecx, [ecx - 0x10]
call fcn.004021b2
jmp 0x408456
mov ebx, dword [ebp - 0x274]
mov esi, dword [ebp - 0x278]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.004021b2
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4082fc
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x268]
lea ecx, [edi - 0x10]
call fcn.004021b2
call fcn.0045adfc
ret 8
Function at 0x4084a6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
push 4
pop eax
test esi, esi
lea ebx, [esi - 0x348]
cmove ebx, eax
push eax
mov dword [ebp - 0x14], ebx
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindow]
and dword [ebp - 8], 0
mov edi, eax
and dword [ebp - 0xc], 0
xor eax, eax
inc eax
mov dword [ebp - 0x10], edi
push eax
push dword [ebx]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4085e1
lea eax, [esi + 0x1c]
cmp dword [ebp - 4], 0
je 0x408545
mov ebx, dword [ebp - 4]
lea edi, [esi + 0x1c]
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x408539
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 8]
call dword [eax + 4]
inc dword [ebp - 8]
test eax, eax
jne 0x408535
xor ebx, ebx
test ebx, ebx
jne 0x40850f
mov edi, dword [ebp - 0x10]
lea eax, [esi + 0x1c]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x14]
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x4085ce
test eax, eax
je 0x4085e1
cmp dword [esi + 0x20], 0x10
jne 0x408581
mov eax, dword [esi + 0x1c]
cmp eax, dword [ebx]
jne 0x408581
mov eax, dword [esi + 0x24]
push 1
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi]
lea ecx, [esi + 0x1c]
push ecx
mov ecx, esi
call dword [eax]
test eax, eax
jne 0x4085a3
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [esi + 0x20]
cmp eax, 0x12
je 0x4085e1
sub eax, 0xf
je 0x4085ce
sub eax, 0x91
je 0x4085ce
sub eax, 0x78
je 0x4085ce
sub eax, 0xe8
je 0x4085ce
and dword [ebp - 8], 0
mov dword [ebp - 4], 1
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
lea eax, [esi + 0x1c]
jne 0x408503
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [esi + 0x20], 0x12
jne 0x408600
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp - 0xc], 0
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x408fd0
Capabilities:
Get hostname

Disassembly:
push 0x168
mov eax, 0x484729
call fcn.0045ae52
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x16c], eax
call fcn.0040210e
push eax
lea ecx, [ebp - 0x168]
call fcn.004018d5
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040210e
push eax
lea ecx, [ebp - 0x164]
call fcn.004018d5
mov byte [ebp - 4], 1
call fcn.0040210e
push eax
lea ecx, [ebp - 0x160]
call fcn.004018d5
mov byte [ebp - 4], 2
lea edi, [ebp - 0x20]
xor eax, eax
mov ecx, 0x1000
stosd dword es:[edi], eax
mov dword [ebp - 0x170], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x170]
push eax
push ecx
lea ecx, [ebp - 0x164]
call fcn.00401cb3
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x164]
call fcn.0040ca11
push esi
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.0040cefe
add esp, 0xc
push eax
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 3
call fcn.0040cdda
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x16c]
lea ecx, [ecx - 0x10]
call fcn.004021b2
push 3
push dword [ebp - 0x160]
lea eax, [ebp - 0xd8]
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xdc], eax
call fcn.004013a3
mov byte [ebp - 4], 4
push dword [ebp - 0xdc]
call fcn.004014a1
pop ecx
push eax
push dword [ebp - 0xdc]
lea ecx, [ebp - 0x168]
call fcn.0040185b
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 2
cmp dword [ebp - 0xdc], eax
je 0x409108
push dword [ebp - 0xdc]
call fcn.0045fb49
pop ecx
lea eax, [ebp - 0xb0]
push eax
call fcn.00402219
mov eax, dword [ebp - 0x168]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00402adf
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00402b85
mov esi, str.0123456789ABCDEF
lea edi, [ebp - 0x34]
add esp, 0x18
mov edx, ebx
xor eax, eax
movsd dword es:[edi], dword [esi]
push 8
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
cmp edx, 0x21
jae 0x409182
movzx ecx, byte [ebp + ebx - 0x20]
mov eax, ecx
and ecx, 0xf
shr eax, 4
inc ebx
mov al, byte [ebp + eax - 0x34]
mov byte [ebp + edx - 0x58], al
mov al, byte [ebp + ecx - 0x34]
mov byte [ebp + edx - 0x57], al
add edx, 2
cmp ebx, 0x10
jb 0x409157
lea eax, [ebp - 0x158]
mov dword [ebp - 0x15c], eax
lea ecx, [ebp - 0x15c]
push 3
lea eax, [ebp - 0x58]
push eax
call fcn.0040156a
mov byte [ebp - 4], 5
push dword [ebp - 0x15c]
call fcn.00401a02
pop ecx
push eax
push dword [ebp - 0x15c]
lea ecx, [ebp - 0x160]
call fcn.00401e19
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x15c], eax
je 0x4091df
push dword [ebp - 0x15c]
call fcn.0045fb49
pop ecx
mov esi, dword [ebp - 0x174]
lea ecx, [ebp - 0x160]
push 0x10
push 0xa
push esi
call fcn.0040c44c
mov ecx, dword [ebp - 0x160]
lea ecx, [ecx - 0x10]
call fcn.004021b2
mov ecx, dword [ebp - 0x164]
add ecx, 0xfffffff0
call fcn.004021b2
mov ecx, dword [ebp - 0x168]
add ecx, 0xfffffff0
call fcn.004021b2
mov eax, esi
call fcn.0045adfc
ret