joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ce0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a610
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x463014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edx, [ebp + 8]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00406f70
cmp dword [eax + 0x14], 0x10
jb 0x407d23
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x407d5e
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407d54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f18
push edx
push ecx
call fcn.0041ea93
add esp, 8
sub esp, 0x18
mov dword [ebp - 0x34], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
push str.yj
call fcn.00418cd0
lea ecx, [ebp - 0x64]
call fcn.00405c80
add esp, 0x18
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
sub esp, 0x18
mov ecx, esp
push 0x463d44
call fcn.00418cd0
lea ecx, [ebp - 0x30]
call fcn.00405c80
add esp, 0x18
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00419750
add esp, 4
mov edx, eax
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00419650
sub esp, 0x14
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x46402c
call fcn.00418cd0
mov ecx, esi
call fcn.00405c80
mov ecx, esp
mov byte [ebp - 4], 5
push 1
push str.0123456789
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.004194f0
mov byte [ebp - 4], 3
call fcn.004074b0
mov edx, dword [ebp - 0x38]
add esp, 0x48
cmp edx, 0x10
jb 0x407e46
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407e3c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f1d
push edx
push ecx
call fcn.0041ea93
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp edx, 0x10
jb 0x407e8c
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407e82
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f1d
push edx
push ecx
call fcn.0041ea93
add esp, 8
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x407ece
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407ec4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f1d
push edx
push ecx
call fcn.0041ea93
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x407efe
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407ef4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407f22
push edx
push ecx
call fcn.0041ea93
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e421
mov esp, ebp
pop ebp
ret
call fcn.0043809a
call fcn.0043809a
call fcn.0043809a
int3
Function at 0x408e80
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a806
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x463014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], esi
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
sub esp, 0x18
mov ecx, esp
push str.ND
call fcn.00418cd0
lea ecx, [ebp - 0x148]
call fcn.00405c80
add esp, 0x18
mov edi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x120], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408f20
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.004194f0
push edi
lea edx, [ebp - 0x130]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00419650
mov edx, dword [ebp - 0x11c]
add esp, 4
cmp edx, 0x10
jb 0x408f87
mov ecx, dword [ebp - 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408f7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408ff5
push edx
push ecx
call fcn.0041ea93
add esp, 8
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp edx, 0x10
jb 0x408fd8
mov ecx, dword [ebp - 0x148]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408fce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408ff5
push edx
push ecx
call fcn.0041ea93
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e421
mov esp, ebp
pop ebp
ret
call fcn.0043809a
int3
Function at 0x409000
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a806
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x463014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], esi
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
sub esp, 0x18
mov ecx, esp
push str.ND
call fcn.00418cd0
lea ecx, [ebp - 0x148]
call fcn.00405c80
add esp, 0x18
mov edi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x120], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4090a0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.004194f0
push edi
lea edx, [ebp - 0x130]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00419650
mov edx, dword [ebp - 0x11c]
add esp, 4
cmp edx, 0x10
jb 0x409107
mov ecx, dword [ebp - 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4090fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409175
push edx
push ecx
call fcn.0041ea93
add esp, 8
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp edx, 0x10
jb 0x409158
mov ecx, dword [ebp - 0x148]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40914e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409175
push edx
push ecx
call fcn.0041ea93
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e421
mov esp, ebp
pop ebp
ret
call fcn.0043809a
int3
Function at 0x409180
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a846
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x463014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x11c], esi
lea eax, [ebp - 0x118]
mov dword [ebp - 0x11c], esi
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
sub esp, 0x18
mov ecx, esp
push str.ND
call fcn.00418cd0
lea ecx, [ebp - 0x14c]
call fcn.00405c80
add esp, 0x18
mov edi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x124], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409220
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x134]
call fcn.004194f0
push edi
lea edx, [ebp - 0x134]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00419650
mov edx, dword [ebp - 0x120]
add esp, 4
cmp edx, 0x10
jb 0x409287
mov ecx, dword [ebp - 0x134]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40927d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4092f5
push edx
push ecx
call fcn.0041ea93
add esp, 8
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
cmp edx, 0x10
jb 0x4092d8
mov ecx, dword [ebp - 0x14c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4092ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4092f5
push edx
push ecx
call fcn.0041ea93
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e421
mov esp, ebp
pop ebp
ret
call fcn.0043809a
int3
Function at 0x101d0000
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov al, byte [0x101bb158]
test eax, eax
je 0x101d001d
mov cl, byte [0x101bb608]
or cl, 1
mov byte [0x101bb608], cl
cmp dword [0x101bb130], 0
je 0x101d0035
mov dl, byte [0x101bb608]
or dl, 8
mov byte [0x101bb608], dl
xor eax, eax
mov al, byte [0x101bb608]
test eax, eax
je 0x101d009f
cmp dword [0x101bb13c], 0
je 0x101d0059
push 0x101bddfc
push 0x101bde00
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, dword [0x101ca454]
push ecx
mov dl, byte [0x101bb608]
push edx
push 0x101bb3b0
push 0x101bb158
mov eax, dword [0x101bb140]
push eax
mov ecx, dword [0x101bb13c]
push ecx
mov edx, dword [0x101bb138]
push edx
mov eax, dword [0x101bb134]
push eax
mov ecx, dword [0x101bb130]
push ecx
push 0x101bb128
call fcn.101d3498
add esp, 0x28
pop ebp
ret
Function at 0x101d175f
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov word [ebp - 8], 0
call fcn.101d2a78
mov word [ebp - 4], ax
cmp dword [0x101ca570], 0
je 0x101d1789
mov dword [0x101cab44], 0
jmp 0x101d1793
mov dword [0x101cab44], 1
cmp dword [0x101cab44], 0
je 0x101d1993
cmp dword [0x101bddf8], 1
je 0x101d17ba
mov eax, dword [0x101bddf4]
cmp eax, dword [0x101bddf0]
jne 0x101d192c
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 [0x101bddf0], edx
mov dword [0x101bddf4], 1
mov edx, dword [0x101cc818]
and edx, 0x1f3
mov dword [0x101ca550], edx
mov eax, dword [0x101ca550]
mov ecx, dword [eax*4 + 0x101ba010]
xor ecx, 0xfd0699d6
mov dword [0x101ca540], ecx
mov dword [0x101ca544], 0
push 4
push 0
push 0x101ca544
push 0x101ca540
movzx dx, byte [0x101ba00d]
push edx
push 0x101ca6ac
call fcn.101d4480
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
test eax, eax
jne 0x101d1876
mov ecx, dword [0x101ca544]
xor ecx, 0x7b2309a7
mov edx, dword [0x101ca550]
xor ecx, dword [edx*4 + 0x101ba7e0]
test ecx, ecx
je 0x101d1920
xor eax, eax
mov al, byte [0x101bcf6a]
cmp eax, 0x31
jne 0x101d1888
mov word [ebp - 4], 3
xor ecx, ecx
mov cl, byte [0x101bcf6a]
cmp ecx, 0x32
je 0x101d18a2
xor edx, edx
mov dl, byte [0x101bcf6a]
cmp edx, 0x33
jne 0x101d18a8
mov word [ebp - 4], 0
mov dword [0x101bddf8], 1
cmp dword [0x101ca594], 0
jne 0x101d191e
xor eax, eax
mov al, byte [0x101bcf6a]
cmp eax, 0x32
je 0x101d18d4
xor ecx, ecx
mov cl, byte [0x101bcf6a]
cmp ecx, 0x33
jne 0x101d191e
mov edx, dword [0x101ca69c]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [0x101ca54c], 0xc
push 0x2010
call fcn.101d00a1
push eax
call fcn.101d28db
add esp, 8
mov dword [0x101ca54c], 0
mov eax, dword [0x101ca69c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [0x101ca594], 1
jmp 0x101d192a
mov dword [0x101bddf8], 0
jmp 0x101d1991
mov ecx, dword [0x101bddf4]
add ecx, 1
mov dword [0x101bddf4], ecx
mov edx, dword [0x101cc818]
mov dword [0x101ca540], edx
mov dword [0x101ca544], 0
push 4
push 0
push 0x101ca544
push 0x101ca540
push 0
push 0x101ca6ac
call fcn.101d4480
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
test eax, eax
jne 0x101d198b
mov ecx, dword [0x101ca544]
xor ecx, dword [0x101cc818]
test ecx, ecx
je 0x101d1991
mov word [ebp - 4], 3
jmp 0x101d19f7
mov edx, dword [0x101bddf4]
add edx, 1
mov dword [0x101bddf4], edx
mov eax, dword [0x101cc818]
mov dword [0x101ca540], eax
mov dword [0x101ca544], 0
push 4
push 0
push 0x101ca544
push 0x101ca540
push 0
push 0x101ca6ac
call fcn.101d4480
mov word [ebp - 4], ax
mov ecx, dword [ebp - 4]
and ecx, 0xffff
test ecx, ecx
jne 0x101d19f1
mov edx, dword [0x101ca544]
xor edx, dword [0x101cc818]
test edx, edx
je 0x101d19f7
mov word [ebp - 4], 3
mov ax, word [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x101d1ec1
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x101cc800
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0x64
jge 0x101d1f3e
mov eax, dword [ebp - 8]
cmp dword [eax*4 + 0x101cc820], 0
je 0x101d1f2d
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x101cc820]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x101d1f2d
cmp dword [ebp - 4], 0x103
je 0x101d1f2d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x101cc820]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [eax*4 + 0x101cc820], 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.101d2116
add esp, 4
mov dword [ebp - 8], eax
jmp 0x101d1ed9
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0x64
jge 0x101d1f7a
mov edx, dword [ebp - 8]
cmp dword [edx*4 + 0x101cc820], 0
je 0x101d1f69
mov eax, dword [ebp - 8]
mov ecx, dword [eax*4 + 0x101cc820]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [ebp - 8]
push edx
call fcn.101d2116
add esp, 4
mov dword [ebp - 8], eax
jmp 0x101d1f45
mov esp, ebp
pop ebp
ret

Function at 0x101d1f7e
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0x64
jge 0x101d1fbe
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x101cc820], 0
je 0x101d1fad
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x101cc820]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 4]
push eax
call fcn.101d2116
add esp, 4
mov dword [ebp - 4], eax
jmp 0x101d1f89
push 0x101cc800
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret

Function at 0x101d3cf0
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 0x101d3d65
mov eax, dword [esp + 0x10]
mov ecx, 2
sub eax, ecx
je 0x101d3d3c
mov word [0x101cab50], cx
call fcn.101d61a0
add esp, 0x94
ret
cmp dword [esp + 4], 5
jne 0x101d3d29
mov edx, dword [esp + 8]
mov eax, 1
cmp edx, eax
jb 0x101d3d29
mov word [0x101cab50], ax
call fcn.101d3a40
call fcn.101d3bd0
call fcn.101d61a0
add esp, 0x94
ret
Function at 0x101d4a40
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.101e0160
test eax, eax
jne 0x101d4a70
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 0x101d4a85
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 0x101d4ac9
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push esi
call ebx
test eax, eax
je 0x101d4aa9
cmp eax, 0x102
jne 0x101d4ab6
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jg 0x101d4ac0
jmp 0x101d4a8f
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.101d4b40
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x101d4ae0
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.101e0160
test eax, eax
jne 0x101d4af8
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
jmp 0x101d4b01
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 0x101d4b14
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x101d4b2b
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x101d8380
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 0x101d83ce
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 0x101c9504
mov byte [ebp], 0
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x101d83f6
jbe 0x101d83f6
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x101d83fe
mov dword [esp + 0x14], 0xa
mov ecx, dword [esp + 0x21c]
cmp word [ecx + 0x74], 4
jne 0x101d8411
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.101dcc20
test ax, ax
jne 0x101d8586
cmp word [esp + 0x14], ax
mov dword [esp + 0x10], 0x46
mov dword [esp + 0x1c], 0
jbe 0x101d859b
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea esi, [esp + 0xc4]
mov dword [esp + 0x18], esi
cmp word [esi + 0x20], 0
jbe 0x101d8560
mov ecx, 0x10
xor eax, eax
mov edi, ebp
push 0x101c94e4
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.101d7850
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 0x101c94e4
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 0x101c94e4
push ecx
call ebx
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea edx, [esp + 0x40]
push 0x101c86d0
push edx
call esi
add esp, 0x28
test eax, eax
je 0x101d850c
lea eax, [esp + 0x20]
push 0x101c8704
push eax
call esi
add esp, 8
test eax, eax
jne 0x101d851b
push 0x101c86c0
push ebp
call esi
add esp, 8
test eax, eax
je 0x101d855c
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.101d7cd0
add esp, 0x14
mov dword [esp + 0x10], eax
test ax, ax
je 0x101d8582
lea edx, [esp + 0x60]
push 0x101c94e4
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 0x101d8479
mov eax, dword [esp + 0x10]
cmp ax, 0x45
jne 0x101d859f
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 0x101d85b0
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 0x101d8641
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.101e1560
add esp, 0xc
cmp eax, 0xffffffff
jne 0x101d8637
mov eax, dword [0x101c94dc]
mov cx, word [0x101c94e0]
mov dl, byte [0x101c94e2]
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
jmp 0x101d8688
lea edi, [esp + 0x50]
lea edx, [esp + 0x10]
jmp 0x101d866b
mov dx, word [0x101c94e0]
mov ecx, dword [0x101c94dc]
mov al, byte [0x101c94e2]
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.101dffd0
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.101e1560
add esp, 0x10
cmp eax, 0xffffffff
pop ebx
jne 0x101d8720
mov edx, dword [0x101c9558]
mov eax, dword [0x101c955c]
mov ecx, dword [0x101c9560]
mov dword [esp + 0xd0], edx
mov dx, word [0x101c9564]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ecx
mov word [esp + 0xdc], dx
jmp 0x101d874b
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.101dfef0
mov ecx, dword [esp + 0x14]
add esp, 0xc
inc eax
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
mov dword [0x101caba8], eax
add esp, 0x4c8
ret