joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442030
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
mov ebx, edx
call fcn.0040d320
test al, al
je 0x442058
push 0x10
push 0
push edi
call fcn.0048f13b
add esp, 0xc
jmp 0x442061
push edi
call fcn.0048eda6
add esp, 4
cmp eax, 1
je 0x4420c6
call fcn.00454350
test al, al
je 0x4420c6
mov eax, dword [0x4c49ac]
cmp byte [eax + 0x108], 0
jne 0x4420a1
mov ecx, dword [0x4c8ca8]
push 1
push 0
push 0xffffffffffffffff
push 0x4a4480
push ecx
call fcn.00477420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov ecx, dword [esp + 0x224]
push 0x4ac2b4
push 0
push 0x4a4480
call fcn.0042dfe0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x442114
mov edx, dword [0x4c49ac]
cmp byte [edx + 0x108], 0
jne 0x4420a1
push 1
push 0
push eax
mov eax, dword [0x4c8ca8]
push 0x4a4480
push eax
call fcn.00477420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x442120
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x44213b
mov eax, 0x103
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
call fcn.00495e90
lea eax, [esp + 0x24]
add esp, 0xc
push eax
call fcn.0048fe33
add esp, 4
push 0xa
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4421aa
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4421aa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4421aa
push 0
lea edx, [esp + 0x18]
push edx
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 0x4421ac
xor bl, bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x224]
test bl, bl
sete al
movzx ecx, al
push ecx
push edx
call fcn.0042e0d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
Function at 0x4421e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4c83f0]
sub esp, 0x100
push esi
mov esi, eax
call fcn.00413390
test esi, esi
je 0x442296
cmp word [esi], 0
je 0x442296
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44224d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c49ac]
cmp byte [ecx + 0x108], 0
mov dword [ecx + 0x30], eax
jne 0x4422ca
mov eax, dword [0x4c8ca8]
push 1
push 0
push esi
push 0x4a4480
push eax
call fcn.00477420
pop esi
add esp, 0x100
ret
mov edx, dword [0x4c8ca8]
mov ecx, dword [0x4c49ac]
push 1
push 0
push 0xffffffffffffffff
push 0x4a1928
push edx
mov dword [ecx + 0x30], 0
call fcn.00477420
mov edx, esi
lea eax, [esp + 4]
call fcn.004755f0
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4c83f0]
push eax
call fcn.00477420
pop esi
add esp, 0x100
ret
mov eax, dword [0x4c49ac]
cmp byte [eax + 0x108], 0
mov dword [eax + 0x30], 0x57
jne 0x4422ca
mov ecx, dword [0x4c8ca8]
push 1
push 0
push 0xffffffffffffffff
push 0x4a4480
push ecx
call fcn.00477420
pop esi
add esp, 0x100
ret
push 0x4ac2b4
push 0
push 0x4a4480
mov ecx, edi
call fcn.0042dfe0
pop esi
add esp, 0x100
ret

Function at 0x4422f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
mov edi, eax
cmp word [eax], bx
je 0x4423b6
nop
movzx esi, word [edi]
test esi, 0xffffff80
jne 0x44232d
push 2
push esi
call fcn.0048ed5e
add esp, 8
test eax, eax
je 0x44232d
and esi, 0xffffffdf
movzx eax, si
add eax, 0xffffffd5
cmp eax, 0x33
ja case.0x44233f.44
movzx eax, byte [eax + 0x442408]
jmp dword [eax*4 + 0x4423e4]
movzx ebx, word [edi]
jmp case.0x44233f.44
mov eax, 1
jmp 0x44237a
mov eax, 0x20
jmp 0x44237a
mov eax, 4
jmp 0x44237a
mov eax, 2
jmp 0x44237a
mov eax, 0x80
jmp 0x44237a
mov eax, 0x1000
jmp 0x44237a
mov eax, 0x100
mov ecx, ebx
sub ecx, 0x2b
je 0x44239d
sub ecx, 2
je 0x442391
sub ecx, 0x31
jne case.0x44233f.44
xor dword [esp + 0x14], eax
jmp case.0x44233f.44
not eax
and dword [esp + 0x10], eax
and dword [esp + 0x14], eax
jmp case.0x44233f.44
mov ecx, eax
not ecx
and dword [esp + 0x10], ecx
or dword [esp + 0x14], eax
add edi, 2
cmp word [edi], 0
jne 0x442310
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x2c]
push 0x442440
push eax
push ecx
mov ecx, dword [esp + 0x34]
push edx
call fcn.00442480
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
Function at 0x442c80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4c83f0]
sub esp, 0x258
push ebx
push esi
call fcn.00413390
test edi, edi
je 0x442ded
cmp word [edi], 0
je 0x442ded
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x442ce1
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 0x442d4c
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x442d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c49ac]
cmp byte [ecx + 0x108], 0
mov dword [ecx + 0x30], eax
jne 0x442e21
mov edx, dword [0x4c8ca8]
push 1
push 0
push 0xffffffffffffffff
push 0x4a4480
push edx
call fcn.00477420
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 0x442d54
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, word [edx]
test esi, 0xffffff80
jne 0x442d7c
push 2
push esi
call fcn.0048ed5e
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x442d7c
and esi, 0xffffffdf
movzx edx, si
sub edx, 0x4b
je 0x442d91
sub edx, 2
jne 0x442da7
push edx
push 0x100000
jmp 0x442d98
push 0
push 0x400
push eax
push ecx
call fcn.0049c4e0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4c8ca8]
mov eax, dword [0x4c49ac]
push 1
push 0
push 0xffffffffffffffff
push 0x4a1928
push ecx
mov dword [eax + 0x30], 0
call fcn.00477420
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4c83f0]
call fcn.004010e0
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4c49ac]
cmp byte [eax + 0x108], 0
mov dword [eax + 0x30], 0x57
jne 0x442e21
mov ecx, dword [0x4c8ca8]
push 1
push 0
push 0xffffffffffffffff
push 0x4a4480
push ecx
call fcn.00477420
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x4ac2b4
push 0
push 0x4a4480
call fcn.0042dfe0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44f9f0
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44f9f7
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44fa1f
dec eax
je 0x44fa11
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 0x44fa2c
cmp bl, 3
jne 0x44fa33
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44fa59
cmp dword [0x4c85dc], 0
je 0x44fa49
movzx ecx, bl
mov al, byte [ecx + 0x4c84c8]
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 [0x4c85d8], 0
je 0x44fa88
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00411aa0
test al, al
je 0x44fa7b
push 1
call fcn.004118d0
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4c84c8]
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 0x450020
Capabilities:
Get disk information

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
xor eax, eax
push esi
push eax
push 0x410
mov word [edi], ax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x450062
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x450062
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
cmp byte [esp + 0x224], 0
push 0x104
push edi
push 0
push ebp
je 0x45007d
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x450083
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test byte [0x4cbb94], 1
mov ebx, eax
jne 0x4500b3
or dword [0x4cbb94], 1
push str.GetProcessImageFileNameW
push str.psapi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cbb90], eax
jmp 0x4500b8
mov eax, dword [0x4cbb90]
test ebx, ebx
jne 0x4501cf
test eax, eax
je 0x4501cf
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x4501cf
cmp byte [esp + 0x224], 0
je 0x450133
push 0x5c
push edi
call fcn.0048f81f
add esp, 8
test eax, eax
je 0x4501cf
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x450100
sub ecx, esi
sar ecx, 1
add ecx, ecx
push ecx
add eax, 2
push eax
push edi
call fcn.0048e580
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, 0x210
ret
mov ecx, 0x41
mov dword [esp + 0x12], 0x3a
mov word [esp + 0x10], cx
push 0x104
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
cmp esi, 2
jbe 0x45017e
sub esi, 2
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.0048f7e6
add esp, 0xc
test eax, eax
jne 0x45017e
cmp word [edi + esi*2], 0x5c
je 0x4501a4
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x450145
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
mov dx, word [esp + 0x10]
mov ax, word [esp + 0x12]
sub ebx, esi
mov word [edi], dx
lea ecx, [ebx + ebx + 2]
push ecx
lea edx, [edi + esi*2]
mov word [edi + 2], ax
push edx
add edi, 4
push edi
call fcn.0048e580
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, 0x210
ret
Function at 0x45006d
Capabilities:
Get disk information

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
xor eax, eax
push esi
push eax
push 0x410
mov word [edi], ax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x450062
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x450062
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
cmp byte [esp + 0x224], 0
push 0x104
push edi
push 0
push ebp
je 0x45007d
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x450083
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test byte [0x4cbb94], 1
mov ebx, eax
jne 0x4500b3
or dword [0x4cbb94], 1
push str.GetProcessImageFileNameW
push str.psapi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cbb90], eax
jmp 0x4500b8
mov eax, dword [0x4cbb90]
test ebx, ebx
jne 0x4501cf
test eax, eax
je 0x4501cf
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x4501cf
cmp byte [esp + 0x224], 0
je 0x450133
push 0x5c
push edi
call fcn.0048f81f
add esp, 8
test eax, eax
je 0x4501cf
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x450100
sub ecx, esi
sar ecx, 1
add ecx, ecx
push ecx
add eax, 2
push eax
push edi
call fcn.0048e580
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, 0x210
ret
mov ecx, 0x41
mov dword [esp + 0x12], 0x3a
mov word [esp + 0x10], cx
push 0x104
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
cmp esi, 2
jbe 0x45017e
sub esi, 2
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.0048f7e6
add esp, 0xc
test eax, eax
jne 0x45017e
cmp word [edi + esi*2], 0x5c
je 0x4501a4
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x450145
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
mov dx, word [esp + 0x10]
mov ax, word [esp + 0x12]
sub ebx, esi
mov word [edi], dx
lea ecx, [ebx + ebx + 2]
push ecx
lea edx, [edi + esi*2]
mov word [edi + 2], ax
push edx
add edi, 4
push edi
call fcn.0048e580
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, 0x210
ret
Function at 0x453460
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x230
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x453528
cmp word [eax], bx
je 0x453528
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x453497
sub eax, edx
sar eax, 1
cmp eax, ebx
je 0x4534bb
cmp word [esp + eax*2 + 0x26], 0x5c
lea eax, [esp + eax*2 + 0x26]
jne 0x4534bb
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4534c2
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x2a], dx
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_SHFileOperationW]
test eax, eax
setne al
movzx ecx, al
push ecx
push esi
call fcn.0042e0d0
pop ebx
add esp, 0x230
ret
mov edx, dword [0x4c49ac]
cmp byte [edx + 0x108], bl
jne 0x453553
mov eax, dword [0x4c8ca8]
push 1
push ebx
push 0xffffffffffffffff
push 0x4a4480
push eax
call fcn.00477420
pop ebx
add esp, 0x230
ret
push 0x4ac2b4
push ebx
push 0x4a4480
mov ecx, esi
call fcn.0042dfe0
pop ebx
add esp, 0x230
ret
Function at 0x453570
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [0x4c83f0]
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
push edi
mov edi, eax
call fcn.00413390
test edi, edi
je 0x4536e9
cmp word [edi], 0
je 0x4536e9
push esi
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x45360a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c49ac]
cmp byte [ecx + 0x108], 0
mov dword [ecx + 0x30], eax
jne 0x4535eb
mov ecx, dword [0x4c8ca8]
push 1
push esi
push 0xffffffffffffffff
push 0x4a4480
push ecx
call fcn.00477420
pop esi
pop edi
pop ebp
add esp, 0x10c
ret 4
push 0x4ac2b4
push 0
push 0x4a4480
mov ecx, ebp
call fcn.0042dfe0
pop esi
pop edi
pop ebp
add esp, 0x10c
ret 4
push ebx
push esi
call fcn.0048db94
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4536be
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x4a594c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4536be
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.00474600
push ebx
call fcn.0048f16f
mov eax, dword [0x4c8ca8]
mov edx, dword [0x4c49ac]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push 0x4a1928
push eax
mov dword [edx + 0x30], 0
call fcn.00477420
mov edx, dword [0x4c83f0]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.00477420
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x10c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c49ac]
push ebx
mov dword [ecx + 0x30], eax
call fcn.0048f16f
add esp, 4
push ebp
call fcn.004309b0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x10c
ret 4
mov eax, dword [0x4c49ac]
cmp byte [eax + 0x108], 0
mov dword [eax + 0x30], 0x57
jne 0x453720
mov edx, dword [0x4c8ca8]
push 1
push 0
push 0xffffffffffffffff
push 0x4a4480
push edx
call fcn.00477420
pop edi
pop ebp
add esp, 0x10c
ret 4
push 0x4ac2b4
push 0
push 0x4a4480
mov ecx, ebp
call fcn.0042dfe0
pop edi
pop ebp
add esp, 0x10c
ret 4
Function at 0x454290
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_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x454335
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x454320
dec eax
jne 0x454342
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4542c0
sub eax, edx
sar eax, 1
cmp eax, 0x104
ja 0x454342
lea eax, [eax + eax + 2]
call fcn.004950e0
mov esi, esp
mov edx, esi
mov eax, edi
sub edx, edi
jmp 0x4542f0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4542f0
push 0x5c
push esi
call fcn.0048f81f
add esp, 8
test eax, eax
je 0x454342
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.00454290
add esp, 4
test al, al
je 0x454342
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
test al, 0x10
je 0x454342
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 0x454350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x254
push 0x2a
push esi
call fcn.0048e8e1
add esp, 8
test eax, eax
jne 0x454388
push 0x3f
push esi
call fcn.0048e8e1
add esp, 8
test eax, eax
jne 0x454388
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add esp, 0x254
ret
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4543a1
xor al, al
add esp, 0x254
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
add esp, 0x254
ret

Function at 0x4544f0
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 0x454511
xor al, al
add esp, 0x18
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
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 0x45450b
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 0x454570
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_SendMessageTimeoutW]
test eax, eax
jne 0x4545c1
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4545c1
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4545c1
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 0x4652d0
Capabilities:
Hide graphical window

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

Function at 0x4652f0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [eax + 0x24], 0
mov eax, dword [eax + 4]
jne 0x46530c
test eax, eax
je 0x46531f
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_PostMessageW]
mov eax, 1
ret

Function at 0x465360
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x54
cmp dword [edi + 4], 0
push ebx
push ebp
push esi
je 0x4654b6
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x4653a6
xor esi, esi
mov eax, dword [edi + 0x18]
cmp dword [eax + esi + 8], 0
je 0x46539d
cmp byte [eax + esi + 4], 6
je 0x46539d
mov edx, dword [esi + eax + 8]
lea ecx, [esi + eax]
push edx
push edi
mov eax, str.Submit
call fcn.00465580
inc ebp
add esi, 0x14
cmp ebp, dword [edi + 0x10]
jb 0x465379
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 0x4653db
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_GetWindowLongW]
test eax, 0x20000
je 0x465424
cmp dword [esp + 0x10], 1
jne 0x465413
cmp ebx, 1
jle 0x465413
cmp ebp, 0xffffffff
jne 0x4653ee
xor ebp, ebp
push 0xa
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.0048d885
mov edx, dword [esp + 0x24]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.00477420
cmp esi, dword [edi + 0x10]
je 0x4654a3
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 0x46548c
mov esi, dword [eax + ecx + 8]
inc ebx
test esi, esi
je 0x465443
inc dword [esp + 0x10]
mov dword [esp + 0x18], esi
mov edx, dword [eax + ecx]
push 0
push 0
push pe_nt_image_headers32
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x465477
test ebp, ebp
je 0x465464
or ebp, 0xffffffff
jmp 0x465466
mov ebp, ebx
test esi, esi
je 0x46548c
push 1
push 0
push 0xffffffffffffffff
push 0x4a4480
jmp 0x465486
test esi, esi
je 0x46548c
push 1
push 0
push 0xffffffffffffffff
push 0x4a1928
push esi
call fcn.00477420
mov esi, dword [esp + 0x1c]
add dword [esp + 0x14], 0x14
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [edi + 0x10]
jbe 0x4653bf
cmp byte [esp + 0x64], 0
je 0x4654b6
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, 0x54
ret 4
Function at 0x4654d0
Capabilities:
Get graphical window text

Disassembly:
cmp ecx, 0x2af8
jae 0x465574
test edx, edx
je 0x465574
cmp dword [edx + 4], 0
je 0x465574
cmp ecx, dword [edx + 0x10]
jae 0x465574
mov edx, dword [edx + 0x18]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*4]
test eax, eax
je 0x465543
mov edx, dword [ecx + 8]
test edx, edx
je 0x465536
mov edx, dword [edx + 0x18]
push esi
mov esi, eax
movzx ecx, word [edx]
mov word [esi], cx
add edx, 2
add esi, 2
test cx, cx
jne 0x465511
lea edx, [eax + 2]
pop esi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x465526
sub eax, edx
sar eax, 1
ret
push 0x40
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
mov eax, dword [ecx + 8]
test eax, eax
je 0x465560
mov eax, dword [eax + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x465550
sub eax, edx
sar eax, 1
ret
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, 0x3f
jbe 0x46557f
mov eax, 0x3f
ret
test eax, eax
je 0x46557d
xor edx, edx
mov word [eax], dx
xor eax, eax
ret