joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008fff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1000900e
pop dword [ebp - 0x10]
mov eax, 0xd2cc44b5
sub eax, 0xc2cbb4a7
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xd859810e
add dword [ebp - 0x20], 0x75f8c43d
mov dword [ebp - 0x1c], 0xbe34615e
add dword [ebp - 0x1c], 0x73feeae7
mov dword [ebp - 0x18], 0xfa8e9ff0
add dword [ebp - 0x18], 0x51bda43e
mov dword [ebp - 0x14], 0x88af09cb
add dword [ebp - 0x14], 0x7750f635
lea eax, [ebp - 0x20]
push eax
mov eax, 0x32027de8
sub eax, 0x2201dde4
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x3c65839e
add dword [ebp - 0x20], 0x380ce5b8
mov dword [ebp - 0x1c], 0x8e09393e
sub dword [ebp - 0x1c], 0x4c9cd7c9
mov dword [ebp - 0x18], 0x384d4a20
sub dword [ebp - 0x18], 0xd4ddddb4
mov dword [ebp - 0x14], 0x84f59ef0
sub dword [ebp - 0x14], 0x84f59ef0
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x1bec772f
add eax, 0xf41428d9
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x353f6
push 0
call eax
mov ecx, 0x42d9
mov edi, eax
mov esi, 0x366e4ddd
add esi, 0xd992aa23
add esi, dword [ebp - 0x10]
mov ebx, 0x414f1f50
add ebx, 0xa365ce49
xor dword [ebp - 0xc], 0xa5e0574
mov edx, dword [esi]
sub dword [ebp - 0xc], 0x7b2ee407
sub edx, ebx
add dword [ebp - 4], ecx
mov dword [edi], edx
sub dword [ebp - 0xc], ecx
add edi, 0xaea22aee
add edi, 0x515dd516
add esi, 0xea9e00d6
sub esi, 0xea9e00d2
loop 0x1000912a
add eax, 0xd40abe3e
sub eax, 0xd409c007
mov ebx, eax
add eax, 5
mov ecx, 0x3bef2da8
add ecx, 0xd410d258
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x420cc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x41f015
lea edi, [esi - 0x1e015]
push edi
or ebp, 0xffffffff
jmp 0x420ce2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x420ce9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x420cd8
mov eax, 1
add ebx, ebx
jne 0x420cfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x420cf0
jne 0x420d0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x420cf0
xor ecx, ecx
sub eax, 3
jb 0x420d20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x420d92
mov ebp, eax
add ebx, ebx
jne 0x420d2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x420d38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x420d5c
inc ecx
add ebx, ebx
jne 0x420d48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x420d3d
jne 0x420d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x420d3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x420d7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x420d6d
jmp 0x420cde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x420d7c
add edi, ecx
jmp 0x420cde
pop esi
lea edi, [esi + 0x1e000]
mov eax, dword [edi]
or eax, eax
je 0x420ddb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20510]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x205c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x420d99
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x205c8]
or eax, eax
je 0x420dd5
mov dword [ebx], eax
add ebx, 4
jmp 0x420db6
call dword [esi + 0x205c4]
mov ebp, dword [esi + 0x205cc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x420e0f
sub esp, 0xffffff80
jmp 0x4012a0
Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x3ad784c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x3ad784cf
pop dword [ebp - 0x1c]
mov eax, 0xd091391d
sub eax, 0x95b9b44e
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x354aa
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xf1f25d58
add ecx, 0xe0de150
xor edx, edx
add edx, eax
mov ebx, 0x909e5485
add ebx, 0xaa3a397b
add ebx, dword [ebp - 0x1c]
mov edi, 0xa9ec997f
add edi, 0x89d252c7
xor dword [ebp - 0xc], ebx
mov esi, dword [ebx]
mov dword [ebp - 0x10], 0x73fa92bb
xor esi, edi
sub dword [ebp - 4], 0x6fc70ec3
mov dword [edx], esi
xor dword [ebp - 4], ebx
add edx, 0xa7699491
add edx, 0x58966b73
add ebx, 0xd0326174
sub ebx, 0xd0326170
loop 0x3ad7852b
add eax, 0x3ffa2de
add eax, 0xfc014a95
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x3ad70000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x105f0000
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov al, byte [0x105db158]
test eax, eax
je 0x105f001d
mov cl, byte [0x105db608]
or cl, 1
mov byte [0x105db608], cl
cmp dword [0x105db130], 0
je 0x105f0035
mov dl, byte [0x105db608]
or dl, 8
mov byte [0x105db608], dl
xor eax, eax
mov al, byte [0x105db608]
test eax, eax
je 0x105f009f
cmp dword [0x105db13c], 0
je 0x105f0059
push 0x105dddfc
push 0x105dde00
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, dword [0x105ea454]
push ecx
mov dl, byte [0x105db608]
push edx
push 0x105db3b0
push 0x105db158
mov eax, dword [0x105db140]
push eax
mov ecx, dword [0x105db13c]
push ecx
mov edx, dword [0x105db138]
push edx
mov eax, dword [0x105db134]
push eax
mov ecx, dword [0x105db130]
push ecx
push 0x105db128
call fcn.105f3498
add esp, 0x28
pop ebp
ret
Function at 0x105f175f
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov word [ebp - 8], 0
call fcn.105f2a78
mov word [ebp - 4], ax
cmp dword [0x105ea570], 0
je 0x105f1789
mov dword [0x105eab44], 0
jmp 0x105f1793
mov dword [0x105eab44], 1
cmp dword [0x105eab44], 0
je 0x105f1993
cmp dword [0x105dddf8], 1
je 0x105f17ba
mov eax, dword [0x105dddf4]
cmp eax, dword [0x105dddf0]
jne 0x105f192c
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 5
idiv ecx
add edx, 1
mov dword [0x105dddf0], edx
mov dword [0x105dddf4], 1
mov edx, dword [0x105ec818]
and edx, 0x1f3
mov dword [0x105ea550], edx
mov eax, dword [0x105ea550]
mov ecx, dword [eax*4 + 0x105da010]
xor ecx, 0xfd0699d6
mov dword [0x105ea540], ecx
mov dword [0x105ea544], 0
push 4
push 0
push 0x105ea544
push 0x105ea540
movzx dx, byte [0x105da00d]
push edx
push 0x105ea6ac
call fcn.105f4480
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
test eax, eax
jne 0x105f1876
mov ecx, dword [0x105ea544]
xor ecx, 0x7b2309a7
mov edx, dword [0x105ea550]
xor ecx, dword [edx*4 + 0x105da7e0]
test ecx, ecx
je 0x105f1920
xor eax, eax
mov al, byte [0x105dcf6a]
cmp eax, 0x31
jne 0x105f1888
mov word [ebp - 4], 3
xor ecx, ecx
mov cl, byte [0x105dcf6a]
cmp ecx, 0x32
je 0x105f18a2
xor edx, edx
mov dl, byte [0x105dcf6a]
cmp edx, 0x33
jne 0x105f18a8
mov word [ebp - 4], 0
mov dword [0x105dddf8], 1
cmp dword [0x105ea594], 0
jne 0x105f191e
xor eax, eax
mov al, byte [0x105dcf6a]
cmp eax, 0x32
je 0x105f18d4
xor ecx, ecx
mov cl, byte [0x105dcf6a]
cmp ecx, 0x33
jne 0x105f191e
mov edx, dword [0x105ea69c]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [0x105ea54c], 0xc
push 0x2010
call fcn.105f00a1
push eax
call fcn.105f28db
add esp, 8
mov dword [0x105ea54c], 0
mov eax, dword [0x105ea69c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [0x105ea594], 1
jmp 0x105f192a
mov dword [0x105dddf8], 0
jmp 0x105f1991
mov ecx, dword [0x105dddf4]
add ecx, 1
mov dword [0x105dddf4], ecx
mov edx, dword [0x105ec818]
mov dword [0x105ea540], edx
mov dword [0x105ea544], 0
push 4
push 0
push 0x105ea544
push 0x105ea540
push 0
push 0x105ea6ac
call fcn.105f4480
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
test eax, eax
jne 0x105f198b
mov ecx, dword [0x105ea544]
xor ecx, dword [0x105ec818]
test ecx, ecx
je 0x105f1991
mov word [ebp - 4], 3
jmp 0x105f19f7
mov edx, dword [0x105dddf4]
add edx, 1
mov dword [0x105dddf4], edx
mov eax, dword [0x105ec818]
mov dword [0x105ea540], eax
mov dword [0x105ea544], 0
push 4
push 0
push 0x105ea544
push 0x105ea540
push 0
push 0x105ea6ac
call fcn.105f4480
mov word [ebp - 4], ax
mov ecx, dword [ebp - 4]
and ecx, 0xffff
test ecx, ecx
jne 0x105f19f1
mov edx, dword [0x105ea544]
xor edx, dword [0x105ec818]
test edx, edx
je 0x105f19f7
mov word [ebp - 4], 3
mov ax, word [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x105f1ec1
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x105ec800
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0x64
jge 0x105f1f3e
mov eax, dword [ebp - 8]
cmp dword [eax*4 + 0x105ec820], 0
je 0x105f1f2d
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x105ec820]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x105f1f2d
cmp dword [ebp - 4], 0x103
je 0x105f1f2d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x105ec820]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [eax*4 + 0x105ec820], 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.105f2116
add esp, 4
mov dword [ebp - 8], eax
jmp 0x105f1ed9
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0x64
jge 0x105f1f7a
mov edx, dword [ebp - 8]
cmp dword [edx*4 + 0x105ec820], 0
je 0x105f1f69
mov eax, dword [ebp - 8]
mov ecx, dword [eax*4 + 0x105ec820]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [ebp - 8]
push edx
call fcn.105f2116
add esp, 4
mov dword [ebp - 8], eax
jmp 0x105f1f45
mov esp, ebp
pop ebp
ret

Function at 0x105f1f7e
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0x64
jge 0x105f1fbe
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x105ec820], 0
je 0x105f1fad
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x105ec820]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 4]
push eax
call fcn.105f2116
add esp, 4
mov dword [ebp - 4], eax
jmp 0x105f1f89
push 0x105ec800
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret

Function at 0x105f3cf0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x105f3d65
mov eax, dword [esp + 0x10]
mov ecx, 2
sub eax, ecx
je 0x105f3d3c
mov word [0x105eab50], cx
call fcn.105f61a0
add esp, 0x94
ret
cmp dword [esp + 4], 5
jne 0x105f3d29
mov edx, dword [esp + 8]
mov eax, 1
cmp edx, eax
jb 0x105f3d29
mov word [0x105eab50], ax
call fcn.105f3a40
call fcn.105f3bd0
call fcn.105f61a0
add esp, 0x94
ret
Function at 0x105f4a40
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.10600160
test eax, eax
jne 0x105f4a70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x105f4a85
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov edx, dword [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x105f4ac9
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push esi
call ebx
test eax, eax
je 0x105f4aa9
cmp eax, 0x102
jne 0x105f4ab6
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jg 0x105f4ac0
jmp 0x105f4a8f
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0x73
pop ebx
ret
push esi
call fcn.105f4b40
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x105f4ae0
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.10600160
test eax, eax
jne 0x105f4af8
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
jmp 0x105f4b01
mov edx, dword [esp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x105f4b14
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x105f4b2b
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x105f8380
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x208
push ebx
mov bx, word [esp + 0x220]
neg bx
push ebp
mov ebp, dword [esp + 0x21c]
sbb ebx, ebx
push esi
mov al, byte [ebp]
and ebx, 0xfffffffe
add ebx, 4
push edi
test al, al
je 0x105f83ce
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x105e9504
mov byte [ebp], 0
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x105f83f6
jbe 0x105f83f6
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x105f83fe
mov dword [esp + 0x14], 0xa
mov ecx, dword [esp + 0x21c]
cmp word [ecx + 0x74], 4
jne 0x105f8411
mov ebx, 2
mov edx, dword [esp + 0x228]
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0xc4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x224]
lea ecx, [esp + 0xc8]
push eax
push ecx
push edx
push ebx
call fcn.105fcc20
test ax, ax
jne 0x105f8586
cmp word [esp + 0x14], ax
mov dword [esp + 0x10], 0x46
mov dword [esp + 0x1c], 0
jbe 0x105f859b
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea esi, [esp + 0xc4]
mov dword [esp + 0x18], esi
cmp word [esi + 0x20], 0
jbe 0x105f8560
mov ecx, 0x10
xor eax, eax
mov edi, ebp
push 0x105e94e4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
push eax
call ebx
mov ecx, dword [esp + 0x224]
push esi
push ecx
call fcn.105f7850
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 0x105e94e4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x74]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x78]
push 0x105e94e4
push ecx
call ebx
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea edx, [esp + 0x40]
push 0x105e86d0
push edx
call esi
add esp, 0x28
test eax, eax
je 0x105f850c
lea eax, [esp + 0x20]
push 0x105e8704
push eax
call esi
add esp, 8
test eax, eax
jne 0x105f851b
push 0x105e86c0
push ebp
call esi
add esp, 8
test eax, eax
je 0x105f855c
mov ecx, dword [esp + 0x22c]
mov edx, dword [esp + 0x228]
mov eax, dword [esp + 0x220]
push ecx
mov ecx, dword [esp + 0x220]
push edx
push ebp
push eax
push ecx
call fcn.105f7cd0
add esp, 0x14
mov dword [esp + 0x10], eax
test ax, ax
je 0x105f8582
lea edx, [esp + 0x60]
push 0x105e94e4
push edx
call ebx
add esp, 8
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc eax
and ecx, 0xffff
add esi, 0x22
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
jl 0x105f8479
mov eax, dword [esp + 0x10]
cmp ax, 0x45
jne 0x105f859f
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
add esp, 0x208
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x105f85b0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x4c8
push esi
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x14], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x105f8641
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.10601560
add esp, 0xc
cmp eax, 0xffffffff
jne 0x105f8637
mov eax, dword [0x105e94dc]
mov cx, word [0x105e94e0]
mov dl, byte [0x105e94e2]
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
jmp 0x105f8688
lea edi, [esp + 0x50]
lea edx, [esp + 0x10]
jmp 0x105f866b
mov dx, word [0x105e94e0]
mov ecx, dword [0x105e94dc]
mov al, byte [0x105e94e2]
mov word [esp + 0x14], dx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x16], al
lea edi, [esp + 0x10]
lea edx, [esp + 0xd0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x90]
push ebx
push ecx
call fcn.105fffd0
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2dc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xe0]
push ecx
call fcn.10601560
add esp, 0x10
cmp eax, 0xffffffff
pop ebx
jne 0x105f8720
mov edx, dword [0x105e9558]
mov eax, dword [0x105e955c]
mov ecx, dword [0x105e9560]
mov dword [esp + 0xd0], edx
mov dx, word [0x105e9564]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ecx
mov word [esp + 0xdc], dx
jmp 0x105f874b
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
lea edi, [esp + 0xd0]
push ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
push ecx
push edx
call fcn.105ffef0
mov ecx, dword [esp + 0x14]
add esp, 0xc
inc eax
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
mov dword [0x105eaba8], eax
add esp, 0x4c8
ret
Function at 0x105f8b80
Capabilities:
Create thread

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
je 0x105f8dbe
mov esi, dword [esp + 0x44]
cmp si, bp
jbe 0x105f8dbe
cmp si, 0xffff
jne 0x105f8bbf
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
add esp, 0x2c
ret 0xc
push edi
call fcn.105f7550
mov ebx, eax
add ebx, 0x18
cmp word [ebx], 0x7242
jne 0x105f8db0
test byte [ebx + 0x12], 4
jne 0x105f8bee
mov eax, 2
pop edi
pop esi
mov word [ebx + 6], ax
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
push esi
push edi
call fcn.10602b30
cmp ax, bp
jne 0x105f8dc2
push edi
call fcn.105f8b30
add esp, 4
test ax, ax
je 0x105f8c25
push edi
call fcn.10602c90
cmp ax, bp
jne 0x105f8bb1
push edi
call fcn.105f8b30
add esp, 4
test ax, ax
jne 0x105f8c0c
push edi
call fcn.105f87a0
mov ecx, dword [0x105ecaa8]
push ecx
push eax
call fcn.105f8a10
mov esi, eax
add esp, 0xc
cmp word [esi + 0x76], bp
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
je 0x105f8c67
push 0x1000
call ebp
test eax, eax
je 0x105f8c67
mov eax, 0x46
pop edi
pop esi
mov word [ebx + 6], ax
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
cmp word [esp + 0x48], 1
jne 0x105f8da3
cmp word [0x105eabba], 0
jne 0x105f8cf5
lea edx, [esp + 0x18]
push edx
call fcn.10600180
add esp, 4
test eax, eax
je 0x105f8ca1
mov eax, 0x4a
pop edi
pop esi
mov word [ebx + 6], ax
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [0x105eabc0], eax
jne 0x105f8ccc
mov eax, 0x4a
pop edi
pop esi
mov word [ebx + 6], ax
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
lea ecx, [esp + 0x40]
push ecx
push 0
push 0
push 0x105f5880
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [0x105eabc4], eax
mov word [0x105eabba], 1
cmp word [esi + 0x76], 0
je 0x105f8d1a
push 0x1000
call ebp
test eax, eax
je 0x105f8d1a
mov eax, 0x46
pop edi
pop esi
mov word [ebx + 6], ax
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push edi
call fcn.105f8960
add esp, 0xc
test eax, eax
jne 0x105f8d44
mov eax, 0x46
pop edi
pop esi
mov word [ebx + 6], ax
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
mov si, word [esp + 0x10]
mov ecx, dword [0x105eaba8]
neg si
sbb esi, esi
and esi, ecx
lea ecx, [esp + 0x24]
push ecx
push edi
call fcn.10602710
mov dx, word [ebx + 0x38]
mov ax, word [ebx + 0x36]
push 0
push 0
push 0
push esi
push 1
push 1
push edx
push eax
push ebx
call fcn.105f94f0
add esp, 0x24
test ax, ax
je 0x105f8da3
push 0x404
push edi
call fcn.10602890
push edi
call fcn.10602970
pop edi
pop esi
pop ebp
mov ax, 0x46
pop ebx
add esp, 0x2c
ret 0xc
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0x2c
ret 0xc
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x2c
ret 0xc
mov ax, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
Function at 0x105f94f0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
push edi
push ebx
push ebp
push eax
mov eax, dword [esp + 0x28]
push 0
push esi
push ecx
push edx
push eax
call fcn.105f4ed0
add esp, 0x24
test ax, ax
je 0x105f9538
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov word [ecx + 6], ax
pop ebx
ret
cmp word [0x105eabb8], 0
jne 0x105f95ca
lea edx, [esp + 0x30]
lea eax, [esp + 0x34]
push edx
push 0
push eax
push 0x105f4e00
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [0x105eabb4], eax
push 0x1b58
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x105f95ca
mov ax, word [esp + 0x34]
cmp ax, 2
jne 0x105f95d2
cmp dword [esp + 0x20], 0xffffffff
jne 0x105f959e
test esi, esi
jge 0x105f959e
mov ecx, dword [esp + 0x28]
push edi
push ebx
push ebp
push ecx
push 2
push esi
push 0xffffffffffffffff
jmp 0x105f95ab
mov ecx, dword [esp + 0x28]
push edi
push ebx
push ebp
push ecx
push 2
push esi
push 1
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
call fcn.105f4ed0
mov ecx, dword [0x105eabb4]
add esp, 0x24
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
ret
test ax, ax
jne 0x105f95ec
mov edx, dword [0x105eabb4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
ret
cmp dword [esp + 0x20], 1
jne 0x105f9606
test esi, esi
jle 0x105f9606
mov eax, dword [esp + 0x28]
push edi
push ebx
push ebp
push eax
push 1
push esi
push 1
jmp 0x105f9613
mov eax, dword [esp + 0x28]
push edi
push ebx
push ebp
push eax
push 1
push esi
push 0xffffffffffffffff
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.105f4ed0
mov eax, dword [esp + 0x38]
add esp, 0x24
mov word [eax + 6], 0x46
mov ecx, dword [0x105eabb4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov ax, 0x46
pop ebx
ret