joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x340
call fcn.00413871
add esp, 4
or ecx, 0xffffffff
test eax, eax
je 0x40e34d
mov dword [eax], 0
mov dword [eax + 4], ecx
mov dword [eax + 0x134], ecx
mov esi, eax
jmp 0x40e34f
xor esi, esi
cmp dword [esi], 0
jne 0x40e3a5
cmp dword [esi + 4], ecx
jne 0x40e3a5
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40e370
mov eax, dword [0x568b8c]
mov dword [edi], eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 4]
call fcn.0040c830
test eax, eax
jne 0x40e397
mov eax, dword [ebp - 4]
jmp 0x40e3aa
call fcn.0040cc10
mov dword [esi], eax
mov eax, dword [0x593bc4]
jmp 0x40e3aa
mov eax, 0x1000000
mov dword [0x593bc8], eax
test eax, eax
je 0x40e3c4
push esi
call fcn.004138ab
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 8
call fcn.00413871
add esp, 4
pop edi
mov dword [eax + 4], esi
mov dword [eax], 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f780
Capabilities:
Delete file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x58bc40]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x668], 0
push edi
jne 0x40f7c2
call fcn.0042bd81
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00513700
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x664]
mov ecx, dword [eax + 0x2c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.files.lst
lea edi, [esi + 0x66c]
lea edx, [esp + 0x10]
push edi
push edx
call fcn.00404010
mov ebx, dword [eax]
push 0x250
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00516840
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40f815
xor bl, bl
jmp 0x40f81e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f83e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40f87e
push str.files.lst
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.00404010
mov edx, dword [eax]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f87e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x20]
push 0
push 0x20002
push 0x111
push ecx
mov byte [esi + 0x668], 0
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00513700
mov esp, ebp
pop ebp
ret
Function at 0x42515c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4251a3
call fcn.0041b31a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4251a3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4251bf
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00424c5c
mov esi, eax
test edi, edi
je 0x4251bd
test ebx, ebx
je 0x4251bd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x425976
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x535d8b
call fcn.00514f5c
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x42599b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4259ed
call fcn.00413912
push eax
lea ecx, [ebp - 0x10]
call fcn.004026e0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005150c9
push eax
call fcn.00401fb0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402710
mov eax, esi
call fcn.00515034
ret 8

Function at 0x4293d6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x58bc40]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x42941b
push 0x5400e8
push 4
push eax
call fcn.00515066
push eax
call fcn.00401fb0
add esp, 0x10
jmp 0x429431
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4294b1
push edi
call fcn.00515263
mov edi, dword [eax]
call fcn.00515263
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00515200
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00515263
cmp dword [eax], 0
je 0x429485
call fcn.00515263
push dword [eax]
call fcn.00414006
pop ecx
jmp 0x42948c
call fcn.00515263
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x4294b1
cmp dword [ebp - 0x234], esi
jae 0x4294b1
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4294b3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00513700
leave
ret
Function at 0x429958
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x58bc40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.004206a5
pop ecx
cmp eax, esi
je 0x429a42
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x429a42
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00516840
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x429a42
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x429a42
cmp esi, 0x14
jge 0x429a42
push 0x10
push 0
push edi
call fcn.00518659
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x429a31
call fcn.00515263
cmp dword [eax], 0x22
je 0x429a31
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00514a1d
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x429a07
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x58f2f8], 0
jne 0x429acd
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x429af6
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.004293d6
pop ecx
pop ecx
test eax, eax
jne 0x429af8
inc edi
cmp edi, esi
jl 0x429ad3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00513700
leave
ret 8
Function at 0x42a740
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42a788
call fcn.0041b31a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42a788
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42a7cb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x42a7b4
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42a7b4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x42a7c8
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42c5eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041b31a
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42c624
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0042c228
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x42c682
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x42c6a6
cmp dword [edi + 0x74], 0
jne 0x42c6a6
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041b31a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042c643
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42f344
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0042efe8
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x42f38e
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004147d5
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004060e0
jmp 0x42f399
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004343e5
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x42f39f
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00425268
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x42f3dc
call fcn.0042efe8
mov dword [esi + 0xc], 1
jmp 0x42f3e1
call fcn.0042efe8
cmp dword [esi], 0
je 0x42f42a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x42f402
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004147d5
jmp 0x42f414
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402530
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004060e0
jmp 0x42f44e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x42f44e
push dword [esi]
push dword [ebp + 8]
call fcn.004343e5
pop esi
pop ebp
ret 0xc

Function at 0x434fee
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58bc40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x435023
xor eax, eax
jmp 0x435076
lea eax, [ebp - 0x210]
push eax
call fcn.00514a1d
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x435054
push 0x568b8c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051895e
add esp, 0xc
test eax, eax
jne 0x43501f
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051895e
add esp, 0xc
test eax, eax
jne 0x43501f
lea eax, [ebp - 0x210]
push eax
call fcn.004206a5
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00513700
leave
ret

Function at 0x46b550
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004eec37
call fcn.0041ad37
cmp dword [eax + 0x14], 0
jne 0x46b56d
mov ecx, esi
pop esi
jmp fcn.0046b055
pop esi
ret
Function at 0x46eb86
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0043a6a8
call fcn.0041ad37
cmp dword [eax + 0x14], 0
jne 0x46eba3
mov ecx, esi
pop esi
jmp fcn.0046e559
pop esi
ret

Function at 0x48434c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x484366
call fcn.0041b31a
mov esi, dword [eax + 0xc]
push dword [0x591124]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x484384
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x48437c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4843b1
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x48437e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048427a
mov esi, eax
jmp 0x4843a3

Function at 0x4fab9e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4fabb6
mov edi, dword [esi + 0xc]
jmp 0x4fabf6
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4fabcf
call fcn.0041d697
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4fabe4
call fcn.0041d697
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4fabf6
call fcn.0041d697
call fcn.0041b31a
cmp dword [eax + 0x3c], 0
je 0x4fac0b
push edi
mov ecx, ebx
call fcn.004f99c7
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004faab8
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4fac29
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4fac35
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x513700
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58bc40]
jne 0x51370a
repz ret
jmp fcn.0051b823
Function at 0x5266c8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58bc40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051b24b
and dword [ebp - 0x14], 0
cmp dword [0x593ae0], 0
mov dword [ebp - 0x18], eax
jne 0x52677b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x526823
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x565088
push ebx
call edi
test eax, eax
je 0x526823
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x565078
push ebx
mov dword [0x593ae0], eax
call edi
push eax
call esi
push 0x565064
push ebx
mov dword [0x593ae4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x593ae8], eax
call edi
push eax
call esi
mov dword [0x593af0], eax
test eax, eax
je 0x52677b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x593aec], eax
mov eax, dword [0x593aec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5267d4
cmp dword [0x593af0], ecx
je 0x5267d4
push eax
call esi
push dword [0x593af0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5267d4
test ebx, ebx
je 0x5267d4
call edi
test eax, eax
je 0x5267cb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5267cb
test byte [ebp - 8], 1
jne 0x5267d4
or dword [ebp + 0x10], 0x200000
jmp 0x526807
mov eax, dword [0x593ae4]
cmp eax, dword [ebp - 0x18]
je 0x526807
push eax
call esi
test eax, eax
je 0x526807
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x526807
mov eax, dword [0x593ae8]
cmp eax, dword [ebp - 0x18]
je 0x526807
push eax
call esi
test eax, eax
je 0x526807
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x593ae0]
call esi
test eax, eax
je 0x526823
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x526825
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00513700
leave
ret
Function at 0x40cfd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54dc4e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x582654]
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 ebx, ecx
push 7
push 0x553848
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404940
mov ecx, dword [0x589d90]
mov dword [ebp - 4], 0
call fcn.0041ff70
mov edx, eax
cmp byte [edx], 0
jne 0x40d03b
xor ecx, ecx
jmp 0x40d049
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d040
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00414b10
push 5
push str..json
lea ecx, [ebp - 0x28]
call fcn.00414b10
lea esi, [ebx + 4]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
mov ecx, esi
push eax
push dword [esi + 0x10]
mov byte [ebp - 4], 1
push 0
call fcn.00414c40
mov byte [ebp - 4], 0
test eax, eax
je 0x40d161
mov ecx, ebx
call fcn.0040ab00
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x40d0aa
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00404820
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x553858
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00521cc9
mov esi, eax
add esp, 8
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x40d161
push 2
push 0
push esi
call fcn.00528c9d
push esi
call fcn.0052920f
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.005238ab
push esi
push 0
push eax
mov dword [ebp - 0x30], eax
call fcn.00527170
mov esi, dword [ebp - 0x2c]
push 0
push 0
push esi
call fcn.00528c9d
push esi
push edi
mov edi, dword [ebp - 0x30]
push 1
push edi
call fcn.00528933
add esp, 0x3c
push edi
test eax, eax
jne 0x40d123
call fcn.005238b4
add esp, 4
jmp 0x40d161
mov ecx, ebx
call fcn.0040d1a0
mov eax, dword [ebx + 0x3c4]
mov byte [ebx + 0x3c0], 0
mov byte [ebx + 0x404], 0
cmp eax, 8
ja 0x40d148
cmp eax, 1
jae 0x40d152
mov dword [ebx + 0x3c4], 1
push edi
call fcn.005238b4
push esi
call fcn.005286e7
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40d176
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404ab0
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.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x416bf0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push esi
push edi
push ebx
push 1
mov edi, ecx
mov dword [ebp - 0x1c], 0x494e41
push 4
push eax
mov dword [ebp - 0x20], edi
call fcn.00528933
push ebx
push 1
lea esi, [edi + 0xc]
push 1
push esi
call fcn.00528933
push ebx
push 1
push 1
push edi
call fcn.00528933
push ebx
push 1
lea eax, [edi + 1]
push 1
push eax
call fcn.00528933
add esp, 0x40
lea eax, [edi + 2]
push ebx
push 1
push 1
push eax
call fcn.00528933
push ebx
push 1
lea eax, [edi + 3]
push 1
push eax
call fcn.00528933
add esp, 0x20
cmp byte [esi], 6
jb 0x416c7f
push ebx
push 1
lea eax, [ebp - 0x18]
push 4
push eax
call fcn.00528933
add esp, 0x10
push ebx
push 1
lea esi, [edi + 6]
push 2
push esi
mov dword [ebp - 0x18], esi
call fcn.00528933
push ebx
push 1
lea eax, [edi + 8]
push 2
push eax
call fcn.00528933
push ebx
push 1
lea eax, [edi + 0xa]
push 2
push eax
call fcn.00528933
push ebx
push 1
lea eax, [edi + 4]
push 1
push eax
call fcn.00528933
add esp, 0x40
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x14]
mov word [ebp - 8], 0
xorps xmm0, xmm0
movq qword [ebp - 0x14], xmm0
push ebx
push 0xe
push 1
push eax
call fcn.00528933
push ebx
push 8
lea eax, [edi + 0x10]
push 4
push eax
call fcn.00528933
xor eax, eax
add esp, 0x20
xor edi, edi
cmp ax, word [esi]
jge 0x416d29
nop word [eax + eax]
mov eax, dword [ebp - 0x20]
push ebx
push 1
push 8
mov eax, dword [eax + 0x34]
lea esi, [eax + edi*8]
push esi
call fcn.00528933
mov eax, dword [ebp - 0x18]
inc edi
xor dword [esi + 4], 0x14ad
add esp, 0x10
movsx eax, word [eax]
cmp edi, eax
jl 0x416d00
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052388c
mov esp, ebp
pop ebp
ret 4