joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4941d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
mov ecx, edx
mov ebx, 0x80004005
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4941f0
sub ecx, esi
lea esi, [edi + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004033b0
cmp dword [esi + 0x14], 8
jb 0x494213
mov esi, dword [esi]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x4942d2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x4942c9
mov eax, dword [edi + 0x28]
test eax, eax
je 0x49425b
push eax
call fcn.004bee44
add esp, 4
push esi
call fcn.004bee3b
add esp, 4
mov dword [edi + 0x28], eax
lea ecx, [ebp - 4]
mov dword [edi + 0x2c], esi
push 0
push ecx
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4942c9
xor eax, eax
cmp dword [ebp - 4], eax
sete al
cmp eax, esi
je 0x4942c9
mov esi, dword [edi + 0x28]
mov eax, dword [ebp - 8]
add eax, esi
mov dword [ebp - 0xc], eax
cmp esi, eax
jae 0x4942c9
lea ebx, [ebx]
movzx eax, word [esi]
lea ecx, [esi + 4]
cmp eax, 4
ja 0x4942fe
je 0x4942dd
sub eax, 1
je 0x4942bc
sub eax, 2
jne 0x494310
mov dword [edi + 0xc], ecx
jmp 0x494310
cmp dword [ecx], 0x29b
je 0x494310
mov ebx, 0x80004005
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 4]
mov dword [ebp - 8], ecx
cmp eax, dword [edi + 8]
je 0x4942f0
mov dword [eax], ecx
add dword [edi + 4], 4
jmp 0x494310
lea ecx, [ebp - 8]
push ecx
push eax
mov ecx, edi
call fcn.00451630
jmp 0x494310
cmp eax, 0xffff
jne 0x494310
xor eax, eax
cmp dword [ecx], 0x29b
cmove ebx, eax
movzx eax, word [esi + 2]
add esi, 4
add esi, eax
cmp esi, dword [ebp - 0xc]
jb 0x4942a0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x494520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6ee2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x4945c0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4945b3
jmp 0x49460b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x49461e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x49461e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494600
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004033b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x4982d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7339
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp + 0xc]
mov dword [ebp - 0x34], 1
cmovae eax, dword [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x2c], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x498437
xor esi, esi
cmp dword [ebp - 0x2c], esi
jle 0x498430
lea ecx, [ecx]
mov edx, dword [eax + esi*4]
test edx, edx
je 0x498426
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, edx
mov dword [ebp - 0x14], 7
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x498384
sub eax, ebx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.004033b0
mov ecx, dword [edi + 4]
mov byte [ebp - 4], 2
cmp ecx, dword [edi + 8]
je 0x4983dd
mov eax, dword [ebp - 0x28]
mov edx, 7
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
xor eax, eax
add dword [edi + 4], 0x18
mov word [ebp - 0x28], ax
jmp 0x4983ec
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, edi
call fcn.0040e990
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x498423
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x498419
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x498463
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov eax, dword [ebp - 0x30]
inc esi
cmp esi, dword [ebp - 0x2c]
jl 0x498360
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x498473
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x498469
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x498469
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x4984a0
Capabilities:
Patch process command line

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7381
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x53d9f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
xor eax, eax
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
xor esi, esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x498519
mov esi, eax
mov dword [ebp - 0x14], esi
cmp eax, 0xffffffff
je 0x498519
mov bl, 1
jmp 0x49851b
xor bl, bl
push str.NtQueryInformationProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0x18
lea ecx, [ebp - 0x38]
push ecx
push 0
push esi
call eax
mov edx, dword [ebp - 0x34]
xor ecx, ecx
test edx, edx
movzx eax, bl
cmovne ecx, eax
test cl, cl
je 0x4985e3
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x18]
push 0
push 4
push eax
lea eax, [edx + 0x10]
push eax
push esi
call ebx
test eax, eax
je 0x4985e3
push 0
push 8
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x40
push eax
push esi
call ebx
test eax, eax
je 0x4985e3
movzx eax, word [ebp - 0x20]
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
movzx eax, word [ebp - 0x20]
add eax, 2
push eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
movzx eax, word [ebp - 0x20]
add esp, 0x10
push 0
push eax
push ebx
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4985d9
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4985c1
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, edi
call fcn.004033b0
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test esi, esi
je 0x4985f3
cmp esi, 0xffffffff
je 0x4985f3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49ad20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x49aea3
cmp word [edi], 0
je 0x49aea3
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x49aea3
mov ecx, edi
push esi
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49ad51
sub ecx, edx
sar ecx, 1
add ecx, ecx
mov dword [ebp - 4], ecx
je 0x49ae9a
jmp 0x49ad70
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x49ada1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x49addf
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x49ae2a
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x49ae06
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
add edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x49ad70
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x49adf4
movzx esi, si
or esi, 0x80070000
push esi
push str.Failed_WriteFile:_0x_08x.
push str.kupdate::KIPCMessage::SendIPCMessage
push 0x39
jmp 0x49ae8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x49ae1b
movzx esi, si
or esi, 0x80070000
push esi
push str.Failed_GetOverlappedResult:_0x_08x.
push str.kupdate::KIPCMessage::SendIPCMessage
push 0x47
jmp 0x49ae8b
push ebx
call dword [sym.imp.KERNEL32.dll_CancelIo]
test eax, eax
je 0x49ae4b
push 1
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x49ae79
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x49ae5d
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_CancelIo:_0x_08x.
push str.kupdate::CancelPendingIO
push 0x1f
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcutilKIpcMessage.cpp
push 9
call fcn.00412750
add esp, 0x18
mov esi, 0x800705b4
push esi
push str.WaitForSingleObject_timeout.
push str.kupdate::KIPCMessage::SendIPCMessage
push 0x40
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcutilKIpcMessage.cpp
push 0
call fcn.00412750
add esp, 0x18
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Invalid_Args.
push str.kupdate::KIPCMessage::SendIPCMessage
push 0x2a
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcutilKIpcMessage.cpp
push 0
call fcn.00412750
add esp, 0x14
mov eax, 0x80070057
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49e8a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7a41
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x53d9f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi], vtable.CBalloonBase_class_ATL::CDialogImpl_class_CCommonBalloonDlg__class_ATL::CWindow__.0
mov dword [esi + 4], vtable.CBalloonBase_class_ATL::CDialogImpl_class_CCommonBalloonDlg__class_ATL::CWindow__.1.0
call fcn.0040fdf0
mov ecx, eax
test ecx, ecx
je 0x49ea54
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x28], eax
call fcn.0040fdf0
mov ecx, eax
test ecx, ecx
je 0x49ea54
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
call fcn.0040fdf0
mov ecx, eax
test ecx, ecx
je 0x49ea54
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
xor eax, eax
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi], vtable.CCommonBalloonDlg.0
mov dword [esi + 4], vtable.CCommonBalloonDlg.1.0
and dword [esi + 0xa4], 0xfffffff0
mov dword [ebp - 4], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], 8
mov dword [esi + 0x88], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0x8c], 0xffffffff
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x98], 0xffffffff
mov dword [esi + 0x60], vtable.WTL::CBitmapButton.0
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 1
call fcn.00457140
lea ecx, [esi + 0x308]
mov byte [ebp - 4], 2
call fcn.00457140
xor eax, eax
mov dword [esi + 0x568], 0
mov dword [esi + 0x56c], eax
mov dword [esi + 0x570], eax
mov dword [esi + 0x574], eax
mov dword [esi + 0x578], eax
mov eax, esi
mov dword [esi + 0x57c], 0x22e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0041d0e0
int3
Function at 0x49ea60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dec40
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x53d9f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
or edi, 0xffffffff
mov dword [esi], vtable.CBalloonBase_class_ATL::CDialogImpl_class_CCommonBalloonDlg__class_ATL::CWindow__.0
sub edx, 0x10
mov dword [esi + 4], vtable.CBalloonBase_class_ATL::CDialogImpl_class_CCommonBalloonDlg__class_ATL::CWindow__.1.0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49eab0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x2c]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49eaca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x28]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x49eae2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x49eaef
push eax
call fcn.004c0564
mov dword [esi], vtable.IBalloon.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49f5c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2498
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0x30]
lea eax, [ebp - 0x28]
push dword [esi + 0x2c]
push eax
call fcn.00493830
mov ecx, eax
call fcn.00491c30
mov edx, eax
cmp dword [edx + 0x14], 8
mov dword [ebp - 4], 0
jb 0x49f614
mov edx, dword [edx]
test edx, edx
jne 0x49f61c
xor ecx, ecx
jmp 0x49f630
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49f621
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x2c]
call fcn.00421c20
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x49f67d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49f673
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x49f673
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
push dword [0x4feee4]
xor eax, eax
mov dword [ebp - 0x18], 0
push dword [esi + 8]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, esi
call fcn.004a1250
mov ecx, esi
call fcn.004a0ca0
cmp dword [esi + 0x38], 0
je 0x49f6bf
push 0
push 0
mov ecx, esi
call fcn.00459520
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 8]
mov eax, ecx
neg eax
mov dword [esi + 0x330], ecx
mov dword [esi + 0x33c], 0
sbb eax, eax
and eax, 0x10301
mov dword [esi + 0x334], eax
mov eax, ecx
neg eax
mov dword [esi + 0x320], ecx
sbb eax, eax
and eax, 0x4fd
mov dword [esi + 0x324], eax
mov dword [esi + 0x32c], 0
cmp dword [esi + 0x38], 0
je 0x49f728
push 0x53
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esi + 0x34], 0
mov dword [esi + 0x568], 0
jle 0x49f74a
push 0
push 0x3e8
push 1
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a29f0
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x69c]
lea edx, [edi + 0x69c]
xchg dword [edx], eax
test eax, eax
je 0x4a2a4d
cmp dword [edi + 0x6a0], 0
je 0x4a2a25
push dword [edi + 0x67c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [edi + 0x6a0], 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
push dword [edi + 0x67c]
call esi
push 0x7d0
push dword [edi + 0x680]
call esi
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4a2a62
push eax
call esi
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x4a2a6c
push eax
call esi
pop edi
pop esi
ret
Function at 0x4a4880
Capabilities:
Resume thread

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x69c]
lea edx, [edi + 0x69c]
xchg dword [edx], eax
test eax, eax
je 0x4a48de
cmp dword [edi + 0x6a0], 0
je 0x4a48b4
push dword [edi + 0x67c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [edi + 0x6a0], 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x7d0
push dword [edi + 0x67c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
push dword [edi + 0x680]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
ret

Function at 0x4a4930
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4a494c
mov eax, dword [ebp - 4]
jmp 0x4a4a27
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x4a4a02
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov edi, edi
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x50fe18]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x50fe18]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x50fe18]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x50fe18]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x50fe18]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x50fe18]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x50fe18]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x50fe18]
dec ebp
jne 0x4a496c
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x4a4a1e
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x50fe18]
dec ecx
jne 0x4a4a0c
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b3ae0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ecx]
cmp esi, 0x10
je 0x4b3af7
cmp esi, 0x20
jne 0x4b3ccb
shr esi, 2
mov edx, 4
cmp esi, edx
mov dword [ebp - 0xc], esi
mov eax, esi
cmovb eax, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [eax*4 + 0x1c]
mov dword [ebp - 8], eax
test edi, edi
je 0x4b3cca
mov dword [edi], 0x10
push ebx
mov dword [edi + 4], eax
xor ebx, ebx
add edi, 8
test esi, esi
je 0x4b3b62
lea edx, [ecx + 5]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [edi + ebx*4], ecx
inc ebx
cmp ebx, esi
jl 0x4b3b35
mov eax, dword [ebp - 8]
mov ebx, dword [edi + ebx*4 - 4]
mov ecx, esi
cmp esi, eax
jge 0x4b3c4a
mov dword [ebp + 8], 0
mov dword [ebp - 4], edi
lea ebx, [ebx]
mov eax, ecx
cdq
idiv esi
test edx, edx
jne 0x4b3be0
mov eax, dword [ebp + 8]
cdq
idiv esi
mov dl, byte [eax + 0x51230c]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx esi, byte [eax + str.cw]
movzx eax, dl
xor esi, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + str.cw]
xor esi, eax
movzx eax, bl
shl esi, 8
shr ebx, 0x18
movzx eax, byte [eax + str.cw]
xor esi, eax
movzx ebx, byte [ebx + str.cw]
shl esi, 8
xor ebx, esi
mov esi, dword [ebp - 0xc]
jmp 0x4b3c2d
cmp esi, 6
jbe 0x4b3c2d
cmp edx, 4
jne 0x4b3c2d
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
xor edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
xor ebx, edx
mov eax, dword [ebp - 4]
inc dword [ebp + 8]
xor ebx, dword [eax]
add eax, 4
mov dword [edi + ecx*4], ebx
inc ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp ecx, eax
jl 0x4b3b80
xor esi, esi
sub ecx, 1
js 0x4b3cc9
lea eax, [edi + eax*4]
mov dword [ebp + 8], eax
mov ebx, dword [edi + ecx*4]
cmp esi, 4
jl 0x4b3cb9
cmp ecx, 4
jb 0x4b3cb9
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x513930]
movzx eax, byte [eax + str.cw]
xor edx, dword [eax*4 + 0x513d30]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor edx, dword [eax*4 + 0x513530]
movzx eax, bl
movzx eax, byte [eax + str.cw]
xor edx, dword [eax*4 + 0x514130]
mov eax, dword [ebp + 8]
jmp 0x4b3cbb
mov edx, ebx
mov dword [eax], edx
inc esi
add eax, 4
sub ecx, 1
mov dword [ebp + 8], eax
jns 0x4b3c57
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4