joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40694d
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 0xffffffff
jbe 0x40696b
push str.out_of_memory_n
call dword [sym.imp.MSVCRT.dll_puts]
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
test esi, esi
je 0x40697e
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [ecx], esi
jmp 0x406980
xor eax, eax
pop esi
ret 8

Function at 0x406f26
Capabilities:
Get common file path
Query environment variable
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
and dword [ebp - 4], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x620]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [0x409f9c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
push eax
push dword [0x409f9c]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esp, 0xc
test eax, eax
jne 0x406faa
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x210]
push eax
call ebx
push dword [0x409f9c]
jmp 0x406fea
push dword [0x409f98]
call edi
push eax
push dword [0x409f98]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x406fef
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x210]
push eax
call ebx
push dword [0x409f98]
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 4]
push esi
lea eax, [ebp + eax*2 - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [ebp - 0x620]
push eax
call ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xf]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00401559
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40710c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x407497
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
je 0x4074ef
cmp edi, 0xffffffff
je 0x4074ef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
je 0x4074e8
cmp eax, 0xffffffff
je 0x4074e8
push dword [esp + 0x10]
push esi
push esi
push 0x8000002
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
ret
Function at 0x41dd20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00410a90
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41ddeb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41ddeb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41dd9e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41dda9
or bh, 8
and edi, 0x8000000
je 0x41ddc4
mov eax, dword [0x457fbc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41ddeb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e1c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41e1eb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
jne 0x41e20f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41e22a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x422c1d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x422c5f
call fcn.004362c6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x422c5f
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x422c56
xor eax, eax
jmp 0x422c67
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00422c6d
pop edi
pop esi
pop ebx
ret 4

Function at 0x425022
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004362c6
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x425053
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00425066
pop edi
pop esi
pop ebx
ret 8
Function at 0x425358
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43c0c0
call fcn.004103b0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004362c6
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x425397
call fcn.004362c6
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x4253a5
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4253b3
or eax, 0xffffffff
jmp 0x42549b
mov ecx, esi
call fcn.004252ce
mov dword [ebp - 0x14], eax
call fcn.00420c1c
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4253ea
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4253ea
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00420bd0
push dword [ebp - 0x14]
call fcn.00420701
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00425066
cmp eax, edi
je 0x42545d
test byte [esi + 0x24], 0x10
je 0x42542b
push 4
mov ecx, esi
pop ebx
call fcn.00423503
test ah, 1
je 0x425423
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00422e74
cmp dword [esi + 0x1c], edi
je 0x42545d
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00423674
jmp 0x42545d
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x425471
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x42548a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x42548a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00425308
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4376c9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4376f7
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x437715
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043762f
jmp 0x437715
mov eax, dword [esi + 0x14]
test eax, eax
je 0x437715
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0043762f
test edi, edi
mov eax, edi
jne 0x4376ff
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401fc0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1390
call fcn.0061e980
mov eax, dword [0x6b7e64]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [0x688451]
movq xmm0, qword [0x688449]
push edi
push 0x3dd
mov word [ebp - 0xbb3], ax
mov edi, ecx
lea eax, [ebp - 0xbb1]
mov byte [ebp - 0xbbc], 0x43
push 0
push eax
movq qword [ebp - 0xbbb], xmm0
call fcn.00623f60
movups xmm0, xmmword [str.C:Program_Files__x86_MicrosoftEdgeApplicationmsedge.exe]
mov eax, dword [0x68848c]
mov dword [ebp - 0x3b4], eax
movzx eax, byte [0x688490]
movups xmmword [ebp - 0x3ec], xmm0
push 0x3ab
movups xmm0, xmmword [0x688464]
mov byte [ebp - 0x3b0], al
lea eax, [ebp - 0x3af]
push 0
movups xmmword [ebp - 0x3dc], xmm0
push eax
movups xmm0, xmmword [0x688474]
movups xmmword [ebp - 0x3cc], xmm0
movq xmm0, qword [0x688484]
movq qword [ebp - 0x3bc], xmm0
call fcn.00623f60
movups xmm0, xmmword [str.C:Program_FilesMicrosoftEdgeApplicationmsedge.exe]
mov eax, dword [0x6884c4]
mov dword [ebp - 0x7a4], eax
movzx eax, word [0x6884c8]
movups xmmword [ebp - 0x7d4], xmm0
mov word [ebp - 0x7a0], ax
movups xmm0, xmmword [0x6884a4]
movzx eax, byte [0x6884ca]
push 0x3b1
movups xmmword [ebp - 0x7c4], xmm0
mov byte [ebp - 0x79e], al
lea eax, [ebp - 0x79d]
movups xmm0, xmmword [0x6884b4]
push 0
push eax
movups xmmword [ebp - 0x7b4], xmm0
call fcn.00623f60
movups xmm0, xmmword [str.C:Program_FilesInternet_Exploreriexplore.exe]
push 0x3b8
lea eax, [ebp - 0xf74]
movups xmmword [ebp - 0xfa4], xmm0
push 0
movups xmm0, xmmword [0x6884dc]
push eax
movups xmmword [ebp - 0xf94], xmm0
movups xmm0, xmmword [0x6884ec]
movups xmmword [ebp - 0xf84], xmm0
call fcn.00623f60
add esp, 0x30
push 1
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jge 0x4021ec
push esi
push 0x200
lea eax, [ebp - 0xbbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
mov al, byte [ebp - 0xbbc]
push str.IsWow64Process
push str.kernel32.dll
mov byte [ebp - 0x3ec], al
mov byte [ebp - 0x7d4], al
mov byte [ebp - 0xfa4], al
mov dword [ebp - 0x1390], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402199
lea eax, [ebp - 0x1390]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x1390], 0
lea eax, [ebp - 0x7d4]
lea esi, [ebp - 0x3ec]
cmove esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4021bf
test al, 0x10
je 0x4021c5
lea esi, [ebp - 0xfa4]
push edi
push esi
push str._s___s_
lea eax, [ebp - 0x138c]
push 0x3e8
push eax
call fcn.00401df0
add esp, 0x14
lea ecx, [ebp - 0x138c]
call fcn.00402200
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0061e015
mov esp, ebp
pop ebp
ret
Function at 0x402200
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
xor eax, eax
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x12], ax
xorps xmm0, xmm0
mov eax, 3
movlpd qword [ebp - 0x50], xmm0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
movlpd qword [ebp - 0x48], xmm0
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push ecx
push 0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x22], xmm0
movlpd qword [ebp - 0x1a], xmm0
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402279
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4025e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push ecx
mov dword [ebp - 4], edx
xor edi, edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x402602
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x402631
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40261d
push dword [ebp + 8]
push dword [ebp - 4]
push eax
call fcn.006239e0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40261d
mov edi, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x403690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4036b9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4036cf
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4036c6
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403702
nop
cmp esi, ecx
jae 0x4036c6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4036f0
cmp esi, ecx
jae 0x4036c6
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403de0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x647090
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6b7e64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
call fcn.004e8dd8
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x403f28
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x403f28
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403f28
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403f28
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403e96
nop dword [eax + eax]
cmp esi, ecx
jae 0x403f28
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403e80
cmp esi, ecx
jae 0x403f28
cmp word [esi], 0
je 0x403f28
movzx eax, word [esi]
lea ecx, [esi + 2]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x403f3e
mov ebx, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [ebx]
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, edi
or edx, ecx
jge 0x403ee6
push edi
mov ecx, ebx
call fcn.00403430
movzx eax, word [esi]
push 0
push 0
push edi
push dword [ebx]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x403f3e
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
mov byte [edi + eax], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401bc0
int3

