joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447e00
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48a2e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0047d83c
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00482ed5
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004843f1
test eax, eax
je 0x447f1c
mov ecx, dword [esp + 0x3c]
call fcn.00482f02
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x447ee0
push edi
mov ecx, esi
call fcn.00480563
mov ecx, esi
call fcn.004480c0
cmp dword [esp + 0x38], 1
jne 0x447f15
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048069e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44a100
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44a133
push esi
call fcn.004584a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44a12c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44a1b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44a1a2
mov eax, dword [esi + 8]
test eax, eax
je 0x44a157
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44a19e
cmp eax, 2
je 0x44a1a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44a14a
cmp eax, 3
je 0x44a17d
cmp eax, 1
jne 0x44a14a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44a14a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44a14a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044a1e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44a1c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044a1e0
add esp, 4
pop esi
ret

Function at 0x44aa50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44aa71
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44aa71
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44aa71
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4658d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a6d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004654b0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.00465520
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00465800
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.004654d0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x4658e8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a6d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004654b0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.00465520
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00465800
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.004654d0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x465bd0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x48a750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.004654b0
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.004654b0
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x38], 1
call fcn.00465520
cmp dword [esp + 0x40], ebx
jne 0x465c58
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x34], bl
call fcn.004654d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004654d0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea eax, [esp + 0xc]
push eax
call fcn.00465b10
add esp, 4
lea ecx, [esp + 0xc]
mov esi, 1
call fcn.0042bb10
cmp eax, esi
jb 0x465cdb
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 1
push esi
push 0x101e580
lea ecx, [esp + 0x1c]
call fcn.004658d0
cmp eax, 1
jne 0x465ccd
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00465670
push ebx
lea ecx, [esp + 0x20]
call fcn.0043ad90
push eax
call fcn.0046dcf3
add esp, 8
test eax, eax
jge 0x465ccd
push ebx
lea ecx, [esp + 0x20]
call fcn.0042d6e0
push eax
call edi
test eax, eax
je 0x465d10
lea ecx, [esp + 0xc]
inc esi
call fcn.0042bb10
cmp esi, eax
jbe 0x465c7d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.004654d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004654d0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.004654d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004654d0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x468130
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x46813b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x46823e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x1003c64]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1003c64]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1003c64]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1003c64]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1003c64]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1003c64]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1003c64]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x1003c64]
xor eax, edx
inc ecx
dec edi
jne 0x468156
pop edi
test esi, esi
je 0x468260
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x1003c64]
xor eax, edx
inc ecx
dec esi
jne 0x468242
pop esi
pop ebx
not eax
ret

Function at 0x468a30
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x468a71
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x468a66
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x468a84
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x4699c0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x469a75
cmp dword [ebp + 4], 0xffffffff
jne 0x469a75
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x101e808
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x469a3d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x469a3d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.004687c0
add esp, 0x10
test eax, eax
jne 0x469a60
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.00468d00
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x469ed0
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x469f98
mov al, byte [ecx]
test al, al
je 0x469f98
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x469efb
cmp al, 0x5c
jne 0x469efd
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x469ef3
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x469f34
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.0046df7d
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.00469ed0
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x46dcf3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46dd13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046d74a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x46dd36
test byte [esp + 8], 2
je 0x46dd36
call fcn.0046d7bd
mov dword [eax], 0xd
call fcn.0046d7c6
mov dword [eax], 5
jmp 0x46dd0f
xor eax, eax
ret

Function at 0x47e632
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47e66a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047c6e9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047c6c1
jmp 0x47e676
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47fd20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47fd62
call fcn.004857d7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47fd62
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47fd59
xor eax, eax
jmp 0x47fd6a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047fd70
pop edi
pop esi
pop ebx
ret 4

Function at 0x485d07
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x485d35
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x485d53
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00485c6d
jmp 0x485d53
mov eax, dword [esi + 0x14]
test eax, eax
je 0x485d53
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00485c6d
test edi, edi
mov eax, edi
jne 0x485d3d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10087d8
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push esi
push esi
push 1
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.01009549
push 0x10015e4
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1008826
push 0x10015a0
push esi
call fcn.010096fc
pop ecx
pop ecx
jmp 0x1008963
push ebx
push edi
push 0x1001590
call fcn.0100aeaf
mov ebx, dword [sym.imp.SHLWAPI.dll_IsOS]
push 0x1d
call ebx
test eax, eax
jne 0x100884a
push 0x100157c
call fcn.0100aeaf
call fcn.0100acc9
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x20019
push 1
push esi
push esi
push 0x1001508
mov edi, 0x80000002
push edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
call fcn.01008725
cmp eax, esi
jl 0x1008897
push 0x10014b8
push esi
call fcn.010096fc
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10088a7
push eax
push 0x1001458
push 1
call fcn.010096fc
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x1001438
push 0x10013d8
push edi
mov dword [ebp - 0xc], esi
call fcn.010091c8
test eax, eax
jl 0x10088ce
cmp dword [ebp - 0xc], esi
je 0x10088ce
push 0x10013a0
jmp 0x10088e7
push 0x1d
call ebx
test eax, eax
je 0x10088f1
push dword [ebp - 8]
call fcn.01008786
test eax, eax
jne 0x10088f1
push 0x1001378
push esi
call fcn.010096fc
pop ecx
pop ecx
jmp 0x1008925
push 0x100135c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x1008925
push 0x7b
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x100891e
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x14]
push dword [ebp - 8]
call eax
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop ebx
cmp dword [ebp - 0x10], esi
jne 0x100895a
push esi
push 1
push 0x1005708
call sub.ntdll.dll_WinSqmStartSession
mov esi, eax
xor eax, eax
cmp dword [ebp - 4], 0xbc2
push esi
sete al
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0100b1cf
push esi
call sub.ntdll.dll_WinSqmEndSession
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0100947a
mov eax, dword [ebp - 4]
pop esi
leave
ret 0x10
Function at 0x1008c7f
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x100eca8
call fcn.01008e14
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x10104a0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1008a36
cmp eax, esi
jne 0x1008a29
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1008a39
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1008a10
xor esi, esi
inc esi
mov eax, dword [0x101049c]
cmp eax, esi
jne 0x1008a4c
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1008a7b
mov eax, dword [0x101049c]
test eax, eax
jne 0x1008a75
mov dword [0x101049c], esi
push 0x100124c
push 0x1001240
call fcn.01008975
pop ecx
pop ecx
test eax, eax
je 0x1008a7b
jmp 0x1008ba3
mov dword [0x1010078], esi
mov eax, dword [0x101049c]
cmp eax, esi
jne 0x1008a9f
push 0x100123c
push 0x100122c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101049c], 2
test ebx, ebx
jne 0x1008aab
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10104a4], 0
je 0x1008acf
push 0x10104a4
call fcn.01008d89
pop ecx
test eax, eax
je 0x1008acf
push 0
push 2
push 0
call dword [0x10104a4]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1008b2b
test al, al
je 0x1008ae9
cmp dword [ebp - 0x1c], 0
jne 0x1008b2b
mov al, byte [esi]
test al, al
je 0x1008af9
cmp al, 0x20
ja 0x1008af9
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1008ae9
test byte [ebp - 0x3c], 1
je 0x1008b05
movzx eax, word [ebp - 0x38]
jmp 0x1008b08
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1010074], eax
cmp dword [0x1010068], 0
jne 0x1008b7f
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1008b3a
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1008b4d
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1008ad6
cmp dword [0x1010078], 0
jne 0x1008b8e
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1010074]
jmp 0x1008baf
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01008e59
ret
call fcn.01009007
jmp 0x10089d6
Function at 0x1009bdd
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp esi, ebx
je 0x1009d71
xor eax, eax
cmp ax, word [esi]
je 0x1009d71
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.010099db
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1009d5a
push edi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
call fcn.010099bd
cmp eax, ebx
jl 0x1009cee
cmp dword [ebp - 0x1c], 1
jne 0x1009cb9
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1009c53
mov ecx, dword [ebp - 0x14]
sub eax, edx
sar eax, 1
lea esi, [ecx + eax*2]
cmp dword [ebp - 0xc], ebx
je 0x1009c7d
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
mov esi, eax
pop ecx
push dword [ebp - 8]
cmp esi, ebx
je 0x1009d2e
xor eax, eax
mov word [esi], ax
call fcn.0100a4af
test eax, eax
jne 0x1009caf
push ebx
push dword [ebp - 8]
call edi
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
jmp 0x1009c83
mov esi, dword [ebp - 0x14]
movzx eax, word [esi]
cmp ax, 0x61
jb 0x1009ccb
cmp ax, 0x7a
jbe 0x1009cd7
cmp ax, 0x41
jb 0x1009c7d
cmp ax, 0x5a
ja 0x1009c7d
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x1009c7d
push 0x5c
pop eax
cmp ax, word [esi + 4]
jne 0x1009c7d
add esi, 8
jmp 0x1009c7d
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1005aa8
push 0x3000000
push 0x10103f4
mov dword [ebp - 0x10], eax
call fcn.01009717
add esp, 0x14
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
jmp 0x1009d63
call fcn.0100a4af
xor esi, esi
inc esi
cmp eax, esi
je 0x1009d55
push ebx
push dword [ebp - 8]
call edi
cmp eax, esi
je 0x1009d55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x20]
push 0x1005a48
jmp 0x1009d05
mov dword [ebp - 0x18], esi
jmp 0x1009d1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x18]
jmp 0x1009d7b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100909d
leave
ret 4