joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30006169
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [0x30091fd8]
and dword [ebp - 8], 0
call fcn.30006688
cmp eax, 0xffffffff
pop ecx
jne 0x30006189
push 8
pop ecx
jmp 0x3000618b
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 0x10]
or ebx, ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, ebx
and al, 0xf7
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.30056a9a
add esp, 0x14
test eax, eax
jne 0x3000635d
mov eax, dword [0x30095288]
push esi
push edi
xor edi, edi
inc edi
cmp eax, edi
mov esi, 0x1000
je 0x300061d4
cmp eax, 2
je 0x300061d4
cmp eax, 3
je 0x300061d4
and dword [ebp - 0x10], 0
jmp 0x3000623e
cmp byte [0x300952ad], 0
mov dword [ebp - 0x10], edi
jne 0x300061e5
call fcn.300060f7
mov eax, dword [0x30096e7c]
cmp byte [eax + 3], 0
je 0x30006217
push edi
push dword [0x30095284]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [0x300952ad], 0
je 0x30006217
push 0
push edi
push 6
push dword [0x30095284]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x30096e7c]
mov eax, dword [eax + 0x1a]
mov dword [ebp - 0x14], eax
call fcn.30002e97
inc dword [0x30096448]
test esi, ebx
jne 0x30006234
and bh, 0xdf
call dword [sym.imp.USER32.dll_InSendMessage]
test eax, eax
je 0x30006243
and bh, 0xdf
or ebx, esi
mov esi, dword [sym.imp.USER32.dll_GetActiveWindow]
call esi
mov edi, eax
push 1
mov dword [ebp + 0x10], edi
call fcn.3000c29c
push edi
mov dword [ebp - 0xc], eax
call fcn.3000bd58
test eax, eax
pop ecx
pop ecx
jne 0x30006277
cmp edi, dword [0x30095284]
je 0x30006277
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp + 0x10], eax
call esi
xor esi, esi
inc esi
push esi
push dword [ebp - 0xc]
mov edi, eax
call fcn.3000c815
mov eax, dword [0x30095284]
cmp edi, eax
pop ecx
pop ecx
je 0x300062b2
test eax, eax
je 0x300062b2
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x300062b2
push 0
push dword [0x30095284]
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x300062c5
and ebx, 0xf0f
or bx, 0x1010
call esi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.3000e0bd
test eax, eax
mov dword [ebp - 4], eax
je 0x300062ba
cmp dword [ebp - 8], 0
je 0x300062ef
push 1
push dword [0x30095284]
call dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
pop edi
pop esi
je 0x30006301
push 0
push dword [ebp - 0xc]
call fcn.3000c815
pop ecx
pop ecx
cmp dword [ebp - 0x10], 0
je 0x3000635d
cmp dword [ebp - 0x14], 0
je 0x30006316
push dword [ebp - 0x14]
call fcn.30002dd5
pop ecx
push 2
call fcn.3007b687
pop ecx
call fcn.30064891
test eax, eax
jne 0x3000632f
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov eax, dword [0x30096e7c]
dec dword [0x30096448]
cmp byte [eax + 3], 0
je 0x3000634e
push 0
push dword [0x30095284]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp + 0x10], 0
je 0x3000635d
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x30007a12
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
movzx ecx, byte [ebp - 4]
neg eax
sbb eax, eax
and eax, ecx
leave
ret

Function at 0x30008409
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push dword [ebp + 0x14]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
test eax, eax
jne 0x30008431
push 2
pop eax
jmp 0x300084e0
cmp dword [0x30095288], 1
push edi
jne 0x300084dc
mov eax, dword [ebx + 4]
mov edi, 0xa0
cmp eax, edi
je 0x3000845d
cmp eax, 0x112
jbe 0x300084dc
cmp eax, 0x200
ja 0x300084dc
push 0
push 0x9f
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x300084dc
push eax
push 0x108
push 0xa1
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x300084dc
push eax
push 0x400
push 0x201
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x300084dc
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x300084b1
cmp eax, 0x200
jne 0x300084d7
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call esi
mov edi, 0x8000
test di, ax
jne 0x300084dc
push 2
call esi
test di, ax
jne 0x300084dc
push 4
call esi
test di, ax
jne 0x300084dc
push 3
pop eax
jmp 0x300084df
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x30008503
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
call esi
mov bx, ax
push 0x11
shr ebx, 1
and ebx, 0x4000
call esi
mov edi, 0x8000
push 0x12
and eax, edi
or ebx, eax
shr ebx, 2
call esi
and eax, edi
or ebx, eax
pop edi
shr ebx, 0xa
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x300085cb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
xor ebx, ebx
cmp byte [0x300952ac], bl
push esi
push edi
mov dword [ebp - 4], ebx
je 0x300085e8
xor eax, eax
jmp 0x30008693
mov eax, dword [0x300952a4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x48]
push ebx
push eax
mov dword [0x300952a4], eax
call sub.MSVCRT.dll__setjmp3
test eax, eax
pop ecx
pop ecx
jne 0x30008698
cmp dword [ebp + 8], ebx
je 0x30008619
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x30095298], eax
mov byte [0x300952ac], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov esi, edi
sub esi, dword [0x30095298]
jns 0x3000863b
and dword [0x30095298], 0
mov esi, edi
push 0x8000
call fcn.300068a4
test eax, eax
pop ecx
jne 0x30008698
cmp dword [0x30095288], 1
jne 0x30008698
mov eax, dword [ebx + 0x3009225c]
test eax, eax
je 0x30008679
cmp dword [ebp + 0xc], 0
jne 0x3000866c
cmp dword [ebx + 0x30092260], 0
jne 0x30008679
push edi
push esi
push dword [ebp + 8]
call eax
add esp, 0xc
or dword [ebp - 4], eax
add ebx, 8
cmp ebx, 0x38
jb 0x30008620
mov eax, dword [ebp - 8]
mov dword [0x300952a4], eax
mov eax, dword [ebp - 4]
mov byte [0x300952ac], 0
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 8]
mov dword [0x300952a4], eax
mov byte [0x300952ac], 0
je 0x300086b2
call fcn.30006883
xor eax, eax
inc eax
jmp 0x30008693

Function at 0x300090cc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
xor ebp, ebp
inc ebp
xor eax, eax
cmp dword [esp + 8], eax
push edi
mov edi, ebp
jne 0x300090f3
cmp dword [0x30096448], eax
jg 0x300090f3
cmp dword [0x30096870], eax
jg 0x300090f3
cmp byte [0x300952ad], al
je 0x3000914f
cmp dword [0x30095288], ebp
jne 0x3000914f
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [0x3009527c]
mov dword [esp + 0x14], eax
mov dword [0x3009527c], 0x3000
push 0xe000
call fcn.300068a4
test eax, eax
pop ecx
jne 0x30009147
call esi
sub eax, dword [esp + 0x14]
cmp eax, 0x3e8
jb 0x30009143
push 0
push ebp
call fcn.300085cb
pop ecx
pop ecx
mov edi, eax
xor ebp, ebp
test edi, edi
jne 0x30009119
pop esi
mov dword [0x3009527c], ebx
pop ebx
pop edi
pop ebp
ret
Function at 0x3000a3fa
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x60
mov eax, dword [0x30095244]
mov dword [esp + 0x5c], eax
mov eax, dword [0x30096dc0]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x3000a543
cmp dword [0x30096dc4], ebp
push edi
mov edi, 0x410
je 0x3000a50e
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
push ebp
push 2
push eax
call esi
push ebp
xor ebx, ebx
push edi
jmp 0x3000a442
inc ebx
mov eax, ebx
or eax, edi
push eax
push dword [0x30096dc0]
call esi
test eax, eax
push ebp
jne 0x3000a43c
xor ebx, ebx
call fcn.3000be45
jmp 0x3000a4fb
push esi
call fcn.3000bb8c
test eax, eax
pop ecx
jne 0x3000a4f3
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push esi
mov ebp, eax
call fcn.3000ba26
test eax, eax
pop ecx
jne 0x3000a4e9
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x3000a4e9
cmp ebx, 9
jg 0x3000a4e9
mov eax, dword [ebp]
mov dword [eax + 0x14], ebx
jne 0x3000a4ae
push 0x5b
lea eax, [esp + 0x14]
push eax
push 0x110003
call fcn.30056fa1
push 2
pop eax
jmp 0x3000a4d2
mov al, bl
add al, 0x31
mov byte [esp + 0x11], al
push 0x58
lea eax, [esp + 0x17]
push eax
push esi
mov byte [esp + 0x1c], 0x26
mov byte [esp + 0x1e], 0x20
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, ebx
or eax, edi
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push dword [0x30096dc0]
call dword [sym.imp.USER32.dll_AppendMenuA]
inc ebx
jmp 0x3000a4f3
mov eax, dword [ebp]
mov dword [eax + 0x14], 9
push esi
call fcn.3000be45
xor ebp, ebp
mov esi, eax
cmp esi, ebp
pop ecx
jne 0x3000a45b
pop esi
mov dword [0x30096dc4], ebp
pop ebx
mov eax, dword [0x300952e4]
cmp eax, ebp
je 0x3000a542
push 2
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
cmp eax, 9
jne 0x3000a52f
push 2
pop eax
jmp 0x3000a531
or eax, edi
push 1
push eax
push dword [0x30096dc0]
call fcn.3000a8ae
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x60]
pop ebp
call fcn.300843e7
add esp, 0x60
ret

Function at 0x3000bbb1
Capabilities:
Hide graphical window

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 0
mov esi, eax
jne 0x3000bbdc
push dword [esp + 8]
call fcn.3000bb8c
test eax, eax
pop ecx
jne 0x3000bbdc
call fcn.3000a63a
mov eax, esi
pop esi
ret
Function at 0x30014df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x10], 0x18
mov dword [ebp - 0x1c], 5
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0x30092680
jmp 0x30014efb
mov eax, dword [ebp - 0x1c]
push dword [esi*4 + 0x300926dc]
add eax, 0x18
mov dword [ebp - 0x14], eax
call fcn.3006ffe6
pop ecx
push 2
push eax
push dword [0x30096e30]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x30014eb4
push edi
push dword [0x30096e30]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x30014eb4
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x30014eb4
push edi
push dword [0x30096e30]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 8], eax
je 0x30014eb4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x30014eb4
push edi
push eax
push dword [ebp - 0xc]
call fcn.3007e223
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x30014ebf
push 0x50000
call fcn.30006571
pop ecx
cmp esi, 5
je 0x30014ed7
cmp esi, 6
je 0x30014ed7
cmp esi, 0xd
je 0x30014ed7
cmp esi, 0xe
je 0x30014ed7
xor eax, eax
jmp 0x30014eda
xor eax, eax
inc eax
xor ecx, ecx
cmp esi, 3
sete cl
lea edx, [ebp - 0x1c]
push ecx
push eax
push esi
push dword [ebp - 8]
call fcn.30014d1e
mov eax, dword [ebp - 0x14]
add esp, 0x10
dec eax
mov dword [ebp - 0x1c], eax
inc esi
mov eax, dword [ebp - 4]
cmp esi, dword [eax]
jl 0x30014e1f
add dword [ebp - 4], 4
add dword [ebp - 0x1c], 0xa
cmp dword [ebp - 4], 0x300926a0
jl 0x30014efb
mov eax, dword [0x30096ce4]
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret
Function at 0x3002e38f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 8]
and dword [ecx], 0
cmp eax, 0xffffffff
je 0x3002e3cd
xor edx, edx
inc edx
test dl, al
je 0x3002e3ae
mov dword [ecx], edx
test al, 2
je 0x3002e3b5
or dword [ecx], 2
test al, 4
je 0x3002e3bc
or dword [ecx], 4
test al, 0x10
je 0x3002e3c3
or dword [ecx], 0x10
test al, 0x20
je 0x3002e3ca
or dword [ecx], 0x20
xor eax, eax
ret
push 2
pop eax
ret

Function at 0x30036b16
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x30095244]
push ebx
push dword [0x30095750]
xor ebx, ebx
push 0x66
mov dword [ebp - 4], eax
mov dword [0x30096bb8], ebx
call fcn.30081b67
push 0xc
push 0x30096bb8
push dword [0x30095750]
mov dword [0x30096bb8], eax
call fcn.30081a97
push 0x401a
call fcn.30056ef4
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x5c], eax
je 0x30036cc0
push esi
mov dword [ebp - 0x54], ebx
push edi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x54]
mov dword [ebp - 0x60], 0x2c
push dword [ebp - 0x5c]
mov dword [ebp - 0x58], 0x20
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
mov dword [ebp - 0x64], eax
jne 0x30036ca5
cmp dword [ebp - 0x68], 1
jne 0x30036ca5
cmp dword [ebp - 0x60], ebx
je 0x30036ca5
lea eax, [ebp - 0x30]
push 0x2d
push eax
call dword [sym.imp.MSVCRT.dll__mbschr]
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x30036c3c
lea esi, [ebp - 0x30]
cmp dword [0x30096e74], ebx
je 0x30036be6
push esi
push esi
call fcn.300841d4
movzx eax, ax
jmp 0x30036be9
movzx eax, byte [esi]
cmp eax, 0x30
jl 0x30036c20
cmp dword [0x30096e74], ebx
je 0x30036c02
push esi
push esi
call fcn.300841d4
movzx eax, ax
jmp 0x30036c05
movzx eax, byte [esi]
cmp eax, 0x39
jg 0x30036c20
cmp dword [0x30096e74], ebx
je 0x30036c1d
push esi
push esi
call fcn.30084184
mov esi, eax
jmp 0x30036bd2
inc esi
jmp 0x30036bd2
cmp esi, edi
jb 0x30036c3c
cmp dword [0x30096e74], ebx
je 0x30036c37
push esi
push esi
call fcn.30084184
mov edi, eax
jmp 0x30036c3f
lea edi, [esi + 1]
jmp 0x30036c3f
lea edi, [ebp - 0x30]
push ebx
push 1
push dword [0x30096bb8]
push dword [0x30095750]
call fcn.300818be
pop ecx
pop ecx
push eax
push 0x30096bb8
push dword [0x30095750]
call fcn.300819c2
push edi
push dword [0x30095750]
mov esi, eax
call fcn.30079bc2
add esp, 0x1c
mov dword [esi], eax
cmp dword [ebp - 0x58], ebx
je 0x30036c9d
cmp dword [ebp - 0x58], 1
jne 0x30036c8a
cmp byte [ebp - 0x50], 0x20
je 0x30036c9d
lea eax, [ebp - 0x50]
push eax
push dword [0x30095750]
call fcn.30079bc2
pop ecx
pop ecx
jmp 0x30036c9f
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
inc dword [ebp - 0x54]
cmp dword [ebp - 0x64], 0x103
jne 0x30036b6e
push dword [ebp - 0x5c]
call fcn.30056f10
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.300843e7
leave
ret
Function at 0x3003ca1f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x30095244]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x3003ca37
sub eax, esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
push 3
mov ecx, edx
pop edx
and ecx, edx
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp + eax - 0x14]
pop edi
mov esi, dword [ebp + 0x10]
and esi, 0xf
cmp esi, 0xa
lea ecx, [esi + 0x30]
jl 0x3003ca6f
lea ecx, [esi + 0x37]
shr dword [ebp + 0x10], 4
mov byte [edx + eax], cl
dec edx
jns 0x3003ca5e
mov esi, dword [ebp + 8]
add eax, 4
mov ecx, esi
sub ecx, eax
mov byte [eax], 0
push ebx
lea eax, [ebp + ecx - 0x15]
push eax
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebx], 0
je 0x3003cac8
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x3003ca9f
sub eax, edx
cmp byte [eax + ebx - 1], 0x5c
je 0x3003cab4
mov byte [eax + ebx], 0x5c
inc eax
sub esi, eax
add eax, ebx
push esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.3007bb49
add esp, 0xc
jmp 0x3003cb1a
push esi
push ebx
push dword [0x30096e6c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x115]
push eax
lea eax, [ebp - 0x215]
push eax
lea eax, [ebp - 0x315]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll__splitpath]
push 0x30096e84
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x315]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll__makepath]
add esp, 0x28
mov ecx, dword [ebp - 4]
pop esi
call fcn.300843e7
leave
ret

Function at 0x3003cba6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x30095244]
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.3003c996
mov eax, dword [ebp + 0xc]
pop ecx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x3003cbc6
sub eax, ecx
cmp eax, 8
jbe 0x3003cbd8
xor eax, eax
jmp 0x3003cc06
push ebx
push dword [ebp + 0x10]
lea ebx, [ebp - 0x108]
push dword [ebp + 0xc]
push 0x104
call fcn.3003ca1f
mov eax, ebx
push eax
call dword [sym.imp.MSVCRT.dll_remove]
xor ecx, ecx
add esp, 0x10
cmp eax, 0xffffffff
setne cl
pop ebx
mov eax, ecx
mov ecx, dword [ebp - 4]
call fcn.300843e7
leave
ret
Function at 0x30040a13
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x30095244]
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.3005747f
test eax, eax
pop ecx
je 0x30040a64
push 0x134
push dword [ebp + 8]
push 0xc0001
call fcn.3000655a
add esp, 0xc
cmp eax, 7
jne 0x30040a52
xor esi, esi
jmp 0x30040a67
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x30040a66
xor esi, esi
inc esi
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0xc]
call fcn.3007bb49
mov edi, dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 0xc
lea ebx, [ebp - 0x404]
cmp byte [ebx], 0
je 0x30040b43
cmp esi, 1
jne 0x30040b74
push 0x3d
push ebx
call edi
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x30040b32
mov byte [esi], 0
inc esi
cmp byte [esi], 0x7b
jne 0x30040ac1
push 0x7d
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x30040ac3
mov eax, esi
push 0x3b
push eax
call edi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x408], eax
je 0x30040ade
mov byte [eax], 0
inc eax
mov dword [ebp - 0x408], eax
push dword [0x300930ac]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x30040b27
push dword [0x300930b0]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x30040b27
xor eax, eax
inc eax
test eax, eax
mov eax, dword [0x300930a4]
jne 0x30040b11
mov eax, dword [0x300930a8]
push esi
push ebx
push eax
push dword [ebp + 8]
call dword [0x30096bd4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
inc esi
jmp 0x30040b35
xor eax, eax
cmp dword [ebp + 0x14], eax
jne 0x30040b03
xor esi, esi
jmp 0x30040b0c
push 2
pop esi
mov ebx, dword [ebp - 0x408]
test ebx, ebx
jne 0x30040a8a
cmp esi, 1
jne 0x30040b74
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x30040b54
cmp byte [eax], 0
jne 0x30040b56
xor eax, eax
push eax
push dword [0x300930b4]
push dword [0x300930a8]
push dword [ebp + 8]
call dword [0x30096bd4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
inc esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.300843e7
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x3004d20d
test al, 0x10
je 0x3004d20d
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x3004d331
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x30095244]
push ebx
push 0x4019
mov dword [ebp + 0x98], eax
call fcn.30056ef4
mov ebx, eax
test ebx, ebx
pop ecx
je 0x3004d3cd
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x8c]
push eax
push edi
push ebx
mov dword [ebp - 0x7c], 0xc
mov dword [ebp - 0x80], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, eax
test esi, esi
jne 0x3004d3bb
cmp dword [ebp - 0x78], 1
jne 0x3004d3bb
lea eax, [ebp - 0x74]
push eax
call fcn.3007f305
test eax, eax
pop ecx
jne 0x3004d3bb
push dword [ebp + 0xa8]
lea eax, [ebp - 0x74]
push eax
call dword [ebp + 0xa4]
pop ecx
pop ecx
inc edi
cmp esi, 0x103
jne 0x3004d360
push ebx
call fcn.30056f10
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x98]
pop ebx
call fcn.300843e7
add ebp, 0x9c
leave
ret
Function at 0x3004fd85
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x134
mov eax, dword [0x30095244]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
xor ebx, ebx
push ebx
push ebx
push 0x150
push dword [ebp + 0x74]
mov dword [ebp + 0x68], eax
call esi
mov edi, dword [ebp + 0x78]
cmp eax, edi
je 0x3004ff3c
push dword [ebp + 0x74]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
cmp eax, ebx
jle 0x3004fdf4
inc eax
push eax
push ebx
mov dword [ebp - 0xbc], eax
call fcn.30079b76
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc8], eax
je 0x3004fdf4
push dword [ebp - 0xbc]
push dword [eax]
push dword [ebp + 0x74]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x3004fdfa
mov dword [ebp - 0xc8], ebx
push ebx
push ebx
push 0x14b
push dword [ebp + 0x74]
call esi
lea eax, [ebp - 0xb8]
push eax
push 3
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0xc4], edi
mov edi, dword [ebp + 0x7c]
mov ebx, 0x46c
push ebx
push dword [edi + 4]
call esi
test eax, eax
je 0x3004ff1d
lea eax, [ebp - 0x28]
push eax
push 4
push ebx
push dword [edi + 4]
call esi
test eax, eax
je 0x3004ff1d
lea eax, [ebp - 0xc4]
push eax
push 1
push ebx
push dword [edi + 4]
call esi
test eax, eax
je 0x3004ff1d
push 0x7fff
push dword [edi + 0x10]
lea eax, [ebp - 0x24]
push dword [ebp + 0x61]
push dword [ebp + 0x5d]
push eax
push dword [ebp - 0x33]
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [ebp - 0xc4]
push dword [eax]
call fcn.3004f0f0
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax]
mov ebx, dword [eax + 0x16]
mov eax, dword [eax + 0x1a]
add esp, 0x20
cmp dword [0x30096e78], 0x400
sbb edi, edi
and dword [ebp - 0xbc], 0
and edi, 0x7fff801f
add edi, 0x7fe0
test eax, eax
je 0x3004fec6
mov eax, dword [eax]
mov dword [ebp - 0xc0], eax
jmp 0x3004ff0a
and dword [ebp - 0xc0], 0
jmp 0x3004ff0a
cmp dword [ebp - 0xbc], edi
jge 0x3004ff0e
push dword [ebp - 0xc0]
push 0
push 0x143
push dword [ebp + 0x74]
call esi
mov eax, dword [ebp - 0xc0]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x3004fef2
sub eax, ecx
inc eax
sub ebx, eax
inc dword [ebp - 0xbc]
add dword [ebp - 0xc0], eax
test ebx, ebx
jg 0x3004fecf
push dword [ebp + 0x78]
push 0
push 0x151
push dword [ebp + 0x74]
call esi
mov esi, dword [ebp - 0xc8]
test esi, esi
je 0x3004ff3c
push dword [esi]
push dword [ebp + 0x74]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
push 0
call fcn.30079b24
pop ecx
pop ecx
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
pop ebx
call fcn.300843e7
add ebp, 0x6c
leave
ret