joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d655
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x463b79
call fcn.00437cc0
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0041f279
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41d6a0
call fcn.0041f279
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41d6b1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41d6be
or eax, 0xffffffff
jmp 0x41d81a
mov ecx, esi
call fcn.0041d19c
mov dword [ebp - 0x14], eax
call fcn.0041a386
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41d73c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41d73c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41d73c
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00418f47
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41d73c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41d73c
mov ecx, ebx
call fcn.0041db04
test eax, eax
je 0x41d73c
push 0
mov ecx, ebx
call fcn.0041db1f
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0041bd51
push dword [ebp - 0x14]
call fcn.0041a2de
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041d45d
xor edi, edi
cmp eax, edi
je 0x41d799
test byte [esi + 0x3c], 0x10
je 0x41d783
push 4
pop edi
mov ecx, esi
call fcn.0041d9eb
test ax, 0x100
je 0x41d779
push 5
pop edi
push edi
mov ecx, esi
call fcn.00419e74
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41d799
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041dcee
or dword [ebp - 4], 0xffffffff
jmp 0x41d7c4
cmp dword [ebp - 0x28], edi
je 0x41d7d2
push 1
mov ecx, ebx
call fcn.0041db1f
cmp dword [ebp - 0x2c], edi
je 0x41d7e2
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41d7fb
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41d7fb
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041d1d6
cmp dword [esi + 0x58], edi
je 0x41d817
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00437d65
ret
Function at 0x41d884
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x41d8a4
cmp dword [edi + 0x54], 0
jne 0x41d8a4
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041f279
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041d84b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x41f7a5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x481670]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x41f7e2
push 0x46df40
push 4
push eax
call fcn.004350fd
push eax
call fcn.00402b00
add esp, 0x10
jmp 0x41f7f4
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41f85f
push edi
call fcn.004351a4
mov edi, dword [eax]
call fcn.004351a4
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0043800e
add esp, 0x18
mov ebx, eax
call fcn.004351a4
cmp dword [eax], 0
je 0x41f83f
call fcn.004351a4
push dword [eax]
call fcn.00417c1e
pop ecx
jmp 0x41f846
call fcn.004351a4
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41f85f
cmp ebx, esi
jae 0x41f85f
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x41f861
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00433115
leave
ret
Function at 0x4215fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x421640
call fcn.0041f279
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x421640
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x421683
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x42166c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42166c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x421680
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x423614
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x42361d
xor eax, eax
jmp 0x423686
cmp dword [esp + 8], 0
jne 0x423629
call fcn.0041e582
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00435a68
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x423664
push dword [esi + 0x10]
call fcn.00436064
test eax, eax
pop ecx
jne 0x423664
mov esi, dword [esi + 0xc]
call fcn.004351b7
push esi
push dword [eax]
push 1
call fcn.00424cc7
push dword [esi + 0x10]
call fcn.00436093
test eax, eax
pop ecx
je 0x423683
push dword [esi + 0x10]
call fcn.00438e9e
push eax
call fcn.00402b00
pop ecx
pop ecx
jmp 0x423652
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x42368f
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x423699
call fcn.0041e582
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00435be2
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4236c6
mov esi, dword [esi + 0xc]
call fcn.004351b7
push esi
push dword [eax]
push 1
call fcn.00424cc7
pop esi
ret 8

Function at 0x433115
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x481670]
jne 0x43311f
repz ret
jmp fcn.0043b538
Function at 0x4357cc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x435809
cmp dword [ebp + 0x14], edi
je 0x435809
cmp ecx, edi
jne 0x435810
call fcn.004351a4
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004335cf
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x435824
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x435845
cmp ebx, 0xffffffff
je 0x435834
push ebx
push edi
push ecx
call fcn.004364e0
add esp, 0xc
cmp esi, edi
je 0x4357f1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4357f1
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x435861
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x435868
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x435959
test word [esi + 0xc], 0x10c
je 0x4358bc
mov eax, dword [esi + 4]
test eax, eax
je 0x4358bc
jl 0x4359ba
cmp ebx, eax
mov edi, ebx
jb 0x43588d
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x435961
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00433603
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x435951
cmp ebx, dword [ebp - 0xc]
jb 0x435929
cmp dword [ebp - 0xc], 0
je 0x4358e6
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4358db
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4358e2
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4358f1
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4358f1
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43598d
push eax
push dword [ebp - 8]
push esi
call fcn.00438ceb
pop ecx
push eax
call fcn.00441b68
add esp, 0xc
test eax, eax
je 0x4359cc
cmp eax, 0xffffffff
je 0x4359ba
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x435951
push esi
call fcn.00441487
cmp eax, 0xffffffff
pop ecx
je 0x4359be
cmp dword [ebp - 4], 0
je 0x43598d
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x435870
mov eax, dword [ebp + 0x14]
jmp 0x43580b
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x435978
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004364e0
add esp, 0xc
call fcn.004351a4
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x435801
cmp dword [ebp + 0xc], 0xffffffff
je 0x4359a3
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004364e0
add esp, 0xc
call fcn.004351a4
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x435801
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43580b
or dword [esi + 0xc], 0x10
jmp 0x4359be
Function at 0x43a2ac
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x481690]
je 0x43a2c7
inc edi
cmp edi, 0x17
jb 0x43a2b8
cmp edi, 0x17
jae 0x43a447
push ebp
push 3
call fcn.00446314
cmp eax, 1
pop ecx
je 0x43a413
push 3
call fcn.00446314
test eax, eax
pop ecx
jne 0x43a2fb
cmp dword [0x4814cc], 1
je 0x43a413
cmp ebx, 0xfc
je 0x43a446
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x485588
push ebp
call fcn.0043b738
add esp, 0xc
test eax, eax
je 0x43a331
push esi
push esi
push esi
push esi
push esi
call fcn.004334d3
add esp, 0x14
push 0x104
mov esi, 0x4855a1
push esi
push 0
mov byte [0x4856a5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43a375
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043b738
add esp, 0xc
test eax, eax
je 0x43a375
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004334d3
add esp, 0x14
push esi
call fcn.0043b7a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43a3ba
push esi
call fcn.0043b7a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x48589c
push 0x4705fc
sub ecx, eax
push ecx
push eax
call fcn.0043ebf6
add esp, 0x14
test eax, eax
je 0x43a3ba
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004334d3
add esp, 0x14
jmp 0x43a3bc
xor esi, esi
push 0x4705f8
push ebx
push ebp
call fcn.0043eb33
add esp, 0xc
test eax, eax
je 0x43a3dc
push esi
push esi
push esi
push esi
push esi
call fcn.004334d3
add esp, 0x14
push dword [edi*8 + 0x481694]
push ebx
push ebp
call fcn.0043eb33
add esp, 0xc
test eax, eax
je 0x43a3fe
push esi
push esi
push esi
push esi
push esi
call fcn.004334d3
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00446157
add esp, 0xc
jmp 0x43a446
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43a446
cmp ebp, 0xffffffff
je 0x43a446
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x481694]
push dword [esi]
call fcn.0043b7a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x446157
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043ae70
xor ebx, ebx
cmp dword [0x486090], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44622d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44630d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44630d
push eax
call fcn.0043ae02
mov dword [esp], 0x471c48
push edi
mov dword [0x486090], eax
call esi
push eax
call fcn.0043ae02
mov dword [esp], 0x471c34
push edi
mov dword [0x486094], eax
call esi
push eax
call fcn.0043ae02
mov dword [0x486098], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00434bbb
test eax, eax
pop ecx
pop ecx
je 0x4461fb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004334d3
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44622d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043ae02
cmp eax, ebx
pop ecx
mov dword [0x4860a0], eax
je 0x44622d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043ae02
pop ecx
mov dword [0x48609c], eax
mov eax, dword [0x48609c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4462b2
cmp dword [0x4860a0], ecx
je 0x4462b2
push eax
call fcn.0043ae79
push dword [0x4860a0]
mov esi, eax
call fcn.0043ae79
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4462b2
cmp edi, ebx
je 0x4462b2
call esi
cmp eax, ebx
je 0x44627f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44627f
test byte [ebp - 0x18], 1
jne 0x4462b2
lea eax, [ebp - 0x10]
push eax
call fcn.00434bf2
test eax, eax
pop ecx
je 0x44629a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004334d3
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4462a9
or dword [ebp + 0x10], 0x200000
jmp 0x4462ed
or dword [ebp + 0x10], 0x40000
jmp 0x4462ed
mov eax, dword [0x486094]
cmp eax, dword [ebp - 8]
je 0x4462ed
push eax
call fcn.0043ae79
cmp eax, ebx
pop ecx
je 0x4462ed
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4462ed
mov eax, dword [0x486098]
cmp eax, dword [ebp - 8]
je 0x4462ed
push eax
call fcn.0043ae79
cmp eax, ebx
pop ecx
je 0x4462ed
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x486090]
call fcn.0043ae79
cmp eax, ebx
pop ecx
je 0x44630d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44630f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44cd1e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x481670]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0044ccb3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004364e0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x44cd6d
cmp dword [ebp - 0x1c], 5
jb 0x44cd85
jmp 0x44cd81
cmp dword [ebp - 0x10], 1
jne 0x44cd85
cmp dword [ebp - 0x1c], 4
ja 0x44cd81
jne 0x44cd85
cmp dword [ebp - 0x18], 0
jbe 0x44cd85
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x472c38
call fcn.0044cba4
test eax, eax
jge 0x44cda6
mov byte [0x486460], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00433115
add ebp, 0x78
leave
ret

Function at 0x44ce50
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx ecx, word [eax]
test cx, cx
je 0x44ce94
add eax, 2
cmp cx, 0x22
jne 0x44ce81
push 0x22
push eax
call fcn.0043838a
add esp, 8
test eax, eax
je 0x44ce94
cmp word [eax + 2], 0
je 0x44ce94
add eax, 4
ret
push 0x20
push eax
call fcn.0043838a
add esp, 8
test eax, eax
je 0x44ce94
add eax, 2
ret
mov eax, 0x4740fc
ret

Function at 0x44cea0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x464ea8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x481670]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
call fcn.0041e3a5
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x44cee5
push 0x80004005
call fcn.00402f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x1c], edi
jge 0x44cf1f
push 0x104
lea ecx, [esp + 0x10]
call fcn.004035b0
mov esi, dword [esp + 0xc]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp esi, edi
jne 0x44cf33
xor eax, eax
jmp 0x44cf51
mov eax, esi
lea edx, [eax + 2]
jmp 0x44cf40
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x44cf40
sub eax, edx
sar eax, 1
js 0x44cfb7
cmp eax, dword [esi - 8]
jg 0x44cfb7
mov dword [esi - 0xc], eax
push ecx
mov word [esi + eax*2], di
add esi, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
push esi
call fcn.00402d30
add eax, 0x10
mov dword [edi], eax
mov edi, dword [esp + 0x2c]
add esp, 4
push edi
call fcn.0040d810
add esp, 8
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44cfa3
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
push 0x80070057
call fcn.00402f90
int3
Function at 0x44d360
Capabilities:
Get common file path

Disassembly:
sub esp, 0x62c
mov eax, dword [0x481670]
xor eax, esp
mov dword [esp + 0x628], eax
push ebx
push esi
mov esi, dword [esp + 0x638]
push edi
mov edi, dword [esp + 0x640]
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push 0x104
mov dword [esp + 0x14], ebx
mov word [esp + 0x430], bx
mov word [esp + 0x18], bx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x18]
push edx
mov word [esp + 0x228], bx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [esp + 0x428]
push eax
push ebx
push edi
lea ecx, [esp + 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [esp + 0x428]
push edx
mov ecx, esi
call fcn.004036e0
mov ecx, dword [esp + 0x634]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00433115
add esp, 0x62c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x464c01
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
mov eax, dword [0x481670]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x28]
push eax
mov ecx, esi
mov dword [esp + 0x24], ebx
call fcn.004036e0
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], 1
je 0x44d4c7
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esp, [esp]
push eax
call ebp
cmp eax, 0xffffffff
je 0x44d47c
test al, 0x10
jne 0x44d4c7
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0044df90
add esp, 8
push eax
mov ecx, esi
mov dword [esp + 0x24], 1
call fcn.00405aa0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x20], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44d4c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x44d470
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x44e430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x464d28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x481670]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x3c]
xor ebp, ebp
cmp ecx, ebp
je 0x44e46c
push ebp
push 0x4740fe
call fcn.0040c4a0
mov eax, dword [esp + 0x40]
cmp eax, ebp
je 0x44e476
mov dword [eax], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x34]
push 2
push ebp
push eax
mov dword [esp + 0x38], ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebp
je 0x44e5d1
mov ecx, dword [esp + 0x38]
push 0xa
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebp
je 0x44e507
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x44e507
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x44e505
push esi
push edi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push 0
push esi
lea ecx, [esp + 0x1c]
call fcn.0044e380
push esi
push ebp
push 0
lea ecx, [esp + 0x20]
call fcn.00416ce0
push eax
call fcn.00435390
mov eax, dword [esp + 0x4c]
add esp, 0xc
test eax, eax
je 0x44e505
mov dword [eax], esi
xor ebp, ebp
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
je 0x44e5a7
mov ebx, dword [esp + 0x3c]
cmp ebx, ebp
je 0x44e580
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
jne 0x44e52a
xor eax, eax
jmp 0x44e530
mov eax, dword [esp + 0x1c]
sub eax, ecx
push eax
mov ecx, ebx
call fcn.0040c470
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
mov edi, eax
jne 0x44e546
xor esi, esi
jmp 0x44e552
mov eax, dword [esp + 0x1c]
sub eax, ecx
cmp eax, ebp
mov esi, eax
ja 0x44e55b
call fcn.004335f3
mov ecx, dword [esp + 0x18]
push esi
push ecx
push edi
call fcn.00435390
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp ecx, ebp
jne 0x44e572
xor eax, eax
jmp 0x44e578
mov eax, dword [esp + 0x1c]
sub eax, ecx
push eax
mov ecx, ebx
call fcn.00407290
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x44e591
push eax
call fcn.004175c8
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x44e5b8
push eax
call fcn.004175c8
add esp, 4
mov eax, 2
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x44e5e2
push eax
call fcn.004175c8
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret