joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55a0f0
Capabilities:
Create directory

Disassembly:
sub esp, 8
push ebp
push esi
push edi
xor esi, esi
call fcn.00535e40
mov ebp, eax
mov dword [esp + 0xc], esi
call fcn.00535e40
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0x14], 8
mov dword [esp + 0x10], eax
jb 0x55a11a
mov eax, dword [edi]
jmp 0x55a11c
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x55a13d
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ebp
mov byte [eax + 8], 1
pop ebp
add esp, 8
ret
call fcn.00535e40
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x55a18e
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.00559da0
add esp, 0xc
cmp dword [esp + 0x1c], 3
jne 0x55a18e
mov eax, dword [esp + 0x18]
mov edx, dword [0x5f1c00]
mov ecx, dword [0x5f1c04]
pop edi
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
mov byte [eax + 8], 0
pop ebp
add esp, 8
ret
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ebp
mov byte [eax + 8], 0
pop ebp
add esp, 8
ret
Function at 0x55a1f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x59335b
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x5ed80c]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ed80c]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2ac]
mov edx, dword [esp + 0x2b0]
mov eax, dword [esp + 0x2a8]
mov ebp, dword [esp + 0x2a0]
mov edi, dword [esp + 0x2a4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2b4]
push 0xffffffffffffffff
xor esi, esi
mov dword [esp + 0x18], edx
push esi
mov dword [esp + 0x20], ecx
xor edx, edx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], esi
mov word [esp + 0x2c], dx
call fcn.00401b40
mov eax, dword [esp + 0x30]
mov dword [esp + 0x298], esi
cmp eax, esi
je 0x55a2ae
cmp dword [esp + 0x34], 8
mov ecx, dword [esp + 0x20]
jae 0x55a2a1
lea ecx, [esp + 0x20]
cmp word [ecx + eax*2 - 2], 0x5c
mov edx, 0x5a35e8
je 0x55a2b3
mov edx, 0x5c1650
mov eax, edx
lea ebx, [eax + 2]
jmp 0x55a2c0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x55a2c0
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00405220
mov eax, dword [esp + 0x20]
mov ebx, 8
cmp dword [esp + 0x34], ebx
jae 0x55a2ed
lea eax, [esp + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x55a32f
mov dword [edi], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x55a313
call edi
mov esi, eax
call fcn.00535e40
mov dword [ebp], esi
mov dword [ebp + 4], eax
cmp dword [esp + 0x34], ebx
jb 0x55a3a9
mov edx, dword [esp + 0x20]
push edx
jmp 0x55a3a1
lea eax, [esp + 0x68]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x55a336
mov ecx, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.00401c40
test byte [esp + 0x3c], 0x10
je 0x55a371
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 3
mov dword [edx], 3
jmp 0x55a385
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [eax], 2
mov dword [ecx], 2
mov edx, dword [0x5f1c00]
mov dword [ebp], edx
mov eax, dword [0x5f1c04]
mov dword [ebp + 4], eax
cmp dword [esp + 0x34], ebx
jb 0x55a3a9
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0055ae44
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0055bc32
add esp, 0x288
ret
Function at 0x55a720
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x5f1c10]
test eax, eax
je 0x55a7a8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x55a7a7
mov ecx, dword [0x5f1c10]
test ecx, ecx
jne 0x55a746
xor eax, eax
jmp 0x55a74f
push ecx
call esi
mov ecx, dword [0x5f1c10]
cmp byte [eax + 0x18], 0
je 0x55a7a7
test ecx, ecx
je 0x55a7a7
push ecx
call esi
test eax, eax
je 0x55a7a7
mov eax, dword [0x5f1c10]
test eax, eax
je 0x55a76c
push eax
call esi
mov eax, dword [eax + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x55a7a7
mov eax, dword [0x5f1c10]
test eax, eax
je 0x55a788
push eax
call esi
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x5e2b00
lea ecx, [esp + 0xb]
xor al, al
push ecx
mov byte [esp + 0xf], al
call fcn.0055b802
pop esi
pop ecx
ret
Function at 0x55aa90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x593400
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ed80c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x5f1c10]
test eax, eax
jne 0x55aac4
xor esi, esi
jmp 0x55aacd
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x30], 0
test esi, esi
je 0x55ab17
cmp dword [esi + 0x14], 0
jne 0x55ab59
cmp dword [esi + 0x10], 0
jne 0x55ab60
push 0x55a520
push 0x5f1c08
call fcn.0055a7b0
mov eax, dword [0x5f1c10]
add esp, 8
test eax, eax
je 0x55ac0d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x55ab45
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x55ab45
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x10], 0
je 0x55aba0
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x55ab8e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x55ab60
cmp dword [esi + 0x14], 0
je 0x55aae9
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x55abc5
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x55abf6
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x55abf6
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x55abf6
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x55abaa
jmp 0x55aae3
lea ecx, [esp + 0x18]
call fcn.0055b521
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x34], 1
call fcn.00426490
int3
Function at 0x55ad00
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x593458
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5ed80c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x55ac40
push 0
push 0
call fcn.0055ea02
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x55ad6b
lea ecx, [esp + 0x10]
call fcn.0055b521
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.00426490
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x55ad8e
cmp eax, 0xffffffff
je 0x55ad8e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x55bc32
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ed80c]
jne 0x55bc3c
repz ret
jmp fcn.0056764c
Function at 0x57b40f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ed80c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00567046
and dword [ebp - 0x14], 0
cmp dword [0x5f2adc], 0
mov dword [ebp - 0x18], eax
jne 0x57b4c2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x57b56a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5c4730
push ebx
call edi
test eax, eax
je 0x57b56a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5c4720
push ebx
mov dword [0x5f2adc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5f2ae0], eax
call edi
push eax
call esi
push 0x5c46f0
push ebx
mov dword [0x5f2ae4], eax
call edi
push eax
call esi
mov dword [0x5f2aec], eax
test eax, eax
je 0x57b4c2
push 0x5c46d8
push ebx
call edi
push eax
call esi
mov dword [0x5f2ae8], eax
mov eax, dword [0x5f2ae8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x57b51b
cmp dword [0x5f2aec], ecx
je 0x57b51b
push eax
call esi
push dword [0x5f2aec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x57b51b
test ebx, ebx
je 0x57b51b
call edi
test eax, eax
je 0x57b512
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x57b512
test byte [ebp - 8], 1
jne 0x57b51b
or dword [ebp + 0x10], 0x200000
jmp 0x57b54e
mov eax, dword [0x5f2ae0]
cmp eax, dword [ebp - 0x18]
je 0x57b54e
push eax
call esi
test eax, eax
je 0x57b54e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x57b54e
mov eax, dword [0x5f2ae4]
cmp eax, dword [ebp - 0x18]
je 0x57b54e
push eax
call esi
test eax, eax
je 0x57b54e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5f2adc]
call esi
test eax, eax
je 0x57b56a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x57b56c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055bc32
leave
ret

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 0x41055a
Capabilities:
Create thread

Disassembly:
push esi
push 4
mov esi, ecx
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
xor edx, edx
pop ecx
test eax, eax
je 0x41056f
mov dword [eax], edx
jmp 0x410571
mov eax, edx
push edx
push edx
push esi
push 0x41058b
push edx
push edx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
ret

Function at 0x410a85
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x415ed0
call fcn.00410e60
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.MSVCR120.dll___crtGetShowWindowMode]
movzx ebx, ax
mov dword [ebp - 4], esi
mov eax, dword fs:[0x18]
mov edx, dword [eax + 4]
mov edi, esi
mov esi, 0x4177f0
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x41091f
cmp eax, edx
jne 0x410908
xor esi, esi
inc esi
mov edi, esi
jmp 0x410922
xor esi, esi
inc esi
cmp dword [0x4177f4], esi
jne 0x410934
push 0x1f
call sub.MSVCR120.dll__amsg_exit
pop ecx
jmp 0x41096f
cmp dword [0x4177f4], 0
jne 0x410969
mov dword [0x4177f4], esi
push 0x41324c
push 0x41323c
call sub.MSVCR120.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x41096f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x410a7f
mov dword [0x41739c], esi
cmp dword [0x4177f4], esi
jne 0x410992
push 0x413238
push 0x41321c
call sub.MSVCR120.dll__initterm
pop ecx
pop ecx
mov dword [0x4177f4], 2
test edi, edi
jne 0x41099f
xor eax, eax
mov ecx, 0x4177f0
xchg dword [ecx], eax
cmp dword [0x4177f8], 0
je 0x4109c3
push 0x4177f8
call main
pop ecx
test eax, eax
je 0x4109c3
push 0
push 2
push 0
call dword [0x4177f8]
mov eax, dword [sym.imp.MSVCR120.dll__wcmdln]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x20]
movzx eax, word [ecx]
cmp ax, si
ja 0x410a1c
test ax, ax
je 0x4109e4
test edx, edx
jne 0x410a1c
movzx eax, word [ecx]
test ax, ax
je 0x4109f9
cmp ax, si
ja 0x4109f9
add ecx, 2
mov dword [ebp - 0x1c], ecx
jmp 0x4109e4
push ebx
push ecx
push 0
push 0x400000
call main
mov dword [0x4173a0], eax
cmp dword [0x4173a4], 0
jne 0x410a64
push eax
call dword [sym.imp.MSVCR120.dll_exit]
cmp eax, 0x22
jne 0x410a2d
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x20], edx
add ecx, 2
mov dword [ebp - 0x1c], ecx
jmp 0x4109d3
cmp dword [0x41739c], 0
jne 0x410a78
call dword [sym.imp.MSVCR120.dll__cexit]
mov eax, dword [0x4173a0]
mov dword [ebp - 4], 0xfffffffe
call fcn.00410ea5
ret
call main
jmp 0x4108d8

Function at 0x438c92
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
mov ebx, dword [esp]
add esp, 4
add edi, edi
mov ecx, 0xa8268cc5
inc edi
call fcn.00438cd4
add edi, ecx
add ecx, 0xfcd95bcc
xor dword [eax], ebx
add ecx, ecx
mov edi, 0xfdd916b4
inc eax
add edi, edi
cmp eax, esi
jne fcn.00438c92
dec ecx
and edi, edi
ret
Function at 0x401120
Capabilities:
Print debug messages
Resolve function by parsing pe exports
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x40a261
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.00409dd6
xor esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], esi
call fcn.00409dd0
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push str.d:_enforce_img_
lea eax, [esp + 0x3c]
mov ebx, 1
push 0x40d0d0
push eax
mov byte [esp + 0x12c], bl
mov dword [esp + 0x20], esi
call ebp
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [0x40e438]
lea ecx, [esp + 0x78]
mov eax, dword [edx + 0x68]
push eax
push str.._s
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x78]
lea ecx, [esp + 0x1c]
push esi
push edx
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, esi
je 0x40126d
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov esi, eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x120], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push 0x40d0c4
push ecx
call edi
add esp, 8
test eax, eax
je 0x401226
mov edx, dword [esp + 0x10]
push 0x40d0c0
push edx
call edi
add esp, 8
test eax, eax
jne 0x40122c
test esi, esi
je 0x40126d
jmp 0x4011c5
mov eax, dword [esp + 0x128]
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x401254
lea eax, [esp + 0x38]
lea ecx, [esp + 0x98]
push eax
push 0x40d09c
push ecx
call ebp
add esp, 0xc
jmp 0x401297
lea edx, [esp + 0x38]
lea eax, [esp + 0x98]
push edx
push 0x40d078
push eax
call ebp
add esp, 0xc
jmp 0x401297
cmp dword [esp + 0x128], ebx
jne 0x401285
lea ecx, [esp + 0x98]
push 0x40d05c
push ecx
jmp 0x401292
lea edx, [esp + 0x98]
push 0x40d040
push edx
call ebp
add esp, 8
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x120], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x120], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 4
Function at 0x401c70
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xd4
push ebx
push ebp
push esi
mov esi, dword [esp + 0xe4]
push edi
mov al, byte [esi]
push eax
call fcn.00401560
lea edx, [esi + 1]
xor ecx, ecx
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
mov dword [esp + 0x20], eax
mov ax, word [edx]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov word [esp + 0x10], ax
mov cl, byte [edx + 2]
lea edx, [esp + 0x10]
push edx
mov byte [esp + 0x16], cl
call ebx
mov ebp, eax
lea ecx, [esi + 4]
xor eax, eax
mov dx, word [ecx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x14], dx
mov al, byte [ecx + 2]
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x1a], al
call ebx
mov edi, eax
lea eax, [esi + 7]
xor edx, edx
mov cx, word [eax]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov word [esp + 0x18], cx
mov dl, byte [eax + 2]
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x1e], dl
call ebx
xor ecx, ecx
add esi, 0xa
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
mov dx, word [esi]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
mov word [esp + 0x1c], dx
mov al, byte [esi + 2]
push ecx
mov byte [esp + 0x22], al
call ebx
add esp, 0x10
cmp edi, 0x14
mov dword [esp + 0x1c], eax
jl 0x401e33
cmp edi, 0xf0
jg 0x401e33
push str.DCamControl
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov edx, edi
mov ebx, eax
and edx, 0xffff
mov eax, ebp
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
and eax, 0xffff
shl edx, 0x10
or edx, eax
push edx
push 0x7e
push 0x40e
push ebx
call esi
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x40e438]
cmp dword [ecx + 0x7c], 2
jne 0x401dae
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
and edx, 0xffff
and eax, 0xffff
shl edx, 0x10
or edx, eax
push edx
push 0x7f
push 0x40e
push ebx
call esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push ecx
push edx
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
push eax
lea ecx, [esp + 0x38]
push str.SPD:_d__d__d__d__d
push ecx
call edi
mov ecx, dword [0x40e438]
add esp, 0x1c
lea edx, [esp + 0x24]
push edx
push 0x3f0
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea eax, [esp + 0x24]
lea ecx, [esp + 0x64]
push eax
push str.CENTER___s
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x40d020
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
push 1
push 0x6a
push 0x40e
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret 4
Function at 0x401e40
Capabilities:
Print debug messages

Disassembly:
mov eax, ecx
sub esp, 0x90
mov ecx, dword [0x40e438]
push ebx
push ebp
mov edx, dword [ecx + 0x7c]
xor ebp, ebp
xor ebx, ebx
cmp edx, 2
je 0x401f7d
mov ecx, dword [esp + 0xa4]
xor edx, edx
mov dword [esp + 8], edx
push esi
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
push edi
mov dword [esp + 0x1c], edx
mov edx, ecx
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xa8]
mov dl, byte [ecx]
mov ecx, eax
push edx
call fcn.00401560
mov al, byte [esp + 0xa4]
cmp al, 0x49
jne 0x401ee6
mov ecx, dword [0x40e438]
push 0x40d364
push 0x3f0
mov ebp, 0x8c
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea eax, [esp + 0x20]
push str.CENTER_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
jmp 0x401f25
cmp al, 0x4a
jne 0x401f25
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x11]
push edx
mov ebp, 0x8d
mov dword [esp + 0x24], ecx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ebx, eax
lea eax, [esp + 0x24]
push ebx
push str.CENTER__SIGNAL_DELAY_TIME___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push str.DCamControl
push 0
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebp
push 0x40e
push eax
call esi
push 0x40d020
push 0
call edi
push ebx
mov edi, eax
push ebp
push 0x40e
push edi
call esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0x6a
push 0x40e
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 0x10
Function at 0x4020a0
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x100
movsx eax, byte [ecx]
sub eax, 0x30
push ebx
cmp eax, 1
jne 0x402194
movsx eax, byte [ecx + 1]
lea edx, [eax + eax*4]
movsx eax, byte [ecx + 2]
lea ebx, [eax + edx*2 - 0x210]
cmp ebx, 0x18
jg 0x402194
movsx eax, byte [ecx + 3]
push ebp
push esi
lea edx, [eax + eax*4]
push edi
movsx eax, byte [ecx + 4]
push 0x40d020
push 0
lea esi, [eax + edx*2 - 0x210]
call dword [sym.imp.USER32.dll_FindWindowA]
mov ecx, esi
mov edx, ebx
and ecx, 0xffff
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
shl ecx, 0x10
and edx, 0xffff
mov edi, eax
or ecx, edx
push ecx
push 0x8f
push 0x40e
push edi
call ebp
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
lea eax, [esp + 0x18]
push str.N_PASS_:__d__d
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [0x40e438]
push 0x3f0
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea edx, [esp + 0x10]
lea eax, [esp + 0x90]
push edx
push str.CENTER___s
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0x6a
push 0x40e
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 4

Function at 0x4021a0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xc8
push ebx
push ebp
push esi
mov esi, dword [esp + 0xd8]
push edi
movsx eax, byte [esi]
sub eax, 0x30
cmp eax, 1
jne 0x402211
lea edx, [esi + 1]
xor ecx, ecx
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
mov dword [esp + 0x10], ecx
mov ax, word [edx]
mov dword [esp + 0x14], ecx
mov word [esp + 0x10], ax
mov cl, byte [edx + 2]
lea edx, [esp + 0x10]
push edx
mov byte [esp + 0x16], cl
call ebx
mov edi, eax
xor eax, eax
add esi, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
mov cx, word [esi]
push eax
mov word [esp + 0x18], cx
mov dl, byte [esi + 2]
mov byte [esp + 0x1a], dl
call ebx
add esp, 8
mov ebx, eax
jmp 0x402215
xor edi, edi
xor ebx, ebx
push 0x40d020
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov ecx, ebx
mov edx, edi
and ecx, 0xffff
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
shl ecx, 0x10
and edx, 0xffff
mov esi, eax
or ecx, edx
push ecx
push 0xd0
push 0x40e
push esi
call ebp
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x20]
push str.BRIGHT_:__d__d
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [0x40e438]
push 0x3f0
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea edx, [esp + 0x18]
lea eax, [esp + 0x58]
push edx
push str.CENTER___s
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0x6a
push 0x40e
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret 4