joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493d10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1c08
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4e3a20]
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
mov dword [ebp - 0x50], esi
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x493d69
mov ecx, dword [edi]
jmp 0x493d6b
mov ecx, edi
lea edx, [ebp - 0x28]
call fcn.0048fbf0
mov eax, dword [ebx]
mov ecx, ebx
push dword [eax + 4]
call fcn.0048da20
mov eax, dword [ebx]
push 6
mov dword [eax + 4], eax
mov eax, dword [ebx]
push 7
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [ebp - 0x44], 0
mov dword [eax + 8], eax
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.SELECT_payloadIDb_FROM_dependencies_WHERE_payloadID___q_AND_type_IN___d__d_
lea eax, [ebp - 0x44]
mov dword [ebx + 4], 0
push eax
mov eax, dword [esi]
push dword [eax]
call fcn.00403bc0
mov esi, dword [ebp - 0x44]
add esp, 0x18
cmp dword [esi], 0
jne 0x493e20
cmp dword [ebp - 0x14], 0x10
push 5
push 3
push 4
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.SELECT_payloadID_FROM_dependencies_WHERE_payloadIDb___q_AND_type_IN___d__d__d_
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
push dword [eax]
call fcn.00403bc0
mov esi, dword [ebp - 0x44]
add esp, 0x1c
cmp dword [esi], 0
jne 0x493e20
movzx eax, byte [0x4e7c33]
push eax
push edi
push ecx
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
call fcn.0048f200
jmp 0x493ebb
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
mov ecx, dword [esi]
lea edx, [ebp - 0x40]
call fcn.0048fea0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.00406b80
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 2
call fcn.00493d10
mov eax, dword [ebp - 0x4c]
push eax
push dword [eax]
mov ecx, ebx
call fcn.0048dee0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4c]
push eax
push dword [eax]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0048cfb0
push dword [ebp - 0x4c]
call fcn.004a37d1
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x2c], 8
jb 0x493eaf
push dword [ebp - 0x40]
call fcn.004a37d1
add esp, 4
add esi, 4
cmp dword [esi], 0
jne 0x493e20
cmp dword [ebp - 0x14], 0x10
jb 0x493ecc
push dword [ebp - 0x28]
call fcn.004a37d1
add esp, 4
mov al, 1
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.004a2eda
mov esp, ebp
pop ebp
ret 8
Function at 0x493ef0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4e3a20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], esi
cmp dword [ecx + 0x14], 8
jb 0x493f3b
mov ecx, dword [ecx]
lea edx, [ebp - 0x2c]
call fcn.0048fbf0
mov edx, dword [edi]
xor eax, eax
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
test edx, edx
je 0x493f7c
test ecx, ecx
je 0x493f7c
lea ebx, [ebp - 0x30]
test ebx, ebx
je 0x493f7c
push 7
push ecx
push str.SELECT_payloadIDb_FROM_dependencies_WHERE_payloadID___q_AND_type___d
mov eax, ebx
push eax
push dword [edx]
call fcn.00403bc0
mov eax, dword [ebp - 0x30]
add esp, 0x14
cmp dword [eax], 0
je 0x493f8b
mov esi, 3
jmp 0x494024
cmp dword [ebp - 0x18], 0x10
mov edx, dword [edi]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
test edx, edx
je 0x493fbf
test ecx, ecx
je 0x493fbf
lea ebx, [ebp - 0x30]
test ebx, ebx
je 0x493fbf
push 6
push ecx
push str.SELECT_payloadIDb_FROM_dependencies_WHERE_payloadID___q_AND_type___d
mov eax, ebx
push eax
push dword [edx]
call fcn.00403bc0
mov eax, dword [ebp - 0x30]
add esp, 0x14
cmp dword [eax], 0
je 0x493fcb
mov esi, 4
jmp 0x494024
cmp dword [ebp - 0x18], 0x10
push 5
push 3
push 4
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push str.SELECT_payloadID_FROM_dependencies_WHERE_payloadIDb___q_AND_type_IN___d__d__d_
lea eax, [ebp - 0x30]
push eax
mov eax, dword [edi]
push dword [eax]
call fcn.00403bc0
mov eax, dword [ebp - 0x30]
add esp, 0x1c
cmp dword [eax], 0
je 0x494001
mov esi, 2
jmp 0x494024
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [edi]
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
push eax
call fcn.00407030
add esp, 4
mov ecx, 1
test eax, eax
cmove esi, ecx
cmp dword [ebp - 0x18], 0x10
jb 0x494035
push dword [ebp - 0x2c]
call fcn.004a37d1
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a2eda
mov esp, ebp
pop ebp
ret 4
Function at 0x4961e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
add ecx, 0x4c
mov word [ebp - 4], 0
cmp dword [ecx + 0x14], 8
mov dword [ebp - 8], 0
jb 0x4961fe
mov ecx, dword [ecx]
push str.rb__ccsUTF_8
push ecx
lea eax, [ebp - 8]
push eax
call fcn.004a3549
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x496257
push eax
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.004a40c5
push dword [ebp - 8]
call fcn.004a41dd
mov cl, byte [ebp - 4]
mov al, byte [ebp - 3]
add esp, 0x14
cmp cl, 0xff
jne 0x49623f
cmp al, 0xfe
je 0x496248
cmp al, 0xff
jne 0x496251
cmp cl, 0xfe
jne 0x496251
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x496260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 1
jne 0x496298
call fcn.004961e0
test al, al
jne 0x496298
mov eax, dword [ebx]
test eax, eax
je 0x496291
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov ecx, edi
call fcn.00497140
cmp dword [edi + 0x60], 8
lea esi, [edi + 0x4c]
jb 0x4962a5
mov eax, dword [esi]
jmp 0x4962a7
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x49633f
cmp dword [esi + 0x14], 8
jb 0x4962cf
mov esi, dword [esi]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4962fa
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 1
push 0
lea ecx, [ebp - 4]
push ecx
jne 0x496328
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push 3
lea ecx, [ebp + 8]
push ecx
push eax
mov word [ebp + 8], 0xbbef
mov byte [ebp + 0xa], 0xbf
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x496350
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1fb6
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4e3a20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49644e
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], eax
mov word [ebp - 0x234], ax
cmp word [ebp - 0x21c], ax
jne 0x4963ce
xor ecx, ecx
jmp 0x4963e6
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4963d7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00402440
xor bl, bl
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x49642a
cmp eax, 0xb7
je 0x49642a
cmp eax, 0x50
jne 0x49642c
mov bl, 1
cmp dword [ebp - 0x220], 8
jb 0x496443
push dword [ebp - 0x234]
call fcn.004a37d1
add esp, 4
test bl, bl
jne 0x49644e
xor al, al
jmp 0x496559
xor eax, eax
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
cmp word [ebp - 0x21c], ax
jne 0x496478
xor ecx, ecx
jmp 0x496490
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x496481
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00402440
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
cmp word [esi], ax
jne 0x4964d0
xor ecx, ecx
jmp 0x4964e4
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4964d5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x234]
call fcn.00402440
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 1
call fcn.0049b3c0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x220], 8
mov bl, al
jb 0x496523
push dword [ebp - 0x234]
call fcn.004a37d1
add esp, 4
test bl, bl
je 0x496540
lea ecx, [edi + 0x4c]
lea eax, [ebp - 0x24c]
cmp ecx, eax
je 0x49653e
push 0xffffffffffffffff
push 0
push eax
call fcn.00402a20
mov bl, 1
cmp dword [ebp - 0x238], 8
jb 0x496557
push dword [ebp - 0x24c]
call fcn.004a37d1
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a2eda
mov esp, ebp
pop ebp
ret 4
Function at 0x496780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 2]
mov edi, edi
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x496790
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x68]
mov dword [ebp - 4], 0
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x4dba60
push dword [ebx + 0x68]
mov dword [ebp - 4], 0
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4967f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x496800
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x68]
mov dword [ebp - 4], 0
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x4dba68
push dword [ebx + 0x68]
mov dword [ebp - 4], 0
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x497140
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c2310
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4e3a20]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x4e3a20]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
push 0xffffffffffffffff
push eax
lea esi, [edi + 0x4c]
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.00402a20
lea ecx, [esp + 0x10]
mov dword [esp + 0x80], 0
call fcn.0049b470
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
lea ecx, [esp + 0x40]
mov byte [esp + 0x80], 1
call fcn.0049b2b0
lea eax, [esp + 0x40]
push eax
mov edx, 0x4d7a14
lea ecx, [esp + 0x5c]
call fcn.0048dc00
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 2
call fcn.004845c0
cmp dword [esp + 0x6c], 8
jb 0x49721b
push dword [esp + 0x58]
call fcn.004a37d1
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
lea edx, [esp + 0x28]
mov ecx, esi
mov byte [esp + 0x80], 3
call fcn.0049b700
lea edx, [esp + 0x28]
lea ecx, [esp + 0x10]
call fcn.0049b500
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4972b9
cmp dword [esi + 0x10], 0
je 0x4972b9
cmp dword [esp + 0x20], 0
je 0x4972b9
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
cmp dword [esi + 0x14], 8
jb 0x49728f
mov esi, dword [esi]
push eax
push esi
call fcn.004a5985
add esp, 8
test eax, eax
jne 0x4972b9
lea ecx, [edi + 0x98]
lea eax, [esp + 0x10]
cmp ecx, eax
je 0x4972b5
push 0xffffffffffffffff
push 0
push eax
call fcn.00402a20
mov bl, 1
jmp 0x4972bb
xor bl, bl
cmp dword [esp + 0x3c], 8
jb 0x4972ce
push dword [esp + 0x28]
call fcn.004a37d1
add esp, 4
xor eax, eax
cmp dword [esp + 0x54], 8
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
jb 0x4972f8
push dword [esp + 0x40]
call fcn.004a37d1
add esp, 4
xor eax, eax
cmp dword [esp + 0x24], 8
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
jb 0x497322
push dword [esp + 0x10]
call fcn.004a37d1
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004a2eda
mov esp, ebp
pop ebp
ret
Function at 0x49b7f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.004af8e0
mov eax, dword [0x4e3a20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
xor edx, edx
cmp dword [ecx + 0x14], 8
push edi
mov dword [ebp - 0x2008], edx
jb 0x49b81c
mov ecx, dword [ecx]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call ebx
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x49b841
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49b877
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2eda
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ecx]
push 0
lea eax, [ebp - 0x200c]
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49b8bf
push 0
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x200c]
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x49b8c7
call esi
mov dword [ebp - 0x2008], eax
cmp dword [ebp - 0x200c], 0x1000
je 0x49b880
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
mov edx, dword [ebp - 0x2008]
mov ecx, dword [ebp - 4]
xor eax, eax
test edx, edx
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.004a2eda
mov esp, ebp
pop ebp
ret
Function at 0x49b900
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c24a8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4e3a20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x4c]
xor bl, bl
cmp dword [edi + 0x14], 8
jb 0x49b93c
mov eax, dword [edi]
jmp 0x49b93e
mov eax, edi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
jne 0x49b966
xor al, al
jmp 0x49ba26
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x49b985
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov bl, 1
jmp 0x49b991
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x49ba24
cmp dword [ebp - 0x34], 0
jl 0x49ba24
jg 0x49b9b3
cmp dword [ebp - 0x30], 0xa00000
jb 0x49ba24
mov eax, dword [esi + 0x68]
lea ebx, [esi + 0x68]
test eax, eax
je 0x49b9c4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00402a20
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0049baf0
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.0049b7f0
test al, al
je 0x49ba08
mov ecx, esi
call fcn.004974b0
mov eax, dword [esi]
push ebx
mov eax, dword [eax]
mov ecx, esi
call eax
cmp dword [ebp - 0x18], 8
mov bl, al
jb 0x49ba24
push dword [ebp - 0x2c]
call fcn.004a37d1
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a2eda
mov esp, ebp
pop ebp
ret 4

Function at 0x49ba50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c24d8
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4e3a20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi], 0
jne 0x49bac4
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x49bac1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x49bac1
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi], eax
cmp dword [esi], 0
setne bl
cmp dword [ebp + 0x1c], 8
jb 0x49bad8
push dword [ebp + 8]
call fcn.004a37d1
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x49c100
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bfba8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e3a20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0049ea60
push 0x49c380
push 0x49c210
push 0x3fd
push 0xc
lea eax, [esi + 0x38]
push eax
mov dword [ebp - 4], 0
mov dword [esi], vtable.devtech_private::FastArray.0
mov byte [esi + 8], 1
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call fcn.004a591d
mov dword [esi + 0x3014], 0
mov dword [esi + 0x3018], 0
mov dword [esi + 0x301c], 0
mov dword [esi + 0x3020], 0
mov dword [esi + 0x3024], 0
mov byte [esi + 0x3028], 1
mov dword [esi + 0x302c], 0
mov byte [esi + 0x3030], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49cd00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x14]
mov esi, ecx
call fcn.004a0aa0
add esp, 4
test al, al
mov eax, dword [ebp + 0xc]
je 0x49cd78
test al, al
je 0x49cd78
push edi
lea ecx, [esi + 0x14]
call fcn.0049e3b0
lea ecx, [esi + 0x14]
mov edi, eax
call fcn.0049e3a0
xor esi, esi
mov dword [ebp + 0x14], eax
test edi, edi
jle 0x49cd6f
push ebx
mov ebx, dword [ebp + 8]
lea esp, [esp]
movzx ecx, word [eax + esi*2]
mov ax, cx
shr ax, 8
shl ecx, 8
xor ax, cx
movzx eax, ax
push 0
mov dword [ebp + 8], eax
push 2
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.0049de20
mov eax, dword [ebp + 0x14]
inc esi
cmp esi, edi
jl 0x49cd40
pop ebx
lea eax, [edi + edi]
pop edi
pop esi
pop ebp
ret 0x10
push dword [ebp + 0x10]
lea ecx, [esi + 0x14]
push eax
push dword [ebp + 8]
call fcn.0049e3c0
pop esi
pop ebp
ret 0x10
Function at 0x4b6d5a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e3a20]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004a9809
mov dword [ebp - 0x14], eax
cmp dword [0x4e7578], edi
jne 0x4b6e4b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4b6dd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4b6f2b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4b6f2b
push 0x4c945c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b6f2b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4e7578], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4e757c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4e7580], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4e7588], eax
test eax, eax
je 0x4b6e48
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4e7584], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4b6e70
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b6e63
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4b6e85
push 4
pop eax
jmp 0x4b6f2d
cmp dword [ebp - 0x14], edi
je 0x4b6e85
push dword [0x4e7578]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4b6e6a
mov eax, dword [0x4e7584]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4b6ee3
cmp dword [0x4e7588], esi
je 0x4b6ee3
push eax
call ebx
push dword [0x4e7588]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4b6ee3
test eax, eax
je 0x4b6ee3
call ecx
test eax, eax
je 0x4b6ed8
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 0x4b6ed8
test byte [ebp - 8], 1
jne 0x4b6ee3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4b6f13
mov eax, dword [0x4e757c]
cmp eax, esi
je 0x4b6f10
push eax
call ebx
test eax, eax
je 0x4b6f10
call eax
mov edi, eax
test edi, edi
je 0x4b6f10
mov eax, dword [0x4e7580]
cmp eax, esi
je 0x4b6f10
push eax
call ebx
test eax, eax
je 0x4b6f10
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4e7578]
call ebx
test eax, eax
je 0x4b6f2b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4b6f2d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a2eda
leave
ret
Function at 0x4bbd4c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004abe5b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4bbd84
xor eax, eax
jmp 0x4bbdb0
cmp esi, dword [ebp - 4]
je 0x4bbdad
cmp dword [ebp + 0xc], 0
je 0x4bbdad
push dword [edi + 0x9c]
call fcn.004bb95a
push dword [edi + 0x9c]
mov esi, eax
call fcn.004a9abf
pop ecx
pop ecx
cmp esi, eax
je 0x4bbd80
xor eax, eax
inc eax
pop edi
pop esi
leave
ret