joyce8/EMBER2024-capa huggingface dataset:
Function at 0x520d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54b8b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00520900
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.00520970
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00520c50
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.00520920
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x520d38
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54b8b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00520900
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.00520970
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00520c50
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.00520920
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x521040
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x54b930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00520900
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.00520900
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x38], 1
call fcn.00520970
cmp dword [esp + 0x40], ebx
jne 0x5210c8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x34], bl
call fcn.00520920
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.00520920
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea eax, [esp + 0xc]
push eax
call fcn.00520f80
add esp, 4
lea ecx, [esp + 0xc]
mov esi, 1
call fcn.00520da0
cmp eax, esi
jb 0x52114b
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 1
push esi
push 0x5e98ec
lea ecx, [esp + 0x1c]
call fcn.00520d20
cmp eax, 1
jne 0x52113d
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00520ac0
push ebx
lea ecx, [esp + 0x20]
call fcn.004f1ae0
push eax
call fcn.0052e21d
add esp, 8
test eax, eax
jge 0x52113d
push ebx
lea ecx, [esp + 0x20]
call fcn.00520e10
push eax
call edi
test eax, eax
je 0x521180
lea ecx, [esp + 0xc]
inc esi
call fcn.00520da0
cmp esi, eax
jbe 0x5210ed
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.00520920
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.00520920
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.00520920
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.00520920
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x523110
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x52311b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x52321e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x5cb9e4]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5cb9e4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5cb9e4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5cb9e4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5cb9e4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5cb9e4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5cb9e4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5cb9e4]
xor eax, edx
inc ecx
dec edi
jne 0x523136
pop edi
test esi, esi
je 0x523240
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5cb9e4]
xor eax, edx
inc ecx
dec esi
jne 0x523222
pop esi
pop ebx
not eax
ret

Function at 0x523bb0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x523bf1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x523be6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x523c04
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x524b40
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x524bf5
cmp dword [ebp + 4], 0xffffffff
jne 0x524bf5
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x5e9b74
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x524bbd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x524bbd
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.00523940
add esp, 0x10
test eax, eax
jne 0x524be0
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.00523e80
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x525050
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x525118
mov al, byte [ecx]
test al, al
je 0x525118
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x52507b
cmp al, 0x5c
jne 0x52507d
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x525073
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x5250b4
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.0052e455
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.00525050
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x5276a0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5e9c5c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x5276b3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x5276f4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5e9d04]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x527726
mov bl, byte [esp + ecx + 0x4c]
jmp 0x52772a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x52771b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x527748
mov bl, byte [esp + ecx + 0x4c]
jmp 0x52774c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x52773d
xor ecx, ecx
mov eax, 0x5e9c6c
xor ebx, ebx
mov bl, byte [ecx + 0x5e9d14]
cmp byte [esp + ebx + 0x14], 0
je 0x527777
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5e9d2c]
cmp byte [esp + ebx + 0x14], 0
je 0x52778e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x52775e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x5276e7
lea edx, [esp + 0x84]
push edx
call fcn.005277d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x52e21d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x52e23d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0052d3ca
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x52e260
test byte [esp + 8], 2
je 0x52e260
call fcn.0052d43d
mov dword [eax], 0xd
call fcn.0052d446
mov dword [eax], 5
jmp 0x52e239
xor eax, eax
ret

Function at 0x53ee44
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x53ee7c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0053cece
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0053cea6
jmp 0x53ee88
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x540532
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x540574
call fcn.00546133
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x540574
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x54056b
xor eax, eax
jmp 0x54057c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00540582
pop edi
pop esi
pop ebx
ret 4

Function at 0x546663
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x546691
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5466af
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005465c9
jmp 0x5466af
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5466af
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005465c9
test edi, edi
mov eax, edi
jne 0x546699
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9e8
mov eax, dword [0x4103f0]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x9e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x9dc]
push eax
movzx eax, word [ebp - 0x9de]
push eax
movzx eax, word [ebp - 0x9e0]
push eax
movzx eax, word [ebp - 0x9e2]
push eax
movzx eax, word [ebp - 0x9e6]
push eax
movzx eax, word [ebp - 0x9e8]
push eax
push str._04d_02d_02d_02d_02d_02d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00403141
add esp, 0x24
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x5d4]
sete bl
cmp dword [ebp + 0x14], 0
lea ebx, [ebx*4 + 0x45]
jne 0x40108f
push 0x400
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x4010a3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x400
push eax
call fcn.004030eb
add esp, 0x10
cmp dword [0x410044], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x401142
lea eax, [ebp - 0x5d4]
push eax
push dword [0x410048]
push dword [ebp + 8]
call edi
push eax
movsx eax, bl
push eax
lea eax, [ebp - 0x44]
push eax
push str._s_t_c_t_d_t_s_t_s_t_s_r_n
lea eax, [ebp - 0x9d4]
push 0x400
push eax
call fcn.00403141
add esp, 0x24
push 0x3e8
push dword [0x410040]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 2
push 0
push 0
push dword [0x410044]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x9d4]
push eax
call fcn.00403060
pop ecx
push eax
lea eax, [ebp - 0x9d4]
push eax
push dword [0x410044]
call esi
push dword [0x410040]
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]
cmp eax, 0xffffffff
mov dword [ebp - 0x9d8], eax
je 0x4011fa
lea eax, [ebp - 0x5d4]
push eax
push dword [ebp + 8]
call edi
push eax
push dword [0x410048]
movsx eax, bl
push eax
lea eax, [ebp - 0x44]
push eax
push str._s__c__s__4d___8s__s
lea eax, [ebp - 0x1d4]
push 0x190
push eax
call fcn.00403141
inc dword [0x41004c]
lea eax, [ebp - 0x1d4]
push eax
mov byte [ebp - 0x45], 0
call fcn.00403060
add esp, 0x28
inc eax
push 0
mov dword [0x410058], eax
lea eax, [ebp + 0x14]
push eax
push 0x10
push 0x41004c
push dword [ebp - 0x9d8]
call esi
push 0
lea eax, [ebp + 0x14]
push eax
push dword [0x410058]
lea eax, [ebp - 0x1d4]
push eax
push dword [ebp - 0x9d8]
call esi
push dword [ebp - 0x9d8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004031c9
leave
ret
Function at 0x40130f
Capabilities:
Accept command line arguments
Create directory
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4103f0]
push str.MCAFEE_FRAMEWORK_LOG_MUTEX
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
push 0
mov dword [0x410048], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, 0xffffffff
mov dword [0x410040], eax
je 0x401422
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, str._LOGDIR_
push esi
push eax
call fcn.00402f10
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
mov edi, 0x104
je 0x401394
push edi
push esi
call fcn.00403060
pop ecx
add eax, ebx
push eax
mov esi, 0x410fa0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x40d26c
push esi
call fcn.00402f10
test eax, eax
pop ecx
pop ecx
je 0x4013c2
mov byte [eax], 0
jmp 0x4013c2
lea eax, [ebp - 0x118]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.NAILogs
lea eax, [ebp - 0x118]
push eax
push 0x40d25c
push edi
mov esi, 0x410fa0
push esi
call fcn.00403141
add esp, 0x14
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp + 0xc], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x14]
push eax
push esi
push str._sFrmInst__s.log
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.00403141
add esp, 0x14
push 0
push 0x80
push 4
push dword [ebp + 0x10]
lea eax, [ebp - 0x21c]
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop edi
pop esi
mov dword [0x410044], eax
pop ebx
mov ecx, dword [ebp - 4]
call fcn.004031c9
leave
ret

Function at 0x40142c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4103f0]
push 0x40d1cc
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0040121f
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.004018c1
lea eax, [ebp - 0x404]
push eax
push str.START___s_
push dword [ebp + 8]
call fcn.0040121f
mov ecx, dword [ebp - 4]
add esp, 0x18
call fcn.004031c9
leave
ret

Function at 0x401541
Capabilities:
Create directory

Disassembly:
push esi
push edi
xor esi, esi
push esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40156d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40156d
cmp esi, 0xb7
je 0x40159b
cmp esi, 5
je 0x40159b
push dword [esp + 0xc]
mov edi, str.Common
push str.CreateDirectory___s_
push edi
call fcn.0040121f
add esp, 0xc
test esi, esi
je 0x40159b
push 0x40d1cc
push esi
push edi
call fcn.00401237
add esp, 0xc
xor eax, eax
jmp 0x40159e
xor eax, eax
inc eax
pop edi
pop esi
ret
Function at 0x40161f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x4103f0]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.004018c1
lea eax, [ebp - 0x404]
push eax
push dword [esi + 0x10]
mov ebx, str.Common
push str.CreateProcess___s___s_
push ebx
call fcn.0040121f
push 0x44
xor edi, edi
lea eax, [ebp - 0x448]
push edi
push eax
call fcn.004031e0
add esp, 0x28
push esi
lea eax, [ebp - 0x448]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x448], 0x44
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4016be
push 0x40d1cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call fcn.00401237
add esp, 0xc
xor eax, eax
jmp 0x4016c1
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004031c9
leave
ret 8

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401769
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x401769
push esi
push str.Delete___s_
mov esi, str.Common
push esi
call fcn.0040121f
push 0x40d1cc
push edi
push esi
call fcn.00401237
add esp, 0x18
xor eax, eax
jmp 0x40176c
xor eax, eax
inc eax
pop edi
pop esi
ret

Function at 0x40176f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4103f0]
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4017bf
push str.GetTempPath
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Common
call fcn.00401237
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.004031c9
leave
ret
lea eax, [ebp - 0x108]
push eax
call fcn.004015a1
test eax, eax
pop ecx
je 0x4017b1
xor esi, esi
xor edi, edi
test esi, esi
jne 0x401820
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4017f1
inc esi
inc edi
cmp edi, 0x19
jl 0x4017d4
test esi, esi
jne 0x401820
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
push str.getNewTempDirectory___GetTempFileName___s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Common
call fcn.00401237
add esp, 0x14
jmp 0x4017b1
push dword [ebp + 0xc]
call fcn.0040171b
push dword [ebp + 0xc]
call fcn.00401541
pop ecx
pop ecx
jmp 0x4017b3
Function at 0x4018f2
Capabilities:
Access the windows event log

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4103f0]
push ebx
push esi
push edi
mov dword [ebp + 0x88], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, str.NAIMServInst
push esi
xor edi, edi
push edi
mov dword [0x4123e0], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push dword [0x4123e0]
mov ebx, eax
push esi
lea eax, [ebp - 0x78]
push str._s_error:__d
push eax
call fcn.004033af
lea eax, [ebp - 0x78]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x94]
add esp, 0x10
cmp ebx, edi
mov dword [ebp - 0x7c], eax
je 0x401970
push edi
lea eax, [ebp - 0x80]
push eax
push edi
push 2
push edi
push edi
push edi
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
pop ebx
call fcn.004031c9
add ebp, 0x8c
leave
ret
Function at 0x401e20
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x944
mov eax, dword [0x4103f0]
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00403060
cmp eax, 4
pop ecx
jb 0x401f85
push ebx
push esi
push edi
xor eax, eax
mov byte [ebp - 0x544], 0
mov ecx, 0xff
lea edi, [ebp - 0x543]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x400
push esi
push dword [ebp + 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x544]
push eax
call fcn.00403c70
push esi
lea eax, [ebp - 0x544]
push str..
push eax
call fcn.00403c70
add esp, 0x18
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x544]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401ec1
lea eax, [ebp - 0x544]
push eax
push str.FindFirstFile___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Stub
jmp 0x401f7a
mov edi, str.Stub
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x944]
push str._s_s
push esi
push eax
call fcn.00403141
add esp, 0x14
test byte [ebp - 0x144], 0x14
je 0x401f33
lea eax, [ebp - 0x118]
push 0x40d47c
push eax
call fcn.00403be0
test eax, eax
pop ecx
pop ecx
je 0x401f40
lea eax, [ebp - 0x118]
push 0x40d478
push eax
call fcn.00403be0
test eax, eax
pop ecx
pop ecx
je 0x401f40
lea eax, [ebp - 0x944]
push eax
push str.Unexpected_directory_in_error_cleanup___s_
push edi
call fcn.00401207
add esp, 0xc
jmp 0x401f40
lea eax, [ebp - 0x944]
push eax
call fcn.0040171b
pop ecx
lea eax, [ebp - 0x144]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401ec6
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x401f82
push dword [ebp + 8]
push str.RemoveDirectory___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.00401237
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.004031c9
leave
ret