joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x1108], eax
je 0x401d53
mov dword [edi + 0x10e4], 0x3f3
xor eax, eax
mov dword [edi + 0x10e8], 0
mov dword [edi + 0x10ec], 0
pop edi
ret
mov eax, dword [0x424c38]
push esi
cmp eax, 0xffffffff
je 0x401eea
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x401d92
pop esi
mov dword [edi + 0x10e4], 0x3f4
xor eax, eax
mov dword [edi + 0x10e8], 0
mov dword [edi + 0x10ec], 0
pop edi
ret
mov eax, dword [0x424c38]
cmp eax, 0xffffffff
je 0x401eea
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x401eea
push dword [0x424c38]
call esi
test eax, eax
je 0x401eea
push ebx
lea ebx, [edi + 0x10cc]
xorps xmm0, xmm0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
cmp dword [edi + 0x10f0], 0
jne 0x401ea0
cmp dword [edi + 0x110c], 0
jne 0x401ea6
push 0x41b344
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [edi + 0x110c], eax
call esi
push str.FDICopy
push dword [edi + 0x110c]
mov dword [edi + 0x1110], eax
call esi
push str.FDIIsCabinet
push dword [edi + 0x110c]
mov dword [edi + 0x1114], eax
call esi
push str.FDIDestroy
push dword [edi + 0x110c]
mov dword [edi + 0x1118], eax
call esi
cmp dword [edi + 0x1110], 0
mov dword [edi + 0x111c], eax
je 0x401e81
cmp dword [edi + 0x1114], 0
je 0x401e81
cmp dword [edi + 0x1118], 0
je 0x401e81
test eax, eax
jne 0x401ea6
mov dword [edi + 0x110c], 0
mov dword [ebx + 0x18], 0x3e8
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
pop ebx
pop esi
xor eax, eax
pop edi
ret
mov eax, dword [edi + 0x1110]
push ebx
push 1
push 0x402c60
push 0x402b70
push 0x402ce0
push 0x402c20
push 0x402be0
push fcn.00407dc0
push fcn.00402b20
call eax
add esp, 0x24
mov dword [edi + 0x10f0], eax
xor ecx, ecx
test eax, eax
setne cl
pop ebx
pop esi
mov eax, ecx
pop edi
ret
pop esi
mov dword [edi + 0x10e4], 0
xor eax, eax
mov dword [edi + 0x10e8], 0xe
mov dword [edi + 0x10ec], 0
pop edi
ret
Function at 0x401f10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401f39
and al, 0x10
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
je 0x401f39
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push ebx
lea ecx, [ebp - 8]
call fcn.004015c0
mov edi, dword [ebp - 8]
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f50
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jle 0x401f73
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x401f73
xor eax, eax
mov word [edi + ecx*2 - 2], ax
push 0x5c
push edi
call fcn.004091eb
add esp, 8
test eax, eax
jne 0x401f97
push edi
lea esi, [eax + 0xf]
call fcn.00407dc0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push edi
mov word [eax], cx
call fcn.00401f10
mov esi, eax
add esp, 4
test esi, esi
jne 0x401fc9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401fc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x401fc9
xor esi, esi
push edi
call fcn.00407dc0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [0x424034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push eax
push 0x424c40
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.00404670
add esp, 0x10
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4020c4
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x402060
mov eax, dword [0x41b2c4]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x402075
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402090
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push eax
mov ecx, ebx
lea eax, [ebp - 0x414]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004020e0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407dc5
mov esp, ebp
pop ebp
ret
Function at 0x4020e0
Capabilities:
Create shortcut via ishelllink
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x424034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push eax
push 0x41cd50
push 1
push 0
push 0x41cd70
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4021fc
mov eax, dword [ebp - 0x210]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x210]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00409880
lea ecx, [ebp - 0x20c]
add esp, 0xc
sub ecx, esi
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x402160
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004091eb
add esp, 8
test eax, eax
je 0x40218a
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x41cd60
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4021f5
mov eax, dword [ebp - 0x214]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407dc5
mov esp, ebp
pop ebp
ret
push str.call_QueryInterface_failt
jmp 0x402201
push str._call_CoCreateInstance_failt
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407dc5
mov esp, ebp
pop ebp
ret
Function at 0x4036d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
lea ecx, [ebp - 8]
push esi
lea eax, [ebx + 0x1134]
push eax
call fcn.00401520
mov eax, dword [ebx + 0x1130]
test eax, eax
je 0x403705
push eax
lea eax, [ebp - 8]
push 0x41b314
push eax
call fcn.00403640
add esp, 0xc
mov ecx, dword [ebx + 0x1128]
xor edx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403710
sub ecx, esi
sar ecx, 1
cmp ecx, dword [ebx + 0x112c]
jae 0x4037d7
test ecx, ecx
je 0x403735
mov edx, dword [ebx + 0x1128]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push dword [ebx + 0x113c]
mov edi, eax
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [ebx + 0x1144], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebx + 0x1144], 0
mov dword [ebx + 0x114c], eax
mov dword [ebx + 0x1148], 0
pop edi
je 0x4037a4
test eax, eax
je 0x4037a4
push dword [ebp - 8]
mov esi, 1
call fcn.00407dc0
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov dword [ebx + 0x10e4], 0x3ec
xor esi, esi
mov dword [ebx + 0x10e8], 0
mov dword [ebx + 0x10ec], 0
call fcn.00407dc0
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x421ea8
lea eax, [ebp - 4]
mov dword [ebp - 4], str.The_string_has_no_terminating_null_character_
push eax
call fcn.0040928c
int3

