joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba190
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4fa2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov dword [ebp - 0x220], ecx
xor edi, edi
mov dword [ebp - 0x210], ebx
mov byte [ebp - 0x108], bl
call fcn.00436fe0
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 8
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ba334
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x4ba334
push esi
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x108]
push ecx
push ebx
push eax
xor esi, esi
mov dword [ebp - 0x21c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4ba326
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x4ba240
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 1
push ebx
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ba2dc
push 0x103
lea edx, [ebp - 0x20b]
push ebx
push edx
mov byte [ebp - 0x20c], bl
call fcn.00436fe0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x224]
push edx
push ebx
push str.ServiceName
push eax
mov dword [ebp - 0x228], 0x104
mov dword [ebp - 0x224], 1
call edi
test eax, eax
jne 0x4ba2cf
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.004b9d80
test eax, eax
jne 0x4ba307
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x210]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x108]
push ecx
inc esi
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4ba240
jmp 0x4ba324
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
mov edi, 1
cmp dword [ecx + 0x2c], ebx
jne 0x4ba326
mov edi, ebx
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0042cf77
mov esp, ebp
pop ebp
ret
Function at 0x4ba350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1a7c
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4fa2a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x80], ebx
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x4d4add
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x88], esi
mov byte [esi], bl
call fcn.00402b70
push 0x63
lea eax, [ebp - 0x73]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x80], 1
mov byte [ebp - 0x74], bl
call fcn.00436fe0
add esp, 0xc
lea ecx, [ebp - 0x78]
push ecx
push 1
push ebx
push edi
push SysReAllocString
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x7c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4ba415
lea edx, [ebp - 0x7c]
push edx
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x84]
push ecx
push ebx
push 0x4d5c54
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x74]
lea edx, [eax + 1]
jmp 0x4ba420
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4ba420
sub eax, edx
push eax
lea ecx, [ebp - 0x74]
push ecx
mov ecx, esi
call fcn.00402b70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cf77
mov esp, ebp
pop ebp
ret 8
Function at 0x4017d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4060e0
push 0x403188
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x409bc8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x409bc4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x409bc0], ecx
shr eax, 0x10
mov dword [0x409bbc], eax
call fcn.00403050
test eax, eax
jne 0x40183a
push 0x1c
call fcn.004019a0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402e50
call fcn.00401f50
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40aeb4], eax
call fcn.00402cf0
mov dword [0x409980], eax
test eax, eax
je 0x40186d
mov eax, dword [0x40aeb4]
test eax, eax
jne 0x401877
push 0xffffffffffffffff
call fcn.00402650
add esp, 4
call fcn.00402a40
call fcn.00402950
call fcn.00402620
mov esi, dword [0x40aeb4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401956
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4018be
test al, al
je 0x4018be
and eax, 0xff
push eax
call fcn.004028f0
add esp, 4
test eax, eax
je 0x401898
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401898
cmp byte [esi], 0x22
jne 0x4018c7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4018d7
cmp al, 0x20
ja 0x4018d7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4018c7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4018f8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4018fd
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00402650
jmp 0x40193b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4018c7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401956

Function at 0x4019a0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x409988], 1
jne 0x4019ae
call fcn.00403260
mov eax, dword [esp + 4]
push eax
call fcn.004032a0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402690
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x409bf8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4026af
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x409bf4], 1
mov byte [0x409bf0], bl
jne 0x402709
mov ecx, dword [0x40aea8]
test ecx, ecx
je 0x4026f7
mov esi, dword [0x40aea4]
sub esi, 4
cmp esi, ecx
jb 0x4026f7
mov eax, dword [esi]
test eax, eax
je 0x4026f0
call eax
mov ecx, dword [0x40aea8]
sub esi, 4
cmp esi, ecx
jae 0x4026e2
push 0x40701c
push 0x407014
call fcn.00402740
add esp, 8
push 0x407024
push 0x407020
call fcn.00402740
add esp, 8
test ebx, ebx
jne 0x402730
push ebp
mov dword [0x409bf8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x402cf0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x409d08]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402d32
call edi
mov esi, eax
test esi, esi
je 0x402d1c
mov eax, 1
jmp 0x402d2d
call ebp
mov ebx, eax
test ebx, ebx
je 0x402e3f
mov eax, 2
mov dword [0x409d08], eax
cmp eax, 1
jne 0x402dd2
test esi, esi
jne 0x402d4b
call edi
mov esi, eax
test esi, esi
je 0x402e3f
cmp word [esi], 0
mov eax, esi
je 0x402d65
add eax, 2
cmp word [eax], 0
jne 0x402d53
add eax, 2
cmp word [eax], 0
jne 0x402d53
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402dc4
push edi
call fcn.00402570
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402dc4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402db6
push ebx
call fcn.00401f60
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x402e3f
test ebx, ebx
jne 0x402de3
call ebp
mov ebx, eax
test ebx, ebx
je 0x402e3f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x402dfb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402deb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402deb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00402570
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x402e1d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4032a0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4072d0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4032c4
add eax, 8
inc ebp
cmp eax, 0x407360
jb 0x4032b5
cmp ecx, dword [ebp*8 + 0x4072d0]
jne 0x40346b
mov eax, dword [0x409988]
cmp eax, 1
je 0x40342d
test eax, eax
jne 0x4032f0
cmp dword [0x407120], 1
je 0x40342d
cmp ecx, 0xfc
je 0x40346b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40332b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x403374
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4063c0
add ebx, ecx
push ebx
call fcn.00404d70
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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 edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4063a0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
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 edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4072d4]
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 + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00404ce0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40ada0]
test eax, eax
je 0x40343e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403448
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4072d4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x404340
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40aea0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x4044ed
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x40ada0]
lea edi, [ecx*4 + 0x40ada0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x4044ed
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4043ae
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x4043bf
push 2
push ebp
push eax
call fcn.00405250
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40451e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x404469
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40441a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x404407
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4043ea
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40450f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x404465
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4043e6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4044de
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4044b2
cmp eax, 5
jne 0x40449b
mov dword [0x409bb4], eax
mov dword [0x409bb0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00404010
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4044d2
cmp byte [ebp], 0x1a
jne 0x4044d2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x409bb0], 0x1c
jmp 0x4044f7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x409bb0], 9
pop edi
pop esi
pop ebp
mov dword [0x409bb4], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404465
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40454f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x404469
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404469
Function at 0x405380
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00405580
mov eax, dword [0x40aea0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x4054e2
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x40ada0]
test byte [edx + ecx*8 + 4], 1
je 0x4054e2
push 1
push ebp
push ebx
call fcn.00405250
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x4054ec
push 2
push ebp
push ebx
call fcn.00405250
add esp, 0xc
cmp eax, 0xffffffff
je 0x4054ec
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x405488
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00405500
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x40542f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00404340
add esp, 0xc
cmp eax, 0xffffffff
je 0x40544b
sub esi, eax
test esi, esi
jle 0x405461
jmp 0x405420
cmp dword [0x409bb4], 5
jne 0x40545e
mov dword [0x409bb0], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00405500
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00405250
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x4054c9
push 0
push ecx
push ebx
call fcn.00405250
add esp, 0xc
push ebx
call fcn.00404290
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x4054c9
mov dword [0x409bb0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x409bb4], eax
push 0
push edi
push ebx
call fcn.00405250
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x409bb0], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401ef6
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x48
mov eax, 0x52b985
call fcn.00512375
lea eax, [ebp - 0x54]
push eax
call fcn.00412af9
pop ecx
and dword [ebp - 4], 0
mov eax, dword [0x59158c]
push dword [eax - 0xc]
lea ecx, [ebp - 0x54]
push eax
call fcn.00401a1d
push dword [ebp - 0x54]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401f38
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, str.LaunchAgent.txt
push esi
call fcn.00512590
pop ecx
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00401a1d
push 0x3f
lea eax, [ebp - 0x4f]
push 0
push eax
mov byte [ebp - 0x50], 0
call fcn.00512ea0
push dword [ebp + 8]
lea eax, [ebp - 0x50]
push 0x53f05c
push eax
call fcn.004010b9
push 0x53f058
push dword [ebp - 0x54]
call fcn.005131bd
mov esi, eax
add esp, 0x20
test esi, esi
je 0x401f99
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.00512ffb
push esi
call fcn.00512f87
add esp, 0xc
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
call fcn.004010d2
call fcn.005123f8
ret 4

Function at 0x401fb0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x48
mov eax, 0x52b985
call fcn.00512375
lea eax, [ebp - 0x54]
push eax
call fcn.00412af9
pop ecx
and dword [ebp - 4], 0
mov eax, dword [0x59158c]
push dword [eax - 0xc]
lea ecx, [ebp - 0x54]
push eax
call fcn.00401a1d
push dword [ebp - 0x54]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401ff2
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, str.LaunchAgent.txt
push esi
call fcn.00512590
pop ecx
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00401a1d
push 0x3f
lea eax, [ebp - 0x4f]
push 0
push eax
mov byte [ebp - 0x50], 0
call fcn.00512ea0
push 0x53f070
push dword [ebp - 0x54]
call fcn.005131bd
mov esi, eax
add esp, 0x14
test esi, esi
je 0x402044
push esi
lea eax, [ebp - 0x50]
push 0x3f
push eax
call fcn.0051323c
push esi
call fcn.00512f87
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.00513231
pop ecx
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
call fcn.004010d2
mov eax, esi
call fcn.005123f8
ret
Function at 0x4051b2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4051c0
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x40527b
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x541558]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x541558]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x541558]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x541558]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x541558]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x541558]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x541558]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x541558]
add edx, 8
sub edi, 8
dec esi
jne 0x4051de
pop ebx
test edi, edi
je 0x405294
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x541558]
inc edx
dec edi
jne 0x40527f
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x4056eb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x40571f
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40571a
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x405747
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x405730
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00512620
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x40636e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x590090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x406402
mov al, byte [esi]
test al, al
je 0x406402
push edi
mov edi, esi
mov ecx, esi
cmp al, 0x2f
je 0x4063a0
cmp al, 0x5c
jne 0x4063a2
mov edi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x406398
cmp edi, esi
je 0x4063d5
sub edi, esi
push edi
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0051536d
lea eax, [ebp - 0x108]
push eax
push ebx
mov byte [ebp + edi - 0x108], 0
call fcn.0040636e
add esp, 0x14
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.005158d0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.005158e0
add esp, 0x10
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005122fd
leave
ret
Function at 0x407867
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4078e2
cmp dword [esi + 4], 0xffffffff
jne 0x4078e2
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x53f454
push edi
call fcn.005158e0
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x4078b4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4078b4
mov eax, 0x2000000
jmp 0x4078e7
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004054f8
add esp, 0x10
test eax, eax
jne 0x4078d2
mov eax, dword [ebp + 0x10]
jmp 0x4078e7
push eax
call fcn.00407456
mov dword [esi], eax
mov eax, dword [0x591714]
pop ecx
jmp 0x4078e7
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc