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

Disassembly:
push 0x424
mov eax, 0x40bed7
call fcn.0040954e
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x405721
call fcn.00402660
mov esi, eax
jmp 0x4057f9
push dword [ebp - 0x41c]
push esi
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40573f
call fcn.00402660
jmp 0x4057f0
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x405735
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x41c], esi
cmp eax, esi
jae 0x405772
mov esi, 0x8007000e
jmp 0x4057f2
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call main
mov dword [ebp - 4], 1
jmp 0x4057a6
cmp dword [ebp - 0x418], 0
je 0x405768
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x405735
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call main
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x405812
lea ecx, [ebp - 0x418]
call fcn.004058ff
lea ecx, [ebp - 0x428]
call fcn.004025ac
mov eax, esi
call fcn.004095a7
ret 0x10
Function at 0x40879f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x401c38]
jne 0x4093a3
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x40f438], eax
mov dword [0x40f434], ecx
mov dword [0x40f430], edx
mov dword [0x40f42c], ebx
mov dword [0x40f428], esi
mov dword [0x40f424], edi
mov word [0x40f450], ss
mov word [0x40f444], cs
mov word [0x40f420], ds
mov word [0x40f41c], es
mov word [0x40f418], fs
mov word [0x40f414], gs
pushfd
pop dword [0x40f448]
mov eax, dword [ebp]
mov dword [0x40f43c], eax
mov eax, dword [ebp + 4]
mov dword [0x40f440], eax
lea eax, [ebp + 8]
mov dword [0x40f44c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x40f388], 0x10001
mov eax, dword [0x40f440]
mov dword [0x40f33c], eax
mov dword [0x40f330], 0xc0000409
mov dword [0x40f334], 1
mov eax, dword [0x401c38]
mov dword [ebp - 0x328], eax
mov eax, dword [0x40f114]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x40f380], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x401e28
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x40f380], 0
jne 0x40948f
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x408a8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x408a9b
pop dword [ebp - 8]
mov eax, 0x408a9b
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xba70aef1
add dword [ebp - 0x18], 0x93e1965a
mov dword [ebp - 0x14], 0x838604f8
add dword [ebp - 0x14], 0xaead474d
mov dword [ebp - 0x10], 0xbce0f4c2
sub dword [ebp - 0x10], 0x7094b094
mov dword [ebp - 0xc], 0xab0ca7
add dword [ebp - 0xc], 0xff54f359
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x196e8dd9
add dword [ebp - 0x18], 0x5b03db7d
mov dword [ebp - 0x14], 0x30a8e235
sub dword [ebp - 0x14], 0xef3c80c0
mov dword [ebp - 0x10], 0xd5b8d94f
sub dword [ebp - 0x10], 0x72496ce3
mov dword [ebp - 0xc], 0xf64cd384
sub dword [ebp - 0xc], 0xf64cd384
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x391873d8
add eax, 0xc7279d28
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x35530
push 0
call eax
mov ecx, 0xf02a48b0
sub ecx, 0xf02a0d51
mov ebx, eax
mov edi, 0x413e00
add edi, dword [ebp - 8]
mov edx, 0x88af3b2f
xor dword [ebp - 4], esi
mov esi, dword [edi]
xor dword [ebp - 4], esi
add esi, edx
sub dword [ebp - 4], edx
mov dword [ebx], esi
xor dword [ebp - 4], ecx
add ebx, 0xd3ed66e1
add ebx, 0x2c129923
add edi, 0xd4216dd
add edi, 0xf2bde927
loop 0x408ba7
add eax, 0xb96f8b9e
sub eax, 0xb96eab4f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xcf1f7ca3
add ecx, 0x3120835d
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x409220
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x40d450
call fcn.0040981f
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x40f758], ebx
jne 0x408fc3
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x40f74c
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x408ffd
cmp eax, esi
jne 0x408ff0
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x409000
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x408fd7
xor esi, esi
inc esi
mov eax, dword [0x40f748]
cmp eax, esi
jne 0x409013
push 0x1f
call sub.msvcr100.dll__amsg_exit
pop ecx
jmp 0x40904e
mov eax, dword [0x40f748]
test eax, eax
jne 0x409048
mov dword [0x40f748], esi
push 0x40125c
push 0x401250
call sub.msvcr100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40904e
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x409160
mov dword [0x40f32c], esi
mov eax, dword [0x40f748]
cmp eax, esi
jne 0x409072
push 0x40124c
push 0x401220
call sub.msvcr100.dll__initterm
pop ecx
pop ecx
mov dword [0x40f748], 2
cmp dword [ebp - 0x20], ebx
jne 0x40907f
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x40f75c], ebx
je 0x4090a0
push 0x40f75c
call main
pop ecx
test eax, eax
je 0x4090a0
push ebx
push 2
push ebx
call dword [0x40f75c]
mov eax, dword [sym.imp.msvcr100.dll__wcmdln]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp ecx, 0x20
ja 0x409101
cmp cx, bx
je 0x4090bc
cmp dword [ebp - 0x1c], ebx
jne 0x409101
movzx ecx, word [eax]
cmp cx, bx
je 0x4090d1
cmp ecx, 0x20
ja 0x4090d1
add eax, 2
mov dword [ebp - 0x24], eax
jmp 0x4090bc
test byte [ebp - 0x40], 1
je 0x4090dd
movzx ecx, word [ebp - 0x3c]
jmp 0x4090e0
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x40f328], eax
cmp dword [0x40f31c], ebx
jne 0x409146
push eax
call dword [sym.imp.msvcr100.dll_exit]
cmp ecx, 0x22
jne 0x409111
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
add eax, 2
jmp 0x4090a7
cmp dword [0x40f32c], ebx
jne 0x409154
call dword [sym.imp.msvcr100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40f328]
call fcn.00409864
ret
call main
jmp 0x408f95
Function at 0x401540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], 0xfffffc19
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0xc], 0
jle 0x401641
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4015b4
mov dword [ebp - 0x14], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x401641
push 0
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push 2
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4015ed
mov dword [ebp - 0x14], 0xfffffffc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x401641
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401619
mov dword [ebp - 0x14], 0xfffffffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
je 0x401633
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x40163a
mov dword [ebp - 0x14], 0
jmp 0x401641
cmp dword [ebp - 0x18], 0xffffffff
je 0x401651
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x402850
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4452a0]
jne 0x40285a
repz ret
jmp fcn.00404ffc
Function at 0x40af05
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.00406073
and dword [ebp - 4], 0
cmp dword [0x4473d0], 0
mov ebx, eax
jne 0x40afb6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b067
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x433d40
push edi
call esi
test eax, eax
je 0x40b067
push eax
call fcn.00406001
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4473d0], eax
call esi
push eax
call fcn.00406001
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4473d4], eax
call esi
push eax
call fcn.00406001
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4473d8], eax
call esi
push eax
call fcn.00406001
pop ecx
mov dword [0x4473e0], eax
test eax, eax
je 0x40afb6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406001
pop ecx
mov dword [0x4473dc], eax
mov eax, dword [0x4473dc]
cmp eax, ebx
je 0x40b00e
cmp dword [0x4473e0], ebx
je 0x40b00e
push eax
call fcn.0040607c
push dword [0x4473e0]
mov esi, eax
call fcn.0040607c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b00e
test edi, edi
je 0x40b00e
call esi
test eax, eax
je 0x40b005
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b005
test byte [ebp - 0xc], 1
jne 0x40b00e
or dword [ebp + 0x10], 0x200000
jmp 0x40b047
mov eax, dword [0x4473d4]
cmp eax, ebx
je 0x40b047
push eax
call fcn.0040607c
pop ecx
test eax, eax
je 0x40b047
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b047
mov eax, dword [0x4473d8]
cmp eax, ebx
je 0x40b047
push eax
call fcn.0040607c
pop ecx
test eax, eax
je 0x40b047
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4473d0]
call fcn.0040607c
pop ecx
test eax, eax
je 0x40b067
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b069
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ccf0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0x55b
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x57a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x57b
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x57c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x57d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], 0
jmp 0x40cd7e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x445f78], 0
je 0x40cdc9
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x445f78]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x445fc8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40cd75
mov esp, ebp
pop ebp
ret

Function at 0x40cdd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push 5
push 0x55b
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x57a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x57b
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x57c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x57d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], 0
jmp 0x40ce5e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x445f78], 0
je 0x40cea9
push 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x445f78]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x445fc8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40ce55
mov esp, ebp
pop ebp
ret
Function at 0x40db30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40db76
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x40dbb2
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40dba4
mov dword [ebp - 8], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40dbb2
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40dcd0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x4452a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1b0], 0x94
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x1a0], 2
jne 0x40dd21
cmp dword [ebp - 0x1ac], 5
jb 0x40dd21
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x114], eax
jmp 0x40dd93
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.winhlp32.exe
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40dd80
push 0x6a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40dd93
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00402850
mov esp, ebp
pop ebp
ret
Function at 0x417f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4452a0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x238], ax
push 0x22e
push 0
lea ecx, [ebp - 0x236]
push ecx
call fcn.00402860
add esp, 0xc
mov dword [ebp - 0x240], 0xffffffff
cmp dword [ebp + 0xc], 0
jle 0x418011
lea edx, [ebp - 0x238]
push edx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x238]
push ecx
call fcn.00401400
add esp, 0x10
test eax, eax
jne 0x41800d
mov dword [ebp - 0x240], 0
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x418011
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402850
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42ba20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4452a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x445f74], 0xffffffff
je 0x42bb1a
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x40c]
push ecx
movzx edx, word [ebp - 0x40e]
push edx
movzx eax, word [ebp - 0x410]
push eax
movzx ecx, word [ebp - 0x412]
push ecx
movzx edx, word [ebp - 0x416]
push edx
movzx eax, word [ebp - 0x418]
push eax
push str.__04d__02d__02d__02d:_02d:_02d__
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea edx, [ebp + 0xc]
mov dword [ebp - 0x420], edx
mov eax, dword [ebp - 0x420]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x3f2]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jle 0x42bb09
mov dword [ebp - 0x424], 0
push 0x441c68
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea ecx, [ebp - 0x424]
push ecx
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [0x445f74]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x420], 0
jmp 0x42bb1a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402850
mov esp, ebp
pop ebp
ret

Function at 0x42bb30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc24
mov eax, dword [0x4452a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x445f74], 0xffffffff
je 0x42bc63
lea eax, [ebp - 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x400
push 0
lea ecx, [ebp - 0xc08]
push ecx
call fcn.00402860
add esp, 0xc
movzx edx, word [ebp - 0xc0c]
push edx
movzx eax, word [ebp - 0xc0e]
push eax
movzx ecx, word [ebp - 0xc10]
push ecx
movzx edx, word [ebp - 0xc12]
push edx
movzx eax, word [ebp - 0xc16]
push eax
movzx ecx, word [ebp - 0xc18]
push ecx
push 0x441c00
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc20], eax
mov ecx, dword [ebp - 0xc20]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x7dc]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
mov dword [ebp - 0xc1c], eax
cmp dword [ebp - 0xc1c], 0
jle 0x42bc52
mov dword [ebp - 0xc24], 0
push 0
push 0
push 0x3ff
lea ecx, [ebp - 0xc08]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x808]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x441bfc
lea eax, [ebp - 0xc08]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea ecx, [ebp - 0xc24]
push ecx
lea edx, [ebp - 0xc08]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xc08]
push eax
mov ecx, dword [0x445f74]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc20], 0
jmp 0x42bc63
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402850
mov esp, ebp
pop ebp
ret
Function at 0x42c120
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 1
jne 0x42c146
mov dword [ebp - 4], str.RootCIMV2
jmp 0x42c14d
mov dword [ebp - 4], str.RootWMI
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x210], 0
jne 0x42c1a0
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x20c], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x20c], 0
je 0x42c1a0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x20c], 1
je 0x42c1a0
mov ecx, dword [ebp - 0x18]
mov dword [ecx], str._CoInitializeEx_Call_Error
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
jmp 0x42c315
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x210], 0
jne 0x42c217
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x20c], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x20c], 0
je 0x42c20a
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x20c], 0x80010119
je 0x42c20a
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], str._CoInitializeSecurity_Call_Error
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 2
jmp 0x42c315
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x210], 1
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x214], 0
jne 0x42c27b
mov dword [ebp - 0x10], 7
mov ecx, dword [ebp - 0x18]
add ecx, 0x214
push ecx
push 0x433df0
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0x433ec0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x20c], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x20c], 0
je 0x42c27b
mov eax, dword [ebp - 0x18]
mov dword [eax], str._CoCreateInstance_Call_Error
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 3
jmp 0x42c315
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x218], 0
jne 0x42c30e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
add eax, 0x218
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x214]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x214]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 0xc]
call ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x20c], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x20c], 0
je 0x42c304
mov ecx, dword [ebp - 0x18]
mov dword [ecx], str._ConnectServer_Call_Error
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x218], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x42c315
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4