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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0xa4
cmp byte [0x4afc13], 0
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x5d0], eax
jne 0x416447
cmp byte [ebx + 0x614], 0
je 0x416447
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4ad0c8]
push 0
push 1
mov dword [0x4b047c], eax
call fcn.00401490
push 0x7f
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00487600
mov eax, dword [0x4aa1d8]
add esp, 0xc
inc dword [0x4ad0cc]
add eax, 0xe8
mov byte [esp + 0xaf], 0
mov edi, eax
mov ecx, 0x3a
mov dword [0x4aa1d8], eax
mov esi, 0x4acec8
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, 0x4ae9b0
mov dword [eax + 0x2c], 0
call fcn.00415f60
cmp dword [0x4ad0dc], 0
xorps xmm0, xmm0
movlpd qword [0x4aefc8], xmm0
je 0x416368
push 0x4acfc0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebx + 0x5c4]
mov eax, 1
mov esi, dword [0x4aa1d0]
mov dword [0x4aa1d0], 0
mov byte [0x4afc13], 1
mov dword [esp + 0xc], eax
mov byte [0x4abb40], 0
test ecx, ecx
je 0x4163b8
call fcn.00401500
test eax, eax
mov eax, dword [esp + 0xc]
je 0x4163b8
xor ecx, ecx
movzx eax, al
cmp byte [0x4abb40], cl
cmove eax, ecx
mov dword [esp + 0xc], eax
mov byte [0x4abb40], 1
test al, al
je 0x416419
mov dword [esp + 0x18], 0
call fcn.00440d10
mov dword [esp + 0x10], eax
lea ecx, [ebx + 0x590]
mov eax, dword [0x4b047c]
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.0046cad0
mov edx, dword [esp + 0xc]
movzx ecx, dl
xor edx, edx
cmp eax, 3
cmove ecx, edx
mov al, cl
mov byte [0x4afc13], 0
test al, al
jne 0x416482
cmp dword [ebp + 8], 3
je 0x416482
lea ecx, [esp + 0x30]
call fcn.00403b30
mov dword [0x4aa1d0], esi
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [0x4abb40], 0
jne 0x41648d
cmp eax, 9
jne 0x41648d
mov eax, dword [0x4ae8b0]
mov ecx, dword [0x4b047c]
pop edi
pop esi
cmp byte [eax], 0
mov eax, 8
mov byte [0x4abb40], 1
cmovne ecx, dword [ebp + 0xc]
mov dword [0x4b047c], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
push ecx
mov ecx, ebx
call fcn.004164a0
push dword [ebp + 0xc]
push ecx
call fcn.004164a0
int3
Function at 0x4165c0
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 0x416817
cmp byte [eax], 0
je 0x416817
cmp dword [0x4ae918], 0
jne 0x416606
call fcn.0046eb60
mov dword [0x4ae918], eax
test eax, eax
je 0x41665f
mov edx, dword [0x4ae914]
cmp dword [edx + 8], 0x14
jae 0x416624
call fcn.0046eb60
mov edx, dword [0x4ae914]
mov dword [edx + 0xc], eax
test eax, eax
je 0x41665f
mov ecx, dword [edx + 4]
add dword [edx + 8], 0xffffffec
mov dword [0x4ae910], ecx
lea eax, [ecx + 0x14]
mov dword [edx + 4], eax
test ecx, ecx
je 0x41665f
mov dword [ecx], vtable.Label.0
mov dword [ecx + 4], 0x49bc4d
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
jmp 0x416661
xor ecx, ecx
mov dword [esi + 0x374], ecx
test ecx, ecx
je 0x416817
cmp byte [0x4ad9e4], 0
mov eax, 0x49f784
jne 0x416683
mov eax, dword [esi + 0x5fc]
sub esp, 8
mov ecx, esi
push eax
call fcn.00416990
cmp eax, 1
jne 0x416817
push 0
push 0
push 0
push 0x68
mov ecx, esi
call fcn.0041c260
test eax, eax
je 0x416817
push dword [esi]
mov ecx, esi
call fcn.004211e0
test eax, eax
je 0x416817
push dword [esi]
mov ecx, esi
call fcn.004212b0
cmp dword [esi + 8], 0
je 0x4166e3
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 0x416726
lea ebx, [ebx]
mov eax, dword [esi + 0x18]
mov edi, dword [eax + ebx*4]
cmp byte [edi + 0x3d], 0
jne 0x416720
test byte [edi + 0x3c], 4
jne 0x416720
lea eax, [edi + 0x28]
mov ecx, esi
push eax
push dword [edi + 0x1c]
push edi
call fcn.0042d600
lea eax, [edi + 0x30]
mov ecx, esi
push eax
push dword [edi + 0x20]
push edi
call fcn.0042d600
inc ebx
cmp ebx, dword [esi + 0x1c]
jl 0x4166f0
cmp dword [esi + 0x160], 0
je 0x416754
mov ecx, esi
call fcn.0041ef30
test eax, eax
je 0x416817
mov eax, dword [esi + 0x160]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi + 0x160], 0
cmp dword [0x4ad9d0], 0
je 0x416764
mov ecx, esi
call fcn.0042d6c0
push dword [0x4ad104]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
inc dword [esi + 0x170]
mov ecx, esi
push 0
push 0
push 0
push 0x68
call fcn.0041c260
test eax, eax
je 0x416817
push 0
push 0
push 0
push 0x68
mov ecx, esi
call fcn.0041c260
test eax, eax
je 0x416817
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.00421320
test eax, eax
je 0x416817
push dword [esi]
mov ecx, esi
call fcn.00421630
test eax, eax
je 0x416817
push 3
push 0
push str.ErrorLevel
mov ecx, esi
call fcn.00420800
mov dword [0x4ad0c8], eax
test eax, eax
je 0x416817
push 1
push 0
push 0xffffffffffffffff
push 0x49bca8
mov ecx, eax
call fcn.004744e0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [esp + 0x10]
call fcn.00412de0
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 0x42a080
Capabilities:
Check http status code

Disassembly:
mov eax, dword [0x4aa1d8]
push esi
mov esi, ecx
mov dword [0x4aed20], esi
cmp byte [eax + 0xd9], 0
je 0x42a0c8
mov eax, dword [0x4adbd4]
mov dword [eax*4 + 0x4ae220], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4adbd4]
mov dword [ecx*4 + 0x4adbe0], eax
inc ecx
xor eax, eax
cmp ecx, 0x190
cmovge ecx, eax
mov dword [0x4adbd4], ecx
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.00457640
cmp eax, 1
jne 0x42a0e2
mov ecx, esi
pop esi
jmp fcn.00428cc0
pop esi
ret
Function at 0x42a0f0
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 [0x4ad0cc]
push esi
push edi
mov dword [esp + 0x10], ecx
cmp eax, dword [0x4aa1d4]
jl 0x42a11c
mov eax, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [0x4ad0c8]
cmp byte [esi + 0x17], 0
jne 0x42a12b
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x42a138
mov ecx, esi
call fcn.004013b0
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42a150
test byte [esi + 0x15], 4
je 0x42a14b
push esi
call fcn.0042d4a0
mov eax, dword [esi + 8]
jmp 0x42a160
cmp al, 2
jne 0x42a15b
call fcn.00401260
jmp 0x42a160
mov eax, 0x4ae944
push 0x7f
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00487600
mov edi, dword [0x4aa1d8]
mov ecx, 0x3a
inc dword [0x4ad0cc]
add edi, 0xe8
mov byte [esp + 0xbb], 0
mov esi, 0x4acec8
mov dword [esp + 0x18], edi
add esp, 0xc
mov dword [0x4aa1d8], edi
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xc]
mov ecx, 0x4ae9b0
push 0
mov dword [esi + 0x2c], 0
call fcn.00415f60
cmp dword [0x4ad0dc], 0
xorps xmm0, xmm0
movlpd qword [0x4aefc8], xmm0
je 0x42a1d6
push 0x4acfc0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esi + 0xce], 0
jne 0x42a1fa
mov byte [esi + 0xce], 1
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
cmp dword [0x4aefd4], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x42a212
cmp dword [0x4aefd0], 0
jne 0x42a21b
cmp byte [esi + 0xce], 0
je 0x42a253
cmp byte [esi + 0xce], 0
mov byte [esi + 0xcc], 0
jne 0x42a253
cmp dword [0x4aefd4], 0
jge 0x42a240
mov dword [esi + 0xc0], 0xffffffff
jmp 0x42a253
call edi
mov dword [esi + 0xbc], eax
mov eax, dword [0x4aefd4]
mov dword [esi + 0xc0], eax
mov ecx, dword [0x4aef3c]
mov eax, dword [0x4aef38]
mov edx, dword [0x4aefa4]
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x4aefa0]
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [0x4aef3c], eax
mov dword [0x4aefa4], ecx
mov dword [0x4aef38], esi
call edi
mov dword [0x4aefdc], eax
mov dword [0x4aefd8], eax
mov dword [0x4aefa0], eax
mov eax, dword [esp + 0x10]
cmp byte [eax], 5
mov ecx, dword [eax + 0xc]
jne 0x42a2b4
call fcn.0042a080
mov esi, eax
jmp 0x42a2ee
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.00469810
mov esi, eax
add esp, 0x14
test esi, esi
je 0x42a2ee
mov esi, dword [esp + 0x10]
neg esi
sbb esi, esi
add esi, 4
mov eax, dword [0x4aa1d8]
lea ecx, [esp + 0x30]
mov eax, dword [eax + 0xa4]
mov dword [0x4ad0d0], eax
mov eax, dword [esp + 0xc]
mov dword [0x4aef38], eax
mov eax, dword [esp + 0x1c]
mov dword [0x4aefa0], eax
mov eax, dword [esp + 0x14]
mov dword [0x4aef3c], eax
mov eax, dword [esp + 0x18]
mov dword [0x4aefa4], eax
call fcn.00403b30
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42c770
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 0x42c810
movzx ecx, byte [edx]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*2 + 0x4aa700]
mov dword [esp + 0x40], eax
movzx eax, word [edx + 2]
mov dword [esp + 0x58], 0
mov dword [esp + 0x50], 0x4a0ef0
mov dword [esp + 0x68], 0
mov eax, dword [eax*4 + 0x4adbd8]
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 0x42c8d7
cmp byte [eax], 0
je 0x42c8d7
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.00469aa0
pop esi
add esp, 0xcc
ret 0xc

Function at 0x42d370
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2000
call fcn.004918b0
push ebx
mov ebx, dword [esp + 0x2008]
push edi
mov edi, ecx
test ebx, ebx
je 0x42d487
push esi
mov esi, dword [esp + 0x201c]
test esi, esi
jne 0x42d3b2
mov esi, dword [edi + 0x370]
test esi, esi
jne 0x42d3b2
mov ecx, dword [edi + 0x16c]
movzx eax, word [edi + 0x170]
jmp 0x42d3ba
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 + 0x4adbd8]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.004715d0
mov ebp, dword [esp + 0x2034]
lea ecx, [esp + 0x28]
add esp, 0x18
add ecx, eax
cmp byte [ebp], 0
je 0x42d410
push ebp
lea eax, [esp + 0x2014]
push str._____Specifically:__s_n
sub eax, ecx
push eax
push ecx
call fcn.004715d0
add esp, 0x10
cmp ebx, 3
jne 0x42d438
call fcn.00484bb1
add eax, 0x20
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00486d21
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 0x42d485
test esi, esi
jne 0x42d473
mov esi, dword [edi + 0x370]
test esi, esi
jne 0x42d473
mov eax, dword [esp + 0x2018]
mov ecx, edi
push ebp
push eax
call fcn.0042ce80
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.0042cbc0
pop ebp
pop esi
pop edi
pop ebx
add esp, 0x2000
ret 0x10
Function at 0x42d8e0
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 0x42d910
push 0x64
lea ecx, [esp + 0x94]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42d918
mov byte [esp + 0x90], 0
mov esi, dword [0x4aef84]
mov byte [esp + 0x10], 0
test esi, esi
je 0x42d9ec
jmp 0x42d930
cmp byte [esi + 0x11], 0
je 0x42d99b
mov eax, dword [0x4b066c]
mov edi, dword [esi]
test al, 1
jne 0x42d957
push 0
or eax, 1
mov ecx, 0x4b0670
push 0
mov dword [0x4b066c], eax
call fcn.00414e20
mov eax, dword [0x4aed24]
mov ecx, dword [edi]
cmp ecx, dword [eax]
jne 0x42d966
xor eax, eax
jmp 0x42d972
xor eax, eax
cmp ecx, dword [0x4b0670]
setne al
inc eax
sub eax, 0
je 0x42d981
dec eax
je 0x42d981
mov eax, str.Object
jmp 0x42d986
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0x4a12a8
lea eax, [esp + 0x18]
push 0x7d
push eax
call fcn.00471620
add esp, 0x10
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x42d930
cmp byte [esp + 0x10], 0
je 0x42d9ec
lea ecx, [esp + 0x10]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42d9b0
sub ecx, edx
cmp ecx, 0x7b
jbe 0x42d9e0
mov esi, 0x7f
lea edi, [esp + 0x10]
sub esi, ecx
add edi, ecx
push esi
push 0x49ec38
push edi
call fcn.00487600
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x42d9ec
cmp byte [esp + ecx + 0xf], 0x20
jne 0x42d9ec
mov byte [esp + ecx + 0xf], 0
mov eax, dword [0x4acec4]
cmp byte [eax + 0xd8], 0
je 0x42da0a
cmp byte [0x4aefc5], 0
jne 0x42da0a
mov esi, 1
jmp 0x42da0c
xor esi, esi
mov eax, dword [0x4ad0cc]
cmp eax, 1
jle 0x42da1b
lea edi, [eax - 1]
jmp 0x42da1d
xor edi, edi
mov cl, 1
call fcn.00411a40
lea edx, [esp + 0xf8]
mov cl, al
call fcn.00411dd0
mov ecx, dword [0x4ad0cc]
mov edx, 0x49bc4d
push eax
push dword [0x4ad0e4]
mov eax, dword [0x4acfb4]
push ecx
sub eax, esi
cmp ecx, 1
push eax
mov eax, str.__preempted:_they_will_resume_when_the_current_thread_finishes_
mov ecx, 0x49e230
cmovle eax, edx
cmp dword [0x4ad0f8], 0
push eax
push edi
lea eax, [esp + 0x28]
mov edx, 0x49e22c
push eax
push dword [0x4aef8c]
mov eax, ecx
push dword [0x4aef90]
cmovne eax, edx
cmp dword [0x4ad0fc], 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.004715d0
add ebx, eax
mov edx, ebp
add esp, 0x3c
sub edx, ebx
add edx, 0xfffe
mov ecx, ebx
call fcn.00409570
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42dac0
sub ecx, edx
mov eax, str._r_nPress__F5__to_refresh.
add ebx, ecx
cmp dword [0x4ad0f4], 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.004715d0
add esp, 0xc
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ec
ret 8
Function at 0x434200
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.0042ed00
mov ebx, eax
test ebx, ebx
jne 0x434235
push esi
push eax
push str.Parameter_1_invalid.
mov ecx, edi
call fcn.0042cbc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebx - 1]
cmp eax, 4
ja case.default.0x434241
jmp dword [eax*4 + 0x434420]
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
je 0x434257
call fcn.00450eb0
jmp 0x43425d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov ecx, dword [0x4ad0c8]
call fcn.00401330
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
call fcn.00450eb0
mov edi, eax
test edi, edi
je case.0x4342fa.67
push edi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je case.0x4342fa.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 0x434262
mov ecx, dword [0x4ad0c8]
push 1
push 0
push 0xffffffffffffffff
push 0x49bca8
call fcn.004744e0
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.00486e4d
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x4342fa.67
movzx eax, byte [eax + 0x434450]
jmp dword [eax*4 + 0x434434]
mov esi, 0x40
jmp 0x434329
mov esi, 0x4000
jmp 0x434329
mov esi, 0x20
jmp 0x434329
mov esi, 0x8000
jmp 0x434329
mov esi, 0x80
jmp 0x434329
mov esi, 0x100
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
je 0x434338
call fcn.00450eb0
jmp 0x43433e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
test edi, edi
je case.0x4342fa.67
push edi
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je case.0x4342fa.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 0x434262
mov ecx, dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [ecx], 0
je 0x4343ae
mov byte [esp + 0xf], 0
call fcn.00413430
mulsd xmm0, qword [0x4a4278]
cvttsd2si esi, xmm0
mov dword [esp + 0x10], esi
call edi
jmp 0x4343bf
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.00450eb0
mov esi, eax
cmp ebx, 4
jne 0x4343e0
test esi, esi
je 0x4343e8
push 0x18
push 0
push esi
jmp 0x434262
test esi, esi
je case.0x4342fa.67
cmp byte [esp + 0xf], 0
jne 0x434406
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 0x4343d6
mov edx, 1
lea ecx, [edx + 0x63]
call fcn.00401790
jmp 0x4343c3
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x434ca0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4ae860]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0043fd50
mov ebx, eax
test ebx, ebx
je 0x434cd0
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea edi, [eax + 1]
jmp 0x434cd5
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.004744e0
cmp eax, 1
je 0x434cf3
xor eax, eax
pop edi
pop esi
pop ebx
ret 0x10
mov ecx, esi
test ebx, ebx
je 0x434d78
push edi
push 0
push 1
call fcn.00401490
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x434d18
mov edi, dword [esi + 0xc]
jmp 0x434d1a
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x434d32
test byte [edi + 0x15], 8
je 0x434d2d
mov ecx, edi
call fcn.004013b0
add edi, 0xc
jmp 0x434d37
mov edi, 0x4afc18
mov dword [edi], ebx
cmp byte [esi + 0x17], 0
jne 0x434d44
mov edi, dword [esi + 0xc]
jmp 0x434d46
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x434d5e
test byte [edi + 0x15], 8
je 0x434d59
mov ecx, edi
call fcn.004013b0
add edi, 0xc
jmp 0x434d63
mov edi, 0x4afc18
cmp dword [edi], 0
jne 0x434db4
push 0
push 1
mov ecx, esi
call fcn.00401490
mov byte [eax], 0
jmp 0x434db4
push 0
push 1
call fcn.00401490
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x434d8f
mov edi, dword [esi + 0xc]
jmp 0x434d91
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x434da9
test byte [edi + 0x15], 8
je 0x434da4
mov ecx, edi
call fcn.004013b0
add edi, 0xc
jmp 0x434dae
mov edi, 0x4afc18
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x434dbd
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x434dde
cmp dword [0x4af02c], 0
je 0x434dde
push 1
mov ecx, 0x4af020
call fcn.004048a0
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 0x435b60
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.004918b0
push esi
mov esi, dword [0x4ae860]
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 0x435c25
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.004744e0
test eax, eax
jne 0x435bb7
pop edi
pop esi
add esp, 0x8000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.00401490
push eax
push dword [esp + 0x8014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x435be2
push eax
push 1
mov ecx, esi
call fcn.00401490
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x435beb
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x435c11
cmp dword [0x4af02c], 0
je 0x435c11
push 1
mov ecx, 0x4af020
call fcn.004048a0
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, 0x49bc4d
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004744e0
pop edi
pop esi
add esp, 0x8000
ret 4
Function at 0x437ff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push ebx
push dword [0x4aefbc]
mov esi, ecx
push str.__s_s
push 0x800
push esi
call fcn.004715d0
mov edi, eax
add esp, 0x14
lea ecx, [edi + 1]
cmp ecx, 0x800
jg 0x438046
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x438046
mov ecx, dword [esp + 0x18]
mov word [edi + esi], 0x22
mov eax, dword [0x4aefbc]
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
pop ebx
ret
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.00438670
test eax, eax
je 0x438098
push ebx
push edi
push str.__s_s
push 0x800
push esi
call fcn.004715d0
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x438098
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x438098
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 0x4380a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1118
call fcn.004918b0
push ebx
push esi
push edi
lea eax, [esp + 0x14]
mov byte [esp + 0x13], dl
push eax
lea eax, [esp + 0x1c]
mov ebx, 0x49bc4d
push eax
lea edi, [esp + 0x928]
push ecx
mov ecx, edi
call fcn.00437ff0
add esp, 0xc
test al, al
jne 0x4380e0
pop edi
pop esi
pop ebx
add esp, 0x1118
ret
cmp byte [esp + 0x13], 0
je 0x438142
push 0x4a1f74
push dword [esp + 0x18]
lea eax, [esp + 0x128]
push str.__s_s
push 0x800
push eax
call fcn.004715d0
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x438142
lea eax, [esp + 0x121]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x438142
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, 0x4ae9b0
call fcn.0042db10
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
add esp, 0x1118
ret