joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
push 2
call fcn.00540093
mov edi, dword [ebp + 0x10]
add esp, 4
mov ecx, edi
mov ebx, edi
sar ecx, 0x10
and ebx, 0xf
movzx ecx, cl
mov esi, eax
lea eax, [ebp - 0x100]
mov dword [ebp + 0x10], ecx
cmp dword [ecx*4 + 0x5feb00], ebx
jge 0x423746
test edi, 0x300
je 0x423843
cmp dword [0x5fef00], 0
je 0x423772
call fcn.00423b40
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.005364c0
mov cx, word [0x56b6dc]
add esp, 8
mov word [eax], cx
inc eax
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx + ecx*2]
push dword [ecx*4 + 0x5eac4c]
push eax
call fcn.005364c0
movzx ecx, word [0x56b6dc]
mov word [eax], cx
inc eax
push dword [ebx*4 + 0x5ea040]
push eax
call fcn.005364c0
movzx ecx, word [0x56b6d8]
mov ebx, eax
mov word [ebx], cx
mov cl, byte [0x56b6da]
mov byte [ebx + 2], cl
add ebx, 2
lea ecx, [ebp - 1]
sub ecx, ebx
push ecx
push dword [ebp + 0xc]
push ebx
call fcn.00536380
add esp, 0x1c
lea ecx, [ebp - 1]
push esi
push 1
cmp eax, ecx
jae 0x4237e8
mov byte [eax], 0xa
lea ecx, [ebp - 0x100]
sub eax, ecx
inc eax
push eax
mov eax, ecx
push eax
call fcn.00546d14
add esp, 0x10
jmp 0x42380e
lea eax, [ebp - 0x100]
sub ebx, eax
push ebx
push eax
call fcn.00546d14
push esi
push dword [ebp + 0xc]
call fcn.005463f1
push esi
push 0x56b3a0
call fcn.005463f1
add esp, 0x20
mov eax, dword [0x5ea874]
cmp eax, 0xffffffff
jne 0x42382c
push esi
call fcn.00539c00
push eax
call fcn.0053a180
add esp, 8
mov dword [0x5ea874], eax
test eax, eax
mov ecx, 0x2000
cmovne edi, ecx
test ecx, edi
je 0x423843
push esi
call fcn.00546efa
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4244d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call fcn.0053a170
push 0
push 2
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push eax
call fcn.00539bc0
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x4245a4
push 0x22c
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.0053daa0
add esp, 0xc
mov dword [ebp - 0x234], 0x22c
lea eax, [ebp - 0x234]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x42458f
lea esi, [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
add esi, 0xfffffffc
nop word [eax + eax]
lea eax, [ebp - 0x210]
push eax
push esi
call fcn.0041f880
push dword [eax]
push ebx
call fcn.0053a880
add esp, 0x10
test eax, eax
jne 0x424576
mov eax, dword [ebp - 0x22c]
cmp eax, edi
jne 0x42458b
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x424550
jmp 0x42458e
mov dword [ebp - 8], eax
pop ebx
lea eax, [ebp - 4]
push eax
call fcn.004415d0
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.CreateToolhelp32Snapshot_failed
push 0x360000
call fcn.004232c0
int3
Function at 0x424a00
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
test esi, esi
je 0x424a23
mov ebx, esi
jmp 0x424a2a
call fcn.0053a170
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x28]
push eax
push str.SeDebugPrivilege
mov dword [ebp + 0x10], 0
call fcn.00441760
add esp, 8
test eax, eax
je 0x424a67
push str.failed_privilege_enable
push 0x360003
call fcn.00422d60
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x424aaa
push ebx
push 0
push 0xfffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
call fcn.00539bc0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x424aa3
push str.failed_OpenProcess:__m
push 0x360003
call fcn.00422d60
add esp, 8
or ebx, 0xffffffff
jmp 0x424b51
mov dword [ebp + 0x10], 1
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edi
call fcn.00441600
mov ecx, eax
add esp, 0x1c
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x424aea
push edi
push str.failed_z_CreateFile__s:__m
push 0x360003
call fcn.00422d60
add esp, 0xc
or ebx, 0xffffffff
jmp 0x424b50
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [ebp - 0x18], eax
test esi, esi
mov eax, dword [ebp + 8]
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0
cmovne eax, edx
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x14], 0
mov edx, 7
push eax
mov eax, 0x1120
cmove eax, edx
push eax
push ecx
push ebx
push dword [ebp - 4]
call dword [0x5fa99c]
push eax
call fcn.00539b90
xor ebx, ebx
add esp, 4
test eax, eax
sete bl
test eax, eax
jne 0x424b50
push edi
push str.failed_MiniDumpWriteDump__s:__m
push 0x360003
call fcn.00422d60
add esp, 0xc
pop edi
lea eax, [ebp - 0x28]
push eax
call fcn.004417c0
lea eax, [ebp - 8]
push eax
call fcn.004415d0
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x424b78
lea eax, [ebp - 4]
push eax
call fcn.004415d0
add esp, 4
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4257e0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
xor ebx, ebx
lea eax, [ebp - 0x44c]
push 0x428
push ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.0053daa0
add esp, 0xc
mov dword [ebp - 0x44c], 0x428
push dword [ebp + 8]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ecx, eax
xor edx, edx
cmp ecx, 0xffffffff
mov dword [ebp - 0x10], ecx
cmove eax, edx
test eax, eax
je 0x4259c8
lea eax, [ebp - 0x44c]
push eax
push ecx
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x4259c8
push esi
lea esi, [ebp + 4]
add esi, 0xfffffffc
push edi
mov dword [ebp - 0x24], esi
mov edi, 0x41c64e6d
lea eax, [ebp - 0x22c]
push eax
push esi
call fcn.0041f880
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x42c]
push eax
push esi
call fcn.0041f880
mov esi, dword [ebp - 0x438]
push 1
push 0xc
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], esi
call fcn.0053fce5
push dword [ebp - 4]
mov ebx, dword [0x5fa9e4]
mov dword [ebp - 0x20], eax
mov eax, esi
mul edi
mov edi, eax
mov esi, edx
call fcn.00421140
mov ecx, dword [ebx + 4]
sub edi, esi
mov edx, eax
add esp, 0x1c
mov eax, dword [ebx + 8]
xor edx, edi
mov edi, dword [ebp - 8]
and ecx, edx
mov dword [ebp - 0x14], edx
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x425913
mov ebx, dword [ebp - 4]
nop dword [eax + eax]
cmp edx, dword [esi]
jne 0x42590c
cmp edi, dword [esi + 0x10]
jne 0x42590c
mov eax, dword [esi + 0x1c]
mov ecx, ebx
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x425900
test dl, dl
je 0x4258fc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x425900
add ecx, 2
add eax, 2
test dl, dl
jne 0x4258e0
xor eax, eax
jmp 0x425905
sbb eax, eax
or eax, 1
test eax, eax
je 0x42597c
mov edx, dword [ebp - 0x14]
mov esi, dword [esi + 4]
test esi, esi
jne 0x4258d0
push 1
push 0x30
call fcn.0053fce5
push dword [ebp - 0x1c]
mov esi, eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x24], 0
call fcn.00420440
push dword [ebp - 4]
lea eax, [esi + 0x1c]
push eax
call fcn.00420440
mov ecx, dword [0x5ea884]
push 0
push esi
mov dword [esi + 0xc], ecx
lea eax, [ecx + 4]
mov dword [0x5ea884], eax
call fcn.004259f0
push esi
push dword [0x5fa9e4]
call fcn.00425520
mov eax, dword [0x5fa9e4]
add esp, 0x28
cmp dword [eax + 0xc], 0x3e8
jge 0x4259db
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0xc]
mov dword [ecx + 8], esi
test ebx, ebx
je 0x425999
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov dword [ebx + 4], ecx
mov eax, dword [ecx + 4]
mov dword [eax], ecx
jmp 0x4259a1
mov ebx, ecx
mov dword [ecx + 4], ecx
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0x44c]
mov dword [ecx], 0
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_Module32NextW
mov esi, dword [ebp - 0x24]
mov edi, 0x41c64e6d
test eax, eax
jne 0x425852
pop edi
pop esi
lea eax, [ebp - 0x10]
push eax
call fcn.004415d0
add esp, 4
invalid
Function at 0x427590
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4271c0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.0041f380
lea ecx, [ebp + 0xc]
mov dword [ebp - 0xc], eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 8], 0xffffffff
push eax
mov dword [ebp - 4], 0
call fcn.004204f0
add esp, 0x18
cmp dword [0x5febd8], 6
jl 0x4275ec
mov eax, dword [ebp - 0xc]
push dword [eax]
push str.sys_exec__s_
push 0x360006
call fcn.00422d60
add esp, 0xc
mov eax, dword [ebp - 0xc]
push dword [eax]
call fcn.00427700
add esp, 4
test eax, eax
jns 0x427626
cmp dword [0x5febd8], 6
jl 0x4276e0
mov eax, dword [ebp - 0xc]
push dword [eax]
push str.failed_sys_exec_bg__s_
push 0x360006
call fcn.00422d60
add esp, 0xc
jmp 0x4276e0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call fcn.004287e0
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov ebx, eax
mov eax, edx
mov ecx, ebx
mov dword [ebp - 0x10], eax
mov esi, eax
mov eax, dword [0x5fa9f4]
test eax, eax
je 0x427677
imul eax, eax, 0x3e8
cdq
sub eax, ecx
sbb edx, esi
add eax, ebx
adc edx, dword [ebp - 0x10]
test edx, edx
ja 0x427672
jb 0x427665
test eax, eax
jne 0x427672
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x18]
jmp 0x427681
mov dword [ebp - 0x14], edx
jmp 0x427681
or eax, 0xffffffff
mov dword [ebp - 0x14], 0
push 1
push eax
push dword [ebp - 4]
call edi
cmp eax, 0xc0
jne 0x42769b
call fcn.004287e0
mov ecx, eax
mov esi, edx
jmp 0x427642
pop edi
pop esi
pop ebx
test eax, eax
je 0x4276b6
push 0x16
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 8], 0xfffffff7
jmp 0x4276d4
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 8]
mov ecx, 0xffffffea
cmp eax, 3
cmove eax, ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
call fcn.004415d0
add esp, 4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [ebp - 8]
mov dword [ecx + 0x15f8], eax
mov esp, ebp
pop ebp
ret

