joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4776a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0
push 0
push 0x2001f
push 0
push 0
push dword [0x53e818]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push reloc.WS2_32.dll_accept
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.0043aa90
mov edi, dword [ebp - 0xc]
test eax, eax
jne 0x4777c2
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [eax]
test edx, edx
je 0x477724
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477700
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.SearchName
push edi
call ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
test edx, edx
je 0x477756
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477732
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.SearchKeyword
push edi
call ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
test edx, edx
je 0x477788
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477764
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.SearchUrl
push edi
call ebx
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
test edx, edx
je 0x4777ba
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477796
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.SearchSugUrl
push edi
call ebx
mov esi, 1
pop ebx
jmp 0x4777c4
xor esi, esi
test edi, edi
je 0x4777cf
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x479410
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0x74]
call fcn.00457fa0
test eax, eax
jne 0x479428
lea ecx, [edi + 0x74]
call fcn.004582e0
push 0
lea ecx, [edi + 0x74]
call fcn.00458310
push 0x543d60
mov ecx, edi
call fcn.0047a270
push 0x543d60
mov ecx, edi
call fcn.0047a160
lea ecx, [edi + 0x74]
call fcn.00457fa0
test eax, eax
jne 0x479460
lea ecx, [edi + 0x74]
pop edi
pop esi
jmp fcn.004586a0
pop edi
pop esi
ret

Function at 0x479ae0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fac1b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call fcn.00479c00
add esp, 4
xor edi, edi
push 0x543ddc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x543dd4], edi
jne 0x479be1
push 0xa0
call fcn.004da9cb
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x479b4a
mov ecx, eax
call fcn.0047a4a0
mov esi, eax
jmp 0x479b4c
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x543dd4], esi
test esi, esi
je 0x479be1
push dword [ebp + 8]
lea ecx, [esi + 0xc]
call fcn.0043a620
mov eax, dword [ebp + 0xc]
push 0
push 0
push 1
push 0
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
test eax, eax
je 0x479bbd
mov ecx, esi
call fcn.0047aff0
test eax, eax
je 0x479bbd
mov eax, dword [0x543dd4]
push eax
push 0
push eax
push 0x479390
push 0
push 0
call fcn.004da73c
mov ecx, eax
add esp, 0x18
mov eax, dword [0x543dd4]
mov edi, 1
mov dword [eax + 4], ecx
jmp 0x479be1
mov esi, dword [0x543dd4]
test esi, esi
je 0x479bd7
mov ecx, esi
call fcn.00479240
push esi
call fcn.004d89f1
add esp, 4
mov dword [0x543dd4], 0
push 0x543ddc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x479c00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x543ddc
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x543dcc], 0
jne 0x479cd6
mov esi, dword [0x543dd4]
test esi, esi
je 0x479cd6
cmp dword [ebp + 8], 0
mov dword [0x543dcc], 1
je 0x479c4f
mov dword [esi + 4], 0
mov esi, dword [0x543dd4]
push edi
mov edi, dword [esi + 4]
test edi, edi
je 0x479ca7
mov dword [esi + 4], 0
mov eax, dword [0x543dd4]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x543ddc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x1388
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x479c9a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x543dd4]
pop edi
test esi, esi
je 0x479cbc
mov ecx, esi
call fcn.00479240
push esi
call fcn.004d89f1
add esp, 4
cmp dword [ebp - 4], 0
mov dword [0x543dd4], 0
mov dword [0x543dcc], 0
jne 0x479ce1
push 0x543ddc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47aff0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fffa8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x54], eax
test eax, eax
je 0x47b0c6
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x47aee0
push 0
push 0
call fcn.004da73c
add esp, 0x18
mov dword [esi + 0x5c], eax
lea eax, [ebp - 0x10]
mov ecx, 0x543d60
push eax
call fcn.00471360
lea eax, [esi + 0x4a]
mov dword [ebp - 4], 0
push eax
lea eax, [esi + 0x48]
mov ecx, esi
push eax
lea eax, [esi + 0x44]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0047af00
mov edx, dword [ebp - 0x10]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
test eax, eax
lea eax, [edx + 0xc]
je 0x47b0b5
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47b0a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47b0c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47c0a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fffa8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0043ae40
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x47c0e3
push 0x80004005
call fcn.0043a9b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [edi + 0x24]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push dword [0x53e778]
push 0x50e1e8
push eax
call fcn.0043ad30
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0x98], eax
test eax, eax
je 0x47c13b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x47c13b
mov edi, 1
jmp 0x47c13d
xor edi, edi
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 0x47c15e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47ead0
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47eaee
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x47ec1d
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 6
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47ec16
cmp dword [ebp + 8], 6
jne 0x47ec16
mov ax, word [ebp - 8]
test ax, ax
je 0x47ec16
movzx esi, ax
push ebx
shl esi, 4
push esi
call fcn.004d9d5b
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47eb73
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp + 8]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x47ec04
movzx esi, word [ebp - 8]
mov eax, esi
shl eax, 4
cmp dword [ebp + 8], eax
jne 0x47ec04
test esi, esi
jle 0x47ebef
mov edx, dword [ebp + 0xc]
mov ecx, ebx
mov al, byte [ecx]
cmp al, byte [ecx + 1]
jne case.0x47ebc1.17
movzx eax, al
add eax, 0xfffffff0
cmp eax, 0xf0
ja case.0x47ebc1.17
movzx eax, byte [eax + 0x47ec48]
jmp dword [eax*4 + 0x47ec28]
or dword [edx], 1
jmp case.0x47ebc1.17
or dword [edx], 2
jmp case.0x47ebc1.17
or dword [edx], 4
jmp case.0x47ebc1.17
or dword [edx], 8
jmp case.0x47ebc1.17
or dword [edx], 0x10
jmp case.0x47ebc1.17
or dword [edx], 0x20
jmp case.0x47ebc1.17
or dword [edx], 0x40
add ecx, 0x10
dec esi
jne 0x47eba6
push ebx
call fcn.004d92bb
add esp, 4
mov eax, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004d92bb
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47f870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd660
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0043ae40
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x47f8b6
push 0x80004005
call fcn.0043a9b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x47f8df
cmp eax, ecx
jbe 0x47f8df
mov esi, eax
sub esi, ecx
push esi
lea eax, [ebp - 0x10]
push 0x508d70
push eax
call fcn.0043ad30
add esp, 0xc
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47f90d
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push dword [edi + 0x24]
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push dword [0x53e790]
push eax
call fcn.0043ad30
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
add esp, 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push 0
push 0x2001f
push 0
push 0
push edi
push reloc.WS2_32.dll_accept
call fcn.0043aa90
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x1c]
test eax, eax
jne 0x47f9b5
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x47f9b5
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp + 8], eax
jmp 0x47f990
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f990
sub ecx, dword [ebp + 8]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
je 0x47f9c0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x47f9e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x47f9fe
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
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x480fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd940
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.0043ae40
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x48100c
push 0x80004005
call fcn.0043a9b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push 1
lea eax, [esi + 0x24]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004c3a00
add esp, 0x10
test eax, eax
jne 0x481049
push str.in_saveResponseXml__Can_not_get_the_next_response_file_path
push 2
call fcn.0045d420
add esp, 8
jmp 0x4810d1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.004c1bb0
add esp, 0xc
test eax, eax
jne 0x48107b
push str.in_saveResponseXml__StringUtils::ByteSafeArrayToUtf8_failed.
push 2
call fcn.0045d420
add esp, 8
jmp 0x4810d1
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [ebp - 0x14]
mov edi, eax
cmp edi, 0xffffffff
je 0x4810c4
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
push eax
call fcn.004c2390
add esp, 4
test esi, esi
je 0x4810d1
push esi
call fcn.004d89f6
add esp, 4
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4810f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x481115
mov ecx, dword [edx]
push edx
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 esp, ebp
pop ebp
ret 8
Function at 0x482650
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x30], 0
je 0x482667
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push dword [0x53ca9c]
lea ecx, [ebp - 4]
call fcn.0043a420
push dword [ebp - 4]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x4826ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x48269d
mov esi, 1
jmp 0x4826af
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], 0
xor esi, esi
push edi
mov edi, dword [ebp - 4]
or ecx, 0xffffffff
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4826cd
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x482b50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, 1
push edi
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0xa28
or ecx, eax
jge 0x482b7a
push 0xa28
mov ecx, esi
call fcn.0043b5a0
push dword [esi]
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, dword [esi]
mov edi, eax
test ecx, ecx
je 0x482ba4
push dword [ecx - 8]
push ecx
call fcn.004d9e5f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x482bc1
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x482bc1
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
pop ebp
ret
push 0x80070057
call fcn.0043a9b0
int3
Function at 0x482bd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fdc08
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x482c11
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x50e660
lea ecx, [ebp + 8]
call fcn.0043a420
push 0x50a78c
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00481560
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482c37
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 8]
call fcn.00452320
mov esi, dword [ebp + 0xc]
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0xa28
or eax, ecx
jge 0x482c75
push 0xa28
mov ecx, esi
call fcn.0043b5a0
push dword [esi]
push dword [ebp + 8]
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
mov ecx, dword [esi]
mov edi, eax
test ecx, ecx
je 0x482ca5
push dword [ecx - 8]
push ecx
call fcn.004d9e5f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x482cee
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x482cee
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov dword [ebp - 4], 0xffffffff
mov word [eax + ecx*2], dx
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x482cdb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0043a9b0
int3
Function at 0x483a20
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x53f030]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x483a89
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d89fb
mov esp, ebp
pop ebp
ret

Function at 0x483aa0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x53f030]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x120], 0x11c
push 0xfe
push eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x10a]
push eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
call fcn.004d9060
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x483b38
cmp dword [ebp - 0x11c], 6
jb 0x483b38
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d89fb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004d89fb
mov esp, ebp
pop ebp
ret
Function at 0x484f50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fdfe0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
xor edi, edi
mov dword [esi], 0
call fcn.00483aa0
test eax, eax
jne 0x485030
push 0x38
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004d9060
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x40
mov dword [ebp - 0x3c], str.open
lea eax, [ecx + 0x5c]
mov dword [ebp - 0x38], eax
lea eax, [ecx + 0x264]
mov dword [ebp - 0x34], eax
lea eax, [ecx + 0x1264]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x146c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x485014
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x10]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
lea eax, [edi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x53ca18
lea ecx, [ebp + 0x10]
call fcn.0043a420
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x34]
call fcn.00481220
mov edx, dword [ebp + 0x10]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 2
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x485073
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x34]
call fcn.004859a0
test eax, eax
je 0x4850b4
push dword [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.00485b20
test eax, eax
je 0x4850af
lea ecx, [ebp - 0x34]
call fcn.00485aa0
test eax, eax
je 0x4850af
mov ecx, dword [ebp + 0xc]
mov edi, 1
mov eax, dword [ebp - 0x24]
mov dword [esi], 0
mov dword [ecx], eax
jmp 0x4850b4
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
push dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004d89f6
mov eax, dword [ebp - 0x30]
add esp, 4
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x4850e2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4850fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret