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

Disassembly:
push 0xffffffffffffffff
push 0x5f81d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [edi]
push eax
call fcn.005d2367
xor esi, esi
xor ebp, ebp
add esp, 4
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x38]
push esi
push 0x80
push 3
push esi
push 7
mov dword [esp + 0x44], esi
mov eax, dword [eax]
push SysReAllocStringLen
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x50ed69
call fcn.0040f010
test eax, eax
jl 0x50ed52
push 0
lea ecx, [esp + 0x20]
push ecx
push 2
lea edx, [esp + 0x20]
push edx
push ebp
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x50ed08
call fcn.0040f010
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x50ed2a
call fcn.0040f010
test eax, eax
jl 0x50ed30
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ebx, eax
test ebp, ebp
je 0x50ed41
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov ecx, ebx
or ecx, esi
jne 0x50ed74
test ebp, ebp
je 0x50ed52
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
mov ebp, eax
mov dword [esp + 0x18], ebp
jmp 0x50ece6
cmp word [esp + 0x14], 0xfeff
jne 0x50ed83
shrd ebx, esi, 1
shr esi, 1
mov esi, ebx
add esi, 9
and esi, 0xfffffff8
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005d1ef5
mov ebx, eax
add esp, 4
lea eax, [esi + esi]
push eax
push 0
push ebx
call fcn.005da970
add esp, 0xc
test ebx, ebx
je 0x50ed47
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
push eax
mov eax, dword [esp + 0x40]
lea edx, [esi - 2]
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp eax, esi
sbb esi, esi
neg esi
je 0x50ede4
mov dword [edi], ebx
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
jmp 0x50eded
push ebx
call fcn.005d28c2
add esp, 4
test ebp, ebp
je 0x50edf8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
Function at 0x50ee10
Capabilities:
Get file size
Read .ini file
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5f81a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esi]
push eax
call fcn.005d2367
xor edi, edi
add esp, 4
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x3c]
push edi
push 0x80
push 3
push edi
push 7
mov dword [esp + 0x48], edi
mov eax, dword [eax]
push SysReAllocStringLen
push eax
xor ebp, ebp
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x50ef09
call fcn.0040f010
test eax, eax
jl 0x50eef2
push 0
lea ecx, [esp + 0x20]
push ecx
push 2
lea edx, [esp + 0x20]
push edx
push edi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x50eea8
call fcn.0040f010
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x50eeca
call fcn.0040f010
test eax, eax
jl 0x50eed0
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ebp, eax
test edi, edi
je 0x50eee1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [esp + 0x18], edi
mov ecx, ebp
or ecx, ebx
jne 0x50ef14
test edi, edi
je 0x50eef2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x28
ret 4
mov edi, eax
mov dword [esp + 0x18], edi
jmp 0x50ee86
cmp word [esp + 0x14], 0xfeff
jne 0x50ef23
shrd ebp, ebx, 1
shr ebx, 1
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005d1ef5
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x50eee7
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp eax, ebp
sbb ebp, ebp
neg ebp
je 0x50ef65
mov dword [esi], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
jmp 0x50ef6e
push ebx
call fcn.005d28c2
add esp, 4
test edi, edi
je 0x50ef79
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x50ef90
Capabilities:
Read .ini file

Disassembly:
push edi
mov edi, dword [eax]
mov eax, dword [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x402
or ecx, edx
jge 0x50efb9
mov ecx, 0x402
mov eax, esi
call fcn.00403540
mov eax, dword [esi]
mov ecx, dword [esp + 8]
push edi
mov edi, 0x400
push edi
push eax
push 0
push ecx
push str.UserDict
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
cmp dword [eax - 8], edi
jl 0x50f027
mov dword [eax - 0xc], edi
mov edx, dword [esi]
mov word [edx + 0x800], 0
mov edx, dword [esi]
test edx, edx
jne 0x50eff4
xor eax, eax
jmp 0x50f011
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50f000
sub eax, edi
sar eax, 1
js 0x50f027
cmp eax, dword [edx - 8]
jg 0x50f027
mov dword [edx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov eax, esi
pop edi
ret 4
push 0x80070057
call fcn.00403650
int3

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

Disassembly:
push 0xffffffffffffffff
push 0x60020e
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esi], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov ecx, 0xa
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
cmp edi, eax
mov byte [esp + 0x14], 2
mov byte [esi + 0x34], al
mov byte [esi + 0x35], al
je 0x50f211
mov ecx, edi
lea ebx, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
cmp dx, ax
jne 0x50f200
sub ecx, ebx
sar ecx, 1
mov eax, ecx
mov ebx, eax
push edi
mov eax, esi
call fcn.004037a0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jle 0x50f22c
mov ecx, edi
mov edx, esi
call fcn.0050f300
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x50fb90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5fcee8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x24], esi
call fcn.0050fa60
cmp eax, esi
mov edi, dword [esp + 0xc]
je 0x50fc02
push 0xa
lea edx, [esp + 0x14]
push edx
push edi
call fcn.005d419b
add esp, 0xc
mov esi, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50fc26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0xc
Function at 0x5125c0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x5fc2c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x28]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x51269a
call fcn.0040f010
test eax, eax
jl 0x512686
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x512640
call fcn.0040f010
test eax, eax
jl 0x51267b
mov esi, dword [esp + 0x10]
cmp esi, 0x5c
jb 0x51267b
push esi
call fcn.005d1ef5
add esp, 4
mov ecx, eax
lea edx, [esp + 0xc]
mov dword [ebx], eax
call fcn.00417460
mov ecx, dword [ebx]
push esi
call fcn.00512f70
add esp, 4
test eax, eax
jne 0x5126a5
mov edx, dword [ebx]
push edx
call fcn.005d28c2
add esp, 4
mov dword [ebx], 0
test edi, edi
je 0x512686
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
mov edi, eax
mov dword [esp + 0xc], edi
jmp 0x51261c
test edi, edi
je 0x5126b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x51a8f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x54
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x2c]
xor ebp, ebp
cmp eax, ebp
je 0x51a92b
push 0xffffffffffffffff
push eax
mov byte [edi + 0x30], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x2c]
cmp eax, ebp
je 0x51a92b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x2c], ebp
mov esi, dword [edi + 8]
cmp esi, ebp
je 0x51a937
call fcn.00518fc0
mov ebx, dword [edi + 0x28]
cmp ebx, ebp
lea esi, [edi + 0x28]
je 0x51a9cf
push 0x3c
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.005da970
mov edi, dword [edi + 8]
mov dword [esp + 0x24], 0x51554432
mov word [esp + 0x28], 3
mov word [esp + 0x2a], bp
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x2c], ecx
mov edx, dword [edi + 0x20]
add esp, 0xc
mov dword [esp + 0x24], edx
mov eax, dword [edi + 0x24]
push ebp
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x30], eax
mov ecx, dword [edi + 0x28]
push ebp
push ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x51a9a8
call fcn.0040f010
mov edx, dword [esi]
push ebp
lea eax, [esp + 0x14]
push eax
push 0x40
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x51a9c7
call fcn.0040f010
push ebp
push 0x40
call fcn.00433ef0
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005d28b3
add esp, 0x54
ret

Function at 0x51ac60
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x51ac76
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
test edi, edi
jne 0x51ac88
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x51aca4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x51aca4
pop esi
jmp fcn.004770f0
push edi
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x51ac84
pop esi
jmp fcn.0040f010
Function at 0x51acc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x41c], eax
mov eax, dword [esp + 0x424]
test eax, eax
jne 0x51ad32
lea eax, [esp + 0xc]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x51ad0f
call fcn.0040f010
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.005d28b3
add esp, 0x420
ret 4
cmp eax, 0x100
jbe 0x51ad52
mov eax, 0x80020013
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.005d28b3
add esp, 0x420
ret 4
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x14]
push 0x104
push ecx
call fcn.005d41db
push eax
call fcn.00406070
add esp, 0x14
cmp eax, 0x50
je 0x51ad16
lea edx, [esp + 0x214]
push edx
push 0
push 0x638bb8
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x51acf3
push esi
push 0xffffffffffffffff
lea ecx, [esp + 0x21c]
push ecx
lea esi, [edi + 4]
push 0x101
push esi
mov word [esp + 0x42e], 0
call fcn.005d41db
push eax
call fcn.00406070
add esp, 0x14
push 0
push 0x2100
push 2
lea edx, [esp + 0x10]
push edx
push 0
push 0x40000000
push esi
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [edi + 0x208], 0x40000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
pop esi
je 0x51acf3
mov ecx, dword [esp + 0x41c]
mov dword [edi], eax
xor ecx, esp
xor eax, eax
call fcn.005d28b3
add esp, 0x420
ret 4

Function at 0x51bb70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
cmp dword [0x67f6bc], 0
mov dword [esp], 1
jne 0x51bb9d
lea eax, [esp]
call fcn.0051f280
test eax, eax
jl 0x51bbbd
cmp dword [esp], 0
mov dword [0x67f6bc], 1
je 0x51bbbd
mov eax, dword [0x67f690]
mov dword [eax], 0xc
mov ecx, dword [0x67f690]
mov dword [ecx + 4], 0
add esp, 4
jmp fcn.0051d480
pop ecx
ret
Function at 0x51c280
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
lea ebx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0xc], 0
call fcn.0051c9f0
test eax, eax
jl 0x51c372
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push eax
call ebp
cmp eax, 0xffffffff
jne 0x51c2cc
call fcn.0040f010
mov ebx, eax
jmp 0x51c2d1
mov dword [esi + 0x28], eax
xor ebx, ebx
cmp dword [esp + 0xc], 0
jne 0x51c370
mov eax, dword [esi]
test eax, eax
je 0x51c2ed
add eax, 8
je 0x51c2ed
mov dword [eax], 0
mov eax, dword [esi]
test eax, eax
je 0x51c2ff
add eax, 8
je 0x51c2ff
mov dword [eax + 4], 0
test ebx, ebx
jge 0x51c32c
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push ecx
call ebp
cmp eax, 0xffffffff
jne 0x51c356
call fcn.0040f010
mov ebx, eax
test ebx, ebx
jl 0x51c35d
lea edx, [esp + 0x14]
push edx
push 0
push esi
push 0x51c380
push 0
push 0
mov dword [esi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2c], eax
mov eax, ebx
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov dword [esi + 0x28], eax
xor ebx, ebx
jmp 0x51c32c
mov esi, dword [esi]
test esi, esi
je 0x51c370
lea eax, [esi + 8]
test eax, eax
je 0x51c370
mov dword [eax], 1
mov eax, ebx
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x51c930
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x60
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x2c]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x51c962
push 0xffffffffffffffff
push eax
mov dword [esi + 0x30], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x51c962
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x2c], ebx
mov edi, dword [esi + 0x28]
add esi, 0x28
cmp edi, ebx
je 0x51c9db
push 0x48
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.005da970
add esp, 0xc
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push edi
mov dword [esp + 0x28], 0x51505545
mov word [esp + 0x2c], 1
mov word [esp + 0x2e], bx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x51c9b4
call fcn.0040f010
mov ecx, dword [esi]
push ebx
lea edx, [esp + 0x14]
push edx
push 0x4c
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x51c9d3
call fcn.0040f010
push ebx
push 0x4c
call fcn.00433ef0
pop edi
pop esi
pop ebx
add esp, 0x60
ret
Function at 0x51f680
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5f9bfb
mov eax, dword fs:[0]
push eax
mov eax, 0x217c
call fcn.005ef960
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x2178], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x2190]
mov dword fs:[0], eax
mov eax, dword [esp + 0x21a0]
xor ebp, ebp
mov dword [esp + 0x1c], ecx
xor ebx, ebx
mov dword [esp + 0x14], ebp
push ebx
push 0x80
push 3
push ebx
push 1
mov dword [esp + 0x21ac], ebx
mov eax, dword [eax]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x51f707
call fcn.0040f010
cmp eax, ebx
jge 0x51f70d
xor al, al
jmp 0x51f86f
mov ebp, eax
mov dword [esp + 0x14], ebp
xor eax, eax
push 0x5c
lea edx, [esp + 0x24]
push ebx
push edx
mov byte [esp + 0x88], bl
mov dword [esp + 0x89], eax
mov dword [esp + 0x8d], eax
mov dword [esp + 0x91], eax
mov word [esp + 0x95], ax
mov byte [esp + 0x97], al
call fcn.005da970
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x78], ebx
lea esp, [esp]
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x2000
lea ecx, [esp + 0x198]
push ecx
push ebp
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x51f7a3
call fcn.0040f010
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x51f7c2
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x194]
call fcn.00492240
add esp, 8
jmp 0x51f780
cmp ebp, ebx
je 0x51f7d3
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x7c]
push eax
lea esi, [esp + 0x24]
call fcn.00492520
push 0xfe
lea ecx, [esp + 0x96]
push ebx
push ecx
mov word [esp + 0x9c], bx
call fcn.005da970
add esp, 0x10
lea edi, [esp + 0x8c]
xor esi, esi
jmp 0x51f810
movzx edx, byte [esp + esi + 0x7c]
push edx
push 0x630890
push 3
push edi
call fcn.005d467a
add esi, 1
add esp, 0x10
add edi, 4
cmp esi, 0x10
jb 0x51f810
lea eax, [esp + 0x8c]
lea edx, [eax + 2]
jmp 0x51f840
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x51f840
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x8c]
mov ebx, eax
mov eax, dword [esp + 0x1c]
push ecx
call fcn.004037a0
test ebp, ebp
je 0x51f86d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x2190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2178]
xor ecx, esp
call fcn.005d28b3
add esp, 0x2188
ret
Function at 0x5284e0
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
mov eax, 0x4e67c6a7
jbe 0x52850d
push esi
push edi
jmp 0x5284f0
mov esi, eax
mov edi, eax
shl esi, 5
shr edi, 2
add esi, edi
movzx edi, byte [ecx]
add esi, edi
xor eax, esi
add ecx, 1
sub edx, 1
jne 0x5284f0
pop edi
pop esi
and eax, 0x7fffffff
ret
Function at 0x52d790
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x603678
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
xor ecx, ecx
mov dword [esp + 0x18], ecx
sub esp, 0x18
mov eax, esp
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x24], esp
push edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push eax
push ecx
push edx
mov edx, dword [esp + 0x48]
call fcn.0052da90
add esp, 0x28
lea edi, [esp + 0x30]
call fcn.0052cee0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x14
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x603678
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x18], ecx
sub esp, 0x18
mov eax, esp
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x24], esp
push edx
mov edx, dword [esp + 0x44]
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
push eax
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push esi
call fcn.0052e260
add esp, 0x2c
lea edi, [esp + 0x30]
call fcn.0052cee0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x14
ret
Function at 0x52f540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x6035e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, edx
mov ebp, dword [esp + 0x40]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x52f5e9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x52f5f9
mov edi, vtable.CxMemFile.0
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
mov dword [esp + 0x40], ebx
call fcn.0052f750
mov byte [esp + 0x40], al
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x18], edi
je 0x52f5e3
cmp byte [esp + 0x24], bl
je 0x52f5e3
push eax
call fcn.005d27e0
add esp, 4
mov al, byte [esp + 0x40]
jmp 0x52f5fb
lea edi, [ebp + 0x44]
mov ecx, 6
mov esi, str.Unable_to_load_resource_
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
Function at 0x541590
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x5415e1
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push 0x1c
push 1
push esi
call ecx
mov dword [esi + 0x180], eax
mov dword [eax], 0x541400
mov dword [eax + 4], 0x541560
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.00541240
cmp byte [esi + 0x40], 0
je 0x5415da
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x54165c
mov edx, dword [esi + 0x190]
cmp byte [edx + 0x10], 0
je 0x54164c
mov eax, dword [esi + 8]
test eax, eax
je 0x541606
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov ecx, dword [esi + 0x190]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
test eax, eax
je 0x541648
cmp eax, 2
je 0x54164c
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5415f7
cmp eax, 3
je 0x54162e
cmp eax, 1
jne 0x5415f7
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x5415f7
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x5415f7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.00541690
pop esi
ret
cmp eax, 0xcc
je 0x54167e
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.00541690
pop esi
ret