joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417430
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0xa4
cmp byte [0x4b1c47], 0
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x5d0], eax
jne 0x4175c7
cmp byte [ebx + 0x614], 0
je 0x4175c7
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4af094]
push 0
push 1
mov dword [0x4b24ac], eax
call fcn.004024d0
push 0x7f
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00488ae0
mov eax, dword [0x4ac1d8]
add esp, 0xc
inc dword [0x4af098]
add eax, 0xe8
mov byte [esp + 0xaf], 0
mov edi, eax
mov ecx, 0x3a
mov dword [0x4ac1d8], eax
mov esi, 0x4aee98
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, 0x4b09a0
mov dword [eax + 0x2c], 0
call fcn.004170e0
cmp dword [0x4af0a8], 0
xorps xmm0, xmm0
movlpd qword [0x4b0fb8], xmm0
je 0x4174e8
push 0x4aef88
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebx + 0x5c4]
mov eax, 1
mov esi, dword [0x4ac1d0]
mov dword [0x4ac1d0], 0
mov byte [0x4b1c47], 1
mov dword [esp + 0xc], eax
mov byte [0x4adb40], 0
test ecx, ecx
je 0x417538
call fcn.00402540
test eax, eax
mov eax, dword [esp + 0xc]
je 0x417538
xor ecx, ecx
movzx eax, al
cmp byte [0x4adb40], cl
cmove eax, ecx
mov dword [esp + 0xc], eax
mov byte [0x4adb40], 1
test al, al
je 0x417599
mov dword [esp + 0x18], 0
call fcn.004421f0
mov dword [esp + 0x10], eax
lea ecx, [ebx + 0x590]
mov eax, dword [0x4b24ac]
cdq
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [ebx + 0x5c4], eax
mov dword [esp + 0x28], 1
sete al
mov dword [esp + 0x24], edx
push eax
push 2
lea eax, [esp + 0x18]
push eax
call fcn.0046dfb0
mov edx, dword [esp + 0xc]
movzx ecx, dl
xor edx, edx
cmp eax, 3
cmove ecx, edx
mov al, cl
mov byte [0x4b1c47], 0
test al, al
jne 0x417602
cmp dword [ebp + 8], 3
je 0x417602
lea ecx, [esp + 0x30]
call fcn.00404b70
mov dword [0x4ac1d0], esi
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [0x4adb40], 0
jne 0x41760d
cmp eax, 9
jne 0x41760d
mov eax, dword [0x4b08a0]
mov ecx, dword [0x4b24ac]
pop edi
pop esi
cmp byte [eax], 0
mov eax, 8
mov byte [0x4adb40], 1
cmovne ecx, dword [ebp + 0xc]
mov dword [0x4b24ac], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
push ecx
mov ecx, ebx
call fcn.00417620
push dword [ebp + 0xc]
push ecx
call fcn.00417620
int3
Function at 0x417740
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x5fc]
mov byte [esi + 0x174], 1
mov word [esi + 0x614], 0
test eax, eax
je 0x417997
cmp byte [eax], 0
je 0x417997
cmp dword [0x4b090c], 0
jne 0x417786
call fcn.00470040
mov dword [0x4b090c], eax
test eax, eax
je 0x4177df
mov edx, dword [0x4b0908]
cmp dword [edx + 8], 0x14
jae 0x4177a4
call fcn.00470040
mov edx, dword [0x4b0908]
mov dword [edx + 0xc], eax
test eax, eax
je 0x4177df
mov ecx, dword [edx + 4]
add dword [edx + 8], 0xffffffec
mov dword [0x4b0904], ecx
lea eax, [ecx + 0x14]
mov dword [edx + 4], eax
test ecx, ecx
je 0x4177df
mov dword [ecx], vtable.Label.0
mov dword [ecx + 4], 0x49e065
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
jmp 0x4177e1
xor ecx, ecx
mov dword [esi + 0x374], ecx
test ecx, ecx
je 0x417997
cmp byte [0x4af9b0], 0
mov eax, 0x4a1b48
jne 0x417803
mov eax, dword [esi + 0x5fc]
sub esp, 8
mov ecx, esi
push eax
call fcn.00417b10
cmp eax, 1
jne 0x417997
push 0
push 0
push 0
push 0x68
mov ecx, esi
call fcn.0041d740
test eax, eax
je 0x417997
push dword [esi]
mov ecx, esi
call fcn.004226c0
test eax, eax
je 0x417997
push dword [esi]
mov ecx, esi
call fcn.00422790
cmp dword [esi + 8], 0
je 0x417863
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [ecx + 0x14], eax
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
mov dword [esi], eax
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
jle 0x4178a6
lea ebx, [ebx]
mov eax, dword [esi + 0x18]
mov edi, dword [eax + ebx*4]
cmp byte [edi + 0x3d], 0
jne 0x4178a0
test byte [edi + 0x3c], 4
jne 0x4178a0
lea eax, [edi + 0x28]
mov ecx, esi
push eax
push dword [edi + 0x1c]
push edi
call fcn.0042eae0
lea eax, [edi + 0x30]
mov ecx, esi
push eax
push dword [edi + 0x20]
push edi
call fcn.0042eae0
inc ebx
cmp ebx, dword [esi + 0x1c]
jl 0x417870
cmp dword [esi + 0x160], 0
je 0x4178d4
mov ecx, esi
call fcn.00420410
test eax, eax
je 0x417997
mov eax, dword [esi + 0x160]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi + 0x160], 0
cmp dword [0x4af99c], 0
je 0x4178e4
mov ecx, esi
call fcn.0042eba0
push dword [0x4af0d0]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
inc dword [esi + 0x170]
mov ecx, esi
push 0
push 0
push 0
push 0x68
call fcn.0041d740
test eax, eax
je 0x417997
push 0
push 0
push 0
push 0x68
mov ecx, esi
call fcn.0041d740
test eax, eax
je 0x417997
mov ecx, dword [esi + 0x374]
mov eax, dword [esi + 4]
push 0
push 0
mov dword [ecx + 8], eax
mov ecx, esi
push 0
push dword [esi]
call fcn.00422800
test eax, eax
je 0x417997
push dword [esi]
mov ecx, esi
call fcn.00422b10
test eax, eax
je 0x417997
push 3
push 0
push str.ErrorLevel
mov ecx, esi
call fcn.00421ce0
mov dword [0x4af094], eax
test eax, eax
je 0x417997
push 1
push 0
push 0xffffffffffffffff
push 0x49e080
mov ecx, eax
call fcn.004759c0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [esp + 0x10]
call fcn.00413f60
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x10
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
Function at 0x42b560
Capabilities:
Check http status code

Disassembly:
mov eax, dword [0x4ac1d8]
push esi
mov esi, ecx
mov dword [0x4b0d10], esi
cmp byte [eax + 0xd9], 0
je 0x42b5a8
mov eax, dword [0x4afbb4]
mov dword [eax*4 + 0x4b0200], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4afbb4]
mov dword [ecx*4 + 0x4afbc0], eax
inc ecx
xor eax, eax
cmp ecx, 0x190
cmovge ecx, eax
mov dword [0x4afbb4], ecx
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.00458b20
cmp eax, 1
jne 0x42b5c2
mov ecx, esi
pop esi
jmp fcn.0042a1a0
pop esi
ret
Function at 0x42b5d0
Capabilities:
Check for time delay via gettickcount
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x4af098]
push esi
push edi
mov dword [esp + 0x10], ecx
cmp eax, dword [0x4ac1d4]
jl 0x42b5fc
mov eax, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [0x4af094]
cmp byte [esi + 0x17], 0
jne 0x42b60b
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x42b618
mov ecx, esi
call fcn.004023f0
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42b630
test byte [esi + 0x15], 4
je 0x42b62b
push esi
call fcn.0042e980
mov eax, dword [esi + 8]
jmp 0x42b640
cmp al, 2
jne 0x42b63b
call fcn.004022a0
jmp 0x42b640
mov eax, 0x4afb9e
push 0x7f
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00488ae0
mov edi, dword [0x4ac1d8]
mov ecx, 0x3a
inc dword [0x4af098]
add edi, 0xe8
mov byte [esp + 0xbb], 0
mov esi, 0x4aee98
mov dword [esp + 0x18], edi
add esp, 0xc
mov dword [0x4ac1d8], edi
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xc]
mov ecx, 0x4b09a0
push 0
mov dword [esi + 0x2c], 0
call fcn.004170e0
cmp dword [0x4af0a8], 0
xorps xmm0, xmm0
movlpd qword [0x4b0fb8], xmm0
je 0x42b6b6
push 0x4aef88
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esi + 0xce], 0
jne 0x42b6da
mov byte [esi + 0xce], 1
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
cmp dword [0x4b0fc4], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x42b6f2
cmp dword [0x4b0fc0], 0
jne 0x42b6fb
cmp byte [esi + 0xce], 0
je 0x42b733
cmp byte [esi + 0xce], 0
mov byte [esi + 0xcc], 0
jne 0x42b733
cmp dword [0x4b0fc4], 0
jge 0x42b720
mov dword [esi + 0xc0], 0xffffffff
jmp 0x42b733
call edi
mov dword [esi + 0xbc], eax
mov eax, dword [0x4b0fc4]
mov dword [esi + 0xc0], eax
mov ecx, dword [0x4b0f2c]
mov eax, dword [0x4b0f28]
mov edx, dword [0x4b0f94]
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x4b0f90]
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [0x4b0f2c], eax
mov dword [0x4b0f94], ecx
mov dword [0x4b0f28], esi
call edi
mov dword [0x4b0fcc], eax
mov dword [0x4b0fc8], eax
mov dword [0x4b0f90], eax
mov eax, dword [esp + 0x10]
cmp byte [eax], 5
mov ecx, dword [eax + 0xc]
jne 0x42b794
call fcn.0042b560
mov esi, eax
jmp 0x42b7ce
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0
push eax
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], esi
push eax
push str.call
mov edx, ecx
call fcn.0046acf0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x42b7ce
mov esi, dword [esp + 0x10]
neg esi
sbb esi, esi
add esi, 4
mov eax, dword [0x4ac1d8]
lea ecx, [esp + 0x30]
mov eax, dword [eax + 0xa4]
mov dword [0x4af09c], eax
mov eax, dword [esp + 0xc]
mov dword [0x4b0f28], eax
mov eax, dword [esp + 0x1c]
mov dword [0x4b0f90], eax
mov eax, dword [esp + 0x14]
mov dword [0x4b0f2c], eax
mov eax, dword [esp + 0x18]
mov dword [0x4b0f94], eax
call fcn.00404b70
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42dc50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xcc
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], 0
mov dword [esp + 4], eax
mov edx, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], str.What
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x44], 0
push esi
mov esi, 8
test eax, eax
jne 0x42dcf0
movzx ecx, byte [edx]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*2 + 0x4ac700]
mov dword [esp + 0x40], eax
movzx eax, word [edx + 2]
mov dword [esp + 0x58], 0
mov dword [esp + 0x50], 0x4a32d8
mov dword [esp + 0x68], 0
mov eax, dword [eax*4 + 0x4afbb8]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], str.Line
mov dword [esp + 0x88], 1
mov dword [esp + 0x84], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], str.Message
mov dword [esp + 0xa8], 0
test eax, eax
je 0x42ddb7
cmp byte [eax], 0
je 0x42ddb7
mov esi, 0xa
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb0], str.Extra
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc0], eax
mov edx, esi
lea ecx, [esp + 8]
call fcn.0046af80
pop esi
add esp, 0xcc
ret 0xc

Function at 0x42e850
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2000
call fcn.00492d90
push ebx
mov ebx, dword [esp + 0x2008]
push edi
mov edi, ecx
test ebx, ebx
je 0x42e967
push esi
mov esi, dword [esp + 0x201c]
test esi, esi
jne 0x42e892
mov esi, dword [edi + 0x370]
test esi, esi
jne 0x42e892
mov ecx, dword [edi + 0x16c]
movzx eax, word [edi + 0x170]
jmp 0x42e89a
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push ebp
push dword [esp + 0x2018]
movzx eax, ax
push eax
push dword [ecx*4 + 0x4afbb8]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.00472ab0
mov ebp, dword [esp + 0x2034]
lea ecx, [esp + 0x28]
add esp, 0x18
add ecx, eax
cmp byte [ebp], 0
je 0x42e8f0
push ebp
lea eax, [esp + 0x2014]
push str._____Specifically:__s_n
sub eax, ecx
push eax
push ecx
call fcn.00472ab0
add esp, 0x10
cmp ebx, 3
jne 0x42e918
call fcn.00486091
add eax, 0x20
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00488201
add esp, 8
pop ebp
pop esi
pop edi
pop ebx
add esp, 0x2000
ret 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp ebx, 2
jne 0x42e965
test esi, esi
jne 0x42e953
mov esi, dword [edi + 0x370]
test esi, esi
jne 0x42e953
mov eax, dword [esp + 0x2018]
mov ecx, edi
push ebp
push eax
call fcn.0042e360
pop ebp
pop esi
pop edi
pop ebx
add esp, 0x2000
ret 0x10
mov eax, dword [esp + 0x2018]
mov ecx, esi
push ebp
push 1
push eax
call fcn.0042e0a0
pop ebp
pop esi
pop edi
pop ebx
add esp, 0x2000
ret 0x10
Function at 0x42edc0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1ec
push ebx
mov ebx, dword [esp + 0x1f4]
push ebp
push esi
push edi
mov ebp, ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x42edf0
push 0x64
lea ecx, [esp + 0x94]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42edf8
mov byte [esp + 0x90], 0
mov esi, dword [0x4b0f74]
mov byte [esp + 0x10], 0
test esi, esi
je 0x42eecc
jmp 0x42ee10
cmp byte [esi + 0x11], 0
je 0x42ee7b
mov eax, dword [0x4b269c]
mov edi, dword [esi]
test al, 1
jne 0x42ee37
push 0
or eax, 1
mov ecx, 0x4b26a0
push 0
mov dword [0x4b269c], eax
call fcn.00415fa0
mov eax, dword [0x4b0d14]
mov ecx, dword [edi]
cmp ecx, dword [eax]
jne 0x42ee46
xor eax, eax
jmp 0x42ee52
xor eax, eax
cmp ecx, dword [0x4b26a0]
setne al
inc eax
sub eax, 0
je 0x42ee61
dec eax
je 0x42ee61
mov eax, str.Object
jmp 0x42ee66
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4a3690
lea eax, [esp + 0x18]
push 0x7d
push eax
call fcn.00472b00
add esp, 0x10
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x42ee10
cmp byte [esp + 0x10], 0
je 0x42eecc
lea ecx, [esp + 0x10]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42ee90
sub ecx, edx
cmp ecx, 0x7b
jbe 0x42eec0
mov esi, 0x7f
lea edi, [esp + 0x10]
sub esi, ecx
add edi, ecx
push esi
push 0x4a0ffc
push edi
call fcn.00488ae0
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x42eecc
cmp byte [esp + ecx + 0xf], 0x20
jne 0x42eecc
mov byte [esp + ecx + 0xf], 0
mov eax, dword [0x4aee90]
cmp byte [eax + 0xd8], 0
je 0x42eeea
cmp byte [0x4b0fb5], 0
jne 0x42eeea
mov esi, 1
jmp 0x42eeec
xor esi, esi
mov eax, dword [0x4af098]
cmp eax, 1
jle 0x42eefb
lea edi, [eax - 1]
jmp 0x42eefd
xor edi, edi
mov cl, 1
call fcn.00412bc0
lea edx, [esp + 0xf8]
mov cl, al
call fcn.00412f50
mov ecx, dword [0x4af098]
mov edx, 0x49e065
push eax
push dword [0x4af0b0]
mov eax, dword [0x4aef80]
push ecx
sub eax, esi
cmp ecx, 1
push eax
mov eax, str.__preempted:_they_will_resume_when_the_current_thread_finishes_
mov ecx, 0x4a0600
cmovle eax, edx
cmp dword [0x4af0c4], 0
push eax
push edi
lea eax, [esp + 0x28]
mov edx, 0x4a05fc
push eax
push dword [0x4b0f7c]
mov eax, ecx
push dword [0x4b0f80]
cmovne eax, edx
cmp dword [0x4af0c8], 0
push eax
cmovne ecx, edx
lea eax, [esp + 0xb8]
push ecx
push eax
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
push 0xfffe
push ebx
call fcn.00472ab0
add ebx, eax
mov edx, ebp
add esp, 0x3c
sub edx, ebx
add edx, 0xfffe
mov ecx, ebx
call fcn.0040a6f0
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42efa0
sub ecx, edx
mov eax, str._r_nPress__F5__to_refresh.
add ebx, ecx
cmp dword [0x4af0c0], 0
mov ecx, str._r_nKey_History_has_been_disabled_via_KeyHistory_0.
cmove eax, ecx
sub ebp, ebx
push eax
add ebp, 0xfffe
push ebp
push ebx
call fcn.00472ab0
add esp, 0xc
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ec
ret 8
Function at 0x4356e0
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
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.004301e0
mov ebx, eax
test ebx, ebx
jne 0x435715
push esi
push eax
push str.Parameter_1_invalid.
mov ecx, edi
call fcn.0042e0a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x435721
jmp dword [eax*4 + 0x435900]
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
je 0x435737
call fcn.00452390
jmp 0x43573d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov ecx, dword [0x4af094]
call fcn.00402370
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
call fcn.00452390
mov edi, eax
test edi, edi
je case.0x4357da.67
push edi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je case.0x4357da.67
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
test esi, esi
push 0x18
cmovne ecx, edi
push 0
push ecx
jmp 0x435742
mov ecx, dword [0x4af094]
push 1
push 0
push 0xffffffffffffffff
push 0x49e080
call fcn.004759c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
movsx eax, byte [eax]
push eax
call fcn.0048832d
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x4357da.67
movzx eax, byte [eax + 0x435930]
jmp dword [eax*4 + 0x435914]
mov esi, 0x40
jmp 0x435809
mov esi, 0x4000
jmp 0x435809
mov esi, 0x20
jmp 0x435809
mov esi, 0x8000
jmp 0x435809
mov esi, 0x80
jmp 0x435809
mov esi, 0x100
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
je 0x435818
call fcn.00452390
jmp 0x43581e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
test edi, edi
je case.0x4357da.67
push edi
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je case.0x4357da.67
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
test esi, esi
push 0x18
cmovne ecx, edi
push 0
push ecx
jmp 0x435742
mov ecx, dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [ecx], 0
je 0x43588e
mov byte [esp + 0xf], 0
call fcn.004145b0
mulsd xmm0, qword [0x4a6668]
cvttsd2si esi, xmm0
mov dword [esp + 0x10], esi
call edi
jmp 0x43589f
mov eax, dword [esp + 0x14]
mov byte [esp + 0xf], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0xc]
call fcn.00452390
mov esi, eax
cmp ebx, 4
jne 0x4358c0
test esi, esi
je 0x4358c8
push 0x18
push 0
push esi
jmp 0x435742
test esi, esi
je case.0x4357da.67
cmp byte [esp + 0xf], 0
jne 0x4358e6
call edi
mov ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
sub ecx, eax
cmp ecx, 5
jle 0x4358b6
mov edx, 1
lea ecx, [edx + 0x63]
call fcn.004027d0
jmp 0x4358a3
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x436180
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4b0840]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00441230
mov ebx, eax
test ebx, ebx
je 0x4361b0
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea edi, [eax + 1]
jmp 0x4361b5
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.004759c0
cmp eax, 1
je 0x4361d3
xor eax, eax
pop edi
pop esi
pop ebx
ret 0x10
mov ecx, esi
test ebx, ebx
je 0x436258
push edi
push 0
push 1
call fcn.004024d0
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x4361f8
mov edi, dword [esi + 0xc]
jmp 0x4361fa
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x436212
test byte [edi + 0x15], 8
je 0x43620d
mov ecx, edi
call fcn.004023f0
add edi, 0xc
jmp 0x436217
mov edi, 0x4b1c4c
mov dword [edi], ebx
cmp byte [esi + 0x17], 0
jne 0x436224
mov edi, dword [esi + 0xc]
jmp 0x436226
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x43623e
test byte [edi + 0x15], 8
je 0x436239
mov ecx, edi
call fcn.004023f0
add edi, 0xc
jmp 0x436243
mov edi, 0x4b1c4c
cmp dword [edi], 0
jne 0x436294
push 0
push 1
mov ecx, esi
call fcn.004024d0
mov byte [eax], 0
jmp 0x436294
push 0
push 1
call fcn.004024d0
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x43626f
mov edi, dword [esi + 0xc]
jmp 0x436271
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x436289
test byte [edi + 0x15], 8
je 0x436284
mov ecx, edi
call fcn.004023f0
add edi, 0xc
jmp 0x43628e
mov edi, 0x4b1c4c
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x43629d
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x4362be
cmp dword [0x4b101c], 0
je 0x4362be
push 1
mov ecx, 0x4b1010
call fcn.00405a20
pop edi
pop esi
pop ebx
ret 0x10
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x437040
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.00492d90
push esi
mov esi, dword [0x4b0840]
lea eax, [esp + 4]
push edi
push 0x7fff
push eax
push dword [esp + 0x8014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
push 1
cmp edi, 0x7fff
jb 0x437105
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.004759c0
test eax, eax
jne 0x437097
pop edi
pop esi
add esp, 0x8000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.004024d0
push eax
push dword [esp + 0x8014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x4370c2
push eax
push 1
mov ecx, esi
call fcn.004024d0
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x4370cb
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x4370f1
cmp dword [0x4b101c], 0
je 0x4370f1
push 1
mov ecx, 0x4b1010
call fcn.00405a20
pop edi
pop esi
add esp, 0x8000
ret 4
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
add esp, 0x8000
ret 4
push 0
test edi, edi
lea eax, [esp + 0x10]
mov ecx, 0x49e065
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004759c0
pop edi
pop esi
add esp, 0x8000
ret 4
Function at 0x4394d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push ebx
push dword [0x4b0fac]
mov esi, ecx
push str.__s_s
push 0x800
push esi
call fcn.00472ab0
mov edi, eax
add esp, 0x14
lea ecx, [edi + 1]
cmp ecx, 0x800
jg 0x439526
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x439526
mov ecx, dword [esp + 0x18]
mov word [edi + esi], 0x22
mov eax, dword [0x4b0fac]
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
pop ebx
ret
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.00439b50
test eax, eax
je 0x439578
push ebx
push edi
push str.__s_s
push 0x800
push esi
call fcn.00472ab0
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x439578
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x439578
mov eax, dword [esp + 0x18]
mov word [ebx + esi], 0x22
mov dword [eax], edi
mov al, 1
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret

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

Disassembly:
mov eax, 0x1118
call fcn.00492d90
push ebx
push esi
push edi
lea eax, [esp + 0x14]
mov byte [esp + 0x13], dl
push eax
lea eax, [esp + 0x1c]
mov ebx, 0x49e065
push eax
lea edi, [esp + 0x928]
push ecx
mov ecx, edi
call fcn.004394d0
add esp, 0xc
test al, al
jne 0x4395c0
pop edi
pop esi
pop ebx
add esp, 0x1118
ret
cmp byte [esp + 0x13], 0
je 0x439622
push 0x4a4364
push dword [esp + 0x18]
lea eax, [esp + 0x128]
push str.__s_s
push 0x800
push eax
call fcn.00472ab0
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x439622
lea eax, [esp + 0x121]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x439622
mov word [esp + esi + 0x120], 0x22
lea edi, [esp + 0x120]
lea ebx, [esp + 0x920]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push edi
mov ecx, 0x4b09a0
call fcn.0042eff0
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
add esp, 0x1118
ret