Function at 0x427ba0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
neg eax
sbb eax, eax
inc eax
pop ebp
ret

Function at 0x427c10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 1
push 0x14
call fcn.0053fce5
mov ecx, dword [ebp + 8]
mov esi, eax
push 0
push 0
push esi
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
push 0x427d90
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x10]
push 0
push 0
mov dword [esi + 8], ecx
mov dword [esi + 0x10], 2
call fcn.00547b05
add esp, 0x20
mov dword [esi], eax
pop esi
test eax, eax
je 0x427c58
xor eax, eax
pop ebp
ret
push str.failed_create_thread:__m
push 0x360000
call fcn.004232c0
int3
Function at 0x42f6a0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push esi
or esi, 0xffffffff
cmp dword [0x5fac2c], 0
push edi
jne 0x42f6b5
xor eax, eax
jmp 0x42f6e3
push dword [ebp + 8]
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.0041fa40
add esp, 8
push 0x10000
push dword [eax]
push dword [0x5fac2c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
call fcn.00539bc0
add esp, 4
push eax
call fcn.00539bc0
mov edi, eax
add esp, 4
test edi, edi
jne 0x42f718
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x42f709
call fcn.0053fcd2
mov eax, dword [eax]
sub eax, 0x424
neg eax
pop edi
sbb eax, eax
pop esi
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push eax
call fcn.00539b90
add esp, 4
test eax, eax
jne 0x42f743
push dword [ebp + 8]
push str.Failed_deleting_service__s:__m
push 0x550003
call fcn.00422d60
add esp, 0xc
jmp 0x42f745
xor esi, esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call fcn.00539b90
add esp, 4
test eax, eax
jne 0x42f76b
push str.Failed_close_service_handle:__m
push 0x550003
call fcn.00422d60
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x42f780
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
or esi, 0xffffffff
cmp dword [0x5fac2c], 0
push edi
mov edi, dword [ebp + 8]
je 0x42f837
lea eax, [ebp + 4]
sub eax, 4
push edi
push eax
call fcn.0041fa40
add esp, 8
push 0xf01ff
push dword [eax]
push dword [0x5fac2c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
call fcn.00539bc0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42f837
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push eax
call fcn.00539b90
add esp, 4
test eax, eax
jne 0x42f805
push edi
push str.failed_query_service_status__s:__m
push 0x550003
call fcn.00422d60
add esp, 0xc
test eax, eax
jne 0x42f808
mov esi, dword [ebp - 0x24]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call fcn.00539b90
add esp, 4
test eax, eax
jne 0x42f84a
push str.Failed_close_service_handle:__m
push 0x550003
call fcn.00422d60
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push str.service__s_doesnt_exist
push 0x550005
call fcn.00422d60
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42fbc0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x24
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push eax
call fcn.00539b90
add esp, 4
test eax, eax
jne 0x42fbfe
push dword [ebp + 0x10]
push str.failed_query_service_status__s:__m
push 0x550003
call fcn.00422d60
add esp, 0xc
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42fea0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x1c]
lea esi, [ebp + 4]
add esi, 0xfffffffc
push esi
call fcn.0041fa40
push dword [ebp + 0xc]
push esi
mov edi, dword [eax]
call fcn.0041fa40
push dword [ebp + 8]
push esi
mov ebx, dword [eax]
call fcn.0041fa40
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
push edi
push 1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [eax]
push dword [0x5fac2c]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
push eax
call fcn.00539bc0
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x42ff80
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
or edi, 0xffffffff
mov eax, dword [ebx]
test eax, eax
je 0x42ffa0
push eax
call fcn.0053fcf0
add esp, 4
mov dword [ebx], 0
push 1
push 0x200
call fcn.0053fce5
add esp, 8
mov dword [ebx], eax
lea ecx, [ebp + 0xc]
push ecx
push 0x200
push eax
push dword [ebp + 8]
call sub.PSAPI.DLL_EnumProcessModules
push eax
call fcn.00539b90
add esp, 4
test eax, eax
jne 0x430006
cmp dword [0x5fec54], 6
jl 0x42ffeb
push str.EnumProcessModules_failed:__m
push 0x550006
call fcn.00422d60
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x430054
push eax
call fcn.0053fcf0
add esp, 4
mov dword [ebx], 0
mov eax, edi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0xc]
shr edi, 2
cmp edi, 0x80
jb 0x430054
push esi
lea esi, [edi*8]
push esi
push dword [ebx]
call fcn.00545dc2
add esp, 8
mov dword [ebx], eax
lea ecx, [ebp + 0xc]
push ecx
push esi
push eax
push dword [ebp + 8]
call sub.PSAPI.DLL_EnumProcessModules
push eax
call fcn.00539b90
add esp, 4
pop esi
test eax, eax
je 0x43005a
mov ecx, dword [ebp + 0xc]
lea eax, [edi + edi]
shr ecx, 2
cmp ecx, eax
jae 0x430069
mov edi, ecx
mov eax, edi
pop edi
pop ebx
pop ebp
ret
push str.EnumProcessModules_2nd_failed:__m
push 0x550000
call fcn.004232c0
push str.EnumProcessModules_no_space
push 0x550000
call fcn.004232c0
int3

Function at 0x430160
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov word [ebp - 0xc], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
call fcn.00539b90
add esp, 4
test eax, eax
jne 0x4301a7
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push eax
call fcn.00539b90
add esp, 4
test eax, eax
jne 0x4301dc
push str.failed_CheckTokenMembership__:__m
push 0x550003
call fcn.00422d60
add esp, 8
mov dword [ebp - 8], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x430230
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push fcn.00420da0
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.0041f380
mov esi, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [esi]
test eax, eax
je 0x430271
push eax
call fcn.0053fcf0
add esp, 4
mov dword [esi], 0
lea eax, [ebp - 4]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push eax
call fcn.00539b90
mov ecx, dword [ebp - 4]
add esp, 4
test ecx, ecx
je 0x4302e5
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x4302a9
call fcn.0053fcd2
mov ecx, dword [ebp - 4]
cmp dword [eax], 0xea
jne 0x4302e5
push ecx
push dword [ebp - 8]
call fcn.00420e30
add esp, 8
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x4302e5
mov eax, dword [ebp - 8]
push dword [eax]
push esi
call fcn.004205a0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
push str.failed_GetComputerName:__m
push 0x550003
call fcn.00422d60
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x430320
Capabilities:
Check os version

Disassembly:
mov ecx, dword [0x5eaa74]
cmp ecx, 0xffffffff
jne 0x430417
push esi
xor esi, esi
cmp dword [0x5eaa78], ecx
jne 0x430416
cmp dword [0x5fac38], esi
jne 0x43036c
push 0x5fac38
mov dword [0x5fac38], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call fcn.00539b90
add esp, 4
test eax, eax
je 0x43041a
mov edx, dword [0x5fac3c]
mov eax, dword [0x5fac40]
push edi
movzx edi, word [0x5fad4c]
cmp edx, 0xa
jg 0x4303e3
jne 0x430391
test eax, eax
jns 0x4303e3
mov esi, 6
jmp 0x4303e8
cmp edx, 6
jg 0x43038a
jne 0x4303c0
cmp eax, 3
jge 0x43038a
cmp eax, 2
jge 0x4303b9
cmp eax, 1
jge 0x4303b2
test eax, eax
js 0x4303dc
mov esi, 3
jmp 0x4303e8
mov esi, 4
jmp 0x4303e8
mov esi, 5
jmp 0x4303e8
cmp edx, 5
jg 0x4303dc
jne 0x4303e8
cmp eax, 2
jge 0x4303dc
cmp eax, 1
jge 0x4303dc
test eax, eax
js 0x4303e8
mov esi, 1
jmp 0x4303e8
mov esi, 2
jmp 0x4303e8
mov esi, 7
mov dword [0x5eaa7c], eax
mov ecx, esi
mov eax, dword [0x5fac44]
mov dword [0x5eaa80], eax
mov eax, dword [0x5fac48]
mov dword [0x5eaa88], edi
mov dword [0x5eaa74], ecx
mov dword [0x5eaa78], edx
mov dword [0x5eaa84], eax
pop edi
pop esi
mov eax, ecx
ret
push str.GetVersionEx_failed__m
push 0x55
call fcn.0041f160
int3
Function at 0x430530
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x5eaa78]
push ebx
push esi
xor esi, esi
push edi
cmp ecx, 0xffffffff
je 0x430569
mov edx, dword [0x5eaa80]
mov esi, dword [0x5eaa74]
mov eax, dword [0x5eaa7c]
mov ebx, dword [0x5eaa84]
mov edi, dword [0x5eaa88]
mov dword [ebp - 4], edx
jmp 0x430644
cmp dword [0x5fac38], esi
jne 0x430597
push 0x5fac38
mov dword [0x5fac38], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call fcn.00539b90
add esp, 4
test eax, eax
je 0x430684
mov ecx, dword [0x5fac3c]
mov edx, dword [0x5fac44]
mov eax, dword [0x5fac40]
mov ebx, dword [0x5fac48]
movzx edi, word [0x5fad4c]
mov dword [ebp - 4], edx
cmp ecx, 0xa
jg 0x43061c
jne 0x4305ca
test eax, eax
jns 0x43061c
mov esi, 6
jmp 0x430621
cmp ecx, 6
jg 0x4305c3
jne 0x4305f9
cmp eax, 3
jge 0x4305c3
cmp eax, 2
jge 0x4305f2
cmp eax, 1
jge 0x4305eb
test eax, eax
js 0x430615
mov esi, 3
jmp 0x430621
mov esi, 4
jmp 0x430621
mov esi, 5
jmp 0x430621
cmp ecx, 5
jg 0x430615
jne 0x430621
cmp eax, 2
jge 0x430615
cmp eax, 1
jge 0x430615
test eax, eax
js 0x430621
mov esi, 1
jmp 0x430621
mov esi, 2
jmp 0x430621
mov esi, 7
mov dword [0x5eaa74], esi
mov dword [0x5eaa78], ecx
mov dword [0x5eaa7c], eax
mov dword [0x5eaa80], edx
mov dword [0x5eaa84], ebx
mov dword [0x5eaa88], edi
mov edx, dword [ebp + 8]
test edx, edx
je 0x43064d
mov dword [edx], esi
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x430656
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43065f
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x43066b
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x430674
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x43067d
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.GetVersionEx_failed__m
push 0x55
call fcn.0041f160
int3
Function at 0x4306a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push 0x4307e0
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp + 4]
sub eax, 4
push eax
call fcn.0041f380
mov edi, eax
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
mov dword [ebp - 0xc], edi
push 0x104
push eax
or ebx, 0xffffffff
call fcn.00420e30
add esp, 0x14
cmp dword [ebp + 0x10], 0
je 0x430726
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
push eax
call fcn.00539b90
add esp, 4
test eax, eax
jne 0x430726
push str.failed_get_token_for_active_user__m
push edi
call fcn.00420440
push dword [edi]
push 0x550003
call fcn.00422d60
add esp, 0x10
jmp 0x4307b7
push dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
push 0
push dword [ebp - 8]
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x43075e
push ebx
push str.failed_get_path_for_cid__d
push edi
call fcn.004204d0
push dword [edi]
push 0x550003
call fcn.00422d60
add esp, 0x14
or ebx, 0xffffffff
jmp 0x4307b7
push esi
push dword [ebp - 4]
mov esi, dword [ebp + 8]
push esi
call fcn.004205a0
mov edx, dword [esi]
add esp, 8
test edx, edx
je 0x430798
cmp byte [edx], 0
je 0x430798
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x430780
sub ecx, esi
cmp byte [edx + ecx - 1], 0x5c
jne 0x430794
mov byte [edx + ecx - 1], al
xor ebx, ebx
jmp 0x4307b6
push ebx
push str.got_empty_path_for__d
push edi
call fcn.004204d0
push dword [edi]
push 0x550003
call fcn.00422d60
add esp, 0x14
or ebx, 0xffffffff
pop esi
cmp dword [ebp + 0x10], 0
je 0x4307c9
lea eax, [ebp - 8]
push eax
call fcn.004415d0
add esp, 4
lea eax, [ebp - 4]
push eax
call fcn.00420da0
add esp, 4
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret