joyce8/EMBER2024-capa huggingface dataset:
Function at 0x312b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x312b1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x312b07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x312b06a
add dl, dl
jne 0x312b089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x312b0dc
xor eax, eax
add dl, dl
jne 0x312b096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x312b17d
add dl, dl
jne 0x312b0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x312b0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x312b0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x312b0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x312b0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x312b075
mov eax, 1
add dl, dl
jne 0x312b0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x312b0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x312b0e1
sub eax, ebx
mov ebx, 1
jne 0x312b128
mov ecx, 1
add dl, dl
jne 0x312b10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x312b119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x312b105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x312b075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x312b13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x312b14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x312b136
cmp eax, 0x7d00
jae 0x312b16d
cmp eax, 0x500
jb 0x312b168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x312b075
cmp eax, 0x7f
ja 0x312b170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x312b075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x312b19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x312b075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x411d10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x417920], ecx
add edx, 1
cmp edx, 0x100
jb 0x411d12
cmp edx, 0x800
jae 0x411dfb
mov edi, edi
mov eax, dword [edx*4 + 0x417520]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x417920]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x41791c], eax
jb 0x411dd0
mov dword [0x41790c], 0x412450
call fcn.00411f40
test eax, eax
jne 0x411e18
mov dword [0x41790c], 0x412370
ret

Function at 0x7c85dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7d2388
cmp edx, dword [eax]
je 0x7c85ff
add eax, 8
inc ecx
cmp eax, 0x7d2418
jl 0x7c85f0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7d2388]
jne 0x7c872d
mov eax, dword [0xbd7ca0]
cmp eax, 1
je 0x7c8707
test eax, eax
jne 0x7c8630
cmp dword [0x7d22b4], 1
je 0x7c8707
cmp edx, 0xfc
je 0x7c872d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c8667
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.007c8fc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c9450
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c86aa
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c9450
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7cdde4
push edi
call fcn.007cb320
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.007c8fc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c8fd0
lea eax, [ebp - 0xa0]
push 0x7cddc4
push eax
call fcn.007c8fd0
push dword [esi + 0x7d238c]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c8fd0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.007cb294
add esp, 0x2c
pop edi
jmp 0x7c872d
lea eax, [ebp + 8]
lea esi, [esi + 0x7d238c]
push 0
push eax
push dword [esi]
call fcn.007c9450
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 0x406492
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4064b6
xor eax, eax
test eax, eax
je 0x4064c8
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4064c8
xor ecx, ecx
jmp 0x4064cb
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4065b7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ce24], 0
push esi
jne 0x4065ee
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065c8
mov dword [ecx*4 + 0x42ce20], eax
inc ecx
cmp ecx, 0x100
jl 0x4065c3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40661f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ce20]
xor eax, esi
inc ecx
dec edx
jne 0x406601
pop edi
not eax
pop esi
ret 0xc

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x690e74d6
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xbad1b12
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10004770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, 0xf7f7f1d9
mov eax, ebx
cmp eax, 0xa6812a4b
mov eax, ebx
nop
cmp eax, 0x3f
mov eax, 0x6c9518a
nop
mov eax, ebx
cmp eax, 0x1a2650c8
mov eax, ecx
mov eax, 0x792ab023
mov eax, ebx
inc eax
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
mov eax, ecx
cmp eax, 0x4ddd970b
mov eax, ebx
mov eax, 0x186daaf6
mov eax, ecx
mov eax, ecx
nop
mov eax, ecx
inc eax
cmp eax, 0xae39b142
mov eax, ebx
mov eax, ecx
mov eax, ecx
cmp eax, 0x52
nop
mov eax, ebx
nop
mov eax, ecx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
inc eax
mov eax, ecx
mov eax, ecx
cmp eax, 0xeab41eb8
mov eax, ebx
mov eax, 0x5ef20d8d
inc eax
mov eax, 0xdabbb974
cmp eax, 0xd1ebfaa5
cmp eax, 0xffffffb1
mov eax, ebx
mov eax, ebx
mov eax, ebx
nop
mov eax, ebx
mov eax, ecx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x1002beb4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc eax
cmp eax, 0x764ae069
mov eax, ebx
cmp eax, 0x9c45aafc
nop
mov eax, 0xbaf65845
inc eax
inc eax
mov eax, ecx
nop
mov eax, ecx
nop
mov eax, ecx
cmp eax, 0x29b615d6
mov eax, ebx
inc eax
cmp eax, 0xb11190f7
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1003e22c], eax
mov eax, 0x3df81b8a
cmp eax, 0x72472414
cmp eax, 0x5972e541
mov eax, ecx
cmp eax, 0x4f8782d8
cmp eax, 0xffffff89
inc eax
mov eax, 0xea88f558
mov eax, ecx
cmp eax, 0x94b84a55
cmp eax, 0x7c
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
jne 0x1000491f
push 0x41030
push str.DllWrap
push str.miss
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
nop
mov eax, ecx
mov eax, 0xee8903f0
nop
cmp eax, 0x7876da16
nop
cmp eax, 0x50
cmp eax, 0xffffffa6
mov eax, ecx
mov eax, ecx
mov eax, 0x905237fe
mov eax, 0x5ea063bc
mov eax, 0x917d3e1f
mov eax, ebx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
je 0x10004931
mov dword [ebp - 4], 1
jmp 0x10004938
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c004]
jne 0x40100a
repz ret
jmp fcn.00401858

Function at 0x4068b8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404555
and dword [ebp - 4], 0
cmp dword [0x41e258], 0
mov ebx, eax
jne 0x406969
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406a1a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406a1a
push eax
call fcn.004044e3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41e258], eax
call esi
push eax
call fcn.004044e3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41e25c], eax
call esi
push eax
call fcn.004044e3
mov dword [esp], 0x41998c
push edi
mov dword [0x41e260], eax
call esi
push eax
call fcn.004044e3
pop ecx
mov dword [0x41e268], eax
test eax, eax
je 0x406969
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004044e3
pop ecx
mov dword [0x41e264], eax
mov eax, dword [0x41e264]
cmp eax, ebx
je 0x4069c1
cmp dword [0x41e268], ebx
je 0x4069c1
push eax
call fcn.0040455e
push dword [0x41e268]
mov esi, eax
call fcn.0040455e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4069c1
test edi, edi
je 0x4069c1
call esi
test eax, eax
je 0x4069b8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4069b8
test byte [ebp - 0xc], 1
jne 0x4069c1
or dword [ebp + 0x10], 0x200000
jmp 0x4069fa
mov eax, dword [0x41e25c]
cmp eax, ebx
je 0x4069fa
push eax
call fcn.0040455e
pop ecx
test eax, eax
je 0x4069fa
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4069fa
mov eax, dword [0x41e260]
cmp eax, ebx
je 0x4069fa
push eax
call fcn.0040455e
pop ecx
test eax, eax
je 0x4069fa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41e258]
call fcn.0040455e
pop ecx
test eax, eax
je 0x406a1a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406a1c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418900
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xc08], eax
cmp esi, 0x182
jne 0x41893a
lea ecx, [ebp - 0xc2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x418958
cmp esi, 0x19f
jne 0x418958
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor edi, edi
test esi, esi
jle 0x418a01
push ebx
mov ebx, dword [ebp - 0xc08]
lea esp, [esp]
lea esi, [ebp - 0xc0c]
mov dword [ebp - 0xc0c], 0
call fcn.004188f0
mov dl, byte [ebp - 0xc0c]
mov eax, dword [ebp - 0xc08]
mov esi, dword [ebp + 0xc]
xor byte [eax + edi], dl
cmp esi, 0xf
jne 0x4189f7
lea eax, [ebp - 0xc10]
push eax
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push str.wepetejef
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push str.wujokinozalucawisuhej
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
lea edx, [ebp - 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebx
push str.naxoj
push 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, esi
jl 0x418970
pop ebx
pop edi
cmp esi, 0x2d
pop esi
jne 0x418a1c
mov dword [0x2769038], 0xa62e7790
mov dword [0x276903c], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x418a30
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x2768f04]
push esi
push edi
mov edi, dword [0x2768d4c]
mov esi, eax
cmp eax, 0x5dd
jne 0x418a52
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x41d010]
call fcn.004188c0
cmp dword [0x2768f04], 0x2f
jne 0x418a6d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
push edi
call fcn.00418900
add esp, 8
cmp dword [0x2768f04], 0x568
pop edi
pop esi
jne 0x418a97
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
ret
Function at 0x401880
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43abb9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
call fcn.004015a0
test eax, eax
jne 0x401911
mov eax, 0x8b
lea esi, [esp + 0x18]
call fcn.00409670
mov dword [esp + 0x28], 0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00420360
mov edx, dword [eax]
add esp, 8
push 0x40010
push 0x44414c
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x401830
push 0
push 0
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 5
push 0x8d
push 0
mov dword [0x457434], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
call edi
test eax, eax
jne 0x40197b
mov ebx, str.2003
mov edi, str.LogInfo.log
call fcn.00420430
mov eax, 2
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
push 2
push 0x8e
push 0
call esi
push eax
call edi
test eax, eax
jne 0x4019b4
mov ebx, str.2004
mov edi, str.LogInfo.log
call fcn.00420430
mov eax, 2
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
cmp dword [0x457424], 2
je 0x4019e4
mov ebx, str.2001
mov edi, str.LogInfo.log
call fcn.00420430
mov eax, 2
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x401d70
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x43c0b7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov ecx, esi
call dword [0x44382c]
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [esp + 0x1c], ebx
call dword [0x44382c]
lea ecx, [esi + 8]
call dword [0x44382c]
lea ecx, [esi + 0xc]
call dword [0x44382c]
lea ecx, [esi + 0x10]
call dword [0x44382c]
lea ecx, [esi + 0x14]
call dword [0x44382c]
lea eax, [esi + 0x18]
push eax
mov byte [esp + 0x20], 5
call fcn.00415430
lea ecx, [esi + 0x30]
push ecx
mov byte [esp + 0x20], 6
call fcn.0040c730
lea edi, [esi + 0x70]
push edi
mov byte [esp + 0x20], 7
call fcn.0040c730
lea ecx, [edi + 0x44]
mov dword [edi], vtable.CMFile.0
call dword [0x44382c]
mov dword [edi + 0x40], ebx
mov dword [edi + 0x48], ebx
lea edx, [esi + 0xbc]
push edx
mov byte [esp + 0x20], 8
call fcn.00414b70
lea edi, [esi + 0x154]
push edi
mov byte [esp + 0x20], 9
call fcn.00415430
lea ecx, [edi + 0x18]
call dword [0x44382c]
lea ecx, [edi + 0x1c]
call dword [0x44382c]
lea ecx, [edi + 0x20]
call dword [0x44382c]
lea ecx, [edi + 0x24]
call dword [0x44382c]
lea ecx, [edi + 0x28]
call dword [0x44382c]
lea ecx, [edi + 0x2c]
call dword [0x44382c]
lea ecx, [edi + 0x34]
call dword [0x44382c]
mov dword [edi + 0x38], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x402980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4554a8]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
mov esi, eax
push 0x87
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4029de
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test ebp, ebp
je 0x4029de
test eax, eax
je 0x4029de
mov edi, dword [esp + 0x14]
push ebp
add edi, 0x70
mov ebx, eax
call fcn.00405360
pop edi
pop esi
pop ebp
pop ebx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x402f10
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x43714b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0x20], 0
mov edi, dword [str.PLUGIN]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
movzx eax, bx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x403052
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test ebp, ebp
je 0x403052
test esi, esi
je 0x403052
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402fb2
mov edx, dword [esp + 0x28]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x403052
lea ecx, [esp + 0x10]
call dword [0x44382c]
push ebx
lea eax, [esp + 0x14]
push 0x444b9c
push eax
mov byte [esp + 0x2c], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::AppendFormat]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x3c]
call fcn.00403210
add esp, 0x14
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x10]
push ebp
push esi
call fcn.00420230
mov ecx, dword [esp + 0x34]
add esp, 8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 8
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 8
Function at 0x403140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x439242
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
mov ecx, edi
call fcn.00403560
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x18]
mov dword [esp + 0x18], 0
call dword [0x443834]
lea ecx, [edi + 0x1c]
push ecx
lea ecx, [esi + 0x1c]
mov byte [esp + 0x18], 1
call dword [0x443834]
lea edx, [edi + 0x20]
push edx
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 2
call dword [0x443834]
lea eax, [edi + 0x24]
push eax
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 3
call dword [0x443834]
lea ecx, [edi + 0x28]
push ecx
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 4
call dword [0x443834]
lea edx, [edi + 0x2c]
push edx
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 5
call dword [0x443834]
mov byte [esp + 0x14], 6
mov eax, dword [edi + 0x30]
lea ecx, [edi + 0x34]
push ecx
lea ecx, [esi + 0x34]
mov dword [esi + 0x30], eax
call dword [0x443834]
mov edx, dword [edi + 0x38]
mov dword [esi + 0x38], edx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x404a20
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, eax
shr edi, 1
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
mov edx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [eax], esi
lea eax, [edi + edi]
push eax
push edx
push eax
xor ecx, ecx
push esi
mov word [eax + esi], cx
call dword [sym.imp.MSVCR90.dll_memcpy_s]
add esp, 0x14
cmp dword [esp + 0x14], 3
jne 0x404aa2
mov eax, str.___F2_.._____:__ZXs4Q
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404a70
sub eax, edx
xor ecx, ecx
push ebx
mov ebx, eax
test edi, edi
jbe 0x404a9a
mov eax, ecx
xor edx, edx
div ebx
inc ecx
movsx ax, byte [edx + str.___F2_.._____:__ZXs4Q]
xor word [esi + ecx*2 - 2], ax
cmp ecx, edi
jb 0x404a82
pop ebx
pop edi
mov al, 1
pop esi
ret 0xc
call fcn.00404f90
pop edi
mov al, 1
pop esi
ret 0xc