joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1301210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x13816ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
lea eax, [ebp - 0x238]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1301246
xor al, al
jmp 0x1301357
call fcn.01302470
movzx ecx, al
test ecx, ecx
jne 0x1301276
push 0x105
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x1301276
xor al, al
jmp 0x1301357
lea ecx, [ebp - 0x238]
push ecx
call fcn.01302450
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jbe 0x13012c7
mov edx, dword [ebp - 0x24]
movzx eax, word [ebp + edx*2 - 0x23a]
cmp eax, 0x5c
je 0x13012c7
push 0xffffffffffffffff
push 0x132e90c
mov ecx, 0x105
sub ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x24]
lea eax, [ebp + edx*2 - 0x238]
push eax
call fcn.01302500
add esp, 0x10
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x104
jb 0x13012d7
xor al, al
jmp 0x1301357
mov ecx, dword [ebp + 8]
call fcn.012f8b20
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.012fa380
add esp, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.012f8f80
lea ecx, [ebp - 0x20]
call fcn.01220ca0
cmp dword [ebp + 0x10], 0
je 0x1301315
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.012f8fe0
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x1301347
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x20]
call eax
movzx ecx, al
test ecx, ecx
jne 0x1301347
mov dword [ebp - 0x240], 0
jmp 0x1301351
mov dword [ebp - 0x240], 1
mov al, byte [ebp - 0x240]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.012a8a41
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1301370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x13816ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x268], ecx
lea eax, [ebp - 0x260]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.012cd370
add esp, 8
mov ecx, eax
call fcn.01164c40
push eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.012f8bb0
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.012cd370
add esp, 8
mov ecx, eax
call fcn.01164c40
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x261], al
lea ecx, [ebp - 0x58]
call fcn.01164e90
lea ecx, [ebp - 0x3c]
call fcn.01220ca0
lea ecx, [ebp - 0x20]
call fcn.01164e90
movzx edx, byte [ebp - 0x261]
test edx, edx
je 0x1301418
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.012fa380
add esp, 8
mov eax, dword [ebp + 8]
jmp 0x1301428
push 0x132e4e2
mov ecx, dword [ebp + 8]
call fcn.01166550
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.012a8a41
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1301440
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x13816ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x178], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x178]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x178]
mov eax, dword [edx + 0x34]
call eax
movzx ecx, al
test ecx, ecx
jne 0x130147e
xor al, al
jmp 0x130159e
xor edx, edx
je 0x130150c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.012f8bb0
push eax
push 0x132ebac
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.012f8bb0
push eax
push 0x132e9ac
push 0
push 0
push 0
push 2
push 0
push 0
lea ecx, [ebp - 0x100]
call fcn.012d4170
mov ecx, eax
call fcn.012cf550
push eax
call fcn.011616a0
add esp, 8
push eax
call fcn.01169f20
add esp, 8
push eax
call fcn.011616a0
add esp, 8
push eax
call fcn.01169f20
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.012d4580
lea ecx, [ebp - 0x3c]
call fcn.01220ca0
lea ecx, [ebp - 0x20]
call fcn.01220ca0
jmp 0x130147e
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.012f8bb0
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.012cd370
add esp, 8
mov ecx, eax
call fcn.01164c40
push eax
lea ecx, [ebp - 0x154]
push ecx
mov ecx, dword [ebp + 8]
call fcn.012f8bb0
push eax
lea edx, [ebp - 0x170]
push edx
call fcn.012cd370
add esp, 8
mov ecx, eax
call fcn.01164c40
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x171], al
lea ecx, [ebp - 0x170]
call fcn.01164e90
lea ecx, [ebp - 0x154]
call fcn.01220ca0
lea ecx, [ebp - 0x138]
call fcn.01164e90
lea ecx, [ebp - 0x11c]
call fcn.01220ca0
mov al, byte [ebp - 0x171]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.012a8a41
mov esp, ebp
pop ebp
ret 8
Function at 0x13015b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x13816ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x238], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x238]
mov eax, dword [edx + 0x30]
call eax
movzx ecx, al
test ecx, ecx
jne 0x13015ee
xor al, al
jmp 0x13017b1
xor edx, edx
je 0x130167c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.012f8bb0
push eax
push str._to
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.012f8bb0
push eax
push str.Moving
push 0
push 0
push 0
push 2
push 0
push 0
lea ecx, [ebp - 0x100]
call fcn.012d4170
mov ecx, eax
call fcn.012cf550
push eax
call fcn.011616a0
add esp, 8
push eax
call fcn.01169f20
add esp, 8
push eax
call fcn.011616a0
add esp, 8
push eax
call fcn.01169f20
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.012d4580
lea ecx, [ebp - 0x3c]
call fcn.01220ca0
lea ecx, [ebp - 0x20]
call fcn.01220ca0
jmp 0x13015ee
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.012f8bb0
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.012cd370
add esp, 8
mov ecx, eax
call fcn.01164c40
push eax
lea ecx, [ebp - 0x154]
push ecx
mov ecx, dword [ebp + 8]
call fcn.012f8bb0
push eax
lea edx, [ebp - 0x170]
push edx
call fcn.012cd370
add esp, 8
mov ecx, eax
call fcn.01164c40
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x231], al
lea ecx, [ebp - 0x170]
call fcn.01164e90
lea ecx, [ebp - 0x154]
call fcn.01220ca0
lea ecx, [ebp - 0x138]
call fcn.01164e90
lea ecx, [ebp - 0x11c]
call fcn.01220ca0
movzx eax, byte [ebp - 0x231]
test eax, eax
je 0x13017af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x11
je 0x130176f
xor ecx, ecx
je 0x130176b
push str.Failed_to_move_file
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 4
push 0x10e
push 0x132ebc0
lea ecx, [ebp - 0x230]
call fcn.012d4170
mov ecx, eax
call fcn.012cf550
push eax
call fcn.011616a0
add esp, 8
lea ecx, [ebp - 0x230]
call fcn.012d4580
jmp 0x1301723
xor al, al
jmp 0x13017b1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x238]
call fcn.012f9710
movzx ecx, al
test ecx, ecx
jne 0x130178d
xor al, al
jmp 0x13017b1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x238]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x238]
mov eax, dword [edx + 0x1c]
call eax
movzx ecx, al
test ecx, ecx
jne 0x13017af
xor al, al
jmp 0x13017b1
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.012a8a41
mov esp, ebp
pop ebp
ret 8
Function at 0x1301930
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x13816ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x60]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.012f8bb0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.012cd370
add esp, 8
mov ecx, eax
call fcn.01164c40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x65], al
lea ecx, [ebp - 0x3c]
call fcn.01164e90
lea ecx, [ebp - 0x20]
call fcn.01220ca0
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
je 0x13019b6
xor al, al
jmp 0x13019de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 2
je 0x13019d4
cmp dword [ebp - 0x64], 3
je 0x13019d4
mov dword [ebp - 0x70], 0
jmp 0x13019db
mov dword [ebp - 0x70], 1
mov al, byte [ebp - 0x70]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.012a8a41
mov esp, ebp
pop ebp
ret 4

Function at 0x13019f0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x13816ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x7c], ecx
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.012f8bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.012cd370
add esp, 8
mov ecx, eax
call fcn.01164c40
push eax
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp + 8]
call fcn.012f8bb0
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.012cd370
add esp, 8
mov ecx, eax
call fcn.01164c40
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x75], al
lea ecx, [ebp - 0x74]
call fcn.01164e90
lea ecx, [ebp - 0x58]
call fcn.01220ca0
lea ecx, [ebp - 0x3c]
call fcn.01164e90
lea ecx, [ebp - 0x20]
call fcn.01220ca0
mov al, byte [ebp - 0x75]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.012a8a41
mov esp, ebp
pop ebp
ret 8
Function at 0x1301a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x13816ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x258], ecx
lea eax, [ebp - 0x250]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1301ac6
xor al, al
jmp 0x1301b56
call fcn.01302470
movzx ecx, al
test ecx, ecx
jne 0x1301af3
push 0x105
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x1301af3
xor al, al
jmp 0x1301b56
lea ecx, [ebp - 0x250]
push ecx
call fcn.01302450
add esp, 4
push eax
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.012f8bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.012cd370
add esp, 8
mov ecx, eax
call fcn.01164c40
push eax
call fcn.013024b0
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x251], al
lea ecx, [ebp - 0x3c]
call fcn.01164e90
lea ecx, [ebp - 0x20]
call fcn.01220ca0
mov al, byte [ebp - 0x251]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.012a8a41
mov esp, ebp
pop ebp
ret 4
Function at 0x1301d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x13816ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x274], ecx
movzx eax, byte [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x23
mov dword [ebp - 0x5c], eax
push 1
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x270]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x1301dca
xor al, al
jmp 0x1301f7a
call fcn.01302470
movzx eax, al
test eax, eax
jne 0x1301dfa
push 0x105
lea ecx, [ebp - 0x270]
push ecx
lea edx, [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x1301dfa
xor al, al
jmp 0x1301f7a
push 0xffffffffffffffff
push 0x132ea6c
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.01302570
add esp, 0x10
mov dword [ebp - 0x60], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x274]
add ecx, 4
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.012cd370
add esp, 8
mov ecx, eax
call fcn.01164c40
push eax
mov eax, 0x105
sub eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp + ecx*2 - 0x270]
push edx
call fcn.01302500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x20]
call fcn.01164e90
cmp dword [ebp - 0x60], 0
jbe 0x1301ea1
mov eax, dword [ebp - 0x60]
movzx ecx, word [ebp + eax*2 - 0x272]
cmp ecx, 0x5c
je 0x1301ea1
push 0xffffffffffffffff
push 0x132eb0c
mov edx, 0x105
sub edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x60]
lea ecx, [ebp + eax*2 - 0x270]
push ecx
call fcn.01302500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 0x274]
add edx, 0x20
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.012cd370
add esp, 8
mov ecx, eax
call fcn.01164c40
push eax
mov ecx, 0x105
sub ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x60]
lea eax, [ebp + edx*2 - 0x270]
push eax
call fcn.01302500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x3c]
call fcn.01164e90
cmp dword [ebp - 0x60], 0
jbe 0x1301f2a
mov ecx, dword [ebp - 0x60]
movzx edx, word [ebp + ecx*2 - 0x272]
cmp edx, 0x5c
je 0x1301f2a
push 0xffffffffffffffff
push 0x132ebbc
mov eax, 0x105
sub eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp + ecx*2 - 0x270]
push edx
call fcn.01302500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x104
jb 0x1301f37
xor al, al
jmp 0x1301f7a
mov ecx, dword [ebp + 8]
call fcn.012f8b20
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.012fa380
add esp, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.012f8f80
lea ecx, [ebp - 0x58]
call fcn.01220ca0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x274]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x274]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.012a8a41
mov esp, ebp
pop ebp
ret 8
Function at 0x1302000
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x13816ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
cmp dword [ebp + 0xc], 0
jne 0x1302026
xor al, al
jmp 0x130223c
lea ecx, [ebp - 0x218]
call fcn.011650e0
mov dword [ebp - 0x1fc], 0
push 4
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
call fcn.012f9310
movzx ecx, al
test ecx, ecx
je 0x13020a1
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x20]
call fcn.01166550
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.012cd370
add esp, 8
push eax
lea ecx, [ebp - 0x218]
call fcn.0116fd10
lea ecx, [ebp - 0x3c]
call fcn.01164e90
lea ecx, [ebp - 0x20]
call fcn.01220ca0
lea ecx, [ebp - 0x218]
call fcn.01164c40
mov dword [ebp - 0x1fc], eax
jmp 0x1302108
push 0x132ec5c
push 2
push 0
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.012f8e60
mov ecx, eax
call fcn.0116b350
push eax
call fcn.0116e3d0
add esp, 8
mov byte [ebp - 0x231], al
lea ecx, [ebp - 0x74]
call fcn.01220ca0
lea ecx, [ebp - 0x58]
call fcn.01220ca0
movzx ecx, byte [ebp - 0x231]
test ecx, ecx
je 0x1302108
mov byte [ebp - 0x232], 0
lea ecx, [ebp - 0x218]
call fcn.01164e90
mov al, byte [ebp - 0x232]
jmp 0x130223c
mov edx, dword [ebp - 0x1fc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
and eax, 4
jne 0x1302131
mov ecx, dword [ebp - 0x228]
and ecx, 0
je 0x130219b
xor edx, edx
je 0x130217e
lea eax, [ebp - 0x224]
push eax
push str._remove_or_unknown_drive
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x138]
call fcn.012d4170
mov ecx, eax
call fcn.012cf550
push eax
call fcn.011616a0
add esp, 8
push eax
call fcn.011616a0
add esp, 8
lea ecx, [ebp - 0x138]
call fcn.012d4580
jmp 0x1302131
mov byte [ebp - 0x233], 0
lea ecx, [ebp - 0x218]
call fcn.01164e90
mov al, byte [ebp - 0x233]
jmp 0x130223c
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1fc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x13021da
mov byte [ebp - 0x234], 1
lea ecx, [ebp - 0x218]
call fcn.01164e90
mov al, byte [ebp - 0x234]
jmp 0x130223c
xor edx, edx
je 0x1302217
push str._GetDiskFreeSpaceEx_returns_error
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x1f8]
call fcn.012d4170
mov ecx, eax
call fcn.012cf550
push eax
call fcn.011616a0
add esp, 8
lea ecx, [ebp - 0x1f8]
call fcn.012d4580
jmp 0x13021da
mov byte [ebp - 0x235], 0
lea ecx, [ebp - 0x218]
call fcn.01164e90
mov al, byte [ebp - 0x235]
jmp 0x130223c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.012a8a41
mov esp, ebp
pop ebp
ret 8
Function at 0x1302250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x13816ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x154], ecx
lea ecx, [ebp - 0x140]
call fcn.012f89b0
mov dword [ebp - 0x148], 0
push 0
lea ecx, [ebp - 0x144]
call fcn.012eb8e0
lea ecx, [ebp - 0x144]
call fcn.012cda50
push eax
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0x1302328
xor ecx, ecx
je 0x13022fb
push str.::GetCurrentDirectory___failed
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 4
push 0x1c0
push str.P:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclient_third_partylibjingle_files_talk_basewin32filesystem.cc
lea ecx, [ebp - 0xc8]
call fcn.012d4170
mov ecx, eax
call fcn.012cf550
push eax
call fcn.011616a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.012d4580
jmp 0x13022b3
lea edx, [ebp - 0x140]
push edx
mov ecx, dword [ebp + 8]
call fcn.01302400
lea ecx, [ebp - 0x144]
call fcn.013024d0
lea ecx, [ebp - 0x140]
call fcn.012ef370
mov eax, dword [ebp + 8]
jmp 0x13023e2
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x148]
jg 0x1302338
jmp 0x1302388
xor ecx, ecx
mov eax, dword [ebp - 0x14c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.012a7a7c
add esp, 4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x144]
call fcn.012cda10
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], ecx
mov edx, 1
test edx, edx
jne 0x130228b
lea ecx, [ebp - 0x144]
call fcn.012cda50
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.012fa380
add esp, 8
push eax
lea ecx, [ebp - 0x140]
call fcn.012f8f80
lea ecx, [ebp - 0xe4]
call fcn.01220ca0
lea ecx, [ebp - 0x140]
push ecx
mov ecx, dword [ebp + 8]
call fcn.01302400
lea ecx, [ebp - 0x144]
call fcn.013024d0
lea ecx, [ebp - 0x140]
call fcn.012ef370
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.012a8a41
mov esp, ebp
pop ebp
ret 4

Function at 0x1303a45
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 0x1303a6c
call fcn.012aaeef
mov dword [eax], esi
call fcn.012aaedc
push 0x16
pop esi
mov dword [eax], esi
call fcn.012a8cab
mov eax, esi
jmp 0x1303ac1
test dword [ebp + 0xc], 0xfffffff9
jne 0x1303a52
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1303a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.012aaf02
pop ecx
call fcn.012aaedc
mov eax, dword [eax]
jmp 0x1303ac1
test al, 0x10
jne 0x1303abf
test al, 1
je 0x1303abf
test byte [ebp + 0xc], 2
je 0x1303abf
call fcn.012aaeef
mov dword [eax], 5
call fcn.012aaedc
mov dword [eax], 0xd
jmp 0x1303a90
xor eax, eax
pop esi
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x421870
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x421892
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421899
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421888
mov eax, 1
add ebx, ebx
jne 0x4218ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4218a0
jne 0x4218bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4218a0
xor ecx, ecx
sub eax, 3
jb 0x4218d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421942
mov ebp, eax
add ebx, ebx
jne 0x4218db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4218e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42190c
inc ecx
add ebx, ebx
jne 0x4218f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4218ed
jne 0x421909
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4218ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42192c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42191d
jmp 0x42188e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42192c
add edi, ecx
jmp 0x42188e
pop esi
mov edi, esi
mov ecx, 0x436
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42194a
cmp byte [edi], 7
jne 0x42194a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42194f
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x4219be
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x25bcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x25c38]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42197c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x25c40]
or eax, eax
je 0x4219b8
mov dword [ebx], eax
add ebx, 4
jmp 0x421999
call dword [esi + 0x25c3c]
mov ebp, dword [esi + 0x25c44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4219f2
sub esp, 0xffffff80
jmp 0x405762