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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x13116ec]
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 0x1291246
xor al, al
jmp 0x1291357
call fcn.01292470
movzx ecx, al
test ecx, ecx
jne 0x1291276
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 0x1291276
xor al, al
jmp 0x1291357
lea ecx, [ebp - 0x238]
push ecx
call fcn.01292450
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jbe 0x12912c7
mov edx, dword [ebp - 0x24]
movzx eax, word [ebp + edx*2 - 0x23a]
cmp eax, 0x5c
je 0x12912c7
push 0xffffffffffffffff
push 0x12be90c
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.01292500
add esp, 0x10
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x104
jb 0x12912d7
xor al, al
jmp 0x1291357
mov ecx, dword [ebp + 8]
call fcn.01288b20
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0128a380
add esp, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.01288f80
lea ecx, [ebp - 0x20]
call fcn.011b0ca0
cmp dword [ebp + 0x10], 0
je 0x1291315
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.01288fe0
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x1291347
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 0x1291347
mov dword [ebp - 0x240], 0
jmp 0x1291351
mov dword [ebp - 0x240], 1
mov al, byte [ebp - 0x240]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01238a41
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1291370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x13116ec]
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.0125d370
add esp, 8
mov ecx, eax
call fcn.010f4c40
push eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.01288bb0
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0125d370
add esp, 8
mov ecx, eax
call fcn.010f4c40
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.010f4e90
lea ecx, [ebp - 0x3c]
call fcn.011b0ca0
lea ecx, [ebp - 0x20]
call fcn.010f4e90
movzx edx, byte [ebp - 0x261]
test edx, edx
je 0x1291418
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0128a380
add esp, 8
mov eax, dword [ebp + 8]
jmp 0x1291428
push 0x12be4e2
mov ecx, dword [ebp + 8]
call fcn.010f6550
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01238a41
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1291440
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x13116ec]
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 0x129147e
xor al, al
jmp 0x129159e
xor edx, edx
je 0x129150c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.01288bb0
push eax
push 0x12bebac
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.01288bb0
push eax
push 0x12be9ac
push 0
push 0
push 0
push 2
push 0
push 0
lea ecx, [ebp - 0x100]
call fcn.01264170
mov ecx, eax
call fcn.0125f550
push eax
call fcn.010f16a0
add esp, 8
push eax
call fcn.010f9f20
add esp, 8
push eax
call fcn.010f16a0
add esp, 8
push eax
call fcn.010f9f20
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.01264580
lea ecx, [ebp - 0x3c]
call fcn.011b0ca0
lea ecx, [ebp - 0x20]
call fcn.011b0ca0
jmp 0x129147e
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.01288bb0
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.0125d370
add esp, 8
mov ecx, eax
call fcn.010f4c40
push eax
lea ecx, [ebp - 0x154]
push ecx
mov ecx, dword [ebp + 8]
call fcn.01288bb0
push eax
lea edx, [ebp - 0x170]
push edx
call fcn.0125d370
add esp, 8
mov ecx, eax
call fcn.010f4c40
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.010f4e90
lea ecx, [ebp - 0x154]
call fcn.011b0ca0
lea ecx, [ebp - 0x138]
call fcn.010f4e90
lea ecx, [ebp - 0x11c]
call fcn.011b0ca0
mov al, byte [ebp - 0x171]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01238a41
mov esp, ebp
pop ebp
ret 8
Function at 0x12915b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x13116ec]
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 0x12915ee
xor al, al
jmp 0x12917b1
xor edx, edx
je 0x129167c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.01288bb0
push eax
push str._to
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.01288bb0
push eax
push str.Moving
push 0
push 0
push 0
push 2
push 0
push 0
lea ecx, [ebp - 0x100]
call fcn.01264170
mov ecx, eax
call fcn.0125f550
push eax
call fcn.010f16a0
add esp, 8
push eax
call fcn.010f9f20
add esp, 8
push eax
call fcn.010f16a0
add esp, 8
push eax
call fcn.010f9f20
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.01264580
lea ecx, [ebp - 0x3c]
call fcn.011b0ca0
lea ecx, [ebp - 0x20]
call fcn.011b0ca0
jmp 0x12915ee
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.01288bb0
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.0125d370
add esp, 8
mov ecx, eax
call fcn.010f4c40
push eax
lea ecx, [ebp - 0x154]
push ecx
mov ecx, dword [ebp + 8]
call fcn.01288bb0
push eax
lea edx, [ebp - 0x170]
push edx
call fcn.0125d370
add esp, 8
mov ecx, eax
call fcn.010f4c40
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.010f4e90
lea ecx, [ebp - 0x154]
call fcn.011b0ca0
lea ecx, [ebp - 0x138]
call fcn.010f4e90
lea ecx, [ebp - 0x11c]
call fcn.011b0ca0
movzx eax, byte [ebp - 0x231]
test eax, eax
je 0x12917af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x11
je 0x129176f
xor ecx, ecx
je 0x129176b
push str.Failed_to_move_file
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 4
push 0x10e
push 0x12bebc0
lea ecx, [ebp - 0x230]
call fcn.01264170
mov ecx, eax
call fcn.0125f550
push eax
call fcn.010f16a0
add esp, 8
lea ecx, [ebp - 0x230]
call fcn.01264580
jmp 0x1291723
xor al, al
jmp 0x12917b1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x238]
call fcn.01289710
movzx ecx, al
test ecx, ecx
jne 0x129178d
xor al, al
jmp 0x12917b1
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 0x12917af
xor al, al
jmp 0x12917b1
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01238a41
mov esp, ebp
pop ebp
ret 8
Function at 0x1291930
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x13116ec]
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.01288bb0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0125d370
add esp, 8
mov ecx, eax
call fcn.010f4c40
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.010f4e90
lea ecx, [ebp - 0x20]
call fcn.011b0ca0
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
je 0x12919b6
xor al, al
jmp 0x12919de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 2
je 0x12919d4
cmp dword [ebp - 0x64], 3
je 0x12919d4
mov dword [ebp - 0x70], 0
jmp 0x12919db
mov dword [ebp - 0x70], 1
mov al, byte [ebp - 0x70]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01238a41
mov esp, ebp
pop ebp
ret 4

