joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a590
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491f48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4bf434]
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 eax, dword fs:[0x2c]
mov ecx, dword [0x4c7f44]
mov ebx, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4c7d8c]
cmp eax, dword [ecx + 4]
jg 0x47a74b
cmp dword [0x4bf2ec], 0
jne 0x47a6f7
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], ecx
cmp eax, 1
jl 0x47a67c
jne 0x47a61c
push 2
push 0x4a0c38
jmp 0x47a671
xor esi, esi
mov edi, 0x112
lea eax, [edi + esi]
cdq
sub eax, edx
mov edx, dword [ebp - 0x2c]
sar eax, 1
lea ecx, [eax + eax*2]
sub edx, dword [ecx*4 + 0x4a8a44]
jns 0x47a63e
mov edi, eax
jmp 0x47a644
test edx, edx
jle 0x47a64f
mov esi, eax
mov eax, edi
sub eax, esi
cmp eax, 1
jg 0x47a623
jmp 0x47a679
lea eax, [eax + eax*2]
mov edx, dword [eax*4 + 0x4a8a40]
mov ecx, edx
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a660
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407630
mov esi, dword [ebp - 0x18]
mov edx, dword [0x4bf2f0]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x47a6c5
mov ecx, dword [0x4bf2dc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47a6bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47a6bb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
add esp, 8
mov eax, dword [ebp - 0x28]
mov dword [0x4bf2dc], eax
mov eax, dword [ebp - 0x24]
mov dword [0x4bf2e0], eax
mov eax, dword [ebp - 0x20]
mov dword [0x4bf2e4], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x4bf2e8], eax
mov eax, dword [ebp - 0x14]
mov dword [0x4bf2ec], esi
mov dword [0x4bf2f0], eax
test esi, esi
je 0x47a719
mov eax, dword [ebx + 4]
push 0x4bf2dc
cmp eax, dword [ebx + 8]
je 0x47a711
mov ecx, eax
call fcn.00402080
add dword [ebx + 4], 0x18
jmp 0x47a719
push eax
mov ecx, ebx
call fcn.0040c930
mov ecx, dword [ebx + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
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.00488042
mov esp, ebp
pop ebp
ret
push 0x4c7d8c
call fcn.004882cc
add esp, 4
cmp dword [0x4c7d8c], 0xffffffff
jne 0x47a5de
push 0x49c220
call fcn.004885de
push 0x4c7d8c
call fcn.00488282
add esp, 8
jmp 0x47a5de
Function at 0x47ab10
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x47ab31
lea eax, [eax - 1]
dec esi
cmp byte [eax], 0x3d
je 0x47ab25
mov dword [ebp + 0xc], esi
xor eax, eax
test esi, esi
je 0x47abe8
push ebx
mov edx, 1
mov dword [ebp + 8], 2
lea ebx, [esi - 1]
sub edx, ecx
shr ebx, 2
push edi
lea edi, [ecx + 2]
mov dword [ebp - 4], edx
inc ebx
jmp 0x47ab60
movsx ecx, byte [edi - 1]
mov dh, byte [ecx + 0x4aa2b0]
movsx ecx, byte [edi - 2]
mov dl, byte [ecx + 0x4aa2b0]
mov cl, dh
sar cl, 4
and cl, 3
shl dl, 2
or dl, cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], dl
inc eax
mov ecx, dword [ebp + 8]
cmp ecx, esi
jae 0x47abd4
movsx ecx, byte [edi]
mov esi, dword [ebp + 0x10]
shl dh, 4
mov dl, byte [ecx + 0x4aa2b0]
mov cl, dl
sar cl, 2
and cl, 0xf
or cl, dh
mov byte [eax + esi], cl
inc eax
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
add ecx, edi
cmp ecx, esi
jae 0x47abd1
movsx ecx, byte [edi + 1]
shl dl, 6
mov cl, byte [ecx + 0x4aa2b0]
and cl, 0x3f
or cl, dl
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], cl
inc eax
mov ecx, dword [ebp + 8]
add ecx, 4
add edi, 4
mov dword [ebp + 8], ecx
sub ebx, 1
jne 0x47ab60
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47dd80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4bf434]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.004114a0
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x47ddc3
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47ddc3
test al, 0x10
je 0x47ddc3
mov bl, 1
jmp 0x47ddc5
xor bl, bl
lea ecx, [ebp - 0x1c]
call fcn.00401ca0
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00488042
mov esp, ebp
pop ebp
ret

Function at 0x47e7c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x10], 0
je 0x47e7e1
cmp dword [ecx + 0x14], 8
jb 0x47e7ce
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47e7e1
test al, 0x10
je 0x47e7e1
mov al, 1
ret
xor al, al
ret
Function at 0x47f180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499e28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4bf434]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
jl 0x47f323
mov esi, dword [ebp + 0xc]
jg 0x47f1dd
test esi, esi
je 0x47f323
cmp dword [ebx], 0xffffffff
je 0x47f323
push esi
lea ecx, [ebp - 0x1c]
call fcn.0047f3a0
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push 0
push eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
mov esi, dword [ebp - 0x10]
sub ecx, edi
mov byte [ebp + 0x13], 0
cmp esi, ecx
jae 0x47f220
lea ebx, [edi + esi]
jmp 0x47f250
jbe 0x47f253
mov eax, dword [ebp - 0x14]
sub eax, edi
cmp esi, eax
jbe 0x47f240
lea eax, [ebp + 0x13]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00442820
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x47f253
sub esi, ecx
push esi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
cmp edi, ebx
je 0x47f2da
mov ecx, ebx
sub ecx, edi
mov dword [ebp + 0x10], ecx
cmp ecx, 0x1000
jb 0x47f2a5
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x47f34e
push eax
call fcn.00488004
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x47f2fd
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp + 0x10]
jmp 0x47f2b9
test ecx, ecx
je 0x47f2b7
push ecx
call fcn.00488004
mov ecx, dword [ebp + 0x10]
add esp, 4
jmp 0x47f2b9
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
add eax, ecx
push ecx
mov dword [esi + 8], eax
mov esi, dword [esi]
push edi
push esi
call sub.VCRUNTIME140.dll_memmove
sub ebx, edi
add esp, 0xc
add ebx, esi
mov esi, dword [ebp + 8]
mov dword [esi + 4], ebx
test edi, edi
je 0x47f30d
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x47f303
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47f303
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.00488034
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00401c80
int3
Function at 0x47fd60
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x47ff32
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3f0
jne 0x47ff32
push edi
mov ecx, esi
call fcn.00480690
mov edi, eax
cmp edi, 0xffffffff
je 0x47ff29
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xffffffff
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47ff15
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x47ff0b
test eax, eax
je 0x47ff0b
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x47fe16
call ebx
cmp eax, 0x7a
jne 0x47ff0b
push dword [ebp - 4]
call fcn.0048818b
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp - 4]
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x47ff02
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x47ff02
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47ff02
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x47fe88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x47ff0b
push dword [ebp - 4]
call fcn.0048818b
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x47feef
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x47feef
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x47feef
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x18]
cmp eax, 1
sete bl
call fcn.00488194
push dword [ebp - 8]
call fcn.00488194
add esp, 8
test bl, bl
jne 0x47ff15
jmp 0x47ff0b
push ebx
call fcn.00488194
push dword [ebp - 8]
call fcn.00488194
add esp, 8
jmp 0x47ff0b
push ebx
call fcn.00488194
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov byte [esi], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x47ff29
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499fad
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4bf434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x232]
xor ebx, ebx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], ebx
call fcn.0047fd60
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [0x4c7e5c], bl
jne 0x48034b
xor eax, eax
mov dword [ebp - 0x220], ebx
push str.Support_GetWinSpecialFoldersFromReg
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00403d90
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
mov ebx, 1
push eax
mov dword [ebp - 0x238], ebx
call fcn.00475ec0
add esp, 4
mov byte [ebp - 0x231], 0
test al, al
je 0x480352
mov byte [ebp - 0x231], 1
mov dword [ebp - 4], 0
test bl, 1
je 0x4803a0
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4803a0
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480396
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x480396
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
add esp, 8
cmp byte [ebp - 0x231], 0
lea eax, [ebp - 0x218]
je 0x4803c8
push 0xa
push 0xffffffffffffffff
push 0
push 0x104
push eax
push dword [ebp + 0xc]
call fcn.0047ff70
add esp, 0x18
jmp 0x4803d6
push 0
push dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call fcn.00403d90
cmp byte [ebp - 0x232], 0
je 0x480406
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488042
mov esp, ebp
pop ebp
ret
Function at 0x480690
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499feb
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4bf434]
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
lea eax, [ebp - 0x248]
mov dword [ebp - 0x244], 0xffffffff
push eax
mov dword [ebp - 0x248], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4808a6
cmp dword [ebp - 0x248], 0xffffffff
je 0x4808a6
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
je 0x480869
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4807dd
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov edi, edi
lea eax, [ebp - 0x218]
push str.explorer.exe
push eax
call esi
add esp, 8
test eax, eax
jne 0x4807bb
cmp edi, ebx
je 0x48079c
mov eax, dword [ebp - 0x234]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x258], edi
jmp 0x4807bb
lea eax, [ebp - 0x234]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.00401f70
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x258]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x480770
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x24c], esi
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x480869
lea ecx, [ecx]
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0xffffffff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x480854
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x248]
jne 0x480854
push dword [esi]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x480854
lea ecx, [ebp - 0x244]
push ecx
push 0xf
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x250]
test eax, eax
jne 0x48085d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x4807f0
jmp 0x480863
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x244]
test esi, esi
je 0x4808a2
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x480898
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x480898
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push esi
call fcn.00488034
add esp, 8
mov eax, edi
jmp 0x4808ac
mov eax, dword [ebp - 0x244]
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.00488042
mov esp, ebp
pop ebp
ret
Function at 0x480b00
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a0f9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4bf434]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0047bfa0
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
call fcn.0047bfa0
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0047bfa0
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
call fcn.0047bfa0
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 3
call fcn.0047bfa0
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 4
call fcn.0047bfa0
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 5
call fcn.0047bfa0
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 6
call fcn.0047bfa0
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 7
call fcn.0047bfa0
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 8
call fcn.0047bfa0
lea ecx, [esi + 0xf0]
mov byte [ebp - 4], 9
call fcn.0047bfa0
lea ecx, [esi + 0x108]
mov byte [ebp - 4], 0xa
call fcn.0047bfa0
lea ecx, [esi + 0x120]
mov byte [ebp - 4], 0xb
call fcn.0047bfa0
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 0xc
call fcn.0047bfa0
lea ecx, [esi + 0x150]
mov byte [ebp - 4], 0xd
call fcn.0047bfa0
lea ecx, [esi + 0x168]
mov byte [ebp - 4], 0xe
call fcn.0047bfa0
lea ecx, [esi + 0x180]
mov byte [ebp - 4], 0xf
call fcn.0047bfa0
lea ecx, [esi + 0x198]
mov byte [ebp - 4], 0x10
call fcn.0047bfa0
mov dword [esi + 0x1b0], 0
mov eax, esi
mov dword [esi + 0x1b4], 0
mov dword [esi + 0x1b8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48b410
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b293
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4bf434]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push 0
push 0x49dd09
mov byte [ebp - 4], 1
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.00413a00
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10008270
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov esi, ecx
mov eax, dword [0x10022040]
xor eax, esp
mov dword [esp + 0x88], eax
cmp dword [ecx + 0x10], 0
sete byte [esp + 0x2b]
mov eax, 0x61a8bf0c
lea edi, [esp + 0x44]
lea ebx, [esp + 0x34]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop word cs:[eax + eax]
cmp eax, 0xbb81412e
jle 0x100082e0
cmp eax, 0xbb81412f
je 0x100082f3
cmp eax, 0xcc19af22
je 0x1000832a
cmp eax, 0x61a8bf0c
jne 0x100082b0
cmp byte [esp + 0x2b], 0
mov eax, 0xa8505145
mov ecx, 0xb8fb6848
cmovne eax, ecx
jmp 0x100082b0
cmp eax, 0xa8505145
je 0x1000833c
cmp eax, 0xb8fb6848
jne 0x100082b0
jmp 0x100083c6
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call ebp
sub esp, 4
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call ebp
sub esp, 4
mov eax, 0xcc19af22
jmp 0x100082b0
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov eax, 0xb8fb6848
jmp 0x100082b0
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
movups xmmword [eax + 0x30], xmm0
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x40], 0
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x30]
movups xmmword [eax], xmm0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1000837a
mov eax, dword [esi]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
movaps xmm0, xmmword [0x1001e970]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
mov eax, 0xbb81412f
mov ecx, 0xcc19af22
cmove eax, ecx
jmp 0x100082b0
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.1001000a
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10010f36
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10010f75
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10010f75
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10010f75
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10010f75
cmp dword [ecx + 0x74], 0xe
jbe 0x10010f75
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x100122b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100122dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100122dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10012600
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c620
push 0x1001c618
push str.FlsAlloc
push 0x1f
call fcn.100128e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012634
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1001263a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001267e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c630
push 0x1001c628
push str.FlsGetValue
push 0x21
call fcn.100128e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100126b5
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100126bd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001c638
push 0x1001c630
push str.FlsSetValue
push 0x22
call fcn.100128e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100126f7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100155be
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001565b
push ebx
push esi
call fcn.1001565e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100154c2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015608
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001565a
push edi
push eax
call fcn.100158bc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10015628
call fcn.10013bb0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015659
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100154c2
add esp, 0x20
test eax, eax
jne 0x10015647
push edi
call fcn.10013bb0
jmp 0x1001564f
push ebx
call fcn.10013bb0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret