joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10077f8
Capabilities:
Check if file exists
Get common file path
Get file attributes
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x36c
mov eax, dword [0x1020104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x364], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, 0x1001f28
mov esi, 0x1001dec
cmp eax, 0xffffffff
jne 0x100786f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x1007867
cmp eax, 2
je 0x1007867
push eax
push 0x1001ef8
push 0
push 0
push edi
push 0x290
push esi
call fcn.010059aa
add esp, 0x1c
jmp 0x1007879
xor eax, eax
inc eax
jmp 0x1007989
test al, 0x10
je 0x1007879
push ebx
call fcn.01007623
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x10078b2
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001ee0
push edi
push 0x297
push esi
call fcn.010059aa
add esp, 0x18
xor eax, eax
jmp 0x1007989
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x1001eac
mov ebx, 0x258
lea eax, [ebp - 0x360]
push ebx
push eax
call fcn.01006b2d
add esp, 0x14
test eax, eax
jns 0x10078e9
push 0x1001e90
push 0
push 0
push edi
push 0x29e
jmp 0x10078a2
lea eax, [ebp - 0x368]
push eax
push 2
push 0
push 0x1001e5c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007965
lea eax, [ebp - 0x360]
push ebx
push eax
call fcn.0100e302
pop ecx
pop ecx
inc eax
push eax
lea eax, [ebp - 0x360]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp - 0x36c]
push dword [ebp - 0x368]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x1007957
push ebx
push eax
push 0x1001e4c
push edi
push 0x2ab
push esi
call fcn.010059aa
add esp, 0x18
mov dword [ebp - 0x364], ebx
push dword [ebp - 0x368]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1007983
push 0
push eax
push 0x1001e3c
push edi
push 0x2b1
push esi
call fcn.010059aa
add esp, 0x18
and dword [ebp - 0x364], 0
mov eax, dword [ebp - 0x364]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e2ad
leave
ret 8
Function at 0x10079ea
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x1020104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1020034]
cmp eax, 0xffffffff
jne 0x1007aed
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 5
ja 0x1007a5d
jne 0x1007a46
cmp dword [ebp - 0x90], 1
ja 0x1007a5d
jne 0x1007a46
cmp dword [ebp - 0x8c], 0xa28
jae 0x1007a5d
push 0x1001fd0
call fcn.01005858
and dword [0x1020034], 0
pop ecx
jmp 0x1007ae8
lea ecx, [ebp - 0x1a8]
call fcn.0100799f
cmp dword [ebp - 0x1a8], 0
je 0x1007ab3
lea eax, [ebp - 0x1cc]
push eax
call dword [ebp - 0xa0]
cmp word [ebp - 0x1cc], 6
jne 0x1007a9f
push 0x1001fc0
call fcn.01005858
pop ecx
mov dword [0x1020034], 1
jmp 0x1007add
push 0x1001fac
call fcn.01005858
and dword [0x1020034], 0
pop ecx
jmp 0x1007add
push 0x1001f8c
push 0
push 0
push 0x1001f84
push 0x155
push 0x1001f50
call fcn.010059aa
add esp, 0x18
mov dword [0x1020034], 0xfffffff7
lea ecx, [ebp - 0x1a8]
call fcn.0100604a
mov eax, dword [0x1020034]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100e2ad
leave
ret

Function at 0x1007afe
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1020104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
and dword [esi], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1007b59
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001ee0
push 0x1002064
push 0x1c
push 0x10019f8
call fcn.010059aa
add esp, 0x18
jmp 0x1007c81
push ebx
push edi
mov edi, 0x1002058
push edi
mov ebx, 0x1002044
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01006d0d
test eax, eax
jne 0x1007b93
push edi
push ebx
push 0x1001b90
push eax
push eax
push 0x1002064
push 0x21
jmp 0x1007c20
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.01006e22
test eax, eax
jne 0x1007c41
push 0x1002010
call fcn.01005858
pop ecx
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x1007bf0
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001ff8
push 0x1002064
push 0x29
push 0x10019f8
call fcn.010059aa
add esp, 0x18
jmp 0x1007c7f
push edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01006cba
test eax, eax
jne 0x1007c2f
push edi
lea eax, [ebp - 0x108]
push eax
push 0x1001b90
push 0
push 0
push 0x1002064
push 0x2e
push 0x10019f8
call fcn.010059aa
add esp, 0x20
jmp 0x1007c7f
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.01006e22
test eax, eax
je 0x1007c7f
push 0x10016f8
mov ecx, esi
call fcn.0100609a
mov dword [esi + 0x108], eax
test eax, eax
je 0x1007c7f
push 0x1001720
mov ecx, esi
call fcn.0100609a
mov dword [esi + 0x10c], eax
test eax, eax
je 0x1007c7f
push 0x1001708
mov ecx, esi
call fcn.0100609a
mov dword [esi + 0x110], eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100e2ad
leave
ret
Function at 0x1008cf6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push edi
lea eax, [ebp - 4]
push eax
push 0x10029f0
mov edi, 0x80000002
push edi
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1008d48
xor eax, eax
lea ecx, [ebp - 8]
push ecx
push eax
push eax
push eax
push 0x10029e8
push dword [ebp - 4]
mov dword [ebp - 8], eax
call ebx
test eax, eax
jne 0x1008d3f
mov al, 1
jmp 0x1008d7b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x10029bc
push edi
call esi
test eax, eax
jne 0x1008d79
lea ecx, [ebp - 8]
push ecx
push eax
push eax
push eax
push 0x10029e8
push dword [ebp - 4]
mov dword [ebp - 8], eax
call ebx
test eax, eax
je 0x1008d3b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1008d85
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1020104]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1795
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1008dd1
push 5
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x1002a10
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100e2ad
leave
ret

Function at 0x1008de2
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1020104]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1796
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1008e2e
push 5
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x1002a10
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100e2ad
leave
ret

Function at 0x1008e3f
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1020104]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1797
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1008e8b
push 5
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x1002a10
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100e2ad
leave
ret
Function at 0x1009399
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1020104]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x210
call fcn.0100e334
mov edi, eax
pop ecx
test edi, edi
jne 0x10093c7
xor al, al
jmp 0x1009468
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [edi + 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x30e]
push eax
call fcn.0100e370
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x310]
push eax
lea ebx, [edi + 8]
push esi
push ebx
call fcn.0100e584
push 0x1002ae0
push esi
push ebx
call fcn.0100e5f8
push ebx
lea eax, [ebp - 0x108]
push 0x1002abc
push eax
call fcn.0100916c
lea eax, [ebp - 0x108]
push eax
call fcn.01005858
xor eax, eax
push eax
push eax
push edi
push 0x100918f
push eax
push eax
call fcn.0100e77e
add esp, 0x40
pop esi
pop ebx
cmp eax, 0xffffffff
je 0x10093c0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0100e2ad
leave
ret 8

Function at 0x100c456
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edx, ax
xor ecx, ecx
xor eax, eax
mov esi, 0xc0
cmp word [eax + 0x1020038], dx
je 0x100c4cd
add eax, 0xc
inc ecx
cmp eax, esi
jb 0x100c46f
and dword [ebp - 4], 0
mov eax, 0x3ff
push ebx
and edx, eax
xor ecx, ecx
push edi
mov di, word [ecx + 0x1020038]
and di, ax
cmp di, dx
je 0x100c4d8
inc dword [ebp - 4]
add ecx, 0xc
cmp ecx, esi
jb 0x100c48f
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx edx, ax
xor ecx, ecx
xor eax, eax
cmp word [eax + 0x1020038], dx
je 0x100c4e6
add eax, 0xc
inc ecx
cmp eax, esi
jb 0x100c4b5
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
imul ecx, ecx, 0xc
mov eax, dword [ecx + 0x1020040]
jmp 0x100c4ca
mov eax, dword [ebp - 4]
imul eax, eax, 0xc
mov eax, dword [eax + 0x1020040]
jmp 0x100c4c8
imul ecx, ecx, 0xc
mov eax, dword [ecx + 0x1020040]
jmp 0x100c4c8
Function at 0x100c4f6
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x34
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
call fcn.0100e370
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x100c526
xor al, al
jmp 0x100c56f
push edi
push esi
call fcn.0100e334
mov edi, eax
pop ecx
cmp edi, ebx
je 0x100c56c
push esi
push ebx
push edi
call fcn.0100e370
add esp, 0xc
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x100c565
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x1001384
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x100c575
push edi
call fcn.0100e324
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp - 4], 0x34
je 0x100c586
push edi
call fcn.0100e324
pop ecx
mov al, bl
jmp 0x100c56e
push 0x34
push dword [ebp - 8]
push 0x34
push dword [ebp + 0xc]
call fcn.0100e3ef
add esp, 0x10
mov bl, 1
jmp 0x100c57b

Function at 0x100c9a7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push edi
xor edi, edi
cmp dword [0x10217bc], edi
je 0x100c9b9
xor eax, eax
inc eax
pop edi
ret
push 0x1003514
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x10217bc], eax
cmp eax, edi
jne 0x100c9f5
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100175c
push 0x1003d5c
push 0x3a4
push 0x1003c44
call fcn.010059aa
add esp, 0x18
xor eax, eax
pop edi
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1003bd8
push eax
call esi
push 0x1003bbc
push dword [0x10217bc]
mov dword [0x10217d0], eax
call esi
push 0x1003bf4
push dword [0x10217bc]
mov dword [0x10217c8], eax
call esi
push 0x1003c30
push dword [0x10217bc]
mov dword [0x10217b8], eax
call esi
push 0x1003c08
push dword [0x10217bc]
mov dword [0x10217cc], eax
call esi
push 0x1003c1c
push dword [0x10217bc]
mov dword [0x10217c0], eax
call esi
mov dword [0x10217c4], eax
cmp dword [0x10217d0], edi
je 0x100ca94
cmp dword [0x10217c8], edi
je 0x100ca94
cmp dword [0x10217b8], edi
je 0x100ca94
cmp dword [0x10217cc], edi
je 0x100ca94
cmp dword [0x10217c0], edi
je 0x100ca94
cmp eax, edi
je 0x100ca94
xor eax, eax
inc eax
jmp 0x100caf8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call ebx
push eax
push 0x10017c0
mov edi, 0x1003d5c
push edi
push 0x3b6
mov esi, 0x1003c44
push esi
call fcn.010059aa
mov eax, dword [0x10217bc]
add esp, 0x18
test eax, eax
je 0x100caf5
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x100caee
call ebx
test eax, eax
je 0x100caee
push 0
push eax
push 0x1001968
push edi
push 0x3bb
push esi
call fcn.010059aa
add esp, 0x18
and dword [0x10217bc], 0
xor eax, eax
pop ebx
pop esi
pop edi
ret
Function at 0x100cc9c
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push 0x1003aa4
push 4
push dword [ebp + 8]
call fcn.01006a97
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edx, ax
xor eax, eax
xor ecx, ecx
mov esi, 0xc0
cmp word [ecx + 0x1020038], dx
je 0x100cd1d
add ecx, 0xc
inc eax
cmp ecx, esi
jb 0x100ccc4
mov ecx, 0x3ff
and edx, ecx
push ebx
mov dword [ebp - 4], edx
xor eax, eax
xor edx, edx
push edi
mov di, word [edx + 0x1020038]
and di, cx
cmp di, word [ebp - 4]
je 0x100cd32
add edx, 0xc
inc eax
cmp edx, esi
jb 0x100cce5
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx edx, ax
xor eax, eax
xor ecx, ecx
cmp word [ecx + 0x1020038], dx
je 0x100cd32
add ecx, 0xc
inc eax
cmp ecx, esi
jb 0x100cd0a
jmp 0x100cd45
imul eax, eax, 0xc
push dword [eax + 0x102003c]
push 4
push dword [ebp + 8]
call fcn.01006a97
jmp 0x100cd47
imul eax, eax, 0xc
push dword [eax + 0x102003c]
push 4
push dword [ebp + 8]
call fcn.01006a97
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x100cd51
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1020104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10217f0]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
push edi
xor edi, edi
inc ecx
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x218], ecx
cmp eax, edi
je 0x100cdad
cmp dword [0x10217f4], edi
je 0x100cdad
mov dword [esi], eax
mov eax, dword [0x10217f4]
mov dword [esi + 4], eax
cmp ebx, edi
je 0x100cda6
mov eax, dword [0x10217ec]
mov dword [ebx], eax
mov eax, ecx
jmp 0x100cef7
mov dword [esi], edi
mov dword [esi + 4], edi
cmp ebx, edi
je 0x100cdb8
mov dword [ebx], edi
lea eax, [ebp - 0x210]
push eax
push ecx
push edi
push 0x1003ed4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100cddf
push 0x1003e70
jmp 0x100ce9b
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x108]
push eax
push edi
push edi
push 0x10029e8
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100ce18
push 0x1003e08
jmp 0x100ce9b
push 0x10217f0
lea eax, [ebp - 0x108]
push eax
call fcn.0100cb93
test eax, eax
jne 0x100ce58
lea eax, [ebp - 0x108]
push eax
push 0x1003ddc
push edi
push edi
push 0x1003dcc
push 0x1b3
push 0x1003c44
call fcn.010059aa
add esp, 0x1c
mov dword [ebp - 0x218], edi
mov eax, dword [0x10217f0]
mov dword [esi], eax
mov eax, dword [0x10217f4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x1003dc8
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100cea3
push 0x1003d90
call fcn.01005858
pop ecx
jmp 0x100cebb
lea eax, [ebp - 0x20c]
push eax
call fcn.0100ef22
pop ecx
mov dword [0x10217ec], eax
cmp ebx, edi
je 0x100cebb
mov dword [ebx], eax
cmp dword [ebp - 0x210], edi
je 0x100cef1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
je 0x100cef1
push edi
push eax
push 0x1003d80
push 0x1003dcc
push 0x1ce
push 0x1003c44
call fcn.010059aa
add esp, 0x18
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e2ad
leave
ret 8
Function at 0x100cf0d
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1020104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x41
pop esi
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
xor ebx, ebx
push eax
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x210], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x100cf78
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002320
push 0x1003f5c
push 0x21e
push 0x1003c44
call fcn.010059aa
add esp, 0x18
mov eax, esi
jmp 0x100d0ce
push 0x1003f48
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01006cba
test eax, eax
jne 0x100cfbb
lea eax, [ebp - 0x108]
push eax
push 0x1003f14
push ebx
push ebx
push 0x1003f5c
push 0x223
push 0x1003c44
call fcn.010059aa
add esp, 0x1c
jmp 0x100cf71
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x21c], eax
cmp eax, 0xffffffff
je 0x100d0c8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x100d09d
push esi
call fcn.0100e334
pop ecx
mov dword [ebp - 0x210], eax
cmp eax, ebx
je 0x100d09d
push ebx
lea eax, [ebp - 0x220]
push eax
push esi
push dword [ebp - 0x210]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100d09d
push 0x1003efc
push dword [ebp - 0x210]
call fcn.0100ee70
pop ecx
pop ecx
cmp eax, ebx
je 0x100d09d
mov esi, 0x1003ef0
push esi
push eax
call fcn.0100ee70
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
cmp eax, ebx
je 0x100d09d
push edi
push esi
call fcn.0100e302
add dword [ebp - 0x214], eax
push 0x20
push dword [ebp - 0x214]
call fcn.0100eda0
add esp, 0x10
cmp eax, ebx
je 0x100d07a
mov byte [eax], bl
push dword [ebp - 0x214]
call fcn.0100eefb
pop ecx
mov ecx, eax
mov eax, 0x3ff
add ecx, eax
shr ecx, 0xa
add ecx, eax
shr ecx, 0xa
mov dword [ebp - 0x218], ecx
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x210], ebx
je 0x100d0bd
push dword [ebp - 0x210]
call fcn.0100e324
pop ecx
push 0x41
pop eax
cmp dword [ebp - 0x218], eax
jb 0x100d0ce
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e2ad
leave
ret
Function at 0x100d46f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1020104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x114], esi
lea eax, [ebp - 0x108]
cmp dword [ebp + 0x10], esi
je 0x100d4d4
push dword [ebp + 0x10]
push 0x104
push eax
call fcn.01006a97
call fcn.0100c9a7
test eax, eax
jne 0x100d50f
push 0x100419c
push esi
push esi
push 0x1004190
push 0x4ae
jmp 0x100d4fb
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x100d4b8
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001ff8
push 0x1004190
push 0x4a9
push 0x1003c44
call fcn.010059aa
add esp, 0x18
xor eax, eax
jmp 0x100d5fb
lea eax, [ebp - 0x11c]
push eax
push 3
push esi
push edi
call dword [0x10217b8]
mov dword [ebp - 0x110], eax
cmp eax, 0xffffffff
je 0x100d598
call dword [0x10217c0]
push esi
push esi
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x118]
push eax
push 0x100d0e2
push 0x144
lea eax, [ebp - 0x108]
push eax
push esi
push 0x16
push ebx
push dword [ebp - 0x110]
mov dword [ebp - 0x118], esi
push esi
call dword [0x10217c8]
test eax, eax
jne 0x100d5c7
push ebx
push edi
push 0x100415c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100413c
push 0x1004190
push 0x4c1
push 0x1003c44
call fcn.010059aa
add esp, 0x20
jmp 0x100d5c1
push edi
push 0x1004088
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004128
push 0x1004190
push 0x4c7
push 0x1003c44
call fcn.010059aa
add esp, 0x1c
mov dword [ebp - 0x10c], esi
cmp dword [ebp - 0x114], esi
je 0x100d5db
push dword [ebp - 0x114]
call dword [0x10217c4]
cmp dword [ebp - 0x110], 0xffffffff
je 0x100d5f0
push dword [ebp - 0x110]
call dword [0x10217cc]
call fcn.0100cb00
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e2ad
leave
ret 0xc
Function at 0x100d774
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x1020104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x62c], esi
call fcn.0100d611
push eax
push 0x10042c8
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.01006b2d
add esp, 0x10
push esi
push 0x104
lea eax, [ebp - 0x220]
push eax
call fcn.01006a97
lea eax, [ebp - 0x220]
push 0x5c
push eax
call fcn.0100e2d0
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x100d9f4
mov byte [eax], 0
lea eax, [ebp - 0x11c]
push eax
push edi
push 0x10042c4
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x100d817
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10042b0
push 0x1004298
push 0x4ee
jmp 0x100da05
push 0x1004294
push esi
mov dword [ebp - 0x628], edi
call fcn.0100e291
pop ecx
pop ecx
mov dword [ebp - 0x624], eax
cmp eax, edi
jne 0x100d85c
push esi
push 0x1004088
push edi
push 0x100428c
push 0x1004298
push 0x4f7
push 0x1003c44
call fcn.010059aa
add esp, 0x1c
jmp 0x100da12
lea eax, [ebp - 0x11c]
push 0x1003288
push eax
call fcn.0100e291
mov ebx, eax
pop ecx
pop ecx
cmp ebx, edi
jne 0x100d8ae
lea eax, [ebp - 0x11c]
push eax
push 0x1004088
push edi
push 0x100428c
push 0x1004298
push 0x4fe
push 0x1003c44
call fcn.010059aa
push dword [ebp - 0x624]
call fcn.0100de53
add esp, 0x20
jmp 0x100da12
push dword [ebp - 0x624]
mov edi, 0x400
lea eax, [ebp - 0x620]
push edi
push eax
call fcn.0100f179
add esp, 0xc
test eax, eax
je 0x100d977
mov esi, 0x1004280
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.01005ce5
test eax, eax
jne 0x100d910
call fcn.0100d611
push eax
push 0x100425c
call fcn.01005858
push esi
push ebx
call fcn.0100f025
add esp, 0x10
mov dword [ebp - 0x628], 1
jmp 0x100d953
cmp dword [ebp - 0x628], 0
jne 0x100d944
lea eax, [ebp - 0x620]
push eax
push 0x100424c
call fcn.01005ce5
test eax, eax
jne 0x100d944
push 0x1004200
call fcn.01005858
push esi
push ebx
call fcn.0100f025
add esp, 0xc
jmp 0x100d953
lea eax, [ebp - 0x620]
push ebx
push eax
call fcn.0100ded4
pop ecx
pop ecx
push dword [ebp - 0x624]
lea eax, [ebp - 0x620]
push edi
push eax
call fcn.0100f179
add esp, 0xc
test eax, eax
jne 0x100d8d6
mov esi, dword [ebp - 0x62c]
push ebx
call fcn.0100de53
push dword [ebp - 0x624]
call fcn.0100de53
pop ecx
pop ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
jne 0x100d9ef
push dword [ebp - 0x62c]
lea eax, [ebp - 0x11c]
push eax
push 0x10041e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10041d8
push 0x1004298
push 0x52a
push 0x1003c44
call fcn.010059aa
jmp 0x100d8a6
xor eax, eax
inc eax
jmp 0x100da14
push 0x10041c0
push edi
push edi
push 0x1004298
push 0x4e8
push 0x1003c44
call fcn.010059aa
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e2ad
leave
ret 4