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

Disassembly:
push 0xffffffffffffffff
push 0x4a1223
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.00490826
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.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.004961bf
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00498b8b
test eax, eax
je 0x46103c
mov ecx, dword [esp + 0x3c]
call fcn.004961ec
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 0x461000
push edi
mov ecx, esi
call fcn.00493781
mov ecx, esi
call fcn.004611a0
cmp dword [esp + 0x38], 1
jne 0x461035
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.00493914
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 0x463a60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x463a93
push esi
call fcn.00466b70
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x463a8c
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 0x463b19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x463b02
mov eax, dword [esi + 8]
test eax, eax
je 0x463ab7
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 0x463afe
cmp eax, 2
je 0x463b02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x463aaa
cmp eax, 3
je 0x463add
cmp eax, 1
jne 0x463aaa
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 0x463aaa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x463aaa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00463b40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x463b28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00463b40
add esp, 4
pop esi
ret

Function at 0x46f900
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a16ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
lea eax, [esp + 0x14]
push esi
xor esi, esi
push eax
push 0x104
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jae 0x46f9e0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x18]
push ecx
push esi
push 0x4f6ca0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp eax, esi
je 0x46f9e0
lea eax, [esp + 0x18]
push 0x1001
push eax
lea ecx, [esp + 0xc]
call fcn.0048f7d6
mov dword [esp + 0x128], esi
mov esi, dword [esp + 0x134]
push str.lt_
push 0x4f6c94
mov ecx, esi
call fcn.0048c717
push str.gt_
push 0x4f6c88
mov ecx, esi
call fcn.0048c717
mov esi, dword [esi]
lea ecx, [esp + 4]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0048fa8a
lea ecx, [esp + 4]
call fcn.0048fb4e
mov esi, dword [esp + 0x130]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0048f18b
lea ecx, [esp + 4]
mov dword [esp + 0x128], 0xffffffff
call fcn.0048f876
jmp 0x46f9f3
mov esi, dword [esp + 0x130]
push 0x508534
mov ecx, esi
call fcn.0048f18b
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x472040
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x47208a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x4720b9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x4720fb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x490003
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0049a172
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x490034
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00490047
pop edi
pop esi
pop ebx
ret 8

Function at 0x49161b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x491653
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.0048f5c4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048f59c
jmp 0x49165f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x492f0a
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 0x492f4c
call fcn.0049a172
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x492f4c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x492f43
xor eax, eax
jmp 0x492f54
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00492f5a
pop edi
pop esi
pop ebx
ret 4

Function at 0x49a6a2
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 0x49a6d0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49a6ee
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049a608
jmp 0x49a6ee
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49a6ee
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049a608
test edi, edi
mov eax, edi
jne 0x49a6d8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001400
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
sub esp, 0x64
push esi
mov esi, dword [esp + 0x70]
push edi
push eax
push ecx
push esi
push edx
call dword [0x10016b68]
push esi
mov edi, eax
call fcn.100020b0
mov eax, dword [esi]
add esp, 4
lea ecx, [esp + 8]
push eax
push str.DirectDrawCreateEx__lpDD___p
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, edi
pop edi
pop esi
add esp, 0x64
ret 0x10

Function at 0x10001860
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov eax, dword [esp + 0x1c]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001983
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x400
jbe 0x10001973
mov eax, dword [esp + 0x2c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
je 0x100018f8
push 0
lea ecx, [esi - 4]
push 0
push ecx
push ebx
call edi
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x1c]
push 4
push eax
push ebx
call ebp
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x404]
cmp ecx, esi
jae 0x100018f8
mov edx, 0xfffffffc
sub edx, eax
add esi, edx
push 0
push 0
push 0
push ebx
call edi
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push edi
push ebx
call ebp
mov ecx, dword [edi + esi - 4]
mov ebp, dword [edi + esi - 8]
lea edx, [esi - 4]
mov dword [esp + 0x20], ecx
push edx
push edi
call fcn.10007990
mov ecx, dword [esp + 0x28]
add esp, 8
cmp eax, ecx
jne 0x10001965
mov eax, edi
push ebp
sub eax, ebp
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x130
lea ecx, [eax + esi - 8]
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call fcn.10009f50
add esp, 0x10
mov dword [esp + 0x18], 1
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edi, dword [esp + 0x1c]
add esp, 4
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop esi
pop edi
pop ebx
add esp, 0x14
ret
mov eax, edi
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x10001e90
Capabilities:
Move file
Set file attributes

Disassembly:
sub esp, 0x30c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x218], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x219]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
rep stosd dword es:[edi], eax
mov ecx, dword [0x10016b9c]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x118]
push eax
push ecx
call ebp
mov eax, dword [0x10016b9c]
lea edx, [esp + 0x10]
push 0x104
push edx
push eax
call ebp
mov edi, str..update
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov edi, edx
mov edx, ecx
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
lea eax, [esp + 0x21c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x10016b9c]
push ecx
call ebp
mov edi, str..tmp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x218]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
push 0x10016be8
lea ecx, [esp + 0x11c]
push eax
push ecx
call fcn.10001990
add esp, 0x10
test eax, eax
je 0x10002030
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x114]
push 0x80
push edx
call esi
lea eax, [esp + 0x218]
push 0x80
push eax
call esi
lea ecx, [esp + 0x10]
push 0x80
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea edx, [esp + 0x218]
push 1
lea eax, [esp + 0x118]
push edx
push eax
call edi
test eax, eax
je 0x1000201b
lea ecx, [esp + 0x114]
push 1
lea edx, [esp + 0x14]
push ecx
push edx
call edi
lea eax, [esp + 0x10]
push 1
lea ecx, [esp + 0x21c]
push eax
push ecx
call edi
lea edx, [esp + 0x114]
push 6
push edx
call esi
lea eax, [esp + 0x10]
push 6
push eax
call esi
mov eax, dword [0x10016d20]
cmp eax, 0xffffffff
je 0x10002071
cmp eax, ebx
je 0x10002071
mov ecx, dword [0x10016d1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x10016d20]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x10016d20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [0x10016d1c]
push ecx
call esi
mov esi, dword [0x10016d18]
mov dword [0x10016d20], ebx
cmp esi, ebx
mov dword [0x10016d1c], ebx
je 0x10002097
mov ecx, esi
call fcn.10002320
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
mov dword [0x10016d18], ebx
pop ebp
mov eax, 1
pop ebx
add esp, 0x30c
ret
Function at 0x100024f0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x104
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x114]
stosw word es:[edi], ax
test esi, esi
stosb byte es:[edi], al
jne 0x1000252c
pop edi
pop esi
mov eax, 0x57
pop ebp
add esp, 0x104
ret 8
mov eax, dword [esp + 0x118]
test eax, eax
jne 0x10002548
pop edi
pop esi
mov eax, 0x57
pop ebp
add esp, 0x104
ret 8
lea edi, [ebp + 0x70]
mov ecx, 0x4c
mov dword [ebp + 0x1a0], eax
push 0x104
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [ebp + 0xdcc], 0
mov esi, 0x10016350
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x100025a0
test cl, cl
je 0x1000259c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x100025a0
add eax, 2
add esi, 2
test cl, cl
jne 0x1000257c
xor eax, eax
jmp 0x100025a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov esi, 1
jne 0x100025b4
mov dword [ebp + 0xdcc], esi
mov eax, dword [ebp + 0x1a0]
test eax, eax
je 0x100025d4
push 0
push str.TDXDraw
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp + 0x1a4], eax
mov eax, dword [ebp + 0x1a4]
test eax, eax
jne 0x100025ef
pop edi
pop esi
mov eax, 0x57
pop ebp
add esp, 0x104
ret 8
mov eax, dword [ebp + 0x1e4]
mov dword [ebp + 0xbb0], 0xffffffff
test eax, eax
jne 0x10002689
push 0x2d4c50
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp + 0x1e4], eax
lea eax, [ebp + 0x1a8]
mov ecx, ebp
push eax
push str.image_jpeg
call fcn.10005450
mov dword [ebp + 0x1b8], esi
mov edx, dword [0x100113a0]
lea ecx, [ebp + 0x1bc]
push 0
push 2
mov dword [ecx], edx
mov eax, dword [0x100113a4]
mov dword [ecx + 4], eax
mov edx, dword [0x100113a8]
mov dword [ecx + 8], edx
mov eax, dword [0x100113ac]
mov dword [ebp + 0x1cc], esi
mov dword [ebp + 0x1d0], 4
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp + 0x1d8], eax
add ebp, 0x1dc
push ebp
push esi
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x104
ret 8
Function at 0x10003a63
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x10016da8]
push esi
test eax, eax
push edi
mov esi, ecx
mov dword [esp + 8], 0
je 0x10003a47
mov eax, dword [0x10017400]
test eax, eax
je 0x10003a47
mov eax, dword [esi + 0xdd0]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 9
jne 0x10003a12
call edi
mov ecx, dword [0x10016dc4]
add ecx, 0x7d0
cmp eax, ecx
jb 0x10003a47
call edi
mov edx, dword [0x10016da8]
mov ecx, esi
push edx
mov dword [0x10016dc4], eax
call fcn.10003c10
mov edi, eax
mov eax, dword [esi + 0xdd0]
cmp eax, 9
ja case.default.0x10003a3c
xor ecx, ecx
mov cl, byte [eax + 0x10003be0]
jmp dword [ecx*4 + 0x10003bd0]
cmp edi, eax
jge 0x10003a6a
pop edi
xor eax, eax
pop esi
pop ecx
ret
cmp edi, 3
jg case.default.0x10003a3c
pop edi
xor eax, eax
pop esi
pop ecx
ret
cmp edi, 7
jge case.default.0x10003a3c
pop edi
xor eax, eax
pop esi
pop ecx
ret
cmp edi, 7
jl 0x10003a47
cmp edi, eax
je 0x10003b52
lea ecx, [edi - 2]
cmp ecx, 7
ja case.0x10003a7c.8
jmp dword [ecx*4 + 0x10003bec]
or eax, 0xffffffff
mov dword [esi + 0xbb4], eax
mov dword [esi + 0xbb8], eax
jmp case.0x10003a7c.8
cmp eax, 4
jge 0x10003aee
lea eax, [esi + 0xbdc]
xor edx, edx
mov dword [esi + 0xbb4], 0
mov dword [esi + 0xbb8], 0xffffffff
mov dword [eax], edx
xor ecx, ecx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 0x14], dl
lea edx, [esi + 0xbf1]
mov dword [esi + 0xbf1], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov byte [edx + 0x14], cl
mov dword [esi + 0x2450], ecx
jmp case.0x10003a7c.8
cmp eax, 5
jne 0x10003b07
lea ecx, [esi + 0xbe6]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov word [ecx + 8], ax
mov byte [ecx + 0xa], al
mov dword [esi + 0x2450], 0
jmp case.0x10003a7c.8
mov edx, dword [esi + 0x1a4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [esi + 0x1dcc], 0
jmp case.0x10003a7c.8
mov ecx, esi
call fcn.100040e0
push 1
push 1
mov ecx, esi
call fcn.10006890
push edi
push str.Current_Status_:__d_n
mov dword [esi + 0xdd0], edi
call fcn.100078f0
add esp, 8
cmp dword [esi + 0xdd0], 9
jne 0x10003bc4
mov eax, dword [esi + 0x1dcc]
test eax, eax
jne 0x10003b7a
push 0
push 0
mov ecx, esi
call fcn.10005840
mov dword [esi + 0x1dcc], 1
cmp dword [esi + 0x11e0], 1
jl 0x10003bc4
mov al, byte [esi + 0x11e9]
test al, al
je 0x10003bc4
mov eax, dword [esi + 0x1dc4]
test eax, eax
jne 0x10003bc4
mov eax, dword [esi + 0x1dc8]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 8]
push ecx
push 0
push esi
push 0x10006670
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x1dc4], eax
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x100040e0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x30c
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x112]
mov word [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [esi + 0xd7f]
push 0x104
and al, 0xca
mov byte [esi + 0xd7f], al
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.MSVCRT.dll__mbsrchr]
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call edi
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str.mir1.dat
push eax
call ebp
add esp, 0x10
test eax, eax
jne 0x1000416a
mov al, byte [esi + 0xd7f]
and al, 0xee
jmp 0x100041da
lea edx, [esp + 0xc]
push 0x5c
push edx
call edi
push str.mir2.dat
push eax
call ebp
add esp, 0x10
test eax, eax
jne 0x1000418e
mov al, byte [esi + 0xd7f]
and al, 0xef
or al, 1
jmp 0x100041da
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call edi
push str.mir3.dat
push eax
call ebp
add esp, 0x10
test eax, eax
jne 0x100041ba
mov dl, byte [esi + 0xd7f]
and dl, 0xfe
or dl, 0x10
mov byte [esi + 0xd7f], dl
jmp 0x100041e0
lea eax, [esp + 0xc]
push 0x5c
push eax
call edi
push str.mir4.dat
push eax
call ebp
add esp, 0x10
test eax, eax
jne 0x100041e0
mov al, byte [esi + 0xd7f]
or al, 0x20
mov byte [esi + 0xd7f], al
lea ecx, [esp + 0x110]
push 0x104
push ecx
push 0xffffffffffffffff
push 0x2f
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
push eax
lea eax, [esp + 0x118]
push eax
call fcn.10007990
add esp, 0xc
mov dword [esi + 0xbbc], eax
push eax
push str.Geted_Login_Group_Index___d
call fcn.100078f0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x30c
ret
Function at 0x10006150
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xf4
mov eax, dword [ecx + 0xdd0]
mov dword [esp + 4], ecx
cmp eax, 9
mov dword [esp + 0x14], 0
je 0x10006178
xor eax, eax
add esp, 0xf4
ret 8
mov eax, dword [0x10016d68]
mov ecx, dword [0x10017400]
neg eax
sbb eax, eax
push ebx
and al, 0xfd
push ebp
add eax, 0x248
mov edx, dword [0x10016da8]
push esi
lea esi, [esp + 0x24]
lea ebp, [eax + eax*4]
mov dword [esp + 0x14], esi
dec ecx
xor esi, esi
lea ebp, [ebp + ebp*4]
push edi
shl ebp, 2
xor eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0xb
mov byte [esp + 0x13], al
mov edi, 7
jmp 0x100061ee
mov ecx, dword [esp + 0x1c]
xor esi, esi
xor eax, eax
mov edi, 7
mov byte [esp + 0x13], al
jmp 0x100061ee
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov byte [esp + 0x13], al
mov edi, 7
jmp 0x100061ee
mov ecx, dword [esp + 0x1c]
cmp ecx, 3
ja case.default.0x100061f3
jmp dword [ecx*4 + 0x1000639c]
lea ecx, [esi + ebp]
lea ecx, [eax + ecx*8]
cmp byte [ecx + edx + 9], 0xff
jmp 0x10006267
lea ecx, [esi + ebp]
lea ecx, [eax + ecx*8]
cmp word [edx + ecx*2 + 0x12], 0xffff
jmp 0x10006267
lea ecx, [esi + ebp]
lea ecx, [eax + ecx*8 + 9]
lea ebx, [edx + ecx*2]
add ecx, ebx
cmp word [ecx], 0xffff
jne 0x1000624b
xor ebx, ebx
cmp byte [ecx + 2], 0xff
mov ecx, edi
sete bl
shl ebx, cl
test ebx, ebx
je 0x1000624b
mov bl, byte [esp + 0x13]
mov ecx, 1
or bl, cl
mov byte [esp + 0x13], bl
jmp case.default.0x100061f3
mov bl, byte [esp + 0x13]
xor ecx, ecx
or bl, cl
mov byte [esp + 0x13], bl
jmp case.default.0x100061f3
lea ecx, [esi + ebp]
lea ecx, [eax + ecx*8]
cmp dword [edx + ecx*4 + 0x24], 0xffffff00
sete bl
mov ecx, edi
shl bl, cl
or byte [esp + 0x13], bl
inc eax
dec edi
cmp edi, 0xffffffff
jg 0x100061ea
mov ecx, dword [esp + 0x18]
mov al, byte [esp + 0x13]
mov byte [ecx + esi], al
inc esi
cmp esi, 0x14
jl 0x100061d9
mov eax, dword [esp + 0x20]
add ebp, 0x64
add ecx, 0x14
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
jne 0x100061c6
mov eax, dword [esp + 0x10c]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
jne 0x100062eb
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 4]
push 9
lea edx, [esp + 0x1c]
push 0
push edx
push 0xdc
push 0
push 0x12
push eax
call fcn.10004ed0
mov eax, 1
add esp, 0xf4
ret 8
lea ecx, [esp + 0x18]
push 0xdc
push ecx
call fcn.10007990
mov ecx, dword [0x10016f40]
add esp, 8
cmp ecx, eax
je 0x1000634d
mov dword [0x10016f40], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10016f44], eax
mov eax, dword [0x10016f48]
test eax, eax
je 0x10006335
mov ecx, dword [esp + 4]
push 0
push 0
push 0
push 0
push 0
push 8
call fcn.10004dd0
mov dword [0x10016f48], 0
mov eax, 1
add esp, 0xf4
ret 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, dword [0x10016f44]
sub edx, eax
mov eax, 0x10624dd3
mul edx
mov ecx, dword [esp + 4]
push 0
lea eax, [esp + 0x18]
push 0
push eax
push 4
shr edx, 6
push 1
push 8
mov dword [esp + 0x2c], edx
call fcn.10004dd0
mov dword [0x10016f48], 1
mov eax, 1
add esp, 0xf4
ret 8