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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4116ec]
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 0x391246
xor al, al
jmp 0x391357
call fcn.00392470
movzx ecx, al
test ecx, ecx
jne 0x391276
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 0x391276
xor al, al
jmp 0x391357
lea ecx, [ebp - 0x238]
push ecx
call fcn.00392450
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jbe 0x3912c7
mov edx, dword [ebp - 0x24]
movzx eax, word [ebp + edx*2 - 0x23a]
cmp eax, 0x5c
je 0x3912c7
push 0xffffffffffffffff
push 0x3be90c
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.00392500
add esp, 0x10
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x104
jb 0x3912d7
xor al, al
jmp 0x391357
mov ecx, dword [ebp + 8]
call fcn.00388b20
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0038a380
add esp, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.00388f80
lea ecx, [ebp - 0x20]
call fcn.002b0ca0
cmp dword [ebp + 0x10], 0
je 0x391315
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00388fe0
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x391347
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 0x391347
mov dword [ebp - 0x240], 0
jmp 0x391351
mov dword [ebp - 0x240], 1
mov al, byte [ebp - 0x240]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00338a41
mov esp, ebp
pop ebp
ret 0xc

Function at 0x391370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x4116ec]
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.0035d370
add esp, 8
mov ecx, eax
call fcn.001f4c40
push eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00388bb0
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0035d370
add esp, 8
mov ecx, eax
call fcn.001f4c40
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.001f4e90
lea ecx, [ebp - 0x3c]
call fcn.002b0ca0
lea ecx, [ebp - 0x20]
call fcn.001f4e90
movzx edx, byte [ebp - 0x261]
test edx, edx
je 0x391418
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0038a380
add esp, 8
mov eax, dword [ebp + 8]
jmp 0x391428
push 0x3be4e2
mov ecx, dword [ebp + 8]
call fcn.001f6550
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00338a41
mov esp, ebp
pop ebp
ret 0xc
Function at 0x391440
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x4116ec]
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 0x39147e
xor al, al
jmp 0x39159e
xor edx, edx
je 0x39150c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00388bb0
push eax
push 0x3bebac
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00388bb0
push eax
push 0x3be9ac
push 0
push 0
push 0
push 2
push 0
push 0
lea ecx, [ebp - 0x100]
call fcn.00364170
mov ecx, eax
call fcn.0035f550
push eax
call fcn.001f16a0
add esp, 8
push eax
call fcn.001f9f20
add esp, 8
push eax
call fcn.001f16a0
add esp, 8
push eax
call fcn.001f9f20
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00364580
lea ecx, [ebp - 0x3c]
call fcn.002b0ca0
lea ecx, [ebp - 0x20]
call fcn.002b0ca0
jmp 0x39147e
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00388bb0
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.0035d370
add esp, 8
mov ecx, eax
call fcn.001f4c40
push eax
lea ecx, [ebp - 0x154]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00388bb0
push eax
lea edx, [ebp - 0x170]
push edx
call fcn.0035d370
add esp, 8
mov ecx, eax
call fcn.001f4c40
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.001f4e90
lea ecx, [ebp - 0x154]
call fcn.002b0ca0
lea ecx, [ebp - 0x138]
call fcn.001f4e90
lea ecx, [ebp - 0x11c]
call fcn.002b0ca0
mov al, byte [ebp - 0x171]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00338a41
mov esp, ebp
pop ebp
ret 8
Function at 0x3915b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4116ec]
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 0x3915ee
xor al, al
jmp 0x3917b1
xor edx, edx
je 0x39167c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00388bb0
push eax
push str._to
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00388bb0
push eax
push str.Moving
push 0
push 0
push 0
push 2
push 0
push 0
lea ecx, [ebp - 0x100]
call fcn.00364170
mov ecx, eax
call fcn.0035f550
push eax
call fcn.001f16a0
add esp, 8
push eax
call fcn.001f9f20
add esp, 8
push eax
call fcn.001f16a0
add esp, 8
push eax
call fcn.001f9f20
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00364580
lea ecx, [ebp - 0x3c]
call fcn.002b0ca0
lea ecx, [ebp - 0x20]
call fcn.002b0ca0
jmp 0x3915ee
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00388bb0
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.0035d370
add esp, 8
mov ecx, eax
call fcn.001f4c40
push eax
lea ecx, [ebp - 0x154]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00388bb0
push eax
lea edx, [ebp - 0x170]
push edx
call fcn.0035d370
add esp, 8
mov ecx, eax
call fcn.001f4c40
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.001f4e90
lea ecx, [ebp - 0x154]
call fcn.002b0ca0
lea ecx, [ebp - 0x138]
call fcn.001f4e90
lea ecx, [ebp - 0x11c]
call fcn.002b0ca0
movzx eax, byte [ebp - 0x231]
test eax, eax
je 0x3917af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x11
je 0x39176f
xor ecx, ecx
je 0x39176b
push str.Failed_to_move_file
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 4
push 0x10e
push 0x3bebc0
lea ecx, [ebp - 0x230]
call fcn.00364170
mov ecx, eax
call fcn.0035f550
push eax
call fcn.001f16a0
add esp, 8
lea ecx, [ebp - 0x230]
call fcn.00364580
jmp 0x391723
xor al, al
jmp 0x3917b1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x238]
call fcn.00389710
movzx ecx, al
test ecx, ecx
jne 0x39178d
xor al, al
jmp 0x3917b1
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 0x3917af
xor al, al
jmp 0x3917b1
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00338a41
mov esp, ebp
pop ebp
ret 8
Function at 0x391930
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4116ec]
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.00388bb0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0035d370
add esp, 8
mov ecx, eax
call fcn.001f4c40
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.001f4e90
lea ecx, [ebp - 0x20]
call fcn.002b0ca0
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
je 0x3919b6
xor al, al
jmp 0x3919de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 2
je 0x3919d4
cmp dword [ebp - 0x64], 3
je 0x3919d4
mov dword [ebp - 0x70], 0
jmp 0x3919db
mov dword [ebp - 0x70], 1
mov al, byte [ebp - 0x70]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00338a41
mov esp, ebp
pop ebp
ret 4

Function at 0x3919f0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x4116ec]
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.00388bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0035d370
add esp, 8
mov ecx, eax
call fcn.001f4c40
push eax
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp + 8]
call fcn.00388bb0
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0035d370
add esp, 8
mov ecx, eax
call fcn.001f4c40
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.001f4e90
lea ecx, [ebp - 0x58]
call fcn.002b0ca0
lea ecx, [ebp - 0x3c]
call fcn.001f4e90
lea ecx, [ebp - 0x20]
call fcn.002b0ca0
mov al, byte [ebp - 0x75]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00338a41
mov esp, ebp
pop ebp
ret 8
Function at 0x391a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x4116ec]
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 0x391ac6
xor al, al
jmp 0x391b56
call fcn.00392470
movzx ecx, al
test ecx, ecx
jne 0x391af3
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 0x391af3
xor al, al
jmp 0x391b56
lea ecx, [ebp - 0x250]
push ecx
call fcn.00392450
add esp, 4
push eax
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.00388bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0035d370
add esp, 8
mov ecx, eax
call fcn.001f4c40
push eax
call fcn.003924b0
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x251], al
lea ecx, [ebp - 0x3c]
call fcn.001f4e90
lea ecx, [ebp - 0x20]
call fcn.002b0ca0
mov al, byte [ebp - 0x251]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00338a41
mov esp, ebp
pop ebp
ret 4
Function at 0x391d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x4116ec]
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 0x391dca
xor al, al
jmp 0x391f7a
call fcn.00392470
movzx eax, al
test eax, eax
jne 0x391dfa
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 0x391dfa
xor al, al
jmp 0x391f7a
push 0xffffffffffffffff
push 0x3bea6c
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.00392570
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.0035d370
add esp, 8
mov ecx, eax
call fcn.001f4c40
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.00392500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x20]
call fcn.001f4e90
cmp dword [ebp - 0x60], 0
jbe 0x391ea1
mov eax, dword [ebp - 0x60]
movzx ecx, word [ebp + eax*2 - 0x272]
cmp ecx, 0x5c
je 0x391ea1
push 0xffffffffffffffff
push 0x3beb0c
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.00392500
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.0035d370
add esp, 8
mov ecx, eax
call fcn.001f4c40
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.00392500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x3c]
call fcn.001f4e90
cmp dword [ebp - 0x60], 0
jbe 0x391f2a
mov ecx, dword [ebp - 0x60]
movzx edx, word [ebp + ecx*2 - 0x272]
cmp edx, 0x5c
je 0x391f2a
push 0xffffffffffffffff
push 0x3bebbc
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.00392500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x104
jb 0x391f37
xor al, al
jmp 0x391f7a
mov ecx, dword [ebp + 8]
call fcn.00388b20
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0038a380
add esp, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.00388f80
lea ecx, [ebp - 0x58]
call fcn.002b0ca0
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.00338a41
mov esp, ebp
pop ebp
ret 8
Function at 0x392000
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4116ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
cmp dword [ebp + 0xc], 0
jne 0x392026
xor al, al
jmp 0x39223c
lea ecx, [ebp - 0x218]
call fcn.001f50e0
mov dword [ebp - 0x1fc], 0
push 4
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
call fcn.00389310
movzx ecx, al
test ecx, ecx
je 0x3920a1
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x20]
call fcn.001f6550
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0035d370
add esp, 8
push eax
lea ecx, [ebp - 0x218]
call fcn.001ffd10
lea ecx, [ebp - 0x3c]
call fcn.001f4e90
lea ecx, [ebp - 0x20]
call fcn.002b0ca0
lea ecx, [ebp - 0x218]
call fcn.001f4c40
mov dword [ebp - 0x1fc], eax
jmp 0x392108
push 0x3bec5c
push 2
push 0
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.00388e60
mov ecx, eax
call fcn.001fb350
push eax
call fcn.001fe3d0
add esp, 8
mov byte [ebp - 0x231], al
lea ecx, [ebp - 0x74]
call fcn.002b0ca0
lea ecx, [ebp - 0x58]
call fcn.002b0ca0
movzx ecx, byte [ebp - 0x231]
test ecx, ecx
je 0x392108
mov byte [ebp - 0x232], 0
lea ecx, [ebp - 0x218]
call fcn.001f4e90
mov al, byte [ebp - 0x232]
jmp 0x39223c
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 0x392131
mov ecx, dword [ebp - 0x228]
and ecx, 0
je 0x39219b
xor edx, edx
je 0x39217e
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.00364170
mov ecx, eax
call fcn.0035f550
push eax
call fcn.001f16a0
add esp, 8
push eax
call fcn.001f16a0
add esp, 8
lea ecx, [ebp - 0x138]
call fcn.00364580
jmp 0x392131
mov byte [ebp - 0x233], 0
lea ecx, [ebp - 0x218]
call fcn.001f4e90
mov al, byte [ebp - 0x233]
jmp 0x39223c
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 0x3921da
mov byte [ebp - 0x234], 1
lea ecx, [ebp - 0x218]
call fcn.001f4e90
mov al, byte [ebp - 0x234]
jmp 0x39223c
xor edx, edx
je 0x392217
push str._GetDiskFreeSpaceEx_returns_error
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x1f8]
call fcn.00364170
mov ecx, eax
call fcn.0035f550
push eax
call fcn.001f16a0
add esp, 8
lea ecx, [ebp - 0x1f8]
call fcn.00364580
jmp 0x3921da
mov byte [ebp - 0x235], 0
lea ecx, [ebp - 0x218]
call fcn.001f4e90
mov al, byte [ebp - 0x235]
jmp 0x39223c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00338a41
mov esp, ebp
pop ebp
ret 8
Function at 0x392250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x4116ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x154], ecx
lea ecx, [ebp - 0x140]
call fcn.003889b0
mov dword [ebp - 0x148], 0
push 0
lea ecx, [ebp - 0x144]
call fcn.0037b8e0
lea ecx, [ebp - 0x144]
call fcn.0035da50
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 0x392328
xor ecx, ecx
je 0x3922fb
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.00364170
mov ecx, eax
call fcn.0035f550
push eax
call fcn.001f16a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.00364580
jmp 0x3922b3
lea edx, [ebp - 0x140]
push edx
mov ecx, dword [ebp + 8]
call fcn.00392400
lea ecx, [ebp - 0x144]
call fcn.003924d0
lea ecx, [ebp - 0x140]
call fcn.0037f370
mov eax, dword [ebp + 8]
jmp 0x3923e2
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x148]
jg 0x392338
jmp 0x392388
xor ecx, ecx
mov eax, dword [ebp - 0x14c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00337a7c
add esp, 4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x144]
call fcn.0035da10
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], ecx
mov edx, 1
test edx, edx
jne 0x39228b
lea ecx, [ebp - 0x144]
call fcn.0035da50
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.0038a380
add esp, 8
push eax
lea ecx, [ebp - 0x140]
call fcn.00388f80
lea ecx, [ebp - 0xe4]
call fcn.002b0ca0
lea ecx, [ebp - 0x140]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00392400
lea ecx, [ebp - 0x144]
call fcn.003924d0
lea ecx, [ebp - 0x140]
call fcn.0037f370
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00338a41
mov esp, ebp
pop ebp
ret 4

Function at 0x393a45
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 0x393a6c
call fcn.0033aeef
mov dword [eax], esi
call fcn.0033aedc
push 0x16
pop esi
mov dword [eax], esi
call fcn.00338cab
mov eax, esi
jmp 0x393ac1
test dword [ebp + 0xc], 0xfffffff9
jne 0x393a52
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x393a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0033af02
pop ecx
call fcn.0033aedc
mov eax, dword [eax]
jmp 0x393ac1
test al, 0x10
jne 0x393abf
test al, 1
je 0x393abf
test byte [ebp + 0xc], 2
je 0x393abf
call fcn.0033aeef
mov dword [eax], 5
call fcn.0033aedc
mov dword [eax], 0xd
jmp 0x393a90
xor eax, eax
pop esi
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x44e410c7
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x348e0ba4
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4026c4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040311c
test esi, esi
jne 0x4026fa
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040320c
jmp 0x402718
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025d8
mov edi, eax
test esi, esi
je 0x402718
cmp dword [ebx], 0
je 0x402718
dec esi
jmp 0x402701
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4028c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40b014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402958
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402938
xor eax, eax
push ebp
push 0x402931
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402974
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402938
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40b014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40b014], ax
mov esp, ebp
pop ebp
ret

Function at 0x402fa0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c034], 0
je 0x403001
cmp word [0x40c208], 0xd7b2
jne 0x402fc9
cmp dword [0x40c210], 0
jbe 0x402fc9
mov eax, 0x40c204
call dword [0x40c220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40b05c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403028
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40b020], 0
jne 0x40301d
push 0
push 0x40b054
push 0x40b05c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403f68
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403fce
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403344
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004027b4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403fb8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403fd5
lea eax, [ebp - 0x10]
call fcn.0040311c
ret