joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021b40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10114770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0
push 0
push eax
mov esi, ecx
call fcn.10067e20
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10021c77
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10021c77
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp esi, 2
jne 0x10021c20
lea eax, [ebp - 0x20c]
test eax, eax
je 0x10021c65
cmp word [ebp - 0x20c], 0x5a
jne 0x10021c65
cmp word [ebp - 0x20a], 0x68
jne 0x10021c65
cmp word [ebp - 0x208], 0x75
jne 0x10021c65
cmp word [ebp - 0x206], 0x44
jne 0x10021c65
cmp word [ebp - 0x204], 0x6f
jne 0x10021c65
cmp word [ebp - 0x202], 0x6e
jne 0x10021c65
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061581
mov esp, ebp
pop ebp
ret
cmp esi, 6
jne 0x10021c65
push 0
push 0
push 0x61
push 0x44
push 0x73
push 0x70
push 0x69
lea edx, [esi + 0x42]
lea ecx, [ebp - 0x20c]
call fcn.10021ab0
add esp, 0x1c
test al, al
jne 0x10021c0a
push 0
push 0
push 0x72
push 0x6f
push 0x77
push 0x53
push 0x52
lea edx, [esi + 0x42]
call fcn.10021ab0
add esp, 0x1c
test al, al
jne 0x10021c0a
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x10021bb3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10061581
mov esp, ebp
pop ebp
ret
Function at 0x10026180
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100da32a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10114770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.100611d2
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x10026226
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.10064ab4
push 0x101125cc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.1006858b
push edi
push esi
call fcn.100610a5
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10061581
mov esp, ebp
pop ebp
ret 4

Function at 0x10026c60
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10114770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [0x10116538]
mov ebx, eax
test edi, edi
je 0x10026ca6
mov ecx, ebx
sub ecx, dword [0x10119b88]
cmp ecx, 0x3e8
jae 0x10026ca6
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061581
mov esp, ebp
pop ebp
ret
push esi
push 0x3c
mov dword [ebp - 8], 0
call fcn.10062ad1
mov esi, eax
add esp, 4
test esi, esi
jne 0x10026cd1
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061581
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
lea eax, [ebp - 8]
push 0
push eax
push esi
call edi
cmp eax, 0x7a
jne 0x10026d26
push esi
call fcn.10061bd4
mov eax, dword [ebp - 8]
add esp, 4
cmp eax, 0xb2c
ja 0x10026d33
push eax
call fcn.10062ad1
mov esi, eax
add esp, 4
test esi, esi
jne 0x10026d1d
mov eax, dword [0x10116538]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061581
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push esi
call edi
test eax, eax
je 0x10026d44
push esi
call fcn.10061bd4
add esp, 4
mov dword [0x10116538], 1
mov eax, 1
jmp 0x10026d78
mov edx, dword [esi]
xor ecx, ecx
test edx, edx
je 0x10026d63
lea eax, [esi + 4]
nop
cmp dword [eax], 0
jne 0x10026d5b
cmp dword [eax + 4], 0
je 0x10026d2a
inc ecx
add eax, 0x38
cmp ecx, edx
jb 0x10026d50
push esi
call fcn.10061bd4
add esp, 4
mov dword [0x10116538], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop edi
mov dword [0x10119b88], ebx
xor ecx, ebp
pop ebx
call fcn.10061581
mov esp, ebp
pop ebp
ret
Function at 0x10027030
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
lea ecx, [ecx]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jl 0x10027050
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 0xc

Function at 0x10027080
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
dec ecx
nop
xor eax, eax
xor esi, esi
mov dword [ebp - 4], eax
test ecx, ecx
je 0x1002716c
nop
mov ecx, dword [ebx + 4]
dec ecx
shl esi, cl
add esi, esi
mov dword [ebp - 8], esi
jmp 0x100270b0
mov edi, dword [ebx]
mov eax, dword [edi]
cmp eax, 0x270
jne 0x100270fc
lea eax, [edi + 8]
mov esi, 0x270
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
dec esi
jne 0x100270c3
jmp 0x1002710a
cmp eax, 0x4e0
jb 0x1002710a
mov ecx, edi
call fcn.10027240
mov eax, dword [edi]
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [ebx + 8]
ja 0x100270b0
mov esi, dword [ebp - 8]
mov ecx, dword [ebx + 4]
or esi, eax
mov eax, dword [ebp - 4]
dec ecx
shl eax, cl
mov ecx, dword [ebp + 8]
add eax, eax
or eax, dword [ebx + 8]
dec ecx
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x100270a0
xor edx, edx
div dword [ebp + 8]
mov ecx, eax
mov edi, edx
xor edx, edx
mov eax, esi
div dword [ebp + 8]
cmp eax, ecx
jb 0x1002718c
mov ecx, dword [ebp + 8]
dec ecx
cmp edi, ecx
jne 0x10027090
mov eax, esi
xor edx, edx
div dword [ebp + 8]
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100271a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
mov edi, edi
mov ecx, dword [edi + 4]
dec ecx
shl ebx, cl
add ebx, ebx
jmp 0x100271c0
mov esi, dword [edi]
mov eax, dword [esi]
cmp eax, 0x270
jne 0x100271d4
mov ecx, esi
call fcn.10027300
jmp 0x100271e2
cmp eax, 0x4e0
jb 0x100271e2
mov ecx, esi
call fcn.10027240
mov eax, dword [esi]
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [edi + 8]
ja 0x100271c0
mov eax, dword [ebp - 4]
or ebx, ecx
add eax, dword [edi + 4]
mov dword [ebp - 4], eax
cmp eax, 0x20
jb 0x100271b0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10027240
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
dec ecx
jne 0x10027250
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi]
lea esi, [esi + 4]
xor ecx, dword [esi]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
dec edi
jne 0x10027290
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret

Function at 0x10027300
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
lea esp, [esp]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
dec esi
jne 0x10027310
pop esi
ret
Function at 0x10027550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10114770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10119bdc]
mov dword [ebp - 0x214], 0
push esi
mov esi, ecx
push edi
test al, 1
jne 0x100275ab
or eax, 1
mov dword [0x10119bf4], 7
mov dword [0x10119bdc], eax
xor eax, eax
push 0x100db2a0
mov dword [0x10119bf0], 0
mov word [0x10119be0], ax
call fcn.1006203b
add esp, 4
cmp dword [0x10119bf0], 0
jne 0x10027690
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.10067e20
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x210], 0
jne 0x100275f6
xor ecx, ecx
jmp 0x1002760f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10027600
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, 0x10119be0
push eax
call fcn.1001ab20
mov edx, 0x10119be0
lea ecx, [ebp - 0x22c]
call fcn.10027350
mov edi, eax
cmp edi, 0x10119be0
je 0x10027679
cmp dword [0x10119bf4], 8
jb 0x10027652
push dword [0x10119be0]
call fcn.1006157c
add esp, 4
xor eax, eax
mov dword [0x10119bf4], 7
push edi
mov ecx, 0x10119be0
mov dword [0x10119bf0], 0
mov word [0x10119be0], ax
call fcn.1001a420
cmp dword [ebp - 0x218], 8
jb 0x10027690
push dword [ebp - 0x22c]
call fcn.1006157c
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x10119be0
mov word [esi], ax
call fcn.1001a4d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10061581
mov esp, ebp
pop ebp
ret
Function at 0x100276d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
test ebx, ebx
je 0x100277ed
mov edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100276e4
sub edx, ecx
sar edx, 1
je 0x100277ed
cmp word [ebx + 2], 0x3a
jne 0x100277ed
cmp word [ebx + 4], 0x5c
jne 0x100277ed
push esi
mov esi, ebx
push edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10027716
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
lea eax, [esi + 4]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10060de1
add esp, 4
lea ecx, [esi + 1]
mov edi, eax
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
call ebx
cmp word [edi + esi*2 - 2], 0x5c
lea eax, [edi + esi*2]
je 0x10027766
push 2
push 0x10106aac
push eax
call ebx
lea eax, [edi + 6]
mov dword [ebp - 4], 1
push 0x5c
push eax
call fcn.10065275
mov esi, eax
add esp, 8
test esi, esi
je 0x100277da
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002779c
test al, 0x10
jne 0x100277a5
push 0
push edi
call ebx
test eax, eax
je 0x100277d3
mov eax, 0x5c
push eax
mov word [esi], ax
lea eax, [esi + 2]
push eax
call fcn.10065275
mov esi, eax
add esp, 8
test esi, esi
jne 0x10027787
push edi
call fcn.10062050
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
push edi
call fcn.10062050
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10027800
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10114770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x214], 0
push 0x208
push eax
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x20e]
push eax
call fcn.10067e20
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x210], ax
jne 0x1002787e
xor ecx, ecx
jmp 0x10027896
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10027887
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.1001ab20
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10061581
mov esp, ebp
pop ebp
ret
Function at 0x100278c0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10114770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10027928
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], 0
je 0x10027979
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x10027979
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.SystemToUser_bImpersonateLoggedOnUser__d__GetLastError__d
push str.BaseCommon.cpp_BaseCommon::LocalSystemToUserPermission
call fcn.100289a0
add esp, 0x10
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061581
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10061581
mov esp, ebp
pop ebp
ret
Function at 0x10027d80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov ecx, 0x5a4d
mov dword [ebp - 4], eax
cmp word [eax], cx
je 0x10027da6
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x10027dc6
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push dword [ebx + 0x50]
push dword [ebx + 0x34]
call edi
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x10027e0d
push 4
push 0x3000
push dword [ebx + 0x50]
push eax
call edi
mov esi, eax
mov dword [ebp - 8], eax
test esi, esi
jne 0x10027e0d
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x24
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x10027e42
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 4
push 0x1000
mov dword [edi + 4], esi
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x10027d40
mov dword [edi + 0x18], 0x10027d50
mov dword [edi + 0x1c], 0x10027d70
mov dword [edi + 0x20], 0
push dword [ebx + 0x54]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
mov esi, eax
mov eax, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
push ecx
push eax
push esi
call fcn.10067eb0
mov ecx, dword [ebp - 4]
mov edx, ebx
push edi
mov eax, dword [ecx + 0x3c]
add eax, esi
mov esi, dword [ebp - 8]
mov dword [edi], eax
mov dword [eax + 0x34], esi
call fcn.10027990
mov edx, esi
add esp, 0x10
sub edx, dword [ebx + 0x34]
je 0x10027ec3
mov ecx, edi
call fcn.10027b20
mov ecx, edi
call fcn.10027bc0
test eax, eax
je 0x10027ef6
mov ecx, edi
call fcn.10027a40
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10027f0d
push 0
push 1
add eax, esi
push esi
call eax
test eax, eax
jne 0x10027f06
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
call fcn.10027fd0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x10], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10028850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100da548
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10114770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [0x10119a70], 0
je 0x1002897c
mov eax, dword [0x10119bf8]
test eax, eax
je 0x1002897c
push 2
lea ecx, [ebp - 0x14]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100288b9
call fcn.10028ca0
call fcn.10018a90
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100288d5
push 0x80004005
call fcn.10020750
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x1a]
push edi
push esi
push eax
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x14]
push str.__d___02d:_02d:_02d._03d__s__s_r_n
push eax
call fcn.10021250
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
add esp, 0x24
mov eax, dword [esi - 0xc]
push 0
push ecx
add eax, eax
push eax
push esi
push dword [0x10119bf8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10028946
call fcn.10028ca0
push dword [0x10119bf8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x1002895b
call fcn.10028ca0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002897c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10061581
mov esp, ebp
pop ebp
ret
Function at 0x100293f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, edx
test ebx, ebx
jne 0x10029409
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
lea ecx, [edi + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
cmp edx, 0x40000000
jae 0x10029401
lea eax, [edx*4]
cmp dword [ebx], eax
jb 0x10029401
mov ecx, dword [ebp + 8]
cmp edi, 2
jbe 0x100294a2
lea edx, [edi - 3]
mov eax, 0xaaaaaaab
mul edx
mov ebx, edx
shr ebx, 1
inc ebx
nop
movzx eax, byte [esi]
sub edi, 3
shr eax, 2
movzx eax, byte [eax + 0x101058f0]
mov byte [ecx], al
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
add edx, edx
movzx eax, byte [eax + edx*8 + 0x101058f0]
mov byte [ecx + 1], al
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 2]
and edx, 0xf
shr eax, 6
movzx eax, byte [eax + edx*4 + 0x101058f0]
mov byte [ecx + 2], al
movzx eax, byte [esi + 2]
add esi, 3
and eax, 0x3f
movzx eax, byte [eax + 0x101058f0]
mov byte [ecx + 3], al
add ecx, 4
dec ebx
jne 0x10029440
mov ebx, dword [ebp + 0xc]
test edi, edi
je 0x10029518
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + 0x101058f0]
mov byte [ecx], al
cmp edi, 1
jbe 0x100294fd
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shr eax, 4
add edx, edx
pop edi
movzx eax, byte [eax + edx*8 + 0x101058f0]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
and eax, 0xf
pop esi
movzx eax, byte [eax*4 + 0x101058f0]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
add ecx, 4
mov eax, ecx
sub eax, dword [ebp + 8]
mov dword [ebx], eax
xor eax, eax
mov byte [ecx], 0
pop ebx
pop ebp
ret
movzx eax, byte [esi]
and eax, 3
shl eax, 4
mov al, byte [eax + 0x101058f0]
mov byte [ecx + 1], al
mov word [ecx + 2], 0x3d3d
add ecx, 4
mov eax, ecx
sub eax, dword [ebp + 8]
pop edi
mov dword [ebx], eax
xor eax, eax
pop esi
mov byte [ecx], 0
pop ebx
pop ebp
ret

Function at 0x10029530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10114770]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10119a74], 0
jne 0x100295b7
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.10067e20
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
mov dword [0x10119a74], eax
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061581
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.10061581
mov esp, ebp
pop ebp
ret