joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4416d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
xor edi, edi
cmp ebp, edi
je 0x441720
push edi
push 1
mov ecx, ebp
call fcn.00401210
cmp byte [ebp + 0x17], 0
mov dword [esp + 0x24], eax
jne 0x4416fa
mov esi, dword [ebp + 0xc]
jmp 0x4416fc
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x441717
test byte [esi + 0x15], 8
je 0x44170f
mov eax, esi
call fcn.00401150
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x44174e
mov esi, 0x4ada9c
mov ebx, dword [esi]
jmp 0x44174e
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.00476a00
add esp, 0xc
test eax, eax
jne 0x44174a
mov edx, dword [0x4a8978]
mov dword [edx + 0x30], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x441796
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edi
test eax, eax
je 0x44178b
push 0
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
cmp dword [esp + 0x20], ebx
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a8978]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x4417b1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x4417c2
mov edx, dword [esp + 0x24]
push edx
call fcn.004870d8
add esp, 4
mov edx, dword [esp + 0x1c]
test edi, edi
sete al
movzx ecx, al
push ecx
push edx
call fcn.0042ed60
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x441870
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
call fcn.0040e270
test al, al
je 0x441896
push 0x10
push 0
push edi
call fcn.00488b65
add esp, 0xc
jmp 0x44189f
push edi
call fcn.00488646
add esp, 4
mov ebx, 1
cmp eax, ebx
je 0x441906
call fcn.00453630
test al, al
je 0x441906
mov eax, dword [0x4a8978]
test byte [eax + 0xe0], bl
jne 0x4418e1
mov ecx, dword [0x4acad0]
push ebx
push 0
push 0xffffffffffffffff
push 0x49be90
push ecx
call fcn.00476f70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov ecx, dword [esp + 0x120]
push 0x49a87d
push 0
push 0x49be90
call fcn.0042ecc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x441952
mov edx, dword [0x4a8978]
test byte [edx + 0xe0], bl
jne 0x4418e1
push ebx
push 0
push eax
mov eax, dword [0x4acad0]
push 0x49be90
push eax
call fcn.00476f70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov esi, dword [esp + 0x124]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x441960
sub eax, edx
cmp eax, 0x104
jb 0x441975
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.0048f9b0
lea edx, [esp + 0x20]
add esp, 0xc
push edx
call fcn.00489a70
add esp, 4
push 0xa
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4419e1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4419e1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4419e1
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
jmp 0x4419e3
xor bl, bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x120]
test bl, bl
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042ed60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
Function at 0x441a10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4ac218]
sub esp, 0x80
push esi
mov esi, eax
call fcn.00414330
test esi, esi
je 0x441ac5
cmp byte [esi], 0
je 0x441ac5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x441a7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a8978]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x441af9
mov eax, dword [0x4acad0]
push 1
push 0
push esi
push 0x49be90
push eax
call fcn.00476f70
pop esi
add esp, 0x80
ret
mov edx, dword [0x4acad0]
mov ecx, dword [0x4a8978]
push 1
push 0
push 0xffffffffffffffff
push 0x49a898
push edx
mov dword [ecx + 0x30], 0
call fcn.00476f70
mov edx, esi
lea eax, [esp + 4]
call fcn.00474fc0
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4ac218]
push eax
call fcn.00476f70
pop esi
add esp, 0x80
ret
mov eax, dword [0x4a8978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x441af9
mov ecx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49be90
push ecx
call fcn.00476f70
pop esi
add esp, 0x80
ret
push 0x49a87d
push 0
push 0x49be90
mov ecx, edi
call fcn.0042ecc0
pop esi
add esp, 0x80
ret
Function at 0x442440
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4ac218]
sub esp, 0x148
push ebx
push esi
call fcn.00414330
test edi, edi
je 0x4425ae
cmp byte [edi], 0
je 0x4425ae
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4424a0
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x44250b
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4424ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a8978]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x4425e2
mov edx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49be90
push edx
call fcn.00476f70
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
or ecx, dword [esp + 0x30]
xor esi, esi
or eax, esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x442513
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, byte [edx]
test esi, 0xffffff80
jne 0x44253b
push 2
push esi
call fcn.004885fe
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x44253b
and esi, 0xffffffdf
mov edx, esi
movsx edx, dl
sub edx, 0x4b
je 0x442552
sub edx, 2
jne 0x442568
push edx
push 0x100000
jmp 0x442559
push 0
push 0x400
push eax
push ecx
call fcn.00495b20
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4acad0]
mov eax, dword [0x4a8978]
push 1
push 0
push 0xffffffffffffffff
push 0x49a898
push ecx
mov dword [eax + 0x30], 0
call fcn.00476f70
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4ac218]
call fcn.004010d0
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4a8978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x4425e2
mov ecx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49be90
push ecx
call fcn.00476f70
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x49a87d
push 0
push 0x49be90
call fcn.0042ecc0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44f120
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44f127
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44f14f
dec eax
je 0x44f141
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
ret
lea edx, [ebx - 1]
cmp dl, 5
ja 0x44f15c
cmp bl, 3
jne 0x44f163
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44f189
cmp dword [0x4ac400], 0
je 0x44f179
movzx ecx, bl
mov al, byte [ecx + 0x4ac2f0]
shr al, 7
ret
movzx edx, bl
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
cmp dword [0x4ac3fc], 0
je 0x44f1b8
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00412bc0
test al, al
je 0x44f1ab
push 1
call fcn.004129c0
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4ac2f0]
shr al, 7
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
Function at 0x44f700
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov esi, ecx
push esi
push 0
mov edi, eax
push 0x410
mov byte [edi], 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44f741
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44f741
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
cmp byte [esp + 0x11c], 0
push 0x104
push edi
push 0
push ebp
je 0x44f75c
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x44f762
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4ae370], 1
mov ebx, eax
jne 0x44f792
or dword [0x4ae370], 1
push str.GetProcessImageFileNameA
push str.psapi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ae36c], eax
jmp 0x44f797
mov eax, dword [0x4ae36c]
test ebx, ebx
jne 0x44f894
test eax, eax
je 0x44f894
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x44f894
cmp byte [esp + 0x11c], 0
je 0x44f809
push 0x5c
push edi
call fcn.0048951d
add esp, 8
test eax, eax
je 0x44f894
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x44f7e0
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.00487ca0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov word [esp + 0x11], 0x3a
mov byte [esp + 0x10], 0x41
push 0x104
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov esi, eax
cmp esi, 2
jbe 0x44f84d
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00489459
add esp, 0xc
test eax, eax
jne 0x44f84d
cmp byte [esi + edi], 0x5c
je 0x44f86f
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x44f815
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov al, byte [esp + 0x10]
mov cl, byte [esp + 0x11]
sub ebx, esi
lea edx, [ebx + 1]
push edx
add esi, edi
mov byte [edi], al
mov byte [edi + 1], cl
push esi
add edi, 2
push edi
call fcn.00487ca0
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
Function at 0x452aa0
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x452b54
cmp byte [eax], bl
je 0x452b54
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x452ad6
sub eax, edx
cmp eax, ebx
je 0x452af0
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x452af0
mov byte [eax], bl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x452af7
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea edx, [esp + 4]
lea eax, [esp + 0x28]
mov ecx, 0x4054
push edx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
setne al
movzx ecx, al
push ecx
push esi
call fcn.0042ed60
pop ebx
add esp, 0x12c
ret
mov edx, dword [0x4a8978]
test byte [edx + 0xe0], 1
jne 0x452b80
mov eax, dword [0x4acad0]
push 1
push ebx
push 0xffffffffffffffff
push 0x49be90
push eax
call fcn.00476f70
pop ebx
add esp, 0x12c
ret
push 0x49a87d
push ebx
push 0x49be90
mov ecx, esi
call fcn.0042ecc0
pop ebx
add esp, 0x12c
ret
Function at 0x452ba0
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [0x4ac218]
sub esp, 0x8c
push ebp
mov ebp, dword [esp + 0x94]
push edi
mov edi, eax
call fcn.00414330
test edi, edi
je 0x452d18
cmp byte [edi], 0
je 0x452d18
push esi
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x452c39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a8978]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x452c1a
mov ecx, dword [0x4acad0]
push 1
push esi
push 0xffffffffffffffff
push 0x49be90
push ecx
call fcn.00476f70
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x49a87d
push 0
push 0x49be90
mov ecx, ebp
call fcn.0042ecc0
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push ebx
push esi
call fcn.00487279
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x452ced
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x49cdbc
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x452ced
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
mov esi, 0x80
lea edi, [esp + 0x30]
call fcn.00474080
push ebx
call fcn.004870d8
mov eax, dword [0x4acad0]
mov edx, dword [0x4a8978]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push 0x49a898
push eax
mov dword [edx + 0x30], 0
call fcn.00476f70
mov edx, dword [0x4ac218]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.00476f70
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a8978]
push ebx
mov dword [ecx + 0x30], eax
call fcn.004870d8
add esp, 4
push ebp
call fcn.004315a0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
mov eax, dword [0x4a8978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x452d4f
mov edx, dword [0x4acad0]
push 1
push 0
push 0xffffffffffffffff
push 0x49be90
push edx
call fcn.00476f70
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x49a87d
push 0
push 0x49be90
mov ecx, ebp
call fcn.0042ecc0
pop edi
pop ebp
add esp, 0x8c
ret 4
Function at 0x453000
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp byte [esp + 0x134], bl
jne 0x453026
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop ebx
add esp, 0x12c
ret
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x453043
sub eax, edx
cmp eax, ebx
je 0x45305d
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x45305d
mov byte [eax], bl
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x453071
test al, 0x10
jne 0x45307b
xor al, al
pop ebx
add esp, 0x12c
ret
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x453082
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea eax, [esp + 4]
lea ecx, [esp + 0x28]
mov edx, 0x614
push eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
mov word [esp + 0x18], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop ebx
add esp, 0x12c
ret
Function at 0x453590
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x453613
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x4535fe
dec eax
jne 0x453620
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4535b7
sub eax, edx
cmp eax, 0x104
ja 0x453620
inc eax
call fcn.00490ae0
mov esi, esp
mov edx, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4535d5
push 0x5c
push esi
call fcn.0048951d
add esp, 8
test eax, eax
je 0x453620
push esi
mov byte [eax], 0
call fcn.00453590
add esp, 4
test al, al
je 0x453620
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
test al, 0x10
je 0x453620
mov al, 1
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
xor al, al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret

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

Disassembly:
sub esp, 0x144
push 0x2a
push esi
call fcn.004880b1
add esp, 8
test eax, eax
jne 0x453668
push 0x3f
push esi
call fcn.004880b1
add esp, 8
test eax, eax
jne 0x453668
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
add esp, 0x144
ret
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x453681
xor al, al
add esp, 0x144
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
add esp, 0x144
ret

Function at 0x4536a0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4536c1
xor al, al
add esp, 0x18
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4536bb
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add esp, 0x18
ret

Function at 0x453720
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x453771
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x453771
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x453771
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x464e60
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [eax + 4]
test eax, eax
je 0x464e70
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret

Function at 0x464e80
Capabilities:
Hide graphical window

Disassembly:
cmp dword [eax + 0x24], 0
mov eax, dword [eax + 4]
jne 0x464e9c
test eax, eax
je 0x464eaf
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret
push 0
push 0x2af80006
push 0x414
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
ret

Function at 0x464ef0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x34
cmp dword [edi + 4], 0
push ebx
push ebp
push esi
je 0x465046
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x464f36
xor esi, esi
mov eax, dword [edi + 0x18]
cmp dword [eax + esi + 8], 0
je 0x464f2d
cmp byte [eax + esi + 4], 6
je 0x464f2d
mov edx, dword [esi + eax + 8]
lea ecx, [esi + eax]
push edx
push edi
mov eax, str.Submit
call fcn.004650f0
inc ebp
add esi, 0x14
cmp ebp, dword [edi + 0x10]
jb 0x464f09
xor esi, esi
xor ebx, ebx
xor ebp, ebp
cmp esi, dword [edi + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
je 0x464f6b
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000
je 0x464fb4
cmp dword [esp + 0x10], 1
jne 0x464fa3
cmp ebx, 1
jle 0x464fa3
cmp ebp, 0xffffffff
jne 0x464f7e
xor ebp, ebp
push 0xa
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.00486d52
mov edx, dword [esp + 0x24]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.00476f70
cmp esi, dword [edi + 0x10]
je 0x465033
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x14]
cmp byte [eax + ecx + 4], 6
jne 0x46501c
mov esi, dword [eax + ecx + 8]
inc ebx
test esi, esi
je 0x464fd3
inc dword [esp + 0x10]
mov dword [esp + 0x18], esi
mov edx, dword [eax + ecx]
push 0
push 0
push 0xf0
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x465007
test ebp, ebp
je 0x464ff4
or ebp, 0xffffffff
jmp 0x464ff6
mov ebp, ebx
test esi, esi
je 0x46501c
push 1
push 0
push 0xffffffffffffffff
push 0x49be90
jmp 0x465016
test esi, esi
je 0x46501c
push 1
push 0
push 0xffffffffffffffff
push 0x49a898
push esi
call fcn.00476f70
mov esi, dword [esp + 0x1c]
add dword [esp + 0x14], 0x14
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [edi + 0x10]
jbe 0x464f4f
cmp byte [esp + 0x44], 0
je 0x465046
mov eax, dword [edi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 4
Function at 0x467a50
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, eax
mov al, byte [esi]
xor cl, cl
mov byte [esp + 0xb], cl
test al, al
je 0x467a88
cmp al, 0x21
je 0x467a79
cmp al, 0x2b
je 0x467a74
cmp al, 0x5e
jne 0x467a84
or cl, 2
jmp 0x467a7c
or cl, 1
jmp 0x467a7c
or cl, 4
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x467a63
mov byte [esp + 0xb], cl
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.004132c0
mov bl, al
add esp, 0xc
mov byte [esp + 0xc], bl
test bl, bl
jne 0x467ab1
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, esi
call fcn.00413210
movzx eax, ax
test ax, ax
jne 0x467ad6
mov eax, dword [esp + 0xc]
push eax
xor bl, bl
call fcn.00413820
mov bl, byte [esp + 0x10]
add esp, 4
movzx eax, ax
test eax, 0x100
je 0x467ae2
or byte [esp + 0xb], 8
movzx eax, byte [esp + 0xb]
movzx ecx, bl
shl eax, 8
pop esi
or eax, ecx
pop ebx
add esp, 8
ret
Function at 0x4690a0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x10
movzx eax, byte [esi + 4]
push ebp
mov ebp, dword [esp + 0x18]
add eax, 0xfffffff7
push edi
mov dword [esp + 8], CreateStatusWindowA
cmp eax, 8
ja case.0x4690c1.12
jmp dword [eax*4 + 0x4691c0]
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x19f
push eax
call edi
cmp eax, 0xffffffff
je 0x46916e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x198
push edx
call edi
jmp 0x46916e
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0xffffffffffffffff
push 0x100c
push eax
call edi
cmp eax, 0xffffffff
je 0x46916e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x18], 2
call edi
jmp 0x46916e
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 9
push 0x110a
push eax
call edi
test eax, eax
je 0x46916e
mov edx, dword [esi]
lea ecx, [esp + 8]
push ecx
push 1
push 0x1104
push edx
mov dword [esp + 0x18], eax
call edi
jmp 0x46916e
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 8], 0x80000000
jne 0x469188
mov eax, dword [esi]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x46919a
mov edx, dword [esi]
push 2
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx + 2]
pop edi
mov dword [ebp + 4], ecx
pop ebp
add esp, 0x10
ret 4