Function at 0x12919f0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x13116ec]
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.01288bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0125d370
add esp, 8
mov ecx, eax
call fcn.010f4c40
push eax
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp + 8]
call fcn.01288bb0
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0125d370
add esp, 8
mov ecx, eax
call fcn.010f4c40
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.010f4e90
lea ecx, [ebp - 0x58]
call fcn.011b0ca0
lea ecx, [ebp - 0x3c]
call fcn.010f4e90
lea ecx, [ebp - 0x20]
call fcn.011b0ca0
mov al, byte [ebp - 0x75]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01238a41
mov esp, ebp
pop ebp
ret 8
Function at 0x1291a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x13116ec]
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 0x1291ac6
xor al, al
jmp 0x1291b56
call fcn.01292470
movzx ecx, al
test ecx, ecx
jne 0x1291af3
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 0x1291af3
xor al, al
jmp 0x1291b56
lea ecx, [ebp - 0x250]
push ecx
call fcn.01292450
add esp, 4
push eax
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.01288bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0125d370
add esp, 8
mov ecx, eax
call fcn.010f4c40
push eax
call fcn.012924b0
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x251], al
lea ecx, [ebp - 0x3c]
call fcn.010f4e90
lea ecx, [ebp - 0x20]
call fcn.011b0ca0
mov al, byte [ebp - 0x251]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01238a41
mov esp, ebp
pop ebp
ret 4
Function at 0x1291d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x13116ec]
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 0x1291dca
xor al, al
jmp 0x1291f7a
call fcn.01292470
movzx eax, al
test eax, eax
jne 0x1291dfa
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 0x1291dfa
xor al, al
jmp 0x1291f7a
push 0xffffffffffffffff
push 0x12bea6c
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.01292570
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.0125d370
add esp, 8
mov ecx, eax
call fcn.010f4c40
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.01292500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x20]
call fcn.010f4e90
cmp dword [ebp - 0x60], 0
jbe 0x1291ea1
mov eax, dword [ebp - 0x60]
movzx ecx, word [ebp + eax*2 - 0x272]
cmp ecx, 0x5c
je 0x1291ea1
push 0xffffffffffffffff
push 0x12beb0c
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.01292500
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.0125d370
add esp, 8
mov ecx, eax
call fcn.010f4c40
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.01292500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x3c]
call fcn.010f4e90
cmp dword [ebp - 0x60], 0
jbe 0x1291f2a
mov ecx, dword [ebp - 0x60]
movzx edx, word [ebp + ecx*2 - 0x272]
cmp edx, 0x5c
je 0x1291f2a
push 0xffffffffffffffff
push 0x12bebbc
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.01292500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x104
jb 0x1291f37
xor al, al
jmp 0x1291f7a
mov ecx, dword [ebp + 8]
call fcn.01288b20
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0128a380
add esp, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.01288f80
lea ecx, [ebp - 0x58]
call fcn.011b0ca0
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.01238a41
mov esp, ebp
pop ebp
ret 8
Function at 0x1292000
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x13116ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
cmp dword [ebp + 0xc], 0
jne 0x1292026
xor al, al
jmp 0x129223c
lea ecx, [ebp - 0x218]
call fcn.010f50e0
mov dword [ebp - 0x1fc], 0
push 4
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
call fcn.01289310
movzx ecx, al
test ecx, ecx
je 0x12920a1
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x20]
call fcn.010f6550
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0125d370
add esp, 8
push eax
lea ecx, [ebp - 0x218]
call fcn.010ffd10
lea ecx, [ebp - 0x3c]
call fcn.010f4e90
lea ecx, [ebp - 0x20]
call fcn.011b0ca0
lea ecx, [ebp - 0x218]
call fcn.010f4c40
mov dword [ebp - 0x1fc], eax
jmp 0x1292108
push 0x12bec5c
push 2
push 0
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.01288e60
mov ecx, eax
call fcn.010fb350
push eax
call fcn.010fe3d0
add esp, 8
mov byte [ebp - 0x231], al
lea ecx, [ebp - 0x74]
call fcn.011b0ca0
lea ecx, [ebp - 0x58]
call fcn.011b0ca0
movzx ecx, byte [ebp - 0x231]
test ecx, ecx
je 0x1292108
mov byte [ebp - 0x232], 0
lea ecx, [ebp - 0x218]
call fcn.010f4e90
mov al, byte [ebp - 0x232]
jmp 0x129223c
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 0x1292131
mov ecx, dword [ebp - 0x228]
and ecx, 0
je 0x129219b
xor edx, edx
je 0x129217e
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.01264170
mov ecx, eax
call fcn.0125f550
push eax
call fcn.010f16a0
add esp, 8
push eax
call fcn.010f16a0
add esp, 8
lea ecx, [ebp - 0x138]
call fcn.01264580
jmp 0x1292131
mov byte [ebp - 0x233], 0
lea ecx, [ebp - 0x218]
call fcn.010f4e90
mov al, byte [ebp - 0x233]
jmp 0x129223c
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 0x12921da
mov byte [ebp - 0x234], 1
lea ecx, [ebp - 0x218]
call fcn.010f4e90
mov al, byte [ebp - 0x234]
jmp 0x129223c
xor edx, edx
je 0x1292217
push str._GetDiskFreeSpaceEx_returns_error
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x1f8]
call fcn.01264170
mov ecx, eax
call fcn.0125f550
push eax
call fcn.010f16a0
add esp, 8
lea ecx, [ebp - 0x1f8]
call fcn.01264580
jmp 0x12921da
mov byte [ebp - 0x235], 0
lea ecx, [ebp - 0x218]
call fcn.010f4e90
mov al, byte [ebp - 0x235]
jmp 0x129223c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01238a41
mov esp, ebp
pop ebp
ret 8
Function at 0x1292250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x13116ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x154], ecx
lea ecx, [ebp - 0x140]
call fcn.012889b0
mov dword [ebp - 0x148], 0
push 0
lea ecx, [ebp - 0x144]
call fcn.0127b8e0
lea ecx, [ebp - 0x144]
call fcn.0125da50
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 0x1292328
xor ecx, ecx
je 0x12922fb
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.01264170
mov ecx, eax
call fcn.0125f550
push eax
call fcn.010f16a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.01264580
jmp 0x12922b3
lea edx, [ebp - 0x140]
push edx
mov ecx, dword [ebp + 8]
call fcn.01292400
lea ecx, [ebp - 0x144]
call fcn.012924d0
lea ecx, [ebp - 0x140]
call fcn.0127f370
mov eax, dword [ebp + 8]
jmp 0x12923e2
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x148]
jg 0x1292338
jmp 0x1292388
xor ecx, ecx
mov eax, dword [ebp - 0x14c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01237a7c
add esp, 4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x144]
call fcn.0125da10
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], ecx
mov edx, 1
test edx, edx
jne 0x129228b
lea ecx, [ebp - 0x144]
call fcn.0125da50
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.0128a380
add esp, 8
push eax
lea ecx, [ebp - 0x140]
call fcn.01288f80
lea ecx, [ebp - 0xe4]
call fcn.011b0ca0
lea ecx, [ebp - 0x140]
push ecx
mov ecx, dword [ebp + 8]
call fcn.01292400
lea ecx, [ebp - 0x144]
call fcn.012924d0
lea ecx, [ebp - 0x140]
call fcn.0127f370
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01238a41
mov esp, ebp
pop ebp
ret 4

Function at 0x1293a45
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 0x1293a6c
call fcn.0123aeef
mov dword [eax], esi
call fcn.0123aedc
push 0x16
pop esi
mov dword [eax], esi
call fcn.01238cab
mov eax, esi
jmp 0x1293ac1
test dword [ebp + 0xc], 0xfffffff9
jne 0x1293a52
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1293a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0123af02
pop ecx
call fcn.0123aedc
mov eax, dword [eax]
jmp 0x1293ac1
test al, 0x10
jne 0x1293abf
test al, 1
je 0x1293abf
test byte [ebp + 0xc], 2
je 0x1293abf
call fcn.0123aeef
mov dword [eax], 5
call fcn.0123aedc
mov dword [eax], 0xd
jmp 0x1293a90
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4056ca
Capabilities:
Contain obfuscated stackstrings

Disassembly:
ror byte [ebp - 0x12a43], 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004047c8
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
cmp al, dh
test dword [eax + 0x27fffffc], ebp
movsd dword es:[edi], dword [esi]
cld
invalid
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.004047fa
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004047af
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.004047ea
inc ebx
scasd eax, dword es:[edi]
mov edx, eax
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.004047ea
jo 0x40578c
iretd

Function at 0x406503
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
invalid
invalid
Function at 0x409070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4090c2
test eax, edx
je 0x4090c5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409085
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4090ab
add ecx, 4
js 0x40909b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4090a8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4090d1
test edx, edx
jne 0x409078
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004056b8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409951
test al, 0x10
je 0x409955
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004056b8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409975
test al, 0x10
jne 0x409979
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409980
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004056b8
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4099a2
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c560
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c599
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405318
jmp 0x40c5a2
mov eax, ebx
mov edx, esi
call fcn.0040527c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c5ac
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c5ce
movzx eax, byte [esp]
jmp 0x40c5d0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret