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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x62e448fb
cmp byte [esi + ebx - 1], 0xa
je 0x62e448cf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x62e4615c], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x62e44960
Capabilities:
Acquire credentials from windows credential manager

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [ebp - 0x30], edx
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x20]
mov dword [ebp - 0x34], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CredEnumerateW]
sub esp, 0x10
test eax, eax
je 0x62e44a51
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x62e44a40
xor ebx, ebx
jmp 0x62e449e4
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0
je 0x62e44a65
mov eax, dword [edx + 0x30]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
je 0x62e44a60
inc ebx
cmp dword [ebp - 0x20], ebx
jbe 0x62e44a40
mov eax, dword [ebp - 0x2c]
lea edi, [ebx*4]
lea esi, [eax + edi]
mov edx, dword [esi]
mov eax, dword [edx + 4]
lea ecx, [eax - 1]
cmp ecx, 1
jbe 0x62e449b0
test byte [0x62e46018], 1
je 0x62e449de
mov dword [esp + 0x10], eax
inc ebx
mov dword [esp + 0xc], str.no_support_for_type__lu_credentials_n
mov dword [esp + 8], str.find_existing_credential
mov dword [esp + 4], 0x62e46018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x20], ebx
ja 0x62e449e4
lea esi, [esi]
nop
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CredFree]
xor eax, eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [eax + edi]
mov edx, dword [esi]
mov ecx, dword [edx + 0x30]
movzx eax, word [ecx]
mov word [ebp - 0x36], ax
test ax, ax
je 0x62e44b20
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x62e44a80
sub eax, ecx
sar eax, 1
cmp dword [ebp - 0x34], eax
jbe 0x62e449de
mov eax, dword [edx + 0x18]
shr eax, 1
cmp eax, dword [ebp + 0xc]
jae 0x62e449de
test byte [0x62e46018], 8
jne 0x62e44b27
movzx edx, word [ebp - 0x36]
mov eax, dword [ebp - 0x30]
jmp 0x62e44ac3
movzx edx, word [ecx]
add eax, 2
add ecx, 2
mov word [eax - 2], dx
test dx, dx
jne 0x62e44ac0
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [esi]
mov edi, dword [ebp + 8]
xor edx, edx
mov eax, dword [eax + 0x18]
and eax, 0xfffffffe
mov word [edi + eax], dx
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CredFree]
mov eax, 1
sub esp, 4
jmp 0x62e44a51
xor eax, eax
jmp 0x62e44a8d
mov eax, ecx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.found_existing_credential_for__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.find_existing_credential
mov dword [esp + 4], 0x62e46018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x1c]
lea esi, [eax + edi]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp - 0x30]
movzx edx, word [ecx]
jmp 0x62e44ac3
Function at 0x62e44bd0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x1c]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
sub esp, 8
test ebx, ebx
je 0x62e44d68
mov eax, dword [esi]
test eax, eax
je 0x62e44d50
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x28], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [esp + 4], 0
mov edi, eax
mov dword [ebp - 0x20], eax
mov dword [esp + 8], edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x62e44d78
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x62e44d40
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
not eax
pop ebx
shr eax, 0x1f
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x62e44d06
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x62e44c40
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x62e44d6a
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x4012a5
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
push 0
push 0x63
push 0x2a
push 0x15
push 0
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
jmp 0x40131c
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0xcfb
jge 0x401330
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x401313
push 0x40
mov ebx, 0x1000
push ebx
mov eax, 0x1400
push eax
push 0
push str.w353hjsfds
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x2c]
call dword [ebp - 0x2c]
mov dword [0x40f3a8], eax
mov dword [ebp + 8], 0x27
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40228d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40eff8
cmp edx, dword [eax]
je 0x4022af
add eax, 8
inc ecx
cmp eax, 0x40f088
jl 0x4022a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40eff8]
jne 0x4023dd
mov eax, dword [0x40f3bc]
cmp eax, 1
je 0x4023b7
test eax, eax
jne 0x4022e0
cmp dword [0x40ef4c], 1
je 0x4023b7
cmp edx, 0xfc
je 0x4023dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402317
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004036d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004037c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40235a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004037c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x405b88
push edi
call fcn.004038d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004036d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004036e0
lea eax, [ebp - 0xa0]
push 0x405b68
push eax
call fcn.004036e0
push dword [esi + 0x40effc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004036e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040383b
add esp, 0x2c
pop edi
jmp 0x4023dd
lea eax, [ebp + 8]
lea esi, [esi + 0x40effc]
push 0
push eax
push dword [esi]
call fcn.004037c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40aedd
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x50bbc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00408830
mov dword [ebp - 0x14], eax
cmp dword [0x50d6c4], edi
jne 0x40afce
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40af5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40b0ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40b0ae
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b0ae
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x50d6c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x50d6c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x50d6cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x50d6d4], eax
test eax, eax
je 0x40afcb
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x50d6d0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40aff3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40afe6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40b008
push 4
pop eax
jmp 0x40b0b0
cmp dword [ebp - 0x14], edi
je 0x40b008
push dword [0x50d6c4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40afed
mov eax, dword [0x50d6d0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40b066
cmp dword [0x50d6d4], esi
je 0x40b066
push eax
call ebx
push dword [0x50d6d4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40b066
test eax, eax
je 0x40b066
call ecx
test eax, eax
je 0x40b05b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40b05b
test byte [ebp - 8], 1
jne 0x40b066
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40b096
mov eax, dword [0x50d6c8]
cmp eax, esi
je 0x40b093
push eax
call ebx
test eax, eax
je 0x40b093
call eax
mov edi, eax
test edi, edi
je 0x40b093
mov eax, dword [0x50d6cc]
cmp eax, esi
je 0x40b093
push eax
call ebx
test eax, eax
je 0x40b093
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x50d6c4]
call ebx
test eax, eax
je 0x40b0ae
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40b0b0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bf3
leave
ret
Function at 0x6f0ad3
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.006f0b52
jae 0x6f0adf
xor ecx, ecx
call fcn.006f0b52
jae 0x6f0b09
xor eax, eax
call fcn.006f0b52
jae 0x6f0b1a
mov al, 0x10
call fcn.006f0b52
adc al, al
jae 0x6f0afb
jne 0x6f0b47
stosb byte es:[edi], al
jmp 0x6f0ae0
call fcn.006f0b5e
dec ecx
loop 0x6f0b26
mov eax, ebp
call fcn.006f0b5c
jmp 0x6f0b48
lodsb al, byte [esi]
shr eax, 1
je 0x6f0b6e
adc ecx, 2
mov ebp, eax
jmp 0x6f0b48
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.006f0b5c
cmp eax, 0x7d00
jae 0x6f0b46
cmp eax, 0x500
jae 0x6f0b47
cmp eax, 0x7f
ja 0x6f0b48
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6f0ae0
pop ebp
ret 8
Function at 0x1292070
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edx
pop eax
push esi
sub eax, ebx
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x6d1dc
lea ebx, [ebx]
inc byte [ecx + 0x100]
movzx edi, byte [ecx + 0x100]
lea ebx, [ebx + 1]
movzx eax, byte [edi + ecx]
add byte [ecx + 0x101], al
movzx esi, byte [ecx + 0x101]
mov dl, byte [edi + ecx]
movzx eax, byte [esi + ecx]
mov byte [edi + ecx], al
mov byte [esi + ecx], dl
movzx eax, byte [ecx + 0x101]
movzx edx, byte [ecx + 0x100]
movzx eax, byte [eax + ecx]
add al, byte [edx + ecx]
mov edx, dword [ebp - 8]
movzx eax, al
movzx eax, byte [eax + ecx]
xor al, byte [edx + ebx - 1]
dec dword [ebp - 4]
mov byte [ebx - 1], al
jne 0x1292090
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1293070
Capabilities:
Packed with generic packer

Disassembly:
push ebp
push esp
pop ebp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push esi
pop eax
shr eax, 4
push edi
inc eax
movzx eax, ax
push 6
push eax
push ebx
push ecx
pop edi
call dword [0x129d010]
test eax, eax
je 0x129311c
push esi
mov edx, eax
push ebx
pop ecx
call fcn.01293680
push eax
pop ebx
add esp, 4
or ebx, ebx
je 0x129311c
movzx ecx, word [ebx]
push 0
push 0
push 0
push 0
push ecx
lea eax, [ebx + 2]
push eax
push 0
push 3
call dword [case.0x1293c78.0]
push eax
pop esi
or esi, esi
js 0x1293125
mov eax, dword [edi]
pushfd
xor ecx, ecx
inc ecx
popfd
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x12930e7
push esi
push edi
pop ecx
call fcn.01293430
movzx eax, word [ebx]
push 0
push 0
push esi
push dword [edi]
push eax
lea eax, [ebx + 2]
push eax
push 0
push 3
call dword [case.0x1293c78.0]
mov ecx, dword [edi]
cmp esi, dword [ecx - 8]
jg 0x1293125
mov dword [ecx - 0xc], esi
mov ecx, dword [edi]
pop edi
mov byte [esi + ecx], 0
pop esi
push 1
pop eax
pushal
popal
pop ebx
pop ebp
ret 8
pop edi
pop esi
sub eax, eax
pop ebx
pop ebp
ret 8
push 0x80070057
call fcn.012937b0
int3

Function at 0x1297c30
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
push ebx
mov ecx, dword [eax + 0x3c]
add ecx, eax
push esi
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
xor edx, edx
add eax, ecx
push edi
or ebx, ebx
je 0x1297c6c
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x1297c64
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x1297c6e
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x1297c54
sub eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1297d40
Capabilities:
Parse pe header

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x1297d54
sub eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x1297d6f
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x401270
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
cmp dword [0x8c6590], 0x594
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
jne 0x4012a3
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomA]
mov ecx, dword [0x4a71c8]
mov edx, dword [0x4a71cc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], edx
call fcn.00401260
mov ebx, dword [ebp - 0x18]
mov eax, dword [0x4a71d0]
mov ecx, dword [0x4a71d4]
add ebx, 0x23f
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], 0x20
jmp 0x4012f0
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x8c6590]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401350
push 0
lea edx, [ebp - 0x830]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
mov eax, dword [ebp - 4]
mov ecx, dword [0x8c6590]
add eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x40136a
mov dword [0x8c5b2c], 0xedeb2e40
jmp 0x40137c
cmp ecx, 0x3eb
jne 0x40137c
mov dword [0x8c54e0], 0
mov ecx, dword [ebp - 0xc]
mov esi, edi
shr esi, cl
lea eax, [ebx + edi]
mov dword [ebp - 0x10], eax
mov dword [0x8c5b28], 0xf4ea3dee
add esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
cmp dword [0x8c6590], 0x9e6
jne 0x4013b4
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor esi, dword [ebp - 4]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov ecx, dword [ebp - 8]
shl ecx, 4
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
xor dword [ebp - 4], edx
shr esi, cl
add esi, dword [ebp - 0x2c]
cmp dword [0x8c6590], 0x121
jne 0x40141d
push str.jiyototupihuyurajefanobarejoxep
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov eax, dword [ebp - 4]
xor eax, esi
add ebx, 0x61c88647
sub edi, eax
sub dword [ebp - 0x1c], 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
jne 0x4012f0
cmp dword [0x8c6590], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x401464
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401570
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get hostname

Disassembly:
push ecx
push 0x4a8368
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a1b98
push eax
mov dword fs:[0], esp
mov eax, dword [0x8c6590]
sub esp, 0x504
push ebx
push esi
push edi
cmp eax, 0x5b1
jne 0x401625
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomW]
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea esi, [ebp - 0x34]
call fcn.00401910
push 0
mov dword [ebp - 4], 0
call fcn.00402a23
add esp, 4
jmp 0x401560
add eax, 0x1134b
push eax
push 0
mov dword [0x8c6590], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [0x8c6590]
lea edx, [ebp - 0x14]
push edx
push 0x40
push ecx
push eax
mov dword [0x8c54e4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
xor esi, esi
lea esp, [esp]
cmp esi, 0x2710
jge 0x401673
lea edx, [ebp - 0x510]
push edx
push 0
call edi
inc esi
cmp esi, 0x1ff49ccc
jl 0x401660
mov ecx, dword [0x8c6590]
xor esi, esi
test ecx, ecx
jbe 0x4016dd
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [0x8c6594]
mov cl, byte [eax + esi + 0x1134b]
mov edx, dword [0x8c54e4]
mov byte [edx + esi], cl
mov ecx, dword [0x8c6590]
cmp ecx, 0xa8
jne 0x4016d8
push 0
lea eax, [ebp - 0x10]
push eax
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ecx, [ebp - 0x110]
push ecx
call ebx
mov ecx, dword [0x8c6590]
inc esi
cmp esi, ecx
jb 0x401694
xor eax, eax
nop
lea edx, [ecx + eax]
cmp edx, 0xe
je 0x401775
inc eax
cmp eax, 0x39621
jl 0x4016e0
call fcn.00401480
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
call edi
cmp esi, 0x26
jne 0x40170d
call fcn.00401540
inc esi
cmp esi, 0x6753f
jl 0x401701
mov esi, dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov edi, dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov ebx, 0x7b
jmp 0x401730
cmp dword [0x8c6590], 0x86
jne 0x40175a
push 0
push str.henanuhasov_xun
push str.ekuposu_nujuf
call esi
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
sub ebx, 1
jne 0x401730
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ExitThread]