joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4141f6
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x59e9e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x5a1e84]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x41424f
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41426c
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5a1e84], eax
jmp 0x414258
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x41426c
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x4143a9
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00533f95
lea eax, [ebp - 0x14]
push eax
call fcn.0051be96
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0051be3a
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.00533f95
lea eax, [ebp - 0x14]
push eax
call fcn.0051be96
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0051be3a
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00533f95
lea eax, [ebp - 0x14]
push eax
call fcn.0051be96
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0051be3a
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.00533f95
lea eax, [ebp - 0x14]
push eax
call fcn.0051be96
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0051be3a
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.00533f95
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0051be96
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0051be3a
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051afd4
leave
ret
Function at 0x419782
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.00412c50
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4197be
call fcn.0041999d
mov dword [esi + 0xc], 1
jmp 0x4197c3
call fcn.0041999d
cmp dword [esi], 0
je 0x41980c
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4197e6
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004060a5
jmp 0x4197f7
push 0xff
mov ecx, esi
call fcn.004021c0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004060c8
jmp 0x419830
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x419830
push dword [esi]
push dword [ebp - 4]
call fcn.004130a1
pop esi
leave
ret 0xc

Function at 0x4198f4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0041999d
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41993c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004060a5
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004060c8
jmp 0x419947
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004130a1
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41c3ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebx + 0x78], edi
test edi, 0xffff0000
jne 0x41c3f0
cmp dword [ebx + 0x74], 0
jne 0x41c3f0
movzx eax, di
mov dword [ebx + 0x74], eax
call fcn.0040bf44
mov esi, dword [eax + 0xc]
push 5
push edi
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 edi, eax
push edi
mov ecx, ebx
call fcn.0041c65b
push edi
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 0x41c42a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0040bf44
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41c461
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0041c480
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 0x4373b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4373c9
call fcn.0040bf44
mov esi, dword [eax + 0xc]
push 0x553988
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x43741f
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43741e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4373ff
xor esi, esi
jmp 0x437415
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.00437425
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4fe205
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x4fe21f
mov edi, dword [esi + 0xc]
jmp 0x4fe25f
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4fe238
call fcn.0041736a
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4fe24d
call fcn.0041736a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4fe25f
call fcn.0041736a
call fcn.0040bf44
cmp dword [eax + 0x3c], 0
je 0x4fe274
push edi
mov ecx, ebx
call fcn.004fda99
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004fe437
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x4fe297
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x4fe2a0
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x52e8d8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59e9e8]
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.00523045
mov dword [ebp - 0x14], eax
cmp dword [0x5a6680], edi
jne 0x52e9c9
push 0x800
push edi
push 0x578050
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x52e956
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x52eaa9
push 0x578050
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x52eaa9
push 0x578068
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x52eaa9
push eax
call ebx
push 0x578074
push esi
mov dword [0x5a6680], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x578084
push esi
mov dword [0x5a6684], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x5a6688], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a6690], eax
test eax, eax
je 0x52e9c6
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a668c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x52e9ee
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x52e9e1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x52ea03
push 4
pop eax
jmp 0x52eaab
cmp dword [ebp - 0x14], edi
je 0x52ea03
push dword [0x5a6680]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x52e9e8
mov eax, dword [0x5a668c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x52ea61
cmp dword [0x5a6690], esi
je 0x52ea61
push eax
call ebx
push dword [0x5a6690]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x52ea61
test eax, eax
je 0x52ea61
call ecx
test eax, eax
je 0x52ea56
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 0x52ea56
test byte [ebp - 8], 1
jne 0x52ea61
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x52ea91
mov eax, dword [0x5a6684]
cmp eax, esi
je 0x52ea8e
push eax
call ebx
test eax, eax
je 0x52ea8e
call eax
mov edi, eax
test edi, edi
je 0x52ea8e
mov eax, dword [0x5a6688]
cmp eax, esi
je 0x52ea8e
push eax
call ebx
test eax, eax
je 0x52ea8e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5a6680]
call ebx
test eax, eax
je 0x52eaa9
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x52eaab
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051afd4
leave
ret
Function at 0x5341e0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
je 0x534213
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x53420c
test al, 1
je 0x534213
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x534213
xor al, al
pop esi
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop esi
pop ebp
ret 8

Function at 0x5347a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547e11
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x59e9e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004063ec
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5347f1
push 0x80004005
call fcn.004015d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 0x10], 1
jge 0x534830
push 0x104
mov ecx, esi
call fcn.00402150
push dword [esi]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
cmp edi, 0x104
jbe 0x53487b
test edi, edi
jns 0x534855
push 0x80070057
call fcn.004015d0
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x534870
push edi
mov ecx, esi
call fcn.00402150
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test edi, edi
jne 0x5348e4
push 0x57c520
lea eax, [ebp - 0x14]
push eax
call fcn.00534320
mov dword [ebp - 4], 2
push dword [eax]
push 0x54b204
push 0x10000
call fcn.005354a0
add esp, 0xc
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5348c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
cmp dword [eax - 8], 0
jl 0x53484b
mov dword [eax - 0xc], 0
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
jmp 0x534914
mov eax, dword [esi]
test eax, eax
je 0x5348fe
push dword [eax - 8]
push eax
call fcn.0051beaf
add esp, 8
test eax, eax
js 0x53484b
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x53484b
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x534a00
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x534a27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x534a21
cmp eax, 2
jne 0x534a27
xor al, al
pop ebp
ret 0xc
cmp byte [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x534a57
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x534a57
test al, 1
je 0x534a57
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x534a57
xor al, al
pop esi
pop ebp
ret 0xc
xor eax, eax
cmp byte [ebp + 0x10], al
setne al
add eax, 4
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
neg eax
pop esi
pop ebp
ret 0xc

Function at 0x534a80
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
test bl, bl
je 0x534ab6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x534ab6
test al, 1
je 0x534ab6
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x534ab6
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
xor eax, eax
test bl, bl
setne al
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
pop esi
neg eax
pop ebx
pop ebp
ret 0xc

Function at 0x536060
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548278
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x59e9e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004063ec
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5360a2
push 0x80004005
call fcn.004015d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x5360da
push 0x400
lea ecx, [ebp - 0x10]
call fcn.00402150
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0x10]
push 0xa
push edi
call fcn.0051bf91
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x53611f
mov edi, edi
mov ecx, ebx
sub ecx, edi
sar ecx, 1
inc ecx
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.00402350
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edi, [ebx + 2]
push 0xa
push edi
call fcn.0051bf91
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x5360f0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x536140
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x536960
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x54
push edi
mov edi, ecx
test eax, eax
jne 0x536989
push 0x44
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0051b430
add esp, 0xc
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp + 0x10]
movzx eax, byte [ebp + 0x18]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x5369c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x1c
push esi
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.00403470
push dword [ebp - 0xc]
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [edi + 8], eax
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x56b57b
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ecx, 0x56b2fc
and ebx, ebx
call fcn.0056b596
add ebx, ebx
xor dword [esi], ecx
inc esi
inc ebx
sub edx, ebx
cmp esi, edi
jne fcn.0056b57b
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418004]
jne 0x40100a
repz ret
jmp fcn.004013c8

Function at 0x404973
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.0040369a
and dword [ebp - 4], 0
cmp dword [0x419bb0], 0
mov ebx, eax
jne 0x404a24
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404ad5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404ad5
push eax
call fcn.00403628
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x419bb0], eax
call esi
push eax
call fcn.00403628
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x419bb4], eax
call esi
push eax
call fcn.00403628
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x419bb8], eax
call esi
push eax
call fcn.00403628
pop ecx
mov dword [0x419bc0], eax
test eax, eax
je 0x404a24
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403628
pop ecx
mov dword [0x419bbc], eax
mov eax, dword [0x419bbc]
cmp eax, ebx
je 0x404a7c
cmp dword [0x419bc0], ebx
je 0x404a7c
push eax
call fcn.004036a3
push dword [0x419bc0]
mov esi, eax
call fcn.004036a3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404a7c
test edi, edi
je 0x404a7c
call esi
test eax, eax
je 0x404a73
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404a73
test byte [ebp - 0xc], 1
jne 0x404a7c
or dword [ebp + 0x10], 0x200000
jmp 0x404ab5
mov eax, dword [0x419bb4]
cmp eax, ebx
je 0x404ab5
push eax
call fcn.004036a3
pop ecx
test eax, eax
je 0x404ab5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404ab5
mov eax, dword [0x419bb8]
cmp eax, ebx
je 0x404ab5
push eax
call fcn.004036a3
pop ecx
test eax, eax
je 0x404ab5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x419bb0]
call fcn.004036a3
pop ecx
test eax, eax
je 0x404ad5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404ad7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415610
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x418004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x2b17cdc]
push ebx
push esi
mov esi, dword [0x2b17b24]
mov ebx, eax
cmp eax, 0x5dd
jne 0x41564a
push 0
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x418c60]
call fcn.004154d0
cmp dword [0x2b17cdc], 0x2f
jne 0x415665
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
call fcn.00415510
add esp, 4
cmp dword [0x2b17cdc], 0x568
pop esi
pop ebx
jne 0x41568e
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret