joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a252
Capabilities:
Encode data using xor

Disassembly:
inc esi
cmp byte [edi - 4], bh
jl 0x10004846
wait
invalid
call 0x3f2be46d
cdq
shr byte [ecx - 0x308152ff], 0x74
stosd dword es:[edi], eax
xchg esp, eax
sbb al, 0xf7
das
xchg ecx, eax
stosd dword es:[edi], eax
iret
clc
jmp 0x1000a20d
pushal
stc
jb 0x1000a22b
or al, 0xb0
fdivr qword [ebp + 0x4ec89d6]
out 0xec, al
inc edx
mov ecx, 0xac210bdd
lcall 0x723c, 0xa5ca1252
xchg ebp, eax
into
push 0xffffffffffffffe8
and al, byte [eax]
add byte [eax], al
call 0x1000a252
rcl dword [ecx]
test al, 0x80
mov ebp, 0xd611a505
wait
adc ch, 0xb7
mov ah, 0x43
mov dl, 0xfb
nop
sbb ebx, dword [esi + 0x603f054e]
mov esp, 0x6e6a81df
cdq
sub dword [esi + ebx*2], esi
jmp 0x1000a25a
add esi, 0xffffff74
jmp 0x1000a276
cmp dword [esi], 0
stc
jb 0x1000a2a9
enter 0x7190, 0xf
jno 0x1000a28f
mov al, byte [0x3997b820]
add eax, 0x7772dd34
sal byte [ecx - 0x51], cl
adc al, byte [esi - 0x7e]
jae 0x1000a2b2
xor byte [ebx + 0x20], 0x45
inc ebp
inc esp
xor bl, byte [ebx]
cmc
xchg esp, eax
pushal
outsb dx, byte [esi]
mov byte [0xb27ccedf], al
inc eax
jecxz 0x1000a27e
call 0xd393a4bd
mov eax, 0x1ad840f
add byte [eax], al
je 0x1000a45c
jmp 0x1000a2d2
outsd dx, dword [esi]
sal dl, cl
in eax, dx
pop edx
cmpsb byte [esi], byte es:[edi]
std
ja 0x1000a2b5
dec esp
mov dl, 0x9f
out 0x93, eax
test eax, 0xdd8003cd
mov ch, 0x13
cmp ebp, dword [0x7aeb9c86]
retf
mov ecx, esi
jb 0x1000a2dc
adc eax, 0x9bcf658b
dec ebp
add esi, 4
jmp 0x1000a300
mov edx, dword [esi]
jmp 0x1000a333
jns 0x1000a337
add edx, esi
salc
clc
jae 0x1000a34a
adc dh, byte [ecx + ecx*8]
xor al, 0xc9
add dword [ecx - 0x2d79c6ad], esp
invalid
mov eax, dword [esi + 4]
jmp 0x1000a362
sub dword [edx], 0xacf1a893
jmp 0x1000a37d
add edx, 4
jmp 0x1000a394
sub eax, 1
stc
jmp 0x1000a39e
jne 0x1000a34d
jb 0x1000a3d4
jecxz 0x1000a332
invalid
add esi, 8
jmp 0x1000a406
sub dword [ecx], 1
jmp 0x1000a437
jne 0x1000a2df
jmp 0x1000a44c
mov ebx, esi
clc
jae 0x1000a457
pop edx
into
leave
call dword [esi + 0x19]
call fcn.1000a49d
jmp 0x1000a484
popal
clc
jae 0x1000a498
mov ebx, 0xe466fbe7
sbb dl, byte [edi - 0x1e383acb]
cmpsd dword [esi], dword es:[edi]
mov byte [0x99e929a3], 0xa3
invalid
jmp 0x10004836
Function at 0x1002ced
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 0xc]
cmp byte [edi], 0x22
push edi
jne 0x1002d3c
call esi
dec eax
push eax
inc edi
push edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x1002d45
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea eax, [ebp - 0x208]
je 0x1002d69
mov dword [0x1009920], 1
jmp 0x1002db4
push 0x100116c
push eax
call ebx
lea eax, [ebp - 0x208]
push eax
call esi
mov ecx, 0x208
sub ecx, eax
push ecx
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [ebp + eax - 0x208]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x100115c
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.01002c80
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002eb0
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x10011e0
call fcn.01004858
mov edi, 0x94
mov eax, edi
call fcn.010048b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1009940], ecx
mov eax, dword [esi + 4]
mov dword [0x100994c], eax
mov edx, dword [esi + 8]
mov dword [0x1009950], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1009944], esi
cmp ecx, 2
je 0x1002f10
or esi, 0x8000
mov dword [0x1009944], esi
shl eax, 8
add eax, edx
mov dword [0x1009948], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1002f4b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002f4b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1002f63
cmp eax, 0x20b
je 0x1002f50
mov dword [ebp - 0x1c], esi
jmp 0x1002f77
cmp dword [ecx + 0x84], 0xe
jbe 0x1002f4b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x1002f71
cmp dword [ecx + 0x74], 0xe
jbe 0x1002f4b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.01004807
pop ecx
test eax, eax
jne 0x1002f8b
push 0x1c
call fcn.01002e8c
pop ecx
call fcn.0100477e
test eax, eax
jne 0x1002f9c
push 0x10
call fcn.01002e8c
pop ecx
mov dword [ebp - 4], esi
call fcn.010044f1
test eax, eax
jge 0x1002fb0
push 0x1b
call fcn.01002e67
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100a0d4], eax
call fcn.010043cb
mov dword [0x1009924], eax
call fcn.01004329
test eax, eax
jge 0x1002fd6
push 8
call fcn.01002e67
pop ecx
call fcn.010040dd
test eax, eax
jge 0x1002fe7
push 9
call fcn.01002e67
pop ecx
call fcn.01003baf
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x1002ffa
push eax
call fcn.01002e67
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.01004074
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x100301b
movzx eax, word [ebp - 0x34]
jmp 0x100301e
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.01002dc3
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x100303c
push edi
call fcn.01003cce
call fcn.01003cf0
jmp 0x100306e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.01004891
ret
Function at 0x1003d0e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x10091e8]
je 0x1003d2e
inc eax
cmp eax, 0x12
jb 0x1003d1f
shl eax, 3
cmp edx, dword [eax + 0x10091e8]
mov dword [ebp + 8], eax
jne 0x1003ecc
mov ecx, dword [0x100992c]
cmp ecx, 1
je 0x1003ea1
test ecx, ecx
jne 0x1003d60
cmp dword [0x1009004], 1
je 0x1003ea1
cmp edx, 0xfc
je 0x1003ecc
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1003d9b
push 5
pop ecx
mov esi, 0x100174c
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003daa
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1003de2
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003dc2
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001748
push ebx
call fcn.01005600
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003de7
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10091ec]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003dfe
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.010048b0
mov edx, esp
push 6
pop ecx
mov esi, 0x100172c
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003e2a
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1003e36
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1003e4f
mov eax, dword [ebp + 8]
mov esi, 0x1001728
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x10091ec]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003e6a
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1003e76
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001700
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100643a
add esp, 0xc
jmp 0x1003ecc
mov ecx, dword [eax + 0x10091ec]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003eac
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100643a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1009c5c], ebx
push esi
push edi
jne 0x10064ba
push 0x1002b50
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10064f5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002b44
push edi
call esi
test eax, eax
mov dword [0x1009c5c], eax
je 0x10064f5
push 0x1002b34
push edi
call esi
push 0x1002b20
push edi
mov dword [0x1009c60], eax
call esi
cmp dword [0x1009940], 2
mov dword [0x1009c64], eax
jne 0x10064ba
push 0x1002b04
push edi
call esi
test eax, eax
mov dword [0x1009c6c], eax
je 0x10064ba
push 0x1002aec
push edi
call esi
mov dword [0x1009c68], eax
mov eax, dword [0x1009c68]
test eax, eax
je 0x10064ff
call eax
test eax, eax
je 0x10064e6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1009c6c]
test eax, eax
je 0x10064e6
test byte [ebp - 8], 1
jne 0x10064ff
cmp dword [0x100994c], 4
jb 0x10064f9
or byte [ebp + 0x12], 0x20
jmp 0x100651e
xor eax, eax
jmp 0x100652e
or byte [ebp + 0x12], 4
jmp 0x100651e
mov eax, dword [0x1009c60]
test eax, eax
je 0x100651e
call eax
mov ebx, eax
test ebx, ebx
je 0x100651e
mov eax, dword [0x1009c64]
test eax, eax
je 0x100651e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1009c5c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100750a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.010048b0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100759f
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x1009940]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x100759f
cmp eax, 1
je 0x10075b7
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100759f
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x1007574
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x100759b
xor eax, eax
inc eax
jmp 0x10075d3
cmp esi, ebx
jae 0x10075a3
xor eax, eax
jmp 0x10075d3
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1009940]
jmp 0x10075b9
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008320
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1002c40
call fcn.01004858
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x1009d44], edi
jne 0x1008364
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100834f
mov dword [0x1009d44], ebx
jmp 0x1008364
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1008364
mov dword [0x1009d44], 2
mov eax, dword [0x1009d44]
cmp eax, ebx
jne 0x1008384
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1008447
cmp eax, 2
je 0x100838d
cmp eax, edi
jne 0x10083b5
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x10083a0
mov eax, dword [0x1009c2c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x10083bc
xor eax, eax
jmp 0x1008447
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.010048b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x10083ef
cmp esi, edi
jne 0x1008405
push dword [ebp - 0x24]
call fcn.010058fe
pop ecx
mov esi, eax
cmp esi, edi
je 0x10083b5
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1008438
cmp dword [ebp + 0x14], edi
jne 0x1008422
push edi
push edi
jmp 0x1008428
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x1008444
push esi
call fcn.01005543
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.01004891
ret
Function at 0x1008450
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1002c50
call fcn.01004858
xor esi, esi
cmp dword [0x1009d48], esi
jne 0x1008494
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100847f
mov dword [0x1009d48], edi
jmp 0x1008494
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1008494
mov dword [0x1009d48], 2
mov eax, dword [0x1009d48]
cmp eax, 2
je 0x1008575
cmp eax, esi
je 0x1008575
cmp eax, 1
jne 0x10084d9
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x10084c2
mov eax, dword [0x1009c2c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x10084e0
xor eax, eax
jmp 0x1008587
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.010048b0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x1008516
cmp edi, esi
jne 0x1008531
lea eax, [ebx + ebx]
push eax
call fcn.010058fe
pop ecx
mov edi, eax
cmp edi, esi
je 0x10084d9
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1008564
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x100854e
push esi
push esi
jmp 0x1008554
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x1008570
push edi
call fcn.01005543
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x1008587
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.01004891
ret
Function at 0x401141
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
call fcn.0040195a
pop ecx
test al, al
je 0x401182
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x401177
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x401173
cmp eax, 3
jne 0x401182
mov al, 1
pop ebp
ret
push dword [ebp + 0xc]
call fcn.0040195a
pop ecx
jmp 0x401173
xor al, al
pop ebp
ret

Function at 0x401186
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x43b3ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
push esi
push 0x800
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x804]
push eax
call fcn.00401d1a
lea eax, [ebp - 0x804]
push eax
push dword [edi + 0x10]
push str.CreateProcess___s___s_
push str.Common
call fcn.00401100
push 0x44
lea eax, [ebp - 0x848]
push 0
push eax
call fcn.00409120
add esp, 0x28
mov dword [ebp - 0x848], 0x44
lea eax, [ebp - 0x848]
push edi
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push esi
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
jne 0x40122b
push 0x42b260
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Common
call fcn.0040167c
add esp, 0xc
xor eax, eax
jmp 0x40122e
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407164
leave
ret 8

Function at 0x401335
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x43b3ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x148]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401397
push str.GetTempPath
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Common
call fcn.0040167c
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407164
leave
ret
lea eax, [ebp - 0x148]
push eax
call fcn.004017bb
pop ecx
test eax, eax
je 0x401386
xor esi, esi
xor ebx, ebx
test esi, esi
jne 0x4013f9
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0040123c
xor ecx, ecx
add esp, 0xc
inc ecx
test eax, eax
cmovne esi, ecx
inc ebx
cmp ebx, 0x19
jl 0x4013ac
test esi, esi
jne 0x4013f9
push dword [ebp - 0x250]
lea eax, [ebp - 0x148]
push eax
push str.getNewTempDirectory___GetTempFileName___s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Common
call fcn.0040167c
add esp, 0x14
jmp 0x401386
mov esi, 0x104
lea eax, [ebp - 0x24c]
push esi
push 0
push eax
call fcn.00409120
push str..tmp
lea eax, [ebp - 0x44]
push eax
push 0x42b438
lea eax, [ebp - 0x148]
push eax
push str._s_s_s_s
lea eax, [ebp - 0x24c]
push esi
push eax
call fcn.00401bba
push esi
lea eax, [ebp - 0x24c]
push eax
push edi
call fcn.0040c080
push 0
push edi
call fcn.0040185f
push edi
call fcn.004017fd
add esp, 0x40
jmp 0x401388
Function at 0x401458
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x43b3ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x858], eax
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x846]
push eax
movzx eax, word [ebp - 0x848]
push eax
movzx eax, word [ebp - 0x84a]
push eax
movzx eax, word [ebp - 0x84c]
push eax
movzx eax, word [ebp - 0x84e]
push eax
movzx eax, word [ebp - 0x852]
push eax
movzx eax, word [ebp - 0x854]
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00401bba
add esp, 0x28
lea eax, [ebp - 0x844]
test esi, esi
jne 0x4014ef
mov esi, 0x400
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x401502
push esi
push 0
push edi
mov esi, 0x400
push esi
push eax
call fcn.00401bd6
add esp, 0x14
cmp dword [ebp + 0xc], 0
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x45
pop edi
push 0x49
pop eax
cmove edi, eax
cmp dword [0x43b004], 0xffffffff
je 0x4015be
push 0x3e8
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x844]
cmp eax, 0x102
push ecx
mov edx, 0x42b260
mov ecx, str._LOG_MUTEX_LOCKED_
cmovne ecx, edx
push ecx
push dword [0x43b008]
push dword [ebp - 0x858]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
lea eax, [ebp - 0x44]
push eax
push str._s_t_c_t_d_t_s_t_s_t_s_s_r_n
lea eax, [ebp - 0x444]
push esi
push eax
call fcn.00401bba
add esp, 0x28
push 2
push 0
push 0
push dword [0x43b004]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.0040bff0
pop ecx
push eax
lea eax, [ebp - 0x444]
push eax
push dword [0x43b004]
call ebx
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push str..mailslotAVITrace
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40166d
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x858]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [0x43b008]
lea eax, [ebp - 0x44]
push edi
push eax
push str._s__c__s__4d___8s__s
lea eax, [ebp - 0x1d4]
push 0x190
push eax
call fcn.00401bba
inc dword [0x43b00c]
lea eax, [ebp - 0x1d4]
push eax
mov byte [ebp - 0x45], 0
call fcn.0040bff0
add esp, 0x28
inc eax
mov dword [0x43b018], eax
lea eax, [ebp - 0x858]
push 0
push eax
push 0x10
push 0x43b00c
push esi
call ebx
push 0
lea eax, [ebp - 0x858]
push eax
push dword [0x43b018]
lea eax, [ebp - 0x1d4]
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407164
leave
ret
Function at 0x40175d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x43b3ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x42b260
push esi
call fcn.00401100
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.00401d1a
lea eax, [ebp - 0x404]
push eax
push str.START___s_
push esi
call fcn.00401100
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop esi
call fcn.00407164
leave
ret

Function at 0x4017fd
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40182b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40182b
cmp esi, 0xb7
je 0x401858
cmp esi, 5
je 0x401858
push dword [ebp + 8]
mov edi, str.Common
push str.CreateDirectory___s_
push edi
call fcn.00401100
add esp, 0xc
test esi, esi
je 0x401858
push 0x42b260
push esi
push edi
call fcn.0040167c
add esp, 0xc
xor eax, eax
jmp 0x40185b
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x40185f
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4018be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4018be
cmp esi, 5
jne 0x401896
cmp byte [ebp + 0xc], 0
jne 0x4018ba
push edi
push dword [ebp + 8]
mov edi, str.Common
push str.Delete___s_
push edi
call fcn.00401100
push 0x42b260
push esi
push edi
call fcn.0040167c
add esp, 0x18
pop edi
xor eax, eax
jmp 0x4018c1
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x40195a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40197f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40197b
cmp eax, 3
jne 0x401990
mov al, 1
pop ebp
ret
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40197b
xor al, al
pop ebp
ret