joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4df7b8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x50e950]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4df7f8
cmp byte [ebx], 0xa
jne 0x4df7f8
or byte [edi + eax + 0x28], 4
jmp 0x4df7fd
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4df8fc
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4df8df
inc eax
cmp dl, 0xd
je 0x4df829
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4df84f
cmp eax, ecx
jae 0x4df85d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4df811
jmp 0x4df8fc
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4df8da
cmp dword [ebp - 0x10], 0
je 0x4df8da
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x50e950]
test byte [eax + edi + 0x28], 0x48
je 0x4df8b4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4df89f
mov byte [esi], dl
jmp 0x4df8b0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x50e950]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4df8fc
cmp byte [ebp - 1], 0xa
jne 0x4df8c3
cmp esi, ebx
jne 0x4df8c3
mov byte [esi], 0xa
jmp 0x4df8fb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004dc71b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4df8fc
mov byte [esi], 0xd
jmp 0x4df8fb
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x50e950]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4df8f9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4df8fc
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4df905
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x50e950]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4df94b
cmp word [ebx], dx
jne 0x4df94b
or byte [eax + edi + 0x28], 4
jmp 0x4df950
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4dfab3
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4dfa93
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4df991
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4df9c7
cmp eax, edx
jae 0x4df9d5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4df96c
jmp 0x4dfab3
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4dfa8e
cmp dword [ebp - 0x18], 0
je 0x4dfa8e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x50e950]
test byte [eax + edi + 0x28], 0x48
je 0x4dfa64
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4dfa28
mov word [esi], cx
jmp 0x4dfa5f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x50e950]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x50e950]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x50e950]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4dfab3
pop eax
cmp word [ebp - 4], ax
jne 0x4dfa74
cmp esi, ebx
jne 0x4dfa74
mov word [esi], ax
jmp 0x4dfab0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004dc71b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4dfab3
push 0xd
pop eax
jmp 0x4dfa6f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x50e950]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4dfaad
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4dfab3
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4e44d9
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x50b770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4e451c
call fcn.004cbe5b
mov dword [eax], 0xf
call fcn.004cbe48
mov dword [eax], 0xd
call fcn.004cc568
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8882
leave
ret
test eax, eax
jne 0x4e4523
inc eax
jmp 0x4e4510
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4e450e
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4e4510
Function at 0x10026d8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100a024]
cmp eax, 0xffffffff
je 0x1002787
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
mov esi, 0x314
push esi
push 0x100a5a0
push dword [0x100a024]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100277e
cmp dword [ebp - 4], esi
jne 0x100277e
cmp dword [0x100a5a0], 0x6e776453
jne 0x100277e
test byte [0x100a5ab], 0x80
jne 0x1002785
or byte [0x100a5ab], 0x40
push 0x100a7b0
push 0x103
push 0x100a9e0
mov byte [0x100a7af], bl
mov byte [0x100a8b3], bl
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0xc
cmp dword [0x100a5a4], 0x10000
jne 0x1002785
test dword [0x100a5a8], 0x3fffffec
jne 0x1002785
and byte [0x100a5ab], 0xbf
jmp 0x1002785
or byte [0x100a5ab], 0x80
pop esi
pop ebx
leave
ret

Function at 0x1002975
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100a028]
push ebx
mov bl, byte [ebp + 8]
push esi
push edi
mov esi, 0x1002264
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x5c3a3f
push eax
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x10], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, eax
dec eax
dec eax
je 0x10029c0
dec eax
je 0x1002a0e
sub eax, 3
je 0x10029bb
xor edi, edi
jmp 0x1002a0e
push 3
pop edi
jmp 0x1002a0e
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 8], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10029b7
push esi
lea eax, [ebp + 8]
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push 0x70000
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1002a05
cmp dword [ebp - 0x20], 0xb
je 0x1002a07
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01005d91
leave
ret 4
Function at 0x1003a05
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100a028]
push edi
push dword [ebp + 8]
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1003a65
lea eax, [ebp - 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1003a6c
xor eax, eax
jmp 0x1003b22
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push 0x10000
push 0x100b0c0
push 4
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1003b21
push esi
push dword [0x100b0c0]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.0100390c
cmp eax, edi
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x1003afe
mov ecx, esi
mov esi, dword [0x100b0c0]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 8]
push eax
push 0x10000
push 0x100b0c0
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1003b20
push dword [0x100b0c0]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.0100390c
test eax, eax
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x1003b05
push 8
call fcn.010035e6
mov ecx, esi
mov esi, dword [0x100b0c0]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
inc eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01005d91
leave
ret 0xc

Function at 0x1004188
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, esi
xor ebx, ebx
push edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1004199
push 0x2e
push esi
call dword [sym.imp.msvcrt.dll_strrchr]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x1004206
push 0x10024b4
push edi
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x1004206
xor ebx, ebx
inc ebx
mov eax, dword [0x101b0c8]
xor edx, edx
mov ecx, 0x3e8
div ecx
inc dword [0x101b0c8]
push edx
push 0x10024ac
push edi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10041c9
push esi
push 0x100a008
call fcn.01004163
jmp 0x1004209
mov byte [esi], 0
pop edi
pop esi
mov eax, ebx
pop ebx
ret 8
Function at 0x10042af
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100a028]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, esi
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10042ca
sub eax, edx
lea ecx, [eax + 1]
mov edx, ecx
shr ecx, 2
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp + eax - 0x108]
cmp byte [eax - 1], 0x5c
pop edi
pop esi
je 0x1004300
mov byte [eax], 0x5c
mov byte [eax + 1], 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push dword [ebp + 0xc]
push eax
call fcn.0100425b
test eax, eax
je 0x1004365
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1004365
test al, 0x10
je 0x1004365
push 0x100240c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1004360
push 0x10024bc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004360
push 0
lea ecx, [ebp - 0x108]
push ecx
call eax
test eax, eax
jne 0x1004360
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
jmp 0x1004367
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01005d91
leave
ret 0xc
Function at 0x1005e9e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
fcmovb st(0), st(6)
inc ebp
neg dl
mov byte [ebp - 9], 0xbf
call fcn.01005b0f
push eax
push esi
push dword [ebp + 8]
call fcn.01005ac4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.01005b0f
push eax
push esi
push dword [ebp + 8]
call fcn.01005ac4
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
fsub dword [edi - 0x3a]
inc ebp
fld dword [esi + eax*8 + 0x45]
fimul dword [edx - 0x3a]
inc ebp
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x1005f9a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.01005b0f
push eax
push esi
push dword [ebp + 8]
call fcn.01005ac4
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.01005aff
je 0x1005fe3
mov esp, 0x7c9d88bf
invalid
mov ebp, 0x8d626c6d
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid

Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x17073e50
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x12c733ee
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7e616216
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2f0864c2
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10006950
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov dword [esp + 0x14], ebp
xor esi, esi
mov eax, dword [ebp + 0x7f0]
shr eax, 7
test al, 1
jne 0x1000697e
push 0x32
call edi
inc esi
cmp esi, 0x64
jl 0x10006967
mov al, byte [ebp + 0xa4]
lea esi, [ebp + 0x98]
cmp al, bl
je 0x100069a2
mov byte [esi + 0xc], bl
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x100069a2
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x10006a33
push 0x64
push eax
call ebp
cmp eax, 0x102
jne 0x10006a33
mov edx, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
mov byte [esi + 0xc], bl
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
jne 0x10006a33
mov eax, dword [esi + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push ecx
call edi
mov al, byte [esi + 0xd]
mov dword [esi + 4], ebx
cmp al, bl
je 0x10006a33
cmp esi, ebx
je 0x10006a33
mov ecx, esi
mov dword [esi], 0x10040594
mov byte [esi + 0xc], bl
call fcn.10008710
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x10006a24
push eax
call edi
push esi
mov dword [esi + 0x90], ebx
call fcn.1003ed30
add esp, 4
mov edx, dword [esp + 0x14]
mov al, byte [edx + 0x2d4]
lea esi, [edx + 0x2c8]
cmp al, bl
je 0x10006a5b
mov byte [esi + 0xc], bl
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x10006a5b
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x10006ae0
push 0x64
push eax
call ebp
cmp eax, 0x102
jne 0x10006ae0
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
mov byte [esi + 0xc], bl
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
jne 0x10006ae0
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
push eax
call edi
mov al, byte [esi + 0xd]
mov dword [esi + 4], ebx
cmp al, bl
je 0x10006ae0
cmp esi, ebx
je 0x10006ae0
mov ecx, esi
mov dword [esi], 0x10040594
mov byte [esi + 0xc], bl
call fcn.10008710
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x10006ad1
push eax
call edi
push esi
mov dword [esi + 0x90], ebx
call fcn.1003ed30
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100070b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003efbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], 0
lea ebx, [edi + 4]
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x100070f5
mov dword [ebp - 0x24], ebx
push 0xffffffffffffffff
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x20], eax
lea esi, [edi + 0x98]
mov dword [ebp - 0x34], esi
mov al, byte [esi + 0xc]
test al, al
jne 0x1000715e
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push ecx
push 0
push esi
push 0x100087d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
mov edx, dword [ebp - 0x28]
mov dword [esi + 4], edx
mov eax, dword [esi + 8]
test eax, eax
jne 0x10007174
push 0
call fcn.1002ba20
add esp, 4
push eax
add esi, 0xe
push esi
push str._comm__create_thread__s__failed:__s
push 0x10046650
lea ecx, [ebp - 0x2c]
call fcn.1002ce00
push eax
call fcn.1002ce10
add esp, 0x10
jmp 0x10007174
lea eax, [esi + 0x90]
mov dword [ebp - 0x30], eax
mov eax, dword [eax]
test eax, eax
je 0x10007174
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [edi + 0x2c8]
call fcn.1000eab0
test al, al
jne 0x100071d0
push str.fakelogin:_connect_to_service_failed
mov eax, dword [0x1004b3e0]
push eax
call fcn.1002a760
add esp, 8
push 0xa95f74
mov ecx, edi
call fcn.10008040
mov byte [ebp - 0x18], 0
test ebx, ebx
je 0x100071b6
mov dword [ebp - 0x38], ebx
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp - 0x14], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.fakelogin:_connect_to_service_succeed.
mov edx, dword [0x1004b3e0]
push edx
call fcn.1002a6a0
add esp, 8
lea esi, [edi + 8]
mov dword [ebp - 0x3c], esi
push esi
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov dword [esi + 0x80], eax
test eax, eax
jne 0x1000723c
push esi
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [esi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000723c
mov eax, dword [esi + 0x80]
test eax, eax
je 0x1000723c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x80], 0
mov dword [edi], 2
mov byte [ebp - 0x1c], 1
test ebx, ebx
je 0x10007256
mov dword [ebp - 0x40], ebx
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp - 0x14], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008710
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0xc], bl
je 0x10008731
mov byte [esi + 0xc], bl
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x10008731
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x100087c4
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100087c4
mov ecx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov byte [esi + 0xc], bl
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x100087c4
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov al, byte [esi + 0xd]
mov dword [esi + 4], ebx
cmp al, bl
je 0x100087c4
cmp esi, ebx
je 0x100087c4
mov ecx, esi
mov dword [esi], 0x10040594
mov byte [esi + 0xc], bl
call fcn.10008710
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x100087b5
push eax
call edi
push esi
mov dword [esi + 0x90], ebx
call fcn.1003ed30
add esp, 4
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x100089f0
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
mov dword [esi], 0x10040594
cmp eax, ebx
mov byte [esi + 0xc], bl
je 0x10008a67
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10008a67
mov ecx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov byte [esi + 0xc], bl
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x10008a67
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
push eax
call edi
mov al, byte [esi + 0xd]
mov dword [esi + 4], ebx
cmp al, bl
je 0x10008a67
cmp esi, ebx
je 0x10008a67
push 1
mov ecx, esi
call fcn.100089f0
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x10008a7a
push eax
call edi
mov al, byte [esp + 0x14]
mov dword [esi + 0x90], ebx
test al, 1
je 0x10008a91
push esi
call fcn.1003ed30
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret 4