joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487811
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x49c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0047df40
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0047df40
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x487888
cmp word [ecx], dx
je 0x487888
mov eax, dword [0x493754]
push edi
dec eax
push eax
push 0x493640
call fcn.004877b0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4878fb
cmp word [eax], dx
je 0x4878fb
mov eax, dword [edi]
test eax, eax
je 0x4878ac
cmp word [eax], dx
je 0x4878ac
lea eax, [ebp - 0x10]
push eax
call fcn.00487193
jmp 0x4878b5
lea eax, [ebp - 0x10]
push eax
call fcn.0048722e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x487925
mov eax, dword [0x49363c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x493330
call fcn.004877b0
add esp, 0xc
test al, al
je 0x487925
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4878f0
cmp word [eax], di
je 0x4878f0
lea eax, [ebp - 0x10]
push eax
call fcn.00487193
pop ecx
jmp 0x487927
lea eax, [ebp - 0x10]
push eax
call fcn.0048722e
jmp 0x4878ed
mov eax, dword [edi]
test eax, eax
je 0x487912
cmp word [eax], dx
je 0x487912
lea eax, [ebp - 0x10]
push eax
call fcn.00487148
pop ecx
jmp 0x487925
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4879f0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00487635
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4879f0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4879f0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4879f0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48797d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004804b5
test ebx, ebx
je 0x4879eb
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004804b5
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4879f0
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4879f0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0048a581
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4879f2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d99e
leave
ret
Function at 0x48be50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48be7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48be7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x61a760
Capabilities:
Packed with generic packer
Resolve function by parsing pe exports

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18a000]
push edi
mov ebp, esp
lea ebx, [esp - 0x30e80]
xor eax, eax
push eax
cmp esp, ebx
jne 0x61a778
inc esi
inc esi
push ebx
push 0x218077
push edi
add ebx, 4
push ebx
push 0x8f750
push esi
add ebx, 4
push ebx
push eax
mov dword [ebx], 0x40007
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov edx, dword [esp + 0x90]
mov dword [esp + 0x74], 0
mov byte [esp + 0x73], 0
mov ebp, dword [esp + 0x9c]
lea eax, [edx + 4]
mov dword [esp + 0x78], eax
mov eax, 1
movzx ecx, byte [edx + 2]
mov ebx, eax
shl ebx, cl
mov ecx, ebx
dec ecx
mov dword [esp + 0x6c], ecx
movzx ecx, byte [edx + 1]
shl eax, cl
dec eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xa8]
movzx esi, byte [edx]
mov dword [ebp], 0
mov dword [esp + 0x60], 0
mov dword [eax], 0
mov eax, 0x300
mov dword [esp + 0x64], esi
mov dword [esp + 0x5c], 1
mov dword [esp + 0x58], 1
mov dword [esp + 0x54], 1
mov dword [esp + 0x50], 1
movzx ecx, byte [edx + 1]
add ecx, esi
shl eax, cl
lea ecx, [eax + 0x736]
cmp dword [esp + 0x74], ecx
jae 0x61a852
mov eax, dword [esp + 0x78]
mov word [eax], 0x400
add eax, 2
loop 0x61a848
mov ebx, dword [esp + 0x94]
xor edi, edi
mov dword [esp + 0x48], 0xffffffff
mov edx, ebx
add edx, dword [esp + 0x98]
mov dword [esp + 0x4c], edx
xor edx, edx
cmp ebx, dword [esp + 0x4c]
je 0x61b1f8
movzx eax, byte [ebx]
shl edi, 8
inc edx
inc ebx
or edi, eax
cmp edx, 4
jle 0x61a872
mov ecx, dword [esp + 0xa4]
cmp dword [esp + 0x74], ecx
jae 0x61b200
Function at 0x402b40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x48f00c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x81c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.00434c70
add esp, 0xc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x402b8f
push dword [esi + 0x68]
jmp 0x402b92
push dword [esi + 0x64]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x400
lea eax, [ebp - 0x80c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x402c46
push 1
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push 0
push 0x31
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xfffffffffffffff0
push dword [esi + 4]
mov dword [ebp - 0x820], eax
mov edi, 1
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x300
jne 0x402c11
test eax, 0x100
je 0x402c04
xor edi, edi
jmp 0x402c11
test eax, 0x200
mov eax, 2
cmovne edi, eax
mov eax, dword [esi + 0x74]
or edi, 0x24
sub dword [ebp - 0x818], eax
lea eax, [ebp - 0x81c]
push edi
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x820]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0042fe16
mov esp, ebp
pop ebp
ret 4
Function at 0x403d10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x48f00c]
xor eax, esp
mov dword [esp + 0x18], eax
movaps xmm0, xmmword [0x4825d0]
push ebx
push esi
mov ebx, ecx
push edi
push dword [esp + 0x10]
movups xmmword [esp + 0x18], xmm0
mov esi, dword [ebx + 4]
lea eax, [ebx + 0x18c]
push eax
push 0x48fa90
mov dword [ebx + 0x194], 0
call fcn.004016e0
add esp, 8
movzx eax, ax
lea ecx, [ebx + 0x16c]
push eax
push 0
push 0
push 0x50000000
push 0
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.004014f0
push 5
push dword [ebx + 0x170]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
lea eax, [esp + 0x18]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042fe16
mov esp, ebp
pop ebp
ret

