joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401320
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4584a0]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.0042e940
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x10]
xor eax, eax
sub ecx, 1
je 0x401412
sub ecx, 1
jne 0x40145b
mov ecx, dword [esp + 4]
cmp ecx, 4
jne 0x401392
mov eax, ecx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0042ea4d
add esp, 0x98
ret
cmp ecx, 5
jne 0x4013f6
mov eax, dword [esp + 8]
sub eax, 0
je 0x4013dc
sub eax, 1
je 0x4013c2
sub eax, 1
jne 0x4013f8
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0042ea4d
add esp, 0x98
ret
mov eax, 6
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0042ea4d
add esp, 0x98
ret
mov eax, 5
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0042ea4d
add esp, 0x98
ret
jbe 0x40145b
mov eax, 8
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0042ea4d
add esp, 0x98
ret
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x401456
cmp ecx, 0xa
je 0x40143c
cmp ecx, 0x5a
jne 0x40145b
lea eax, [ecx - 0x57]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0042ea4d
add esp, 0x98
ret
mov eax, 2
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0042ea4d
add esp, 0x98
ret
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0042ea4d
add esp, 0x98
ret
Function at 0x402134
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, ecx
mov ebp, 0x10
cmp dword [esi + 0x1c], ebp
push edi
jb 0x402147
mov eax, dword [esi + 8]
jmp 0x40214a
lea eax, [esi + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
mov eax, dword [esi + 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
test edi, edi
jne 0x402277
mov eax, dword [esi + 0x5c]
sub eax, 1
je 0x402238
sub eax, 2
je 0x4021e1
sub eax, 1
jne 0x40226c
cmp dword [esi + 0x54], ebp
jb 0x40219a
mov eax, dword [esi + 0x40]
jmp 0x40219d
lea eax, [esi + 0x40]
push eax
call fcn.0042ec74
add esp, 4
cmp dword [esi + 0x38], ebp
mov dword [esp + 0x10], eax
jb 0x4021c8
mov esi, dword [esi + 0x24]
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push esi
push edx
jmp 0x402264
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
add esi, 0x24
push esi
push edx
jmp 0x402264
mov edi, dword [esi + 0x50]
push ebx
shr edi, 1
push edi
call fcn.00409e98
add esp, 4
cmp dword [esi + 0x54], ebp
mov ebx, eax
mov eax, dword [esi + 0x50]
jb 0x4021ff
mov ecx, dword [esi + 0x40]
jmp 0x402202
lea ecx, [esi + 0x40]
push ebx
call fcn.004014e0
add esp, 4
cmp dword [esi + 0x38], ebp
jb 0x402215
mov esi, dword [esi + 0x24]
jmp 0x402218
add esi, 0x24
mov eax, dword [esp + 0x10]
push edi
push ebx
push 3
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
mov edi, eax
call fcn.0042e7ab
add esp, 4
pop ebx
jmp 0x40226c
cmp dword [esi + 0x54], ebp
mov ecx, dword [esi + 0x50]
jb 0x402245
mov eax, dword [esi + 0x40]
jmp 0x402248
lea eax, [esi + 0x40]
cmp dword [esi + 0x38], ebp
jb 0x402252
mov esi, dword [esi + 0x24]
jmp 0x402255
add esi, 0x24
add ecx, 1
push ecx
mov ecx, dword [esp + 0x10]
push eax
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebp
add esp, 0xc
ret
Function at 0x405390
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x446b53
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4584a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.00409b0d
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x4053e1
mov eax, dword [esi + 0x1c]
push eax
call fcn.0042e7ab
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x405ae0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x446c92
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4584a0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
mov eax, dword [0x4584a0]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov esi, dword [esp + 0x130]
xor ebx, ebx
push 0x104
lea eax, [esp + 0x19]
push ebx
mov dword [esp + 0x14], ebx
push eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x20], bl
call fcn.0042e940
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
add esp, 0xc
mov byte [esi + 4], bl
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push 0x26
push ebx
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x20], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp eax, ebx
jl 0x405b90
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405b78
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00403600
mov eax, esi
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0042ea4d
add esp, 0x120
ret
Function at 0x407a70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x447108
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4584a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0x13]
xor ebx, ebx
push eax
push 0x104
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x1b], bl
call fcn.00406a30
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [esp + 0x30], ebx
lea ecx, [ecx]
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
jne 0x407acc
xor esi, esi
jmp 0x407ad8
mov eax, dword [esp + 0x20]
sub eax, ecx
cmp eax, ebx
mov esi, eax
ja 0x407ae1
call fcn.0042ebb0
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call edi
mov edx, dword [esp + 0x1c]
cmp edx, ebx
mov esi, dword [esp + 0x20]
jne 0x407af5
xor ecx, ecx
jmp 0x407af9
mov ecx, esi
sub ecx, edx
cmp eax, ecx
jbe 0x407b0a
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.00406a90
jmp 0x407ac0
cmp eax, ebx
jne 0x407b21
push ebx
push ebx
lea ecx, [esp + 0x20]
call fcn.00406a90
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
cmp edx, ebx
je 0x407b29
sub esi, edx
jne 0x407b32
call fcn.0042ebb0
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x38]
mov eax, edx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x407b48
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.00403600
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x407b6d
push eax
call fcn.0042e7ab
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x428a30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44a2e6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4584a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x14], edi
mov edi, dword [esp + 0x2c]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [esi + 0x40], eax
lea eax, [esi + 0x5c]
mov byte [esi + 0x57], cl
mov dword [esi + 0x58], eax
lea edi, [esi + 0x58]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x38]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x20], 1
call fcn.00426d00
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x24
Function at 0x42d540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe4
cmp cl, 0x39
mov eax, 0x44b3ad
mov dword [esp], eax
mov dword [esp + 4], 0x44c5b8
mov dword [esp + 8], 0x44c5b4
mov dword [esp + 0xc], 0x44c5b0
mov dword [esp + 0x10], 0x44c5ac
mov dword [esp + 0x14], 0x44c5a8
mov dword [esp + 0x18], 0x44b328
mov dword [esp + 0x1c], 0x44c5a4
mov dword [esp + 0x20], 0x44c5a0
mov dword [esp + 0x24], 0x44c59c
mov dword [esp + 0x28], 0x44c598
mov dword [esp + 0x2c], 0x44c594
mov dword [esp + 0x30], 0x44b560
mov dword [esp + 0x34], 0x44c590
mov dword [esp + 0x38], 0x44ba58
mov dword [esp + 0x3c], 0x44c58c
mov dword [esp + 0x40], str.___.___
mov dword [esp + 0x44], 0x44c57c
mov dword [esp + 0x48], 0x44c26c
mov dword [esp + 0x4c], 0x44c32c
mov dword [esp + 0x50], 0x44c578
mov dword [esp + 0x54], 0x44c574
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x44c570
mov dword [esp + 0x64], 0x44c56c
mov dword [esp + 0x68], 0x44c568
mov dword [esp + 0x6c], 0x44c564
mov dword [esp + 0x70], 0x44c270
mov dword [esp + 0x74], 0x44c260
mov dword [esp + 0x78], 0x44c240
mov dword [esp + 0x7c], 0x44c230
mov dword [esp + 0x80], 0x44c228
mov dword [esp + 0x84], 0x44c220
mov dword [esp + 0x88], 0x44c218
mov dword [esp + 0x8c], 0x44c268
mov dword [esp + 0x90], 0x44c560
mov dword [esp + 0x94], 0x44c55c
mov dword [esp + 0x98], 0x44b688
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0x44b68c
mov dword [esp + 0xc0], 0x44c2f8
mov dword [esp + 0xc4], 0x44c2dc
mov dword [esp + 0xc8], 0x44b364
mov dword [esp + 0xcc], str.ZYXWVUTSRQPONMLKJIHGFDBA
mov dword [esp + 0xd0], 0x44c320
mov dword [esp + 0xd4], str._:__n__
mov dword [esp + 0xd8], 0x44c238
mov dword [esp + 0xdc], 0x44c2fc
mov dword [esp + 0xe0], 0x44c304
jae 0x42d73c
movzx eax, cl
mov eax, dword [esp + eax*4]
add esp, 0xe4
ret

Function at 0x42ea4d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4584a0]
jne 0x42ea57
repz ret
jmp fcn.00437e56
Function at 0x437f5a
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 + 0x458878]
je 0x437f75
inc edi
cmp edi, 0x17
jb 0x437f66
cmp edi, 0x17
jae 0x4380f5
push ebp
push 3
call fcn.0043fee1
cmp eax, 1
pop ecx
je 0x4380c1
push 3
call fcn.0043fee1
test eax, eax
pop ecx
jne 0x437fa9
cmp dword [0x4584ac], 1
je 0x4380c1
cmp ebx, 0xfc
je 0x4380f4
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45a180
push ebp
call fcn.00436b95
add esp, 0xc
test eax, eax
je 0x437fdf
push esi
push esi
push esi
push esi
push esi
call fcn.0042ea90
add esp, 0x14
push 0x104
mov esi, 0x45a199
push esi
push 0
mov byte [0x45a29d], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x438023
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00436b95
add esp, 0xc
test eax, eax
je 0x438023
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042ea90
add esp, 0x14
push esi
call fcn.00430f60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x438068
push esi
call fcn.00430f60
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45a494
push 0x44d904
sub ecx, eax
push ecx
push eax
call fcn.0043d39b
add esp, 0x14
test eax, eax
je 0x438068
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042ea90
add esp, 0x14
jmp 0x43806a
xor esi, esi
push 0x44d900
push ebx
push ebp
call fcn.0043d32a
add esp, 0xc
test eax, eax
je 0x43808a
push esi
push esi
push esi
push esi
push esi
call fcn.0042ea90
add esp, 0x14
push dword [edi*8 + 0x45887c]
push ebx
push ebp
call fcn.0043d32a
add esp, 0xc
test eax, eax
je 0x4380ac
push esi
push esi
push esi
push esi
push esi
call fcn.0042ea90
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043fd24
add esp, 0xc
jmp 0x4380f4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4380f4
cmp ebp, 0xffffffff
je 0x4380f4
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x45887c]
push dword [esi]
call fcn.00430f60
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 0x43fd24
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043820d
xor ebx, ebx
cmp dword [0x45a720], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43fdfa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA_1]
mov edi, eax
cmp edi, ebx
je 0x43feda
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43feda
push eax
call fcn.0043819f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45a720], eax
call esi
push eax
call fcn.0043819f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45a724], eax
call esi
push eax
call fcn.0043819f
mov dword [0x45a728], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004340bf
test eax, eax
pop ecx
pop ecx
je 0x43fdc8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042ea90
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43fdfa
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043819f
cmp eax, ebx
pop ecx
mov dword [0x45a730], eax
je 0x43fdfa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043819f
pop ecx
mov dword [0x45a72c], eax
mov eax, dword [0x45a72c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43fe7f
cmp dword [0x45a730], ecx
je 0x43fe7f
push eax
call fcn.00438216
push dword [0x45a730]
mov esi, eax
call fcn.00438216
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43fe7f
cmp edi, ebx
je 0x43fe7f
call esi
cmp eax, ebx
je 0x43fe4c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43fe4c
test byte [ebp - 0x18], 1
jne 0x43fe7f
lea eax, [ebp - 0x10]
push eax
call fcn.004340f6
test eax, eax
pop ecx
je 0x43fe67
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042ea90
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43fe76
or dword [ebp + 0x10], 0x200000
jmp 0x43feba
or dword [ebp + 0x10], 0x40000
jmp 0x43feba
mov eax, dword [0x45a724]
cmp eax, dword [ebp - 8]
je 0x43feba
push eax
call fcn.00438216
cmp eax, ebx
pop ecx
je 0x43feba
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43feba
mov eax, dword [0x45a728]
cmp eax, dword [ebp - 8]
je 0x43feba
push eax
call fcn.00438216
cmp eax, ebx
pop ecx
je 0x43feba
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45a720]
call fcn.00438216
cmp eax, ebx
pop ecx
je 0x43feda
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43fedc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45d000
Capabilities:
Encode data using xor