Function at 0x4037f0
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
movzx esi, word [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 0xc]
push 0x424c40
push str._sTsBrowser.exe
push eax
call fcn.00404670
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
shr si, 4
mov ebx, eax
push 6
inc si
movzx ecx, si
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x403881
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
movzx esi, word [eax]
add eax, 2
push esi
push eax
push edi
call fcn.0040c00f
add esp, 0xc
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x4038a0
mov eax, 0x41b578
mov edx, edi
sub edx, eax
nop word [eax + eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x403890
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407dc5
mov esp, ebp
pop ebp
ret
Function at 0x403960
Capabilities:
Create directory
Get common file path
Get program files directory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
mov dword [ebp - 0x20c], eax
add eax, 4
push esi
push 0
mov ecx, eax
mov dword [ebp - 0x208], eax
call fcn.00401af0
mov esi, dword [0x425298]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0xc
call ebx
push eax
push 0xb
call ebx
push eax
push 1
push 0x80
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
mov eax, dword [ebp - 0x208]
push 1
push 0x80
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [0x425298]
push 0
push 0x32
call ebx
push eax
push 0x31
call ebx
push eax
push 1
push 0x80
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, dword [ebp - 0x208]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x80
push dword [ebx]
call esi
push 0x3e8
push dword [ebx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 0x20c]
push 0xa2c2a
push 0
push 0x406
push eax
mov dword [ecx + 0x20], eax
call esi
push 0x424c40
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, 0x424c40
add eax, 0xfffffffe
mov cx, word [eax + 2]
lea eax, [eax + 2]
test cx, cx
jne 0x403a43
mov ecx, dword [str.TsBrowser_]
mov dword [eax], ecx
mov ecx, dword [0x41b430]
mov dword [eax + 4], ecx
mov ecx, dword [0x41b434]
mov dword [eax + 8], ecx
mov ecx, dword [0x41b438]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x41b43c]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x41b440]
push 0
push 0x424c40
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x403ab0
push 0x424c40
lea eax, [ebp - 0x204]
push str.Create_Dir__s_OK.
push eax
call fcn.00404670
add esp, 0xc
jmp 0x403ad0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x424c40
lea eax, [ebp - 0x204]
push str.Create_Dir__s_Fail.err___d
push eax
call fcn.00404670
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 1
push 0x27c
push dword [ebx]
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00407dc5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403b10
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x128c
call fcn.00407de0
mov eax, dword [0x424034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, ecx
push 0
push 0x29a
push 0x402
push dword [esi + 0x20]
call edi
push 0x27c
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
lea ecx, [ebp - 0x1254]
call fcn.004013d0
lea ecx, [ebp - 0x134]
mov dword [ebp - method.Cabinet::CExtract.virtual_0], 0x41b3dc
call fcn.00401670
lea ecx, [ebp - 0x1254]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
call fcn.00401d20
mov dword [ebp - 0x128c], 0
lea ecx, [ebp - 0x126c]
mov dword [ebp - 0x1288], 0
mov dword [ebp - 0x1284], 0
mov dword [ebp - 0x1280], 0
movups xmm0, xmmword [ebp - 0x128c]
mov dword [ebp - 0x127c], 0
mov dword [ebp - 0x1278], 0
movups xmmword [ebp - 0x122c], xmm0
mov dword [ebp - 0x1274], 0
mov dword [ebp - 0x1270], 0xc8
movups xmm0, xmmword [ebp - 0x127c]
push 0x424c40
movups xmmword [ebp - 0x121c], xmm0
call fcn.004015c0
push str.CABFILE
lea ecx, [ebp - 0x1264]
call fcn.004015c0
push 0x41b2c0
lea ecx, [ebp - 0x125c]
call fcn.004015c0
push 0
lea eax, [ebp - 0x126c]
push eax
lea eax, [ebp - 0x1264]
push eax
push 0x10
lea eax, [ebp - 0x125c]
push eax
lea ecx, [ebp - 0x1254]
call fcn.00402a30
push dword [ebp - 0x125c]
call fcn.00407dc0
push dword [ebp - 0x1264]
call fcn.00407dc0
push dword [ebp - 0x126c]
call fcn.00407dc0
add esp, 0xc
push 0
push 0x390c2
push 0x402
push dword [esi + 0x20]
call edi
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x51762
push 0x402
push dword [esi + 0x20]
call edi
push 0x424c40
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push 0x9ab42
push 0x402
push dword [esi + 0x20]
call edi
push 0x41b594
push dword [esi + 4]
call fcn.00404110
add esp, 8
push 0
push 0xa051a
push 0x402
push dword [esi + 0x20]
call edi
lea eax, [ebp - 0x104]
push eax
push 0x80
call fcn.004037f0
lea eax, [ebp - 0x104]
add esp, 8
add eax, 0xfffffffe
mov cx, word [eax + 2]
lea eax, [eax + 2]
test cx, cx
jne 0x403d01
mov ecx, dword [str..lnk]
mov dword [eax], ecx
mov ecx, dword [0x41b5b4]
mov dword [eax + 4], ecx
mov cx, word [0x41b5b8]
mov word [eax + 8], cx
lea eax, [ebp - 0x104]
push eax
push 0x41b5bc
call fcn.00401fe0
add esp, 8
push 0
push 0xa2c2a
push 0x402
push dword [esi + 0x20]
call edi
push 0x40
push 0x41b5d8
push 0x41b5ec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push dword [ebp - 0x118]
mov dword [ebp - method.Cabinet::CExtract.virtual_0], 0x41b3dc
call fcn.00407dc0
push dword [ebp - 0x120]
call fcn.00407dc0
push dword [ebp - 0x12c]
call fcn.00407dc0
push dword [ebp - 0x134]
call fcn.00407dc0
add esp, 0x10
mov dword [ebp - method.Cabinet::CExtract.virtual_0], 0x41b3b0
lea ecx, [ebp - 0x1254]
call fcn.004016f0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00407dc5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403de0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
test dword [ebp + 0xc], 0x100
je 0x403dfb
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push 0x40
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c7de
mov ecx, dword [ebp - 4]
or edx, 0xffffffff
add esp, 0x18
test eax, eax
cmovne ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e78c
add esp, 0xc
pop ebp
ret 0xc

Function at 0x404440
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4044c6
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x4044b1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
test esi, 0x100
ja 0x4044a3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 8]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x27
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x424034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x60
push 0
mov dword [ebp - 0x410], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x408], 0
call ebx
mov edi, eax
test edi, edi
jne 0x4064c0
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x4064c0
call fcn.00405200
mov esi, eax
jmp 0x406579
push dword [ebp - 0x40c]
push dword [ebp - 0x410]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4064e3
call fcn.00405200
jmp 0x40656c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4064f8
call fcn.00405200
jmp 0x40656c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x406510
mov esi, 0x8007000e
jmp 0x40656e
push eax
lea ecx, [ebp - 0x408]
call fcn.00404fe0
cmp dword [ebp - 0x408], 0
jne 0x40652c
mov esi, 0x8007000e
jmp 0x40656e
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40654c
call fcn.00405200
jmp 0x40656c
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.004062f0
mov esi, eax
test edi, edi
je 0x406579
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x406592
lea ecx, [ebp - 0x408]
call fcn.00405880
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407dc5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407020
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x407039
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407045
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x407040
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x407080
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x407095
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4070a0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10001c1e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
je 0x10001c38
push 0xbbc
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0xc], 0x46fa
cmp dword [ebp - 0xc], 0x4930
jle 0x10001ca3
xor esi, esi
mov dword [ebp - 8], esi
mov ebx, 0x5d2d
xor edi, edi
mov dword [ebp - 4], ebx
xor esi, esi
mov ebx, 0x3851
mov eax, esi
lea ecx, [ebp - 0x24]
cdq
push edx
push eax
call fcn.10001a95
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10001c75
mov eax, dword [eax]
push eax
call fcn.1004af7c
pop ecx
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.10005365
add esi, edi
dec ebx
jne 0x10001c5e
mov esi, dword [ebp - 8]
add edi, esi
dec dword [ebp - 4]
jne 0x10001c57
inc esi
mov dword [ebp - 8], esi
cmp esi, 0x744d
jl 0x10001c4d
mov eax, dword [ebp + 0xc]
and dword [eax], 0
cmp dword [ebp - 0xc], 0x43ca
jge 0x10001cbd
push str.nksip_xdaltx_nngv_xpajq_ltuucbm_fmllxzdzs_sybxhvp_zcsikbz_xfgr_mtwhevn
call fcn.1004af7c
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008fa3
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10062425
call fcn.10061a48
sub esp, 0x10
push ebx
push esi
mov dword [ebp - 0x18], 0x5f2e
mov eax, edx
cmp dword [ebp - 0x18], 0x5fb2
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], eax
jle 0x10009009
xor edi, edi
xor esi, esi
mov dword [ebp - 0x14], esi
mov ebx, esi
mov esi, 0x10d
mov eax, ebx
mov ecx, 0x1007d9f8
xor eax, edi
cdq
push edx
push eax
call fcn.10004c38
dec ebx
dec esi
jne 0x10008fd9
mov esi, dword [ebp - 0x14]
inc esi
mov dword [ebp - 0x14], esi
cmp esi, 0x7c33
jl 0x10008fd2
inc edi
cmp edi, 0x46aa
jl 0x10008fcd
mov eax, dword [ebp - 0x1c]
push eax
xor cl, cl
call fcn.10009059
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x5b79
pop ecx
jge 0x1000902e
mov edx, str.awugjojy_wdotcgi_mrooqs_qtucp_qwvvg_xhttpkle_ojzdrpusq_pikpzxg_hicf_beos
mov ecx, 0x1007d9f8
call fcn.100070aa
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c073
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x10062645
call fcn.10061a48
sub esp, 0x38
push ebx
push esi
mov byte [ebp - 0x18], dl
mov eax, ecx
mov dword [ebp - 0x24], 0x668c
xor esi, esi
cmp dword [ebp - 0x24], 0x68d3
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], eax
jle 0x1000c115
push 0x1ce6
push 0x1b0f
push esi
push 0x1256
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edi, esi
mov dword [ebp - 0x20], esi
mov ebx, esi
mov eax, esi
mov dword [ebp - 0x1c], esi
lea esi, [eax + ebx]
add esi, edi
mov edi, 0x1660
mov eax, esi
mov ecx, 0x1007d9f8
cdq
push edx
push eax
call fcn.10004c38
inc esi
dec edi
jne 0x1000c0cd
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 0x129a
jl 0x1000c0c3
inc ebx
push 0
pop esi
cmp ebx, 0x313a
jl 0x1000c0be
inc edi
mov dword [ebp - 0x20], edi
cmp edi, 0x5392
jl 0x1000c0bc
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov eax, dword [ebp - 0x28]
cmp byte [ebp - 0x18], 0
je 0x1000c129
push ecx
push ecx
push dword [ebp + 0xc]
mov ecx, eax
call fcn.1000dc36
jmp 0x1000c14d
push 0x21
pop edx
lea ecx, [ebp - 0x40]
call fcn.100374de
push ecx
push ecx
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.1000dc36
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.10005431
mov dword [ebp - 4], 1
cmp dword [ebp - 0x24], 0x652a
jge 0x1000c16c
mov edx, str.jse_wchvvudte_ycr_rrhl_xtgg_ehhotd_yvrrunb_ium_umgbaik_xvcceger_lkrmdi_wnyvycf_rhcxa
mov ecx, 0x1007d9f8
call fcn.100070aa
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret