joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401310
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x41107c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov esi, ecx
push 0
mov dword [ebp - 0xa8], esi
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push str.SOFTWARE
push 0x82
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40137b
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402464
mov esp, ebp
pop ebp
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x401368
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x401368
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xac], eax
test eax, eax
je 0x401368
mov dword [ebp - 0xa0], 0
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4013f3
mov eax, dword [0x40f26c]
push 0
mov dword [edi], eax
call fcn.00402931
push eax
call fcn.00402d71
xor eax, eax
xor ecx, ecx
add esp, 8
mov word [ebp - 0x1c], cx
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
xor edi, edi
nop
call fcn.00402d83
cdq
mov ecx, 0x19
idiv ecx
inc edi
add edx, 0x61
mov word [ebp + edi*2 - 0x1e], dx
cmp edi, 0xa
jl 0x401430
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x9c]
push 0x40f270
push eax
call fcn.00402c3b
lea eax, [ebp - 0x9c]
add esp, 0xc
mov edx, eax
jmp 0x401470
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401470
sub eax, edx
lea edi, [esi - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401480
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xa8]
push 0
push esi
call fcn.00402d59
add esp, 8
test eax, eax
jne 0x4014d3
push eax
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0
call ebx
push 0x40f280
push esi
call fcn.00402e62
mov esi, eax
add esp, 8
test esi, esi
je 0x401533
mov edi, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xac]
push esi
push edi
push 1
push ecx
call fcn.00402fd0
add esp, 0x10
cmp edi, eax
jne 0x40152a
mov dword [ebp - 0xa0], 1
push esi
call fcn.004030b7
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402464
mov esp, ebp
pop ebp
ret
Function at 0x401550
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x41107c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00407550
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00402d59
add esp, 8
test eax, eax
je 0x4015de
push 0
push 0x1a
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x210], 0
je 0x401728
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4015f5
sub eax, edx
sar eax, 1
je 0x401728
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
lea ecx, [ebp - 0x210]
call fcn.00401310
test eax, eax
jne 0x401656
push eax
push 0x40f288
push 0x40f294
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402464
mov esp, ebp
pop ebp
ret
call fcn.00401040
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call fcn.00407550
mov edx, dword [edi + 0x2d4]
mov eax, dword [edi + 0x2d0]
lea ecx, [edi + 0x2d8]
push ecx
push edx
mov edx, dword [edi + 0xc4]
push eax
mov eax, dword [edi + 0xc0]
lea ecx, [edi + 0xc8]
push ecx
push edx
push eax
lea ecx, [edi + 0x80]
push ecx
lea edx, [edi + 0x40]
push edx
push edi
lea eax, [ebp - 0x418]
push str._channelid_s__productid_s__productname_s__installmode_d__override_d__setupfilename_s__installtime_I64u__localarea_s
push eax
call fcn.00402c3b
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x61e]
push edx
mov word [ebp - 0x620], cx
call fcn.00407550
add esp, 0x44
cmp dword [edi + 0xc0], 1
jne 0x401704
call fcn.00401040
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x620]
push str._s__VERYSILENT__SP_
push ecx
call fcn.00402c3b
add esp, 0xc
call fcn.00401040
push 0
push 0
lea edx, [ebp - 0x620]
push edx
lea eax, [ebp - 0x210]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00402464
mov esp, ebp
pop ebp
ret
Function at 0x401740
Capabilities:
Accept command line arguments
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
mov eax, dword [0x41107c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x110
mov esi, eax
lea eax, [ebp - 0x524]
push 0
push eax
mov dword [ebp - 0x528], 0x114
call fcn.00407550
add esp, 0xc
lea ecx, [ebp - 0x528]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401929
cmp dword [ebp - 0x524], 6
jb 0x401929
push 0x40f3e4
push esi
call fcn.00402bdb
add esp, 8
test eax, eax
jne 0x401929
cmp word [esi], 0x22
jne 0x4017cd
push 0x22
add esi, 2
push esi
call fcn.0040312b
add esp, 8
add eax, 2
jmp 0x4017e1
push 0x20
push esi
call fcn.0040312b
add esp, 8
test eax, eax
jne 0x4017e1
mov eax, 0x40f3f0
mov ecx, eax
movzx eax, word [eax]
test ax, ax
je 0x40180a
jmp 0x4017f0
cmp ax, 0x20
jne 0x401804
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4017f0
jmp 0x40180a
mov esi, ecx
test ecx, ecx
jne 0x40180f
mov esi, 0x40f3f4
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.00407550
lea edx, [ebp - 0x20c]
add esp, 0xc
mov eax, esi
sub edx, esi
jmp 0x401840
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401840
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
jmp 0x401860
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401860
mov ecx, dword [str.__uac]
mov edx, dword [0x40f3fc]
mov dword [eax], ecx
mov ecx, dword [0x40f400]
mov dword [eax + 4], edx
xor edx, edx
push 0x206
mov dword [eax + 8], ecx
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.00407550
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x38
lea edx, [ebp - 0x560]
push 0
push edx
call fcn.00407550
add esp, 0xc
lea edx, [ebp - 0x564]
lea eax, [ebp - 0x414]
lea ecx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x564], 0x3c
mov dword [ebp - 0x560], 0x440
mov dword [ebp - 0x554], eax
mov dword [ebp - 0x558], str.runas
mov dword [ebp - 0x550], ecx
mov dword [ebp - 0x54c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402464
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.00402464
mov esp, ebp
pop ebp
ret
Function at 0x402464
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41107c]
jne 0x40246e
repz ret
jmp fcn.0040340f

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x402d01
call fcn.00403a47
mov dword [eax], esi
call fcn.00403a34
push 0x16
pop esi
mov dword [eax], esi
call fcn.004039e2
mov eax, esi
jmp 0x402d56
test dword [ebp + 0xc], 0xfffffff9
jne 0x402ce7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402d2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403a5a
pop ecx
call fcn.00403a34
mov eax, dword [eax]
jmp 0x402d56
test al, 0x10
jne 0x402d54
test al, 1
je 0x402d54
test byte [ebp + 0xc], 2
je 0x402d54
call fcn.00403a47
mov dword [eax], 5
call fcn.00403a34
mov dword [eax], 0xd
jmp 0x402d25
xor eax, eax
pop esi
pop ebp
ret
Function at 0x409d5e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41107c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404993
and dword [ebp - 0x14], 0
cmp dword [0x412d50], 0
mov dword [ebp - 0x18], eax
jne 0x409e11
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409eb9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40e8d4
push ebx
call edi
test eax, eax
je 0x409eb9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x412d50], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x412d54], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x412d58], eax
call edi
push eax
call esi
mov dword [0x412d60], eax
test eax, eax
je 0x409e11
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x412d5c], eax
mov eax, dword [0x412d5c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409e6a
cmp dword [0x412d60], ecx
je 0x409e6a
push eax
call esi
push dword [0x412d60]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409e6a
test ebx, ebx
je 0x409e6a
call edi
test eax, eax
je 0x409e61
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409e61
test byte [ebp - 8], 1
jne 0x409e6a
or dword [ebp + 0x10], 0x200000
jmp 0x409e9d
mov eax, dword [0x412d54]
cmp eax, dword [ebp - 0x18]
je 0x409e9d
push eax
call esi
test eax, eax
je 0x409e9d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409e9d
mov eax, dword [0x412d58]
cmp eax, dword [ebp - 0x18]
je 0x409e9d
push eax
call esi
test eax, eax
je 0x409e9d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x412d50]
call esi
test eax, eax
je 0x409eb9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409ebb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402464
leave
ret
Function at 0x10006c40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, 0x811c9dc5
xor edx, edx
movzx eax, byte [edx + ecx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, 4
jb 0x10006c48
mov eax, esi
pop esi
ret
Function at 0x10013092
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100130a7
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x100130ad
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
pop ebp
ret
Function at 0x10018681
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001869c
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x10018806
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x10018771
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10013557
mov ecx, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x10018746
mov dword [ebp - 0x14], 1
jmp 0x1001874a
and dword [ebp - 0x14], 0
push 0
mov ecx, dword [ebp - 0x50]
call fcn.10013557
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x54]
push dword [eax]
mov ecx, dword [ebp - 0x24]
call fcn.10013557
cmp dword [eax], 0
jne 0x10018771
and dword [ebp - 0x18], 0
jmp 0x10018778
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0xfffffff9
je 0x10018796
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10013557
cmp dword [eax], 0
je 0x10018796
mov dword [ebp - 0x1c], 1
jmp 0x1001879a
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
cmp dword [ebp - 0x1c], eax
jg 0x100187ad
mov dword [ebp - 0x5c], 1
jmp 0x100187b1
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jl 0x100187ce
mov dword [ebp - 0x20], 1
jmp 0x100187d2
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0x486
jl 0x100187e4
mov dword [ebp - 0x10], 1
jmp 0x100187e8
and dword [ebp - 0x10], 0
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10013557
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
push 2
mov ecx, dword [ebp - 0x24]
call fcn.10013557
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10023fc2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10023fe8
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10023fe6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x10024039
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push 0
push dword [ebp - 0x1c]
push 0x2bbb
mov eax, dword [ebp - 0x20]
push dword [eax]
mov eax, dword [ebp - 0x24]
push dword [eax]
call fcn.10022cfb
add esp, 0x18
mov esp, ebp
pop ebp
ret
Function at 0x1002403d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002405d
push 0
push 0xa91
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1002419e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10013557
mov ecx, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0x2bbd4aa4
jle 0x100240fd
mov dword [ebp - 0x50], 1
jmp 0x10024101
and dword [ebp - 0x50], 0
mov eax, 0xfd0a
test eax, eax
je 0x10024124
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 0xfffb
mov ecx, dword [ebp - 0x54]
cmp eax, dword [ecx]
jle 0x10024124
mov dword [ebp - 0x58], 1
jmp 0x10024128
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x5c]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jge 0x10024157
mov dword [ebp - 0x18], 1
jmp 0x1002415b
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x60]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10013557
mov eax, dword [eax]
cmp eax, dword [ebp - 0x18]
jne 0x10024178
mov dword [ebp - 0x1c], 1
jmp 0x1002417c
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xf2a6
cmp eax, 2
je 0x10024192
mov dword [ebp - 0x20], 1
jmp 0x10024196
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10028a5e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10028aa1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
lea eax, [eax*4 + 4]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push dword [eax + 8]
call fcn.1004d3cc
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [ecx + 8], eax
jmp 0x10028aba
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10028aba
push 0x24f5
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esp, ebp
pop ebp
ret

Function at 0x100295bb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push 1
call fcn.1002939e
add esp, 0xc
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x100295eb
xor eax, eax
jmp 0x1002972b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10029609
xor eax, eax
jmp 0x1002972b
push 0
lea eax, [ebp - 0xc]
push eax
push 0x48fd
lea eax, [ebp - 8]
push eax
call fcn.10029565
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x1002962d
xor eax, eax
jmp 0x1002972b
lea eax, [ebp - 8]
push eax
push 0x5fcd
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 4]
push eax
push 0x487a
call fcn.100293e1
add esp, 0x20
push 0x34d9
push dword [ebp - 8]
push 0
push dword [ebp - 4]
push 0x416f
push dword [ebp + 8]
push 0x7f49
call fcn.10025e40
add esp, 0x1c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x10029697
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 4]
push eax
call fcn.100294a3
add esp, 0xc
push dword [ebp - 4]
call fcn.10028abe
pop ecx
test eax, eax
jne 0x100296ab
xor eax, eax
jmp 0x1002972b
lea eax, [ebp - 4]
push eax
push 0x7565
push 1
push 0x7f39
call fcn.100294fe
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10029713
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x100296e2
xor eax, eax
jmp 0x1002972b
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100296fb
xor eax, eax
jmp 0x1002972b
push 1
push 0x7673
lea eax, [ebp - 4]
push eax
push 0x7e61
call fcn.10029565
add esp, 0x10
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10029724
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10029728
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1003d921
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1003d954
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x1003d94f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x1003da44
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
mov dword [eax], 1
jmp 0x1003d99a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jl 0x1003da44
mov dword [ebp - 0xc], 0xfffffffc
mov dword [ebp - 8], 0
jmp 0x1003d9bd
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jge 0x1003d9d0
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x44], 0xfffffffa
jmp 0x1003d9b6
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x44], 2
jbe 0x1003da05
push 1
mov ecx, dword [ebp - 0x30]
call fcn.10013557
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x44], 0
je 0x1003da05
mov dword [ebp - 0x34], 1
jmp 0x1003da09
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x1003da33
mov eax, 0x2c32b96c
test eax, eax
je 0x1003da33
mov dword [ebp - 0x14], 1
jmp 0x1003da37
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
jmp 0x1003d98f
mov esp, ebp
pop ebp
ret

Function at 0x1003e926
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1003e953
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1003e951
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x1003e95d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov esp, ebp
pop ebp
ret