Disassembly:
push 0xd8c52
pop ebx
mov edx, 0x45d016
mov edi, 0x6c4
xor dword [edx + edi], ebx
dec edi
sub edi, 3
jne 0x45d010
nop
mov edx, 0x52000cf1
mov word [0x4d8c5200], cs
add byte [ecx + 0x52000f73], bh
cmp al, 8
add byte [esi + 0x5200083a], ch
cmp al, 0xf
add byte [ebx - 0x74], dl
or eax, 0x493c4200
add dh, al
ror byte [eax], 1
clc
ror byte [eax], 1
invalid
Function at 0x4015d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
xor esi, esi
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
add edx, edi
mov ebx, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 0x24]
add edx, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
test ebx, ebx
je 0x401636
mov edx, dword [ecx + esi*4]
xor eax, eax
mov cl, byte [edx + edi]
add edx, edi
test cl, cl
je 0x401629
movzx ecx, cl
lea edx, [edx + 1]
or ecx, 0x60
add eax, ecx
mov cl, byte [edx]
add eax, eax
test cl, cl
jne 0x401616
cmp eax, dword [ebp - 4]
je 0x40163f
mov ecx, dword [ebp - 8]
inc esi
cmp esi, ebx
jb 0x401608
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4022c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56eb5b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5d5ff0]
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
call fcn.00406373
mov ecx, eax
test ecx, ecx
jne 0x402305
push 0x80004005
call fcn.004041d0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0054a7e0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 1
push 0
push 0xb
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40235f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402352
jmp 0x4023a0
push 0x104
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0054a7e0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0xb
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4023c8
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402395
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.00403f20
lea ecx, [ebp - 0x220]
call fcn.004021d0
mov esi, dword [ebp - 0x220]
mov edi, dword [esi - 0xc]
test edi, edi
je 0x40245c
jns 0x4023df
push 0x80070057
call fcn.004041d0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x402402
push edi
lea ecx, [ebp - 0x220]
call fcn.00403dc0
mov esi, dword [ebp - 0x220]
lea eax, [edi + 1]
push eax
push esi
call fcn.0054df0b
add esp, 8
cmp edi, dword [esi - 8]
jg 0x4023d5
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
mov eax, dword [ebx]
mov esi, dword [eax]
lea eax, [ebp - 0x220]
push eax
mov edi, dword [esi + 4]
push edi
push esi
call fcn.00403580
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [ebx + 4]
sub ecx, eax
cmp ecx, 1
jae 0x40244d
push str.list_T__too_long
call fcn.00549348
inc eax
mov dword [ebx + 4], eax
mov dword [esi + 4], edx
mov esi, dword [ebp - 0x220]
mov dword [edi], edx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40247b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.00547faa
mov esp, ebp
pop ebp
ret
Function at 0x403690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004073ed

Function at 0x4038e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4038f5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403936
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403932
nop word [eax + eax]
cmp esi, edx
jae 0x403936
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403920
cmp esi, edx
jb 0x40393b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x403950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x403979
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40398f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403986
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4039c2
nop
cmp esi, ecx
jae 0x403986
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4039b0
cmp esi, ecx
jae 0x403986
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret