joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4160a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x4c48c0]
add eax, 4
imul eax, eax, 0x110
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push eax
call fcn.0048dba4
xor ebx, ebx
add esp, 4
mov dword [0x4c6fc0], eax
cmp eax, ebx
jne 0x4160d3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov esi, dword [0x4c49ac]
push 0x4038f0
mov edi, eax
push 0x4ef6d80
mov ecx, 0x44
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4c84a8]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0xe
push ecx
mov dword [0x4c49ac], eax
call edi
cmp dword [ebp], ebx
jne 0x416114
mov dword [esp + 0x14], 1
jmp 0x4161be
mov edx, dword [0x4c49ac]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [edx + 0xec], bl
call esi
mov ecx, dword [0x4c49ac]
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0xe0], 0x64
cmp byte [0x4c8600], bl
jne 0x416162
mov eax, dword [0x4c84a8]
push 0x4037f0
push 0x64
push 0xb
push eax
call edi
test eax, eax
setne cl
mov byte [0x4c8600], cl
mov byte [ebp + 0xacd], 1
call esi
mov ecx, dword [ebp]
push ebx
mov esi, 1
add dword [0x4c8618], esi
push ebx
push esi
mov dword [ebp + 0xae4], eax
mov dword [ebp + 0xae0], eax
call fcn.00424d70
sub dword [0x4c8618], esi
mov dword [esp + 0x14], eax
cmp byte [0x4c8600], bl
je 0x4161b8
mov edx, dword [0x4c84a8]
push 0xb
push edx
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x4161b8
mov byte [0x4c8600], bl
mov byte [ebp + 0xacd], bl
mov eax, dword [0x4c49ac]
cmp dword [eax + 0x100], ebx
lea ecx, [eax + 0x100]
je 0x4161ea
mov eax, dword [eax + 0x104]
push eax
push ecx
call fcn.0042e820
mov dword [esp + 0x1c], eax
mov eax, dword [0x4c49ac]
add esp, 8
push 1
push ebx
mov byte [eax + 0xec], 1
mov esi, eax
push 0xffffffffffffffff
mov dword [eax + 0xb4], ebx
mov dword [eax + 0xb8], ebx
mov dword [eax + 0xbc], ebx
mov dword [eax + 0xc4], ebx
mov dword [eax + 0xc8], ebx
mov byte [eax + 0xf8], bl
mov dword [eax + 0x28], ebx
mov dword [eax + 0x4c], ebx
mov byte [eax + 0xe8], bl
mov dword [eax + 0x48], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x100], ebx
mov byte [eax + 0x108], bl
mov ecx, 0x44
mov edi, 0x4c70d8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4c8ca8]
push 0x4a1918
push ecx
mov byte [eax + 0xec], 1
mov dword [eax + 0xe0], ebx
mov word [eax + 0xed], 1
mov dword [eax + 0x2c], SysReAllocString
call fcn.00477430
mov edx, dword [0x4c5ac0]
cmp word [edx], bx
jne 0x4162c9
cmp dword [0x4c9eac], ebx
jne 0x4162c9
cmp dword [0x4c85d8], ebx
jne 0x4162c9
cmp dword [0x4c85dc], ebx
jne 0x4162c9
cmp byte [0x4c85fc], bl
jne 0x4162c9
mov edx, dword [esp + 0x14]
neg edx
sbb edx, edx
push ebx
and edx, 7
add edx, 2
push 0x4ca618
xor eax, eax
call fcn.00416310
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x41c8d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov cx, word [0x4c48d0]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov eax, 0x20
push esi
mov word [esp + 0xc], ax
push edi
lea ebx, [esp + 0x10]
mov eax, ebp
mov word [esp + 0x12], cx
mov dword [esp + 0x14], 0x90028
mov dword [esp + 0x18], 0x3e003c
mov dword [esp + 0x1c], 0x3d003a
mov dword [esp + 0x20], 0x2d002b
mov dword [esp + 0x24], 0x2f002a
mov dword [esp + 0x28], 0x7e0021
mov dword [esp + 0x2c], 0x7c0026
mov dword [esp + 0x30], 0x5b005e
mov dword [esp + 0x34], 0x3f002e
mov dword [esp + 0x38], 0x7b
call fcn.00409660
test eax, eax
je 0x41c959
cmp eax, ebp
jbe 0x41c973
sub eax, 2
jmp 0x41c973
mov eax, ebp
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c960
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 2]
mov edi, eax
cmp eax, ebp
jbe 0x41c994
lea esp, [esp]
movzx eax, word [edi]
cmp eax, 0x20
je 0x41c98d
cmp eax, 9
jne 0x41c994
sub edi, 2
cmp edi, ebp
ja 0x41c980
mov esi, edi
sub esi, ebp
sar esi, 1
inc esi
cmp esi, 0xfd
jbe 0x41c9c5
cmp byte [esp + 0x4c], 0
je 0x41c9b9
mov ecx, dword [esp + 0x40]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.0042e630
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
mov ebx, dword [esp + 0x44]
push esi
push ebp
push ebx
call fcn.00490814
add esp, 0xc
xor ecx, ecx
mov eax, edi
pop edi
mov word [ebx + esi*2], cx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x42b4e0
Capabilities:
Check for time delay via gettickcount
Set current directory

Disassembly:
mov eax, dword [0x4c8618]
sub esp, 0x124
push ebx
push ebp
push esi
push edi
cmp eax, dword [0x4c48c0]
jl 0x42b509
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 8
mov esi, dword [0x4c8ca8]
cmp byte [esi + 0x17], 0
jne 0x42b518
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x42b525
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42b53e
test byte [esi + 0x15], 4
je 0x42b539
mov eax, esi
call fcn.0042ebe0
mov eax, dword [esi + 8]
jmp 0x42b54e
cmp al, 2
jne 0x42b549
call fcn.00401000
jmp 0x42b54e
mov eax, 0x4ca5ac
push 0x7f
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00490814
mov eax, dword [0x4c49ac]
inc dword [0x4c8618]
add eax, 0x110
xor edx, edx
mov edi, eax
mov word [esp + 0x13a], dx
mov ecx, 0x44
mov esi, 0x4c70d8
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
mov esi, eax
xor edi, edi
mov dword [0x4c49ac], eax
push edi
mov eax, 0x4ca618
mov dword [esi + 0x2c], edi
call fcn.00415fa0
mov dword [0x4cb0e8], edi
mov dword [0x4cb0ec], edi
cmp dword [0x4c8644], edi
je 0x42b5bc
push 0x4c8cb0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
or eax, 0xffffffff
cmp byte [esi + 0xee], 0
jne 0x42b5d7
mov byte [esi + 0xee], 1
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x24], eax
cmp dword [0x4cb0f4], edi
je 0x42b5e7
cmp dword [0x4cb0f0], edi
jne 0x42b5f0
cmp byte [esi + 0xee], 0
je 0x42b61f
cmp byte [esi + 0xee], 0
mov byte [esi + 0xec], 0
jne 0x42b61f
cmp dword [0x4cb0f4], edi
jl 0x42b619
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xdc], eax
mov eax, dword [0x4cb0f4]
mov dword [esi + 0xe0], eax
mov eax, dword [0x4cb068]
mov ecx, dword [0x4cb0c0]
mov edx, dword [0x4cb0c4]
mov ebp, dword [0x4cb06c]
mov esi, dword [esp + 0x13c]
mov edi, eax
mov ebx, ecx
mov dword [esp + 0x1c], edx
mov dword [0x4cb06c], eax
mov dword [0x4cb0c4], ecx
mov dword [0x4cb068], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4cb0fc], eax
mov dword [0x4cb0f8], eax
mov dword [0x4cb0c0], eax
mov eax, dword [esp + 0x138]
cmp byte [eax], 5
jne 0x42b683
mov esi, dword [eax + 0xc]
call fcn.0042b470
mov esi, eax
jmp 0x42b6c0
mov ecx, dword [eax + 0xc]
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x24]
push edx
xor eax, eax
push 0x4a18a8
push ecx
lea edx, [eax + 1]
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], esi
call fcn.0046cb10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b6c0
mov esi, dword [esp + 0x14]
neg esi
sbb esi, esi
add esi, 4
mov eax, dword [0x4c49ac]
mov ecx, dword [eax + 0xc4]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
mov dword [0x4c862c], ecx
mov dword [0x4cb068], edi
mov dword [0x4cb0c0], ebx
mov dword [0x4cb06c], ebp
mov dword [0x4cb0c4], edx
call fcn.004036a0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 8
Function at 0x42eab0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4000
call fcn.00499310
cmp dword [esp + 0x4008], 0
push ebx
push ebp
mov ebp, dword [esp + 0x4018]
mov ebx, ecx
je 0x42ebd3
test ebx, ebx
jne 0x42eae8
mov eax, dword [esp + 0x400c]
mov ebx, dword [eax + 0x630]
test ebx, ebx
je 0x42eaf2
movzx ecx, word [ebx + 2]
movzx eax, word [ebx + 4]
jmp 0x42eaff
mov ecx, dword [eax + 0x26c]
movzx eax, word [eax + 0x270]
mov edx, dword [esp + 0x4014]
mov ecx, dword [ecx*4 + 0x4c8440]
push esi
push edi
push edx
movzx eax, ax
push eax
push ecx
push str._s___d__:___Warning:__s_n
mov esi, 0x2000
lea edi, [esp + 0x20]
call fcn.00474620
add esp, 0x10
cmp word [ebp], 0
lea edi, [esp + eax*2 + 0x10]
je 0x42eb50
lea eax, [esp + 0x10]
mov edx, edi
sub edx, eax
sar edx, 1
push ebp
push str._____Specifically:__s_n
sub esi, edx
call fcn.00474620
add esp, 8
mov esi, dword [esp + 0x4018]
cmp esi, 3
jne 0x42eb7f
call fcn.0048e0cd
add eax, 0x20
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0048faf9
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x42ebd1
test ebx, ebx
jne 0x42eba4
mov ecx, dword [esp + 0x4014]
mov ebx, dword [ecx + 0x630]
test ebx, ebx
je 0x42ebc3
mov eax, dword [esp + 0x401c]
push ebp
push 1
push eax
mov ecx, ebx
call fcn.0042e370
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
mov edx, dword [esp + 0x401c]
push ebp
push edx
call fcn.0042e630
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4000
ret 0x10
Function at 0x42efe0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3d8
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x42f007
push 0x64
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42f011
xor edx, edx
mov word [esp + 0x120], dx
mov esi, dword [0x4cb0a4]
xor eax, eax
mov word [esp + 0x20], ax
test esi, esi
je 0x42f0c8
cmp byte [esi + 0x11], 0
je 0x42f069
mov ecx, dword [esi]
push ecx
call fcn.0046fa30
add esp, 4
sub eax, 0
je 0x42f04d
dec eax
je 0x42f046
mov eax, str.Object
jmp 0x42f052
mov edx, dword [esi]
mov eax, dword [edx + 4]
jmp 0x42f052
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4a9578
mov eax, 0x7d
lea ecx, [esp + 0x28]
call fcn.00474660
add esp, 8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x42f026
cmp word [esp + 0x20], si
je 0x42f0c8
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f080
sub eax, edx
sar eax, 1
cmp eax, 0x7b
jbe 0x42f0b6
mov esi, 0x7f
sub esi, eax
push esi
lea edi, [esp + eax*2 + 0x24]
push 0x4a58a4
push edi
call fcn.00490814
add esp, 0xc
xor ecx, ecx
mov word [edi + esi*2], cx
jmp 0x42f0c8
cmp word [esp + eax*2 + 0x1e], 0x20
lea eax, [esp + eax*2 + 0x20]
jne 0x42f0c8
xor edx, edx
mov word [eax - 2], dx
mov eax, dword [0x4c6fc0]
cmp byte [eax + 0xf8], 0
je 0x42f0e7
cmp byte [0x4cb0e5], 0
mov dword [esp + 0x14], 1
je 0x42f0ef
mov dword [esp + 0x14], 0
mov eax, dword [0x4c8618]
mov dword [esp + 0x18], str.__preempted:_they_will_resume_when_the_current_thread_finishes_
cmp eax, 1
jg 0x42f20d
mov dword [esp + 0x18], 0x4ac274
xor ebp, ebp
cmp dword [0x4c85dc], 0
mov edi, 0x4a39f0
je 0x42f122
mov edi, 0x4a39e8
cmp dword [0x4c85d8], 0
mov esi, 0x4a39f0
je 0x42f135
mov esi, 0x4a39e8
push 1
call fcn.004118e0
mov bl, al
add esp, 4
lea eax, [esp + 0x1e8]
call fcn.00411ca0
mov ecx, dword [0x4c8614]
mov edx, dword [0x4c8618]
push eax
mov eax, dword [0x4c861c]
sub eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [0x4cb0ac]
push ecx
mov ecx, dword [0x4cb0b0]
push ebp
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push edi
mov edi, dword [esp + 0x414]
push esi
lea edx, [esp + 0x14c]
push edx
push str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
mov esi, 0xfffe
call fcn.00474620
lea esi, [edi + eax*2]
mov eax, esi
mov ebx, edi
sub eax, ebx
sar eax, 1
mov ecx, 0xfffe
add esp, 0x34
sub ecx, eax
push ecx
push esi
call fcn.004093b0
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f1c2
sub eax, edx
sar eax, 1
cmp dword [0x4c8ebc], 0
lea edi, [esi + eax*2]
mov eax, str._r_nPress__F5__to_refresh.
jne 0x42f1e7
mov eax, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
mov edx, edi
sub edx, ebx
sar edx, 1
mov esi, 0xfffe
push eax
sub esi, edx
call fcn.00474620
add esp, 4
lea eax, [edi + eax*2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3d8
ret 4
lea ebp, [eax - 1]
jmp 0x42f10f
Function at 0x435980
Capabilities:
Log keystrokes

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
push eax
mov eax, dword [esp + 0x28]
call fcn.00442fb0
mov edi, eax
test edi, edi
je 0x4359ae
mov esi, dword [esp + 0x1c]
push edi
call fcn.00478dd0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4359f9
mov ecx, dword [0x4c49ac]
cmp byte [ecx + 0x108], 0
jne 0x4359dc
mov edx, dword [0x4c8ca8]
push 1
push 0
push 0xffffffffffffffff
push 0x4a4440
push edx
call fcn.00477430
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x4ac274
push 0
push 0x4a4440
call fcn.0042e0b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
push 0
push edi
xor bl, bl
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
test ebp, ebp
je 0x435a31
cmp ebp, dword [0x4ca5c0]
je 0x435a31
mov esi, edi
call fcn.004792f0
test al, al
jne 0x435a31
mov eax, dword [0x4ca5c0]
push 1
push ebp
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne bl
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x435a6f
mov edx, dword [0x4c8ca8]
push 1
push 0
push 0xffffffffffffffff
push 0x4a1918
push edx
call fcn.00477430
mov eax, dword [0x4c49ac]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x435a6f
push 1
push eax
call fcn.00401360
add esp, 8
test bl, bl
je 0x435a83
mov ecx, dword [0x4ca5c0]
push 0
push ebp
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0x10
Function at 0x4368e0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.004304f0
mov ebx, eax
test ebx, ebx
jne 0x436913
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0042e370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x43691f
jmp dword [eax*4 + 0x436b18]
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x43693a
push eax
call fcn.004547c0
add esp, 4
jmp 0x436940
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4c8ca8]
call fcn.004010e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push eax
call fcn.004547c0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4369b8
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4369b8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg esi
sbb esi, esi
and esi, ebx
mov eax, dword [0x4c8ca8]
push 0x18
push 0
push esi
call fcn.004010e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4c8ca8]
push 1
push 0
push 0xffffffffffffffff
push 0x4a1918
push ecx
call fcn.00477430
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx edx, word [edi]
push edx
call fcn.0048fc6d
movzx eax, ax
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x4369f6.67
movzx eax, byte [eax + 0x436b48]
jmp dword [eax*4 + 0x436b2c]
mov esi, 0x40
jmp 0x436a25
mov esi, 0x4000
jmp 0x436a25
mov esi, 0x20
jmp 0x436a25
mov esi, 0x8000
jmp 0x436a25
mov esi, 0x80
jmp 0x436a25
mov esi, 0x100
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x436a39
push eax
call fcn.004547c0
add esp, 4
jmp 0x436a3f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x4369b8
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4369b8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x43698c
mov edx, dword [0x4c8ca8]
push 1
push 0
push 0xffffffffffffffff
push 0x4a1918
push edx
call fcn.00477430
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [edi], 0
je 0x436ab9
mov esi, edi
mov byte [esp + 0x13], 0
call fcn.00413360
fmul qword [0x4be868]
call fcn.0049c440
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x436ac0
mov byte [esp + 0x13], 1
xor edi, edi
mov eax, dword [ebp + 0xc]
push eax
call fcn.004547c0
add esp, 4
mov esi, eax
cmp ebx, 4
jne 0x436add
test esi, esi
jne 0x43699b
jmp 0x436ae1
test esi, esi
je case.0x4369f6.67
cmp byte [esp + 0x13], 0
jne 0x436aff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x43699b
push 1
push 0x64
call fcn.00401360
add esp, 8
jmp 0x436ac0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x437380
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4c83f0]
push eax
mov eax, dword [esp + 0x18]
call fcn.00442fb0
mov ebp, eax
test ebp, ebp
je 0x4373a6
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
jmp 0x4373ab
mov ebx, 1
push 1
push 0
lea ecx, [ebx - 1]
push ecx
push 0
push edi
call fcn.00477430
cmp eax, 1
je 0x4373c9
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
test ebp, ebp
je 0x4374de
cmp byte [edi + 0x17], 0
jne 0x4373dc
mov esi, dword [edi + 0xc]
jmp 0x4373de
mov esi, edi
test byte [esi + 0x15], 8
je 0x4373eb
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x437404
test byte [esi + 0x15], 4
je 0x4373ff
mov eax, esi
call fcn.0042ebe0
mov eax, dword [esi + 8]
jmp 0x437414
cmp al, 2
jne 0x43740f
call fcn.00401000
jmp 0x437414
mov eax, 0x4ca5ac
push ebx
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [edi + 0x17], 0
mov ebx, eax
jne 0x43742a
mov esi, dword [edi + 0xc]
jmp 0x43742c
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x437444
test byte [esi + 0x15], 8
je 0x43743f
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x437449
mov eax, 0x4cb2fc
lea edx, [ebx + ebx]
mov dword [eax], edx
cmp byte [edi + 0x17], 0
jne 0x437459
mov esi, dword [edi + 0xc]
jmp 0x43745b
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x437473
test byte [esi + 0x15], 8
je 0x43746e
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x437478
mov eax, 0x4cb2fc
test dword [eax], 0xfffffffe
jne 0x437555
cmp byte [edi + 0x17], 0
jne 0x43748f
mov esi, dword [edi + 0xc]
jmp 0x437491
mov esi, edi
test byte [esi + 0x15], 8
je 0x43749e
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4374bf
test byte [esi + 0x15], 4
je 0x4374b2
mov eax, esi
call fcn.0042ebe0
mov eax, dword [esi + 8]
xor ecx, ecx
mov word [eax], cx
jmp 0x437555
cmp al, 2
jne 0x4374d2
call fcn.00401000
xor ecx, ecx
mov word [eax], cx
jmp 0x437555
mov eax, 0x4ca5ac
xor ecx, ecx
mov word [eax], cx
jmp 0x437555
cmp byte [edi + 0x17], 0
jne 0x4374e9
mov esi, dword [edi + 0xc]
jmp 0x4374eb
mov esi, edi
test byte [esi + 0x15], 8
je 0x4374f8
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x437511
test byte [esi + 0x15], 4
je 0x43750c
mov eax, esi
call fcn.0042ebe0
mov eax, dword [esi + 8]
jmp 0x437521
cmp al, 2
jne 0x43751c
call fcn.00401000
jmp 0x437521
mov eax, 0x4ca5ac
xor edx, edx
mov word [eax], dx
cmp byte [edi + 0x17], dl
jne 0x437530
mov esi, dword [edi + 0xc]
jmp 0x437532
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x43754a
test byte [esi + 0x15], 8
je 0x437545
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x43754f
mov eax, 0x4cb2fc
mov dword [eax], 0
cmp byte [edi + 0x17], 0
jne 0x43755e
mov edi, dword [edi + 0xc]
cmp byte [edi + 0x17], 2
jne 0x43757e
cmp dword [0x4cb14c], 0
je 0x43757e
mov ecx, 0x4cb140
call fcn.00404340
pop edi
pop esi
pop ebp
pop ebx
ret 4
and byte [edi + 0x15], 0x86
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x4383d0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.00499310
push ebp
mov ebp, dword [0x4c83f0]
push esi
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, 0x7fff
jb 0x4384fa
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push ebp
call fcn.00477430
test eax, eax
jne 0x438420
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
cmp byte [ebp + 0x17], 0
jne 0x43842b
mov esi, dword [ebp + 0xc]
jmp 0x43842d
mov esi, ebp
test byte [esi + 0x15], 8
je 0x43843a
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x438453
test byte [esi + 0x15], 4
je 0x43844e
mov eax, esi
call fcn.0042ebe0
mov eax, dword [esi + 8]
jmp 0x438463
cmp al, 2
jne 0x43845e
call fcn.00401000
jmp 0x438463
mov eax, 0x4ca5ac
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4384b7
cmp byte [ebp + 0x17], al
jne 0x43847a
mov esi, dword [ebp + 0xc]
jmp 0x43847c
mov esi, ebp
test byte [esi + 0x15], 8
je 0x438489
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4384a2
test byte [esi + 0x15], 4
je 0x43849d
mov eax, esi
call fcn.0042ebe0
mov eax, dword [esi + 8]
jmp 0x4384b2
cmp al, 2
jne 0x4384ad
call fcn.00401000
jmp 0x4384b2
mov eax, 0x4ca5ac
xor edx, edx
mov word [eax], dx
cmp byte [ebp + 0x17], 0
jne 0x4384c2
mov eax, dword [ebp + 0xc]
jmp 0x4384c4
mov eax, ebp
cmp byte [eax + 0x17], 2
jne 0x4384e7
cmp dword [0x4cb14c], 0
je 0x4384e7
mov ecx, 0x4cb140
call fcn.00404340
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
and byte [eax + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
lea eax, [esp + 0xc]
test edi, edi
jne 0x438507
mov eax, 0x4ac274
push 1
push 0
push edi
push eax
push ebp
call fcn.00477430
pop edi
pop esi
pop ebp
add esp, 0x10000
ret
Function at 0x43a810
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, eax
mov eax, dword [0x4cb0dc]
push ebx
push eax
push str.__s_s
mov esi, 0x800
call fcn.00474620
mov esi, eax
lea ecx, [esi + 1]
add esp, 0xc
cmp ecx, 0x800
jg 0x43a867
lea edx, [edi + 2]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43a867
mov edx, dword [esp + 0x14]
mov dword [edi + esi*2], 0x22
mov ecx, dword [0x4cb0dc]
pop edi
pop esi
mov dword [edx], ecx
mov al, 1
pop ebp
ret
push ebp
call fcn.0043ae60
add esp, 4
test eax, eax
je 0x43a8b7
push ebx
push ebp
push str.__s_s
mov esi, 0x800
call fcn.00474620
mov esi, eax
lea edx, [esi + 1]
add esp, 0xc
cmp edx, 0x800
jg 0x43a8b7
lea eax, [edi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43a8b7
mov eax, dword [esp + 0x14]
mov dword [edi + esi*2], 0x22
pop edi
mov dword [eax], ebp
pop esi
mov al, 1
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebp
ret

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

Disassembly:
mov eax, 0x2214
call fcn.00499310
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
lea ebp, [esp + 0x1224]
push ecx
mov eax, ebp
mov dword [esp + 0x18], 0x4ac274
call fcn.0043a810
add esp, 8
test al, al
jne 0x43a8fe
pop edi
pop esi
pop ebp
add esp, 0x2214
ret
cmp byte [esp + 0x2224], 0
je 0x43a96e
mov edx, dword [esp + 0x14]
push 0x4aad98
push edx
push str.__s_s
mov esi, 0x800
lea edi, [esp + 0x22c]
call fcn.00474620
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x43a96e
lea ecx, [esp + 0x222]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43a96e
mov edx, 0x22
xor eax, eax
lea ecx, [esp + 0x1220]
mov word [esp + esi*2 + 0x220], dx
mov word [esp + esi*2 + 0x222], ax
mov ebp, edi
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0x4ca618
mov edx, ebp
call fcn.0042f220
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
add esp, 0x2214
ret