Function at 0x404130
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x48f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
push 0
push dword [edi + 0x19c]
mov dword [edi + 0x240], 2
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x170]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [edi + 4]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push dword [edi + 0x48]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x3e8
push 0x3e8
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0042fe16
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405040
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48f00c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x84]
cmp eax, 0xffffffff
jne 0x40507f
push 9
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [esi + 0x24]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 4]
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test edi, edi
jle 0x40510f
lea eax, [edi*2 + 2]
call fcn.0046b0b0
mov ecx, esp
lea eax, [edi + 1]
push eax
push ecx
push dword [esi + 4]
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40510f
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
xor ecx, ecx
test al, 1
je 0x4050e2
mov ecx, 1
jmp 0x4050ec
test al, 2
mov edx, 2
cmovne ecx, edx
test al, 0xb
mov eax, 0x24
cmovne ecx, eax
lea eax, [ebp - 0x18]
or ecx, 0x210
push ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x20]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
lea esp, [ebp - 0x2c]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042fe16
mov esp, ebp
pop ebp
ret 4

Function at 0x405840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405859
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405896
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405892
nop word [eax + eax]
cmp esi, edx
jae 0x405896
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405880
cmp esi, edx
jb 0x40589d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405cc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x48f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x30
mov esi, ecx
push 0
push esi
call fcn.00434c70
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
mov edi, 0x30
call fcn.00434c70
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405d24
cmp dword [ebp - 0x114], 6
jae 0x405d29
mov edi, 0x2c
push ebx
mov dword [esi], edi
mov dword [esi + 4], 0
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov ecx, dword [ebp - 4]
mov dword [esi + 8], eax
xor ecx, ebp
mov dword [esi + 0xc], ebx
mov eax, dword [0x4927b8]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
pop edi
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0
pop esi
pop ebx
call fcn.0042fe16
mov esp, ebp
pop ebp
ret 0x18
Function at 0x406b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0
push edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], 1
push eax
mov esi, edx
mov dword [ebp - 0x20], edi
mov ebx, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push dword [ebp + 8]
movzx eax, si
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x406cb1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x406cb1
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x406cb1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406cb1
push esi
push ebx
push edi
call fcn.00435720
add esp, 0xc
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x406cb1
mov ebx, dword [ebp - 8]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x406c77
lea eax, [ebp - 0x10]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push ebx
mov dword [ebp - 0x10], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
jmp 0x406c79
xor esi, esi
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
je 0x406cb1
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
jne 0x406ca9
push eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
test eax, eax
je 0x406ca9
mov dword [esi + 8], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
test edi, edi
je 0x406cc5
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4085f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x48f00c]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea ecx, [esp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.004290d0
lea ecx, [esp + 0x18]
call fcn.0041f590
push str.GlobalFenbiSetup_Unistall
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408648
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x4086a6
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 8
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
sub esp, 0xc
call fcn.0040c190
mov ecx, esi
call fcn.00415110
mov edx, dword [ebp + 0x14]
mov ecx, ebx
call fcn.00407fd0
mov esi, eax
call fcn.0040c130
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
call fcn.00407b20
mov ecx, dword [esp + 0x7c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042fe16
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40dd20
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x48f00c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0040dc70
mov esi, eax
test esi, esi
jne 0x40de17
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x40dde9
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040dd20
mov esi, eax
test esi, esi
jne 0x40de17
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x40ddb0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40de00
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.0040de60
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40de26
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0042fe16
mov esp, ebp
pop ebp
ret 4
Function at 0x40ea40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46dd96
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x48f00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40eaec
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40eaec
call fcn.0040d090
mov esi, eax
jmp 0x40ebdc
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40eb0f
call fcn.0040d090
jmp 0x40ebcf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40eb2d
call fcn.0040d090
jmp 0x40ebcf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40eb4e
mov esi, 0x8007000e
jmp 0x40ebd1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040d040
jmp 0x40eb78
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x40eb8f
mov esi, 0x8007000e
jmp 0x40ebd1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40ebaf
call fcn.0040d090
jmp 0x40ebcf
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040e8e0
mov esi, eax
test edi, edi
je 0x40ebdc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40ec00
lea ecx, [ebp - 0x418]
call fcn.0040cff0
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042fe16
mov esp, ebp
pop ebp
ret 0x10
Function at 0x411800
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e1db
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x48f00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00434c70
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x220]
mov ecx, esi
push eax
call fcn.00411910
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x220]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411894
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4118eb
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004047b0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.0040f230
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4118eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fe16
mov esp, ebp
pop ebp
ret
Function at 0x413730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x48f00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x41385e
cmp byte [ebx + 0x3d], 0
je 0x41385e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x413789
xor al, al
jmp 0x413860
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004098f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4137ef
sub eax, 1
je 0x4137f3
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x413846
xor bl, bl
jmp 0x413848
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x413828
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0043b2d1
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x4137eb
cmp byte [ebx + 0x3d], 0
je 0x413846
test esi, esi
jne 0x4137b1
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00409bf0
jmp 0x4137ae
mov bl, 1
cmp ecx, 0x10
jb 0x41385a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00409f90
mov al, bl
jmp 0x413860
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fe16
mov esp, ebp
pop ebp
ret

Function at 0x413ec0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d746
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x48f00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004303fb
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004312e7
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret