joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f8c5
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x434634]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
sub esi, esi
sub edi, edi
cmp eax, ebx
jne 0x41f913
call ebp
push eax
pop esi
cmp esi, ebx
je 0x41f8f4
mov dword [0x434634], 1
jmp 0x41f91c
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStrings]
push eax
pop edi
cmp edi, ebx
je 0x41f9ee
mov dword [0x434634], 2
jmp 0x41f9a2
cmp eax, 1
jne 0x41f99d
cmp esi, ebx
jne 0x41f92c
call ebp
push eax
pop esi
cmp esi, ebx
je 0x41f9ee
cmp word [esi], bx
push esi
pop eax
je 0x41f941
inc eax
inc eax
cmp word [eax], bx
jne 0x41f933
inc eax
inc eax
cmp word [eax], bx
jne 0x41f933
sub eax, esi
mov edi, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
sar eax, 1
push ebx
push ebx
inc eax
push ebx
push ebx
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x41f992
push ebp
call fcn.0041d367
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x41f992
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
or eax, eax
jne 0x41f98e
push dword [esp + 0x10]
call fcn.0041d2aa
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
push ebx
pop eax
jmp 0x41f9f0
cmp eax, 2
jne 0x41f9ee
cmp edi, ebx
jne 0x41f9b2
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStrings]
push eax
pop edi
cmp edi, ebx
je 0x41f9ee
cmp byte [edi], bl
push edi
pop eax
je 0x41f9c2
inc eax
cmp byte [eax], bl
jne 0x41f9b8
inc eax
cmp byte [eax], bl
jne 0x41f9b8
sub eax, edi
inc eax
push eax
pop ebp
push ebp
call fcn.0041d367
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x41f9d8
sub esi, esi
jmp 0x41f9e3
push ebp
push edi
push esi
call fcn.00421170
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
push esi
pop eax
jmp 0x41f9f0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x41fd09
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42ef78
cmp edx, dword [eax]
je 0x41fd2b
add eax, 8
inc ecx
cmp eax, 0x42f008
jl 0x41fd1c
push esi
push ecx
pop esi
shl esi, 3
cmp edx, dword [esi + 0x42ef78]
jne 0x41fe59
mov eax, dword [0x434350]
cmp eax, 1
je 0x41fe33
test eax, eax
jne 0x41fd5c
cmp dword [0x42e8a4], 1
je 0x41fe33
cmp edx, 0xfc
je 0x41fe59
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
or eax, eax
jne 0x41fd93
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00422cf0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00420d10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41fdd6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00420d10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x426880
push edi
call fcn.0041c3a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00422cf0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00422d00
lea eax, [ebp - 0xa0]
push 0x426860
push eax
call fcn.00422d00
push dword [esi + 0x42ef7c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00422d00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00422fba
add esp, 0x2c
pop edi
jmp 0x41fe59
lea eax, [ebp + 8]
lea esi, [esi + 0x42ef7c]
push 0
push eax
push dword [esi]
call fcn.00420d10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret
Function at 0x420fe3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
sub edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x421003
xor eax, eax
jmp 0x421169
mov eax, dword [ebp + 8]
sar eax, 5
lea ebx, [eax*4 + 0x435ba0]
mov eax, dword [ebp + 8]
and eax, 0x1f
lea esi, [eax + eax*8]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x421033
push 2
push edi
push dword [ebp + 8]
call fcn.00421a4e
add esp, 0xc
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x421102
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x42113d
lea eax, [ebp - 0x414]
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x42108d
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
mov cl, byte [ecx]
cmp cl, 0xa
jne 0x421078
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
mov byte [eax], cl
inc eax
mov ecx, eax
lea edx, [ebp - 0x414]
sub ecx, edx
cmp ecx, 0x400
jl 0x421059
push eax
pop edi
lea eax, [ebp - 0x414]
sub edi, eax
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x414]
push edi
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
or eax, eax
je 0x4210f7
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x4210c9
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x421053
sub edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x421166
cmp dword [ebp + 8], edi
je 0x42113d
push 5
pop esi
cmp dword [ebp + 8], esi
jne 0x42112f
call fcn.0041d298
mov dword [eax], 9
call fcn.0041d2a1
mov dword [eax], esi
jmp 0x421138
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 8], eax
jmp 0x4210c9
lea ecx, [ebp - 0xc]
push edi
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x421124
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x4210cb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 8], eax
jmp 0x4210cb
push dword [ebp + 8]
call fcn.0041d225
pop ecx
or eax, 0xffffffff
jmp 0x421169
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x421152
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x420ffc
call fcn.0041d298
mov dword [eax], 0x1c
call fcn.0041d2a1
mov dword [eax], edi
jmp 0x421138
sub eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421b1a
Capabilities:
Clear file content

Disassembly:
push ebp
push esp
pop ebp
mov eax, 0x1004
call fcn.0041b280
push ebx
push esi
sub esi, esi
push 1
push esi
push dword [ebp + 8]
call fcn.00421a4e
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x421c39
push 2
push esi
push dword [ebp + 8]
call fcn.00421a4e
add esp, 0xc
cmp eax, ebx
je 0x421c39
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x421bdc
mov ebx, 0x1000
lea eax, [ebp - 0x1004]
push ebx
push esi
push eax
call fcn.00422f20
push 0x8000
push dword [ebp + 8]
call fcn.0042335a
add esp, 0x14
mov dword [ebp + 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x421b95
push edi
pop eax
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00420fe3
add esp, 0xc
cmp eax, 0xffffffff
je 0x421bb5
sub edi, eax
or edi, edi
jle 0x421bcd
jmp 0x421b8d
call fcn.0041d2a1
cmp dword [eax], 5
jne 0x421bca
call fcn.0041d298
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042335a
pop ecx
pop ecx
jmp 0x421c24
jge 0x421c24
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00421a4e
push dword [ebp + 8]
call fcn.00421926
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
push eax
pop esi
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x421c24
call fcn.0041d298
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
pop edi
call fcn.0041d2a1
mov dword [eax], edi
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00421a4e
add esp, 0xc
push esi
pop eax
pop edi
jmp 0x421c3b
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x4239d9
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
sub edi, edi
cmp dword [ebp + 8], edi
je 0x423a3d
push 0x3d
push dword [ebp + 8]
call fcn.0041c080
push eax
pop esi
pop ecx
cmp esi, edi
pop ecx
mov dword [ebp - 8], esi
je 0x423a3d
cmp dword [ebp + 8], esi
je 0x423a3d
mov eax, dword [0x434390]
sub ebx, ebx
cmp byte [esi + 1], bl
sete bl
cmp eax, dword [0x434394]
jne 0x423a23
push eax
call fcn.00423bb8
pop ecx
mov dword [0x434390], eax
cmp eax, edi
jne 0x423a7b
cmp dword [ebp + 0xc], edi
je 0x423a45
cmp dword [0x434398], edi
je 0x423a45
call fcn.004235c2
or eax, eax
je 0x423a7b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp ebx, edi
jne 0x423b59
push 4
call fcn.0041d367
cmp eax, edi
pop ecx
mov dword [0x434390], eax
je 0x423a3d
mov dword [eax], edi
cmp dword [0x434398], edi
jne 0x423a7b
push 4
call fcn.0041d367
cmp eax, edi
pop ecx
mov dword [0x434398], eax
je 0x423a3d
mov dword [eax], edi
sub esi, dword [ebp + 8]
mov edi, dword [0x434390]
mov dword [ebp - 4], edi
push esi
push dword [ebp + 8]
call fcn.00423b60
push eax
pop esi
pop ecx
test esi, esi
pop ecx
jl 0x423adb
cmp dword [edi], 0
je 0x423adb
or ebx, ebx
je 0x423ad3
push dword [edi + esi*4]
lea edi, [edi + esi*4]
call fcn.0041d2aa
pop ecx
cmp dword [edi], 0
je 0x423abd
mov eax, dword [edi + 4]
inc esi
mov dword [edi], eax
add edi, 4
jmp 0x423aad
push esi
pop eax
shl eax, 2
push eax
push dword [ebp - 4]
call fcn.0041e8e3
pop ecx
or eax, eax
pop ecx
je 0x423b0d
jmp 0x423b08
mov eax, dword [ebp + 8]
mov dword [edi + esi*4], eax
jmp 0x423b0d
test ebx, ebx
jne 0x423b59
or esi, esi
jge 0x423ae5
neg esi
lea eax, [esi*4 + 8]
push eax
push edi
call fcn.0041e8e3
pop ecx
test eax, eax
pop ecx
je 0x423a3d
mov ecx, dword [ebp + 8]
mov dword [eax + esi*4], ecx
and dword [eax + esi*4 + 4], 0
mov dword [0x434390], eax
cmp dword [ebp + 0xc], 0
je 0x423b59
push dword [ebp + 8]
call fcn.00420d10
inc eax
inc eax
push eax
call fcn.0041d367
push eax
pop esi
pop ecx
test esi, esi
pop ecx
je 0x423b59
push dword [ebp + 8]
push esi
call fcn.00422cf0
push esi
pop eax
pop ecx
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 8]
and byte [eax], 0
inc eax
neg ebx
sbb ebx, ebx
not ebx
and ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
push esi
call fcn.0041d2aa
pop ecx
xor eax, eax
jmp 0x423a40
Function at 0x423cc0
Capabilities:
Persist via run registry key

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x24]
push 0x42fa7c
xor esi, esi
push ebp
push edi
mov dword [esp + 0x1c], esi
call fcn.00423e30
mov eax, dword [esp + 0x24]
add esp, 0xc
or eax, eax
je 0x423e14
cmp byte [eax], 0
je 0x423e14
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x423e14
push ebx
call fcn.0040ca00
add esp, 4
test eax, eax
je 0x423dfc
mov edi, dword [esp + 0x20]
or edi, edi
je 0x423d25
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea eax, [eax + esi + 0xa]
push eax
call fcn.0041b345
push eax
pop esi
add esp, 4
test esi, esi
je 0x423ddf
push ebx
push 0x42b2c8
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test edi, edi
je 0x423d6f
mov al, byte [edi]
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatA]
cmp al, 0x20
je 0x423d6b
push 0x429c84
push esi
call ebx
push edi
push esi
call ebx
mov edi, dword [esp + 0x18]
push esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.0040b170
add esp, 0x10
test eax, eax
je 0x423db5
mov ecx, dword [esp + 0x24]
push esi
push edi
push 1
push 1
push ebp
push ecx
call fcn.00423e80
add esp, 0x18
pushfd
xor edi, edi
inc edi
popfd
push esi
call fcn.0041b272
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x24]
push 0
push edi
push 1
push 0
push ebp
push edx
call fcn.00423e80
mov edi, dword [esp + 0x28]
add esp, 0x18
push esi
call fcn.0041b272
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x24]
push str.Failed_to_alloc_path_buf
push ebp
push eax
call fcn.00423e30
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
push str.Cant_find___s_
push ebp
push edi
call fcn.00423e30
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.Invalid_arg_s_
push ebp
push edi
call fcn.00423e30
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x424040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
mov esi, dword [esp + 0x360]
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
push esi
mov dword [esp + 0x14], edi
call fcn.0040c9d0
add esp, 4
test eax, eax
je 0x42420e
mov ebx, dword [esp + 0x368]
or ebx, ebx
je 0x42420e
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0x18]
push esi
push eax
call edi
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0040ce70
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcatA]
add esp, 8
lea edx, [esp + 0x18]
push ebx
push edx
call ebp
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
push eax
pop ebx
cmp ebx, 0xffffffff
je 0x424137
call fcn.004246e0
lea edx, [esp + 0x11c]
push esi
push edx
call edi
lea eax, [esp + 0x11c]
push 0x104
push eax
call fcn.0040ce70
add esp, 8
lea ecx, [esp + 0x24c]
lea edx, [esp + 0x11c]
push ecx
push edx
call ebp
test byte [esp + 0x220], 0x10
jne 0x42411d
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x11c]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or eax, eax
jl 0x42411d
inc dword [esp + 0x10]
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4240c3
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [esp + 0x18]
push esi
push ecx
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.0040ce70
add esp, 8
lea eax, [esp + 0x18]
push 0x42b1bc
push eax
call ebp
lea ecx, [esp + 0x220]
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4241fd
call fcn.004246e0
test byte [esp + 0x220], 0x10
je 0x4241e3
cmp byte [esp + 0x24c], 0x2e
je 0x4241e3
lea eax, [esp + 0x11c]
push esi
push eax
call edi
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call fcn.0040ce70
add esp, 8
lea edx, [esp + 0x24c]
lea eax, [esp + 0x11c]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00424040
add dword [esp + 0x10], eax
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
or eax, eax
jne 0x42417b
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
Function at 0x424760
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0x408
lea eax, [esp + 4]
push 0
push eax
push str.Cache
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
mov dword [esp + 0x18], 0
call fcn.0040adb0
mov eax, dword [esp + 0x18]
add esp, 0x14
test eax, eax
je 0x4247b2
push 0x104
push eax
push 0x43482c
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
mov ecx, dword [esp + 4]
push ecx
call fcn.0041b272
add esp, 4
mov al, byte [0x434728]
test al, al
jne 0x42485f
lea edx, [esp]
push 0
push edx
push str.ActiveXCache
push str.softwaremicrosoftwindowscurrentversioninternet_settings
push 0x80000002
mov dword [esp + 0x14], 0
call fcn.0040adb0
add esp, 0x14
or eax, eax
je 0x424852
mov eax, dword [esp]
or eax, eax
je 0x42485f
push eax
lea eax, [esp + 0xc]
push str.found___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x14]
push ecx
call fcn.00425280
mov edx, dword [esp + 0x10]
push edx
call fcn.0040c9d0
add esp, 0x14
or eax, eax
je 0x424839
mov eax, dword [esp]
push eax
push 0x434728
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov ecx, dword [esp]
push ecx
call fcn.0041b272
jmp 0x42485c
push str.ERROR:_Dir_doesnt_exist.
call fcn.00425280
mov ecx, dword [esp + 4]
add esp, 4
push ecx
call fcn.0041b272
jmp 0x42485c
push str.ERROR:_Unable_to_retrieve_dir.
call fcn.00425280
add esp, 4
mov cl, byte [0x434728]
xor eax, eax
test cl, cl
setne al
add esp, 0x408
ret
Function at 0x401b55
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401bab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401bab
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401b9d
cmp esi, ecx
jae 0x401bab
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401b8b
cmp esi, ecx
jae 0x401bab
cmp word [esi], 0
je 0x401bab
mov eax, esi
jmp 0x401bad
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401fcf
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x402005
lea esi, [edi + 4]
test esi, esi
je 0x402005
call fcn.00401f31
test al, al
je 0x402005
mov ecx, edi
call fcn.00401f31
test al, al
je 0x402005
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x402007
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x4036e9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.0040167e
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00416720
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x403783
movzx ecx, bl
cmp ecx, 0x26
jne 0x403747
mov edx, str.ProgramFiles
jmp 0x403751
cmp ecx, 0x1c
jne 0x403772
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.004039f4
push eax
mov ecx, esi
call fcn.00401626
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.0040160e
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x40377f
xor eax, eax
inc eax
jmp 0x4037a1
mov eax, edi
jmp 0x4037a1
lea eax, [ebp - 0x20c]
push eax
call fcn.0042a28c
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040171a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415bad
leave
ret
Function at 0x404c13
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jle 0x404d2b
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp edi, 2
jle 0x404c93
sub edx, 4
js 0x404d2b
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
sub edi, 3
jmp 0x404c2b
sub edi, 1
je 0x404cef
sub edi, 1
jne 0x404d24
sub edx, 3
js 0x404d2b
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
lea eax, [edx - 1]
test eax, eax
js 0x404d2b
mov byte [esi + 3], 0x3d
jmp 0x404d21
sub edx, 2
js 0x404d2b
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx eax, byte [ebx]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
lea eax, [edx - 2]
test eax, eax
js 0x404d2b
mov word [esi + 2], 0x3d3d
add esi, 4
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x404d2d
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x405389
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 0x58]
mov edi, edx
push ebx
push eax
call fcn.00416720
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0x30], 0x80
push esi
push eax
push ebx
cmp dword [ebp + 8], ebx
jne 0x4053c5
push ebx
push ebx
jmp 0x4053cd
push dword [ebp + 8]
push 0x400
push dword [ebp + 0xc]
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4053e5
call fcn.0040813c
jmp 0x405427
movzx ecx, byte [0x441da9]
neg ecx
sbb ecx, ecx
and ecx, 0x441cd0
je 0x405425
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x14], ecx
inc eax
mov dword [ebp - 0x10], edx
push eax
push edx
mov dword [ebp - 0xc], eax
call fcn.00405f6b
push dword [esi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push str._Started_process___u_
push eax
call fcn.004030aa
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret