joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d29e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407cfb
mov dword [ebp - 0x14], eax
cmp dword [0x430a38], esi
jne 0x40d391
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d471
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d471
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d471
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x430a38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x430a3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x430a40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430a48], eax
test eax, eax
je 0x40d38e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430a44], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3b6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3a9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push 4
pop eax
jmp 0x40d473
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push dword [0x430a38]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3b0
mov eax, dword [0x430a44]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d429
cmp dword [0x430a48], edi
je 0x40d429
push eax
call ebx
push dword [0x430a48]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d429
test eax, eax
je 0x40d429
call ecx
test eax, eax
je 0x40d41e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d41e
test byte [ebp - 8], 1
jne 0x40d429
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d459
mov eax, dword [0x430a3c]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
call eax
mov esi, eax
test esi, esi
je 0x40d456
mov eax, dword [0x430a40]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x430a38]
call ebx
test eax, eax
je 0x40d471
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d473
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040440e
mov esp, ebp
pop ebp
ret
Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x455030]
jne 0x401116
repz ret
jmp fcn.00401d41

Function at 0x40a6cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406ace
and dword [ebp - 4], 0
cmp dword [0x457894], 0
mov ebx, eax
jne 0x40a77d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a82e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a82e
push eax
call fcn.00406a5c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x457894], eax
call esi
push eax
call fcn.00406a5c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x457898], eax
call esi
push eax
call fcn.00406a5c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45789c], eax
call esi
push eax
call fcn.00406a5c
pop ecx
mov dword [0x4578a4], eax
test eax, eax
je 0x40a77d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406a5c
pop ecx
mov dword [0x4578a0], eax
mov eax, dword [0x4578a0]
cmp eax, ebx
je 0x40a7d5
cmp dword [0x4578a4], ebx
je 0x40a7d5
push eax
call fcn.00406ad7
push dword [0x4578a4]
mov esi, eax
call fcn.00406ad7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a7d5
test edi, edi
je 0x40a7d5
call esi
test eax, eax
je 0x40a7cc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a7cc
test byte [ebp - 0xc], 1
jne 0x40a7d5
or dword [ebp + 0x10], 0x200000
jmp 0x40a80e
mov eax, dword [0x457898]
cmp eax, ebx
je 0x40a80e
push eax
call fcn.00406ad7
pop ecx
test eax, eax
je 0x40a80e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a80e
mov eax, dword [0x45789c]
cmp eax, ebx
je 0x40a80e
push eax
call fcn.00406ad7
pop ecx
test eax, eax
je 0x40a80e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x457894]
call fcn.00406ad7
pop ecx
test eax, eax
je 0x40a82e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a830
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ce70
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x455030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2b102d4]
push ebx
mov ebx, dword [0x2b0fff4]
push esi
mov esi, dword [0x456060]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40ceb1
push str.tiyayejetupoxasowujozizoc
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2b102d4]
mov dword [0x2b0fff0], esi
cmp eax, 0x114e
jne 0x40ced9
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push str.Gufut_dawasu_xekewoxocig_luraseno
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov eax, dword [0x2b102d4]
cmp eax, 0x2f
jne 0x40cf07
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
push edi
push ebx
call fcn.0040cd40
mov ecx, dword [esp + 0x438]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x10002ee0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x10002eee
xor al, al
pop ecx
ret 4
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002f13
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10002f13
xor al, al
pop esi
pop ecx
ret 4
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.1002db40
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x10006250
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x10040f46
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1004b580]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push esi
push edi
mov eax, dword [0x1004b580]
xor eax, esp
push eax
lea eax, [esp + 0x434]
mov dword fs:[0], eax
mov edi, dword [esp + 0x444]
mov ebx, dword [esp + 0x448]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.32770
push edi
mov dword [esp + 0x18], ebx
call esi
test eax, eax
jne 0x1000634a
push 0x104
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x1004285c
lea ecx, [esp + 0x24]
push ecx
call esi
test eax, eax
je 0x1000630d
push 0x10042854
lea edx, [esp + 0x24]
push edx
call esi
test eax, eax
je 0x1000630d
push 0x100
call fcn.100240c6
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x43c], 0
je 0x10006321
push ebx
mov ecx, eax
call fcn.1000c1b0
jmp 0x10006323
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x1004c788
call fcn.100060c0
xor eax, eax
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.100245d5
add esp, 0x430
ret
push ebx
call fcn.10005900
add esp, 4
test al, al
jne 0x10006321
push str.Button
push edi
call esi
test eax, eax
jne 0x1000638a
push 0x64
call fcn.100240c6
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x43c], 1
je 0x10006321
push ebx
mov ecx, eax
call fcn.10004640
jmp 0x10006323
push str.Static
push edi
call esi
test eax, eax
jne 0x100063c4
push 0x40
call fcn.100240c6
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x43c], 2
je 0x10006321
push ebx
mov ecx, eax
call fcn.100153b0
jmp 0x10006323
push str.msctls_progress32
push edi
call esi
test eax, eax
jne 0x100063fe
push 0x48
call fcn.100240c6
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x43c], 3
je 0x10006321
push ebx
mov ecx, eax
call fcn.1000eb40
jmp 0x10006323
push str.Edit
push edi
call esi
test eax, eax
jne 0x10006321
push ebx
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x10006444
push 0x104
lea edx, [esp + 0x22c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
push str.ComboBox
lea eax, [esp + 0x22c]
push eax
call esi
test eax, eax
je 0x10006321
push 0x44
call fcn.100240c6
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x43c], 4
je 0x10006321
push ebx
mov ecx, eax
call fcn.1000d1f0
jmp 0x10006323
Function at 0x10006730
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, ecx
cmp dword [ebp + 0x5c], 0
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edx
je 0x100067d8
sub eax, edi
add eax, 1
cdq
sub eax, edx
push ebx
mov ebx, dword [esp + 0x2c]
sar eax, 1
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0xf
test eax, eax
jle 0x100067ca
mov dword [esp + 0x30], eax
lea ecx, [ecx]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov eax, dword [ebp + 0x5c]
mov ecx, dword [eax]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x10]
push 0xcc0020
push 0
push 0
push esi
push 2
push 2
push edx
push edi
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
add edi, 2
sub dword [esp + 0x30], 1
jne 0x10006780
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add dword [esp + 0x10], 2
sub dword [esp + 0x14], 1
jne 0x10006775
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x1c
ret 4
Function at 0x1000a600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100410b0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1004b580]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1004b580]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov eax, dword [esp + 0x88]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x8c]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], edi
mov word [esp + 0x64], di
call fcn.10001f80
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x90]
mov ebx, dword [sym.imp.USER32.dll_DrawTextW]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
add eax, edx
mov edi, 8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x68]
mov esi, 1
cmp eax, esi
mov dword [esp + 0x24], eax
jb 0x1000a720
jmp 0x1000a6b0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push esi
mov dword [esp + 0x34], ecx
push 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], eax
call fcn.10009a40
cmp dword [eax + 0x18], edi
jb 0x1000a6e7
mov eax, dword [eax + 4]
jmp 0x1000a6ea
add eax, 4
push 0x420
lea edx, [esp + 0x2c]
push edx
push 0xffffffffffffffff
push eax
push ebp
call ebx
cmp dword [esp + 0x50], edi
jb 0x1000a70d
mov eax, dword [esp + 0x3c]
push eax
call fcn.100240a8
add esp, 4
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x30], ecx
jg 0x1000a76f
add esi, 1
cmp esi, dword [esp + 0x24]
jbe 0x1000a6b0
cmp dword [esp + 0x6c], edi
mov eax, dword [esp + 0x58]
jae 0x1000a72e
lea eax, [esp + 0x58]
push 0x20
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffff
push eax
push ebp
call ebx
cmp dword [esp + 0x6c], edi
jb 0x1000a74e
mov edx, dword [esp + 0x58]
push edx
call fcn.100240a8
add esp, 4
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.100245d5
add esp, 0x6c
ret 0x10
add esi, 0xffffffff
push esi
push 0
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x60]
call fcn.10009a40
cmp dword [eax + 0x18], edi
jb 0x1000a78d
mov eax, dword [eax + 4]
jmp 0x1000a790
add eax, 4
push 0x20
lea edx, [esp + 0x18]
push edx
push 0xffffffffffffffff
push eax
push ebp
call ebx
cmp dword [esp + 0x50], edi
jb 0x1000a7b0
mov eax, dword [esp + 0x3c]
push eax
call fcn.100240a8
add esp, 4
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x60]
call fcn.10009a40
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x88], 1
call fcn.10001f80
cmp dword [esp + 0x50], edi
mov byte [esp + 0x7c], 0
jb 0x1000a7ef
mov edx, dword [esp + 0x3c]
push edx
call fcn.100240a8
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
add eax, dword [esp + 0x90]
jmp 0x1000a693
Function at 0x1000eb40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10041318
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x1004b580]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x3c]
push eax
call fcn.10004b00
xor ebx, ebx
push 0x11
push str.standard.progress
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], ebx
mov dword [esi], vtable.GameMgr::GMProgress.0
mov dword [esi + 0x3c], ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.10002070
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x38], 1
call fcn.10003370
mov ecx, eax
call fcn.10010a90
cmp dword [esp + 0x28], 8
mov dword [esi + 0x40], eax
mov byte [esp + 0x34], bl
jb 0x1000ebd6
mov edx, dword [esp + 0x14]
push edx
call fcn.100240a8
add esp, 4
push 0x14
push 0x10042d10
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.10002070
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x38], 2
call fcn.10003370
mov ecx, eax
call fcn.10010a90
cmp dword [esp + 0x28], 8
mov dword [esi + 0x44], eax
jb 0x1000ec24
mov ecx, dword [esp + 0x14]
push ecx
call fcn.100240a8
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret 4

Function at 0x100153b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10041780
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x1004b580]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x3c]
push eax
call fcn.10004b00
xor edi, edi
push 0x15
push str.standard.icon.warning
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], edi
mov dword [esi], vtable.GameMgr::GMStatic.0
mov dword [esi + 0x3c], edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
call fcn.10002070
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x38], 1
call fcn.10003370
mov ecx, eax
call fcn.10010a90
cmp dword [esp + 0x28], 8
mov dword [esi + 0x3c], eax
jb 0x10015442
mov edx, dword [esp + 0x14]
push edx
call fcn.100240a8
add esp, 4
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 4]
and eax, 0xffffffed
or eax, 0xd
push eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 0x2c]
and eax, 0x1f
cmp eax, 3
je 0x10015468
cmp eax, 0xe
jne 0x10015482
mov eax, dword [esi + 0x3c]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push 2
push edx
push eax
push edi
push edi
push edi
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret 4
Function at 0x10019530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
mov esi, eax
and esi, 7
je 0x10019552
cmp eax, esi
jge 0x1001954a
mov eax, edi
call fcn.10018d40
mov ecx, esi
shr dword [edi + 0xc], cl
sub dword [edi + 8], esi
xor eax, eax
cmp dword [edi + 8], eax
jle 0x1001957c
lea ecx, [eax - 8]
lea esp, [esp]
mov dl, byte [edi + 0xc]
shr dword [edi + 0xc], 8
add dword [edi + 8], ecx
mov byte [esp + eax + 8], dl
add eax, 1
cmp dword [edi + 8], 0
jg 0x10019560
cmp eax, 4
jge 0x100195a0
mov esi, dword [edi + 4]
nop
mov ecx, dword [edi]
cmp ecx, esi
jb 0x1001958a
xor ecx, ecx
jmp 0x10019594
mov dl, byte [ecx]
add ecx, 1
mov dword [edi], ecx
movzx ecx, dl
mov byte [esp + eax + 8], cl
add eax, 1
cmp eax, 4
jl 0x10019580
mov eax, dword [esp + 8]
movzx ecx, byte [esp + 0xb]
movzx edx, byte [esp + 0xa]
movzx esi, ah
movzx eax, al
shl esi, 8
add esi, eax
shl ecx, 8
mov eax, esi
add ecx, edx
xor eax, 0xffff
cmp ecx, eax
je 0x100195d8
pop edi
mov eax, str.zlib_corrupt
pop esi
add esp, 4
jmp fcn.10015da0
mov ecx, dword [edi]
add ecx, esi
cmp ecx, dword [edi + 4]
jbe 0x100195f0
pop edi
mov eax, str.read_past_buffer
pop esi
add esp, 4
jmp fcn.10015da0
mov edx, dword [edi + 0x10]
add edx, esi
cmp edx, dword [edi + 0x18]
jbe 0x10019609
mov ecx, esi
call fcn.10018e90
test eax, eax
jne 0x10019609
pop edi
pop esi
pop ecx
ret
mov eax, dword [edi]
mov ecx, dword [edi + 0x10]
push esi
push eax
push ecx
call fcn.10025210
add dword [edi], esi
add esp, 0xc
add dword [edi + 0x10], esi
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x1001faa0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1001faab
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
not esi
jb 0x1001fba7
push ebp
mov ebp, edi
shr ebp, 3
jmp 0x1001fad0
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x100447c0]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x100447c0]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x100447c0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x100447c0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x100447c0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x100447c0]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x100447c0]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x100447c0]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x1001fad0
pop ebp
test edi, edi
je 0x1001fbcc
jmp 0x1001fbb0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x100447c0]
add ecx, 1
sub edi, 1
jne 0x1001fbb0
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x10020180
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x100201c2
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100201b6
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x100201d3
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.10025210
add dword [edi + 0x18], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret
Function at 0x100213c0
Capabilities:
Create directory

Disassembly:
sub esp, 0x414
mov eax, dword [0x1004b580]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x41c]
push edi
mov edi, dword [esp + 0x424]
test edi, edi
je 0x100214ad
movzx eax, word [edi]
test ax, ax
je 0x100214ad
push esi
mov esi, edi
mov ecx, edi
movzx eax, ax
cmp ax, 0x2f
je 0x1002140c
cmp ax, 0x5c
jne 0x1002140e
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x10021400
cmp esi, edi
je 0x10021443
sub esi, edi
sar esi, 1
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.10024a83
lea ecx, [esp + 0x18]
push ecx
push ebx
mov word [esp + esi*2 + 0x20], 0
call fcn.100213c0
add esp, 0x14
lea edx, [esp + 0x214]
mov eax, ebx
sub edx, ebx
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10021450
mov eax, edi
mov edx, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10021463
lea edi, [esp + 0x214]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10021480
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea edx, [esp + 0x218]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [esp + 0x418]
pop edi
pop ebx
xor ecx, esp
call fcn.100245d5
add esp, 0x414
ret

Function at 0x100233d0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x10023470
cmp dword [ebx + 4], 0xffffffff
jne 0x10023470
push edi
lea edi, [ebx + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10023400
mov eax, dword [0x100450ec]
push esi
mov esi, dword [esp + 0x18]
cmp esi, 1
mov dword [edi], eax
mov edi, dword [esp + 0x10]
jne 0x10023438
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x10023438
pop esi
pop edi
mov eax, 0x2000000
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push edi
call fcn.1001ff30
add esp, 0x10
test eax, eax
jne 0x1002345a
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
push eax
call fcn.10022f20
add esp, 4
pop esi
mov dword [ebx], eax
mov eax, dword [0x1004c9d8]
pop edi
pop ebx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc