joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51e994
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push eax
xor eax, 0x902a
jmp 0x51e79a
pop eax
push esi
and esi, 0x2f67
xor esi, 0xf8ef
call fcn.0051e7b4
add byte [edi], dh
xor eax, 0x37373933
add esp, 4
xor esi, 0x24e7
pop esi
lea edx, [ebp - 0x1774]
mov dword [ebp - 0xca0], edx
mov eax, dword [ebp - 0x508]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc9c], ecx
xor edx, edx
mov word [ebp - 0x214], dx
xor eax, eax
mov word [ebp - 0x110], ax
push edx
push eax
add esp, 4
add edx, 0x821b
pop edx
push edx
add edx, 0x54f
or edx, 0x134d2
add edx, 0x101a4
pop edx
push ecx
push eax
add esp, 4
or ecx, 0x1690d
and ecx, 0x92e4
pop ecx
mov ecx, dword [ebp - 0xc9c]
mov dx, word [ecx]
mov word [ebp - 0x1036], dx
mov eax, dword [ebp - 0xc9c]
add eax, 2
mov dword [ebp - 0xc9c], eax
mov cx, word [ebp - 0x1036]
mov word [ebp - 0x214], cx
mov edx, dword [ebp - 0xca0]
mov ax, word [edx]
mov word [ebp - 0x1038], ax
mov ecx, dword [ebp - 0xca0]
add ecx, 2
mov dword [ebp - 0xca0], ecx
mov dx, word [ebp - 0x1038]
mov word [ebp - 0x110], dx
push esi
xor esi, 0x80b4
add esi, 0x147e5
pop esi
push ebx
push edi
add esp, 4
sub ebx, 0x109e8
or ebx, 0x746a
pop ebx
push eax
push edx
add esp, 4
add eax, 0x12a19
add eax, 0x3d34
pop eax
movzx eax, word [ebp - 0x110]
test eax, eax
jne 0x51e8cc
movzx ecx, word [ebp - 0x214]
movzx edx, word [ebp - 0x110]
sub ecx, edx
mov dword [ebp - 0x15ec], ecx
jmp 0x51e92f
movzx eax, word [ebp - 0x214]
movzx ecx, word [ebp - 0x110]
cmp eax, ecx
ror dword [edi], 0x84
or edi, edi
invalid
invalid
movzx edx, word [ebp - 0x214]
xor edx, 0x20
movzx eax, word [ebp - 0x110]
cmp edx, eax
je 0x51e7eb
movzx ecx, word [ebp - 0x214]
movzx edx, word [ebp - 0x110]
cmp ecx, edx
jge 0x51e919
mov dword [ebp - 0x15e8], 0xffffffff
jmp 0x51e923
mov dword [ebp - 0x15e8], 1
mov eax, dword [ebp - 0x15e8]
mov dword [ebp - 0x15ec], eax
cmp dword [ebp - 0x15ec], 0
jne 0x51e978
push ecx
push ebx
add esp, 4
or ecx, 0xeacc
add ecx, 0x14ef
add ecx, 0xae48
add ecx, 0x16cb6
pop ecx
push eax
add eax, 0x6881
jmp 0x51e963
or eax, 0x8e17
pop eax
mov ecx, dword [ebp - 0x508]
mov dword [ebp - 0x750], ecx
jmp 0x51e9e0
push edx
add edx, 0x6b48
sub edx, 0xf1dc
call 0x51e994
add byte [ebx], bh
dec edx
inc esp
dec esi
cmp eax, 0x4d394933
add esp, 4
xor edx, 0x1086e
pop edx
push eax
push ebx
add esp, 4
xor eax, 0x1685a
pop eax
mov edx, dword [ebp - 0x508]
mov eax, dword [edx]
mov dword [ebp - 0x508], eax
mov ecx, dword [ebp - 0x508]
cmp ecx, dword [ebp - 0xca4]
je 0x51e9d6
mov edx, dword [ebp - 0x508]
cmp dword [edx + 0x30], 0
jne 0x51e78c
mov dword [ebp - 0x750], 0
Function at 0x5b5508
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5b56b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5b5694
mov dl, 1
mov eax, dword [0x440b94]
call fcn.00468ec8
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.0040a1c8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5b5683
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call int.00521c90
test al, al
je 0x5b5676
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5b56c4
lea eax, [ebp - 0x394]
call fcn.00424440
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5b5676
xor eax, eax
push ebp
push 0x5b566f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x5b5734
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5b5658
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040b318
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5b5658
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040b318
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b5676
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5b5579
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.00468df0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b56ba
lea eax, [ebp - 0x3a0]
call fcn.0040a1c8
ret

Function at 0x5b62c0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x6d779c]
cmp byte [eax + 0xc5], 0
jne 0x5b6332
cmp dword [0x6d77c0], 0
jne 0x5b62f2
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x6cec9c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x6d77c0], eax
cmp dword [0x6d77bc], 0
jne 0x5b630d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x6d77bc], eax
cmp dword [0x6d77c4], 0
jne 0x5b6332
push esp
push 0
push 0
mov eax, dword [0x6cec98]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x6d77c4], eax
pop edx
ret
Function at 0x1002139
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
mov esi, 0x100147c
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, eax
xor eax, eax
cmp dword [ebp + 8], eax
je 0x1002172
cmp dword [ebp + 0xc], eax
je 0x1002177
lea ecx, [edi - 1]
cmp ebx, ecx
je 0x100217e
cmp dword [ebp + 0xc], eax
jne 0x1002183
add edi, 0xfffffffe
cmp ebx, edi
jne 0x1002183
push 0xfffffffffffffffe
pop ebx
jmp 0x1002194
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1002194
or ebx, 0xffffffff
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x14

Function at 0x1002407
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100fb04]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
push ecx
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0x1001433
xor esi, esi
push esi
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x108], 0
je 0x1002469
lea eax, [ebp - 0x108]
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
lea eax, [ebp + esi - 0x108]
cmp byte [eax], 0
jne 0x1002451
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0100cb7f
leave
ret 8

Function at 0x10030ad
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100fb04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x1011b80
push edi
mov dword [ebp - 0x110], eax
call fcn.010021a2
mov esi, 0x100fb74
push esi
mov ebx, eax
call fcn.010021a2
cmp eax, ebx
jbe 0x10030f6
push esi
jmp 0x10030f7
push edi
call fcn.010021a2
mov ebx, eax
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x1003132
push eax
push 0x10
push eax
push eax
push 0x44c
push eax
call fcn.01002a45
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100cb7f
leave
ret 8
push edi
push ebx
push esi
mov edi, 0x1001433
push edi
push eax
push dword [ebp - 0x110]
mov dword [ebp - 0x114], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esi], 0
je 0x100319e
mov ebx, 0x104
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push ebx
push eax
push edi
push esi
push dword [ebp - 0x10c]
call fcn.01002e76
cmp eax, 0xffffffff
je 0x10031a3
push 0
push ebx
lea eax, [ebp - 0x108]
push eax
push esi
push dword [ebp - 0x10c]
call fcn.01002f09
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x1003158
xor esi, esi
inc esi
jmp 0x10031a5
xor esi, esi
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
jmp 0x1003121
Function at 0x1003c6b
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp + 0x14], eax
cmp eax, 0xffffffff
je 0x1003ca9
test al, 1
je 0x1003ca9
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1003ca9
push eax
push 0x10
push eax
push ebx
push 0x47b
push eax
call fcn.01002a45
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push 0xffffffffffffffff
push 0x1001524
mov edi, 0x100151c
push edi
call esi
cmp eax, 0xffffffff
jne 0x1003cd7
push ebx
push eax
push 0x1001510
push edi
call esi
cmp eax, 0xffffffff
jne 0x1003cd7
or eax, eax
jmp 0x1003d1e
cmp dword [ebp + 0x18], 0
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
jne 0x1003cef
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
jmp 0x1003d04
cmp eax, 3
jl 0x1003ce4
push 0x1001433
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [ebp + 0x14], 0xffffffff
mov esi, eax
je 0x1003d1c
test byte [ebp + 0x14], 1
je 0x1003d1c
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [0x1011a60], 0
push esi
jne 0x1003d48
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0100260c
mov esi, eax
jmp 0x1003d5b
push 0x1011a60
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01002653
xor esi, esi
inc esi
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0100d2b0
test esi, esi
je 0x1003d7f
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1003d7f
xor eax, eax
jmp 0x1003d81
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x1003d8b
Capabilities:
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
xor ebx, ebx
cmp byte [edi], al
je 0x1003e6f
push 0x5c
push edi
mov byte [ebp + 0xf], al
mov dword [ebp - 4], ebx
call fcn.0100d017
mov esi, eax
cmp esi, ebx
je 0x1003dbe
mov al, byte [esi]
mov byte [ebp + 0xf], al
mov byte [esi], bl
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp dword [ebp + 0x10], ebx
je 0x1003e07
cmp eax, 0xffffffff
jne 0x1003dd9
push 4
mov eax, 0x483
pop ebx
jmp 0x1003de2
test al, 0x10
jne 0x1003e07
mov eax, 0x484
push ebx
push 0x20
push 0
push edi
push eax
push dword [ebp + 8]
call fcn.01002a45
cmp eax, 7
je 0x1003dfa
test ebx, ebx
jne 0x1003e07
test esi, esi
je 0x1003e03
mov al, byte [ebp + 0xf]
mov byte [esi], al
xor eax, eax
jmp 0x1003e6f
test esi, esi
je 0x1003e10
mov al, byte [ebp + 0xf]
mov byte [esi], al
lea esi, [edi + 1]
mov al, byte [esi]
cmp al, 0x3a
jne 0x1003e24
cmp byte [edi + 2], 0x5c
jne 0x1003e24
lea esi, [edi + 3]
jmp 0x1003e67
cmp byte [edi], 0x5c
jne 0x1003e67
cmp al, 0x5c
jne 0x1003e67
lea esi, [edi + 2]
mov dword [ebp - 4], 2
jmp 0x1003e67
cmp byte [esi], 0x5c
jne 0x1003e5e
cmp byte [esi - 1], 0x3a
je 0x1003e5e
cmp dword [ebp - 4], 0
je 0x1003e4f
dec dword [ebp - 4]
jmp 0x1003e5e
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x1003e39
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100415b
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x100fb04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, 0x100fb74
push esi
mov dword [ebp - 0x38], eax
call fcn.010021a2
push eax
push 0x40
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
xor eax, eax
cmp edi, eax
jne 0x10041ab
push eax
push 0x10
push eax
push eax
push 0x44c
push eax
call fcn.01002a45
xor eax, eax
jmp 0x100422d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x40], edi
cmp dword [ebp + 0xc], eax
je 0x10041cb
push 1
push esi
push dword [ebp - 0x3c]
push edi
push dword [ebp - 0x38]
call fcn.01003c6b
jmp 0x100420d
push esi
push dword [ebp - 0x3c]
push edi
push 0x1001433
push 0
push dword [ebp - 0x38]
call ebx
jmp 0x100420d
cmp dword [ebp + 0xc], 0
je 0x10041e7
push edi
jmp 0x10041fd
push esi
push 0x30
lea eax, [ebp - 0x34]
push eax
push 0x1001433
push edi
push dword [ebp - 0x38]
call ebx
lea eax, [ebp - 0x34]
push eax
call fcn.01002249
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
cmp byte [edi], 0
jne 0x10041de
push esi
push 0
push 0
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100cb7f
leave
ret 8
Function at 0x100655f
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x100fb04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 6
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0xc]
push eax
mov esi, 0x104
push esi
mov ebx, 0x1010404
push ebx
push 0x100
lea eax, [ebp - 0x30c]
push eax
push 3
lea eax, [ebp - 0x318]
push eax
push 0x100fffc
mov dword [ebp - 0x310], 1
call sub.msvcrt.dll__splitpath_s
add esp, 0x24
lea eax, [ebp - 0x318]
push eax
push esi
mov edi, 0x1010300
push edi
call fcn.01002653
lea eax, [ebp - 0x30c]
push eax
push esi
push edi
call fcn.010026dd
push edi
push esi
push 0x1010508
call fcn.01002653
push 0x1001a58
push ebx
push 0x1001a50
mov ebx, 0x200
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.010028bd
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1010508
call fcn.0100d2b0
cmp byte [0x1010710], 0
jne 0x100665e
push edi
push esi
push 0x1010710
call fcn.01002653
push 0x1010404
push 0x1001a40
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.010028bd
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1010710
call fcn.0100d2b0
push edi
push esi
push 0x1010814
call fcn.01002653
push 0x1001a38
push 0x1010404
push 0x1001a50
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.010028bd
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1010814
call fcn.0100d2b0
cmp dword [0x1011584], 0x866
je 0x10066f7
push 0x1001a30
push 0x1010404
push 0x1001a50
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.010028bd
add esp, 0x14
push edi
push esi
mov edi, 0x101060c
push edi
call fcn.01002653
lea eax, [ebp - 0x20c]
push eax
push esi
push edi
call fcn.0100d2b0
mov dword [0x1011578], 0x1001630
mov dword [0x101157c], 7
jmp 0x10066fc
mov edi, 0x101060c
cmp dword [0x100fb60], 0
mov esi, dword [ebp - 0x314]
je 0x100675c
push esi
call fcn.010042d9
test eax, eax
jne 0x100675c
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x421
call fcn.0100210a
lea eax, [ebp - 0x20c]
push eax
push 0x856
push esi
call fcn.01002480
and dword [ebp - 0x310], 0
call fcn.0100a597
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x310]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100cb7f
leave
ret 4
push esi
call fcn.010058eb
test eax, eax
jne 0x1006775
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x41f
jmp 0x1006722
cmp dword [0x1011584], 0x866
je 0x10067bb
push esi
call fcn.01005c88
test eax, eax
jne 0x100679a
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x420
jmp 0x1006722
push 0x1011a20
push 0
push 0x1001920
push 0x1001444
call fcn.010021fb
test eax, eax
jne 0x10067bb
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x422
call fcn.0100210a
lea eax, [ebp - 0x20c]
push eax
push 0x856
push esi
call fcn.01002480
jmp 0x1006745
Function at 0x10093f5
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100fb04]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 0x10c], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
call edi
mov esi, eax
cmp dword [ebp + 0xc], ebx
je 0x1009436
xor edi, edi
jmp 0x100955c
push dword [esi + 0x18]
call edi
mov dword [ebp - 0x110], eax
cmp eax, ebx
jne 0x1009467
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x18]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x18], ebx
jmp 0x100955c
push eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.01002653
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x108]
jmp 0x100949a
lea ecx, [ebp - 0x108]
cmp eax, ecx
jb 0x100949f
dec eax
cmp byte [eax], 0x5c
jne 0x100948f
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov byte [eax + 1], bl
lea eax, [ebp - 0x108]
push eax
push ebx
mov ebx, 0x1001aac
push ebx
push eax
call edi
test eax, eax
lea eax, [ebp - 0x108]
push eax
jne 0x1009504
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x10094e2
mov word [ebp - 0x108], 0x5c2e
mov byte [ebp - 0x106], al
lea eax, [ebp - 0x108]
push eax
push 0
push ebx
push eax
call edi
test eax, eax
jne 0x10094fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100954a
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call fcn.010092d3
mov edi, eax
test edi, edi
jne 0x1009536
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x100954a
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call fcn.0100697b
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.0100cb7f
leave
ret 8
Function at 0x10095e4
Capabilities:
Check if file exists
Enumerate gui resources
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call edi
cmp dword [ebp + 8], 0
jne 0x1009606
push 0x57
call edi
xor eax, eax
jmp 0x1009721
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x1c
push 0x42
call ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x1009625
push 8
call edi
xor eax, eax
jmp 0x1009720
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x100963c
push 8
call edi
jmp 0x1009716
and dword [esi + 0x14], 0
mov edi, 0x104
push edi
push 0x42
call ebx
mov dword [esi + 0x18], eax
test eax, eax
je 0x100965e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
jne 0x1009674
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 8
jmp 0x10096e6
push dword [ebp + 8]
push edi
push ebx
call fcn.01002653
push dword [esi + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100969a
push dword [ebp - 4]
jmp 0x100970b
test al, 0x17
je 0x10096b0
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x13
jmp 0x10096e6
cmp dword [ebp + 0xc], 0
jne 0x1009702
push 3
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x10096ee
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1009716
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1009716
push esi
push 0x10095bf
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esi + 0x14], 0
push dword [ebp - 4]
je 0x100971a
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x100971f
call edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x100c15e
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x100fb04]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1011a20
push 0x50
mov edi, 0x1011010
push edi
mov esi, 0x1001433
push esi
push 0x1001530
push 0x1001444
call fcn.01002e76
test eax, eax
je 0x100c36b
mov eax, dword [0x100fb00]
push ebx
xor ebx, ebx
cmp eax, ebx
jbe 0x100c1bb
mov ecx, 0x100f2e4
mov byte [ecx], bl
add ecx, 0x104
dec eax
jne 0x100c1b0
push edi
push 0x200
lea eax, [ebp - 0x284]
push eax
push esi
push 0x1001bb8
push edi
call fcn.01002e76
test eax, eax
je 0x100c305
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x284]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x100c305
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x28c], eax
cmp eax, ebx
je 0x100c305
push eax
push esi
push ebx
lea eax, [ebp - 0x284]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x100c2f9
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x1001b9c
push dword [ebp - 0x28c]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x100c252
mov eax, dword [ebp - 0x290]
mov eax, dword [eax]
jmp 0x100c257
mov eax, 0x4e40409
mov dword [ebp - 0x288], ebx
cmp dword [0x100fb00], ebx
jbe 0x100c2f9
mov dword [ebp - 0x294], eax
shr dword [ebp - 0x294], 0x10
movzx ebx, ax
mov esi, 0x100f2e4
push dword [esi - 4]
movzx eax, word [ebp - 0x294]
push eax
push ebx
push 0x1001b7c
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.010028bd
add esp, 0x18
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x28c]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x100c2dd
push 0xfe
push dword [ebp - 0x290]
push 0x100
push esi
call fcn.0100268f
inc dword [ebp - 0x288]
mov eax, dword [ebp - 0x288]
add esi, 0x104
cmp eax, dword [0x100fb00]
jb 0x100c27e
xor ebx, ebx
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x288], ebx
cmp dword [0x100fb00], ebx
jbe 0x100c365
mov esi, 0x100f2e4
push edi
mov ebx, 0x100
push ebx
lea eax, [ebp - 0x284]
push eax
push 0x1001433
push dword [esi - 4]
push edi
call fcn.01002e76
test eax, eax
je 0x100c34b
push 0xfe
lea eax, [ebp - 0x284]
push eax
push ebx
push esi
call fcn.0100268f
inc dword [ebp - 0x288]
mov eax, dword [ebp - 0x288]
add esi, 0x104
cmp eax, dword [0x100fb00]
jb 0x100c318
xor eax, eax
inc eax
pop ebx
jmp 0x100c36d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100cb7f
leave
ret