Function at 0x404470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004e8207
Function at 0x406000
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2738
call fcn.0061e980
mov eax, dword [0x6b7e64]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x2720], edx
mov ebx, ecx
push edi
mov dword [ebp - 0x2724], eax
lea edx, [ecx + 1]
mov dword [eax], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406034
sub ecx, edx
test cl, 1
jne 0x4060ff
mov esi, ebx
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x406050
sub esi, ecx
mov edi, 0
shr esi, 1
je 0x406081
lea eax, [ebp - 0x271c]
add eax, edi
push eax
push str._2hhx
push ebx
call fcn.004042e0
inc edi
add esp, 0xc
add ebx, 2
cmp edi, esi
jl 0x406062
lea eax, [ebp - 0x271c]
mov dword [ebp - 0x2734], esi
mov dword [ebp - 0x2730], eax
lea eax, [ebp - 0x272c]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2734]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x4060f9
mov esi, dword [ebp - 0x272c]
mov edi, dword [ebp - 0x2720]
push esi
push dword [ebp - 0x2728]
push edi
call fcn.006239e0
mov ecx, dword [ebp - 0x2724]
add esp, 0xc
mov byte [edi + esi], 0
mov eax, dword [ebp - 0x272c]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0061e015
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0061e015
mov esp, ebp
pop ebp
ret
Function at 0x440a00
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x440a2d
push esi
lea esi, [edx + 1]
nop dword [eax + eax]
mov ecx, dword [eax + 0x98]
mov edx, esi
xor edx, ecx
and edx, 3
xor edx, ecx
mov dword [eax + 0x98], edx
mov eax, dword [eax + 8]
test eax, eax
jne 0x440a10
pop esi
ret
Function at 0x44d330
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
push 0
push 0x14
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
mov dword [eax], 0
call fcn.00411300
mov esi, eax
add esp, 8
test esi, esi
jne 0x44d365
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x6b8a34], 0
je 0x44d3b0
mov eax, dword [0x6b8b30]
test eax, eax
je 0x44d385
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x44d3b0
mov eax, dword [ebp + 8]
lea edi, [esi + 8]
mov dword [edi], ebx
lea ebx, [esi + 4]
push ebx
push 0
push esi
push 0x414950
push 0
push 0
mov dword [esi + 0xc], eax
call fcn.00633212
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x44d3c3
jmp 0x44d3b6
lea edi, [esi + 8]
lea ebx, [esi + 4]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [edi], 0
jne 0x44d3dc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [ebp + 8]
mov dword [ebx], eax
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret