joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f8e0
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x5099fe
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x54b708]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, 1
test byte [0x558920], al
jne 0x46f942
or dword [0x558920], eax
push 0x558914
mov edi, str.Pdh.dll
mov dword [esp + 0x1c], 0
call fcn.00430060
push 0x50cb90
call fcn.004b8f73
add esp, 4
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [0x55891c]
test eax, eax
je 0x46fa2f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PdhOpenQuery
push eax
call esi
mov dword [0x555234], eax
mov eax, dword [0x55891c]
push str.PdhCloseQuery
push eax
call esi
mov ecx, dword [0x55891c]
push str.PdhCollectQueryData
push ecx
mov dword [0x555238], eax
call esi
mov edx, dword [0x55891c]
push str.PdhGetFormattedCounterValue
push edx
mov dword [0x55523c], eax
call esi
mov dword [0x555240], eax
mov eax, dword [0x55891c]
push str.PdhGetRawCounterValue
push eax
call esi
mov ecx, dword [0x55891c]
push str.PdhComputeCounterStatistics
push ecx
mov dword [0x555244], eax
call esi
mov edx, dword [0x55891c]
push str.PdhAddCounterW
push edx
mov dword [0x555248], eax
call esi
mov dword [0x55524c], eax
mov eax, dword [0x55891c]
push str.PdhExpandCounterPathW
push eax
call esi
mov ecx, dword [0x55891c]
push str.PdhEnumObjectsW
push ecx
mov dword [0x555250], eax
call esi
mov edx, dword [0x55891c]
push str.PdhEnumObjectItemsW
push edx
mov dword [0x555254], eax
call esi
mov dword [0x555258], eax
mov eax, dword [0x55891c]
push str.PdhValidatePathW
push eax
call esi
mov dword [0x55525c], eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push str.Failed_to_Load_Pdh.dll___n
call fcn.0040b2c0
mov esi, eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1d0]
add esp, 4
push str.Error_Code__
mov ecx, esi
call eax
mov ebx, eax
mov edi, dword [ebx]
add edi, 0x1a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
push eax
mov ecx, ebx
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
mov ecx, esi
call edx
push eax
call fcn.0041a120
mov eax, dword [esi + 4]
mov edx, dword [eax + 4]
lea ecx, [esi + 4]
add esp, 4
call edx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x473755
Capabilities:
Hide graphical window

Disassembly:
cmp byte [esp + 4], 0
push esi
mov esi, ecx
je 0x473778
cmp byte [esi + 0x6c], 0
jne 0x4737aa
mov eax, dword [esi + 0x68]
test eax, eax
je 0x473770
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x6c], 1
pop esi
ret 8
cmp byte [esi + 0x6c], 0
je 0x4737aa
mov eax, dword [esi + 0x68]
test eax, eax
je 0x47378e
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x70]
test eax, eax
mov byte [esi + 0x6c], 0
je 0x4737aa
lea ecx, [eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [esi + 0x70], 0
pop esi
ret 8
Function at 0x477b85
Capabilities:
Hide graphical window

Disassembly:
cmp byte [esp + 4], 0
push esi
mov esi, ecx
je 0x477bef
mov ecx, dword [esi + 0xe0]
mov eax, dword [ecx]
mov edx, dword [eax + 0xac]
call edx
test al, al
jne 0x477c3e
cmp byte [esi + 0x6c], al
jne 0x477c3e
mov eax, dword [esi + 0x68]
test eax, eax
mov byte [esi + 0x6c], 1
je 0x477bbf
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x68], 0
je 0x477c2a
mov eax, dword [esi]
mov edx, dword [eax + 0xc0]
mov ecx, esi
call edx
test eax, eax
je 0x477c2a
mov eax, dword [esi]
mov edx, dword [eax + 0xc0]
mov ecx, esi
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xe4]
call eax
jmp 0x477c2a
cmp byte [esi + 0x6c], 0
je 0x477c3e
mov eax, dword [esi + 0x68]
test eax, eax
mov byte [esi + 0x6c], 0
je 0x477c2a
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x68]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x477c2a
mov edx, dword [esi]
mov eax, dword [edx + 0x44]
push 0x2710
push 0xffffd8f0
mov ecx, esi
call eax
mov ecx, dword [esi + 0xe8]
test ecx, ecx
je 0x477c3e
mov edx, dword [ecx]
mov eax, dword [edx + 0xdc]
call eax
pop esi
ret 8
Function at 0x4892e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5057b8
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54b708]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x68]
mov ebp, dword [esp + 0x30]
mov ebx, edx
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
mov edx, ecx
shl edx, 4
sub edx, ecx
mov ecx, dword [esp + 0x34]
add esi, 1
cmp byte [esp + 0x64], 0
lea ecx, [edx + ecx + 4]
mov dword [eax], ecx
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
je 0x48934a
add ecx, 0xd
lea edx, [esi + 0xf]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [eax + 8]
push eax
mov dword [edi], ecx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x48935d
add dword [edi], 2
cmp byte [esp + 0x60], 0
mov eax, dword [edi]
mov dword [edi + 4], esi
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
je 0x48937b
add eax, 0xf
add esi, 0xf
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_IsRectEmpty]
push edi
mov dword [ebx], edx
call esi
test eax, eax
jne 0x489390
add dword [ebx], 3
mov eax, dword [esp + 0x38]
mov ecx, dword [ebx]
add eax, 2
cmp byte [esp + 0x5c], 0
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
je 0x4893b5
add ecx, 0xd
add eax, 0xd
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 8]
mov edi, dword [esp + 0x2c]
push ebx
mov dword [edi], eax
call esi
test eax, eax
jne 0x4893c8
add dword [edi], 3
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
add edx, 0xfffffffc
cmp byte [esp + 0x4c], 0
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
jne 0x4894b4
push 1
mov ecx, ebp
call fcn.004a60f5
cmp byte [esp + 0x48], 0
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x58]
jne 0x489407
mov eax, dword [esp + 0x54]
mov esi, dword [ebp]
push 0
push 0x54e434
push 0x54e418
push 0
push eax
add esi, 0x28
call fcn.004b967b
mov edx, dword [esi]
add esp, 0x14
push eax
mov ecx, ebp
call edx
mov ebx, eax
mov eax, dword [esp + 0x44]
test eax, eax
mov esi, 0x8c24
je 0x48944a
xor ecx, ecx
cmp eax, 1
setne cl
add ecx, 0x8c25
mov esi, ecx
mov edx, dword [esp + 0x50]
push edx
lea ecx, [esp + 0x68]
call fcn.0043e3f0
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x64]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp]
push esi
push edi
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, ebp
call eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48949d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x60]
push ecx
mov ecx, ebp
call fcn.004a60f5
mov edx, dword [ebp]
mov eax, dword [edx + 0x28]
push ebx
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x48
Function at 0x497d05
Capabilities:
Hide graphical window

Disassembly:
cmp byte [esp + 4], 0
push esi
mov esi, ecx
je 0x497d83
cmp byte [esi + 0xa0], 0
jne 0x497dfe
mov eax, dword [esi + 0x9c]
test eax, eax
mov byte [esi + 0xa0], 1
je 0x497d31
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x90]
test ecx, ecx
je 0x497d46
mov eax, dword [ecx]
mov edx, dword [eax + 0x7c]
push 1
push 1
call edx
cmp dword [esi + 0x9c], 0
je 0x497dfe
mov eax, dword [esi]
mov edx, dword [eax + 0xc0]
mov ecx, esi
call edx
test eax, eax
je 0x497dfe
mov eax, dword [esi]
mov edx, dword [eax + 0xc0]
mov ecx, esi
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xe4]
call eax
pop esi
ret 8
cmp byte [esi + 0xa0], 0
je 0x497dfe
mov eax, dword [esi + 0x9c]
test eax, eax
mov byte [esi + 0xa0], 0
je 0x497dca
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x9c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x497dca
mov edx, dword [esi]
mov eax, dword [edx + 0x44]
push 0x2710
push 0xffffd8f0
mov ecx, esi
call eax
mov ecx, dword [esi + 0x90]
test ecx, ecx
je 0x497ddf
mov edx, dword [ecx]
mov eax, dword [edx + 0x7c]
push 1
push 0
call eax
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x497dfe
mov edx, dword [eax + 4]
lea ecx, [eax + 4]
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0xa4], 0
pop esi
ret 8

Function at 0x498dd5
Capabilities:
Hide graphical window

Disassembly:
cmp byte [esp + 4], 0
push esi
mov esi, ecx
je 0x498df8
cmp byte [esi + 0x6c], 0
jne 0x498e12
mov eax, dword [esi + 0x68]
test eax, eax
je 0x498df0
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x6c], 1
pop esi
ret 8
cmp byte [esi + 0x6c], 0
je 0x498e12
mov eax, dword [esi + 0x68]
test eax, eax
je 0x498e0e
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x6c], 0
pop esi
ret 8
Function at 0x49d15f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x54b708]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x49d19c
push 0x50e0f0
push 4
push eax
call fcn.004b9b45
push eax
call fcn.0043e6a0
add esp, 0x10
jmp 0x49d1ae
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x49d219
push edi
call fcn.004bcdd2
mov edi, dword [eax]
call fcn.004bcdd2
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.004bcd78
add esp, 0x18
mov ebx, eax
call fcn.004bcdd2
cmp dword [eax], 0
je 0x49d1f9
call fcn.004bcdd2
push dword [eax]
call fcn.0049d04f
pop ecx
jmp 0x49d200
call fcn.004bcdd2
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x49d219
cmp ebx, esi
jae 0x49d219
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x49d21b
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b8e16
leave
ret
Function at 0x4a2438
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4a2471
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a23d1
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049df34
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4a3f4f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4a3f92
call fcn.004a77b8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a3f92
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4a3fad
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004a3b09
test ebx, ebx
mov esi, eax
je 0x4a3fab
test edi, edi
je 0x4a3fab
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4a54eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4a5531
call fcn.004a77b8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a5531
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4a5574
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4a555d
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 0x4a555d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4a5571
mov ecx, dword [esi + 0x4c]
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 0x4b8e16
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x54b708]
jne 0x4b8e20
repz ret
jmp fcn.004c0a48
Function at 0x4ba735
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4ba762
call fcn.004bcde5
mov dword [eax], esi
call fcn.004bcdd2
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004c25e0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ba780
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004bcdf8
pop ecx
jmp 0x4ba75d
test byte [esp + 0xc], 0x80
je 0x4ba78c
and eax, 0xfffffffe
jmp 0x4ba78f
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4ba771
xor eax, eax
pop esi
ret
Function at 0x4bf6d7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x54b720]
je 0x4bf6f2
inc edi
cmp edi, 0x17
jb 0x4bf6e3
cmp edi, 0x17
jae 0x4bf872
push ebp
push 3
call fcn.004cae20
cmp eax, 1
pop ecx
je 0x4bf83e
push 3
call fcn.004cae20
test eax, eax
pop ecx
jne 0x4bf726
cmp dword [0x54b4f0], 1
je 0x4bf83e
cmp ebx, 0xfc
je 0x4bf871
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x552470
push ebp
call fcn.004cadbb
add esp, 0xc
test eax, eax
je 0x4bf75c
push esi
push esi
push esi
push esi
push esi
call fcn.004c24e4
add esp, 0x14
push 0x104
mov esi, 0x552489
push esi
push 0
mov byte [0x55258d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bf7a0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004cadbb
add esp, 0xc
test eax, eax
je 0x4bf7a0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004c24e4
add esp, 0x14
push esi
call fcn.004cad30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4bf7e5
push esi
call fcn.004cad30
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x552784
push 0x5121f4
sub ecx, eax
push ecx
push eax
call fcn.004cac73
add esp, 0x14
test eax, eax
je 0x4bf7e5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004c24e4
add esp, 0x14
jmp 0x4bf7e7
xor esi, esi
push 0x5121f0
push ebx
push ebp
call fcn.004cac02
add esp, 0xc
test eax, eax
je 0x4bf807
push esi
push esi
push esi
push esi
push esi
call fcn.004c24e4
add esp, 0x14
push dword [edi*8 + 0x54b724]
push ebx
push ebp
call fcn.004cac02
add esp, 0xc
test eax, eax
je 0x4bf829
push esi
push esi
push esi
push esi
push esi
call fcn.004c24e4
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004caa45
add esp, 0xc
jmp 0x4bf871
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4bf871
cmp ebp, 0xffffffff
je 0x4bf871
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x54b724]
push dword [esi]
call fcn.004cad30
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4caa45
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004c0287
xor ebx, ebx
cmp dword [0x552f74], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4cab1b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4cabfb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4cabfb
push eax
call fcn.004c0219
mov dword [esp], 0x512560
push edi
mov dword [0x552f74], eax
call esi
push eax
call fcn.004c0219
mov dword [esp], 0x51254c
push edi
mov dword [0x552f78], eax
call esi
push eax
call fcn.004c0219
mov dword [0x552f7c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004bcad3
test eax, eax
pop ecx
pop ecx
je 0x4caae9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004c24e4
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4cab1b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004c0219
cmp eax, ebx
pop ecx
mov dword [0x552f84], eax
je 0x4cab1b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c0219
pop ecx
mov dword [0x552f80], eax
mov eax, dword [0x552f80]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4caba0
cmp dword [0x552f84], ecx
je 0x4caba0
push eax
call fcn.004c0290
push dword [0x552f84]
mov esi, eax
call fcn.004c0290
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4caba0
cmp edi, ebx
je 0x4caba0
call esi
cmp eax, ebx
je 0x4cab6d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4cab6d
test byte [ebp - 0x18], 1
jne 0x4caba0
lea eax, [ebp - 0x10]
push eax
call fcn.004bcb0a
test eax, eax
pop ecx
je 0x4cab88
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004c24e4
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4cab97
or dword [ebp + 0x10], 0x200000
jmp 0x4cabdb
or dword [ebp + 0x10], 0x40000
jmp 0x4cabdb
mov eax, dword [0x552f78]
cmp eax, dword [ebp - 8]
je 0x4cabdb
push eax
call fcn.004c0290
cmp eax, ebx
pop ecx
je 0x4cabdb
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4cabdb
mov eax, dword [0x552f7c]
cmp eax, dword [ebp - 8]
je 0x4cabdb
push eax
call fcn.004c0290
cmp eax, ebx
pop ecx
je 0x4cabdb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x552f74]
call fcn.004c0290
cmp eax, ebx
pop ecx
je 0x4cabfb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4cabfd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d24a2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x54b708]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004d2437
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004bc9b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4d24f1
cmp dword [ebp - 0x1c], 5
jb 0x4d2509
jmp 0x4d2505
cmp dword [ebp - 0x10], 1
jne 0x4d2509
cmp dword [ebp - 0x1c], 4
ja 0x4d2505
jne 0x4d2509
cmp dword [ebp - 0x18], 0
jbe 0x4d2509
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x513fe0
call fcn.004d2328
test eax, eax
jge 0x4d252a
mov byte [0x555988], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b8e16
add ebp, 0x78
leave
ret

Function at 0x4d3da0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4d3dcf
push esi
call fcn.004d7bd0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x4d3dc8
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 0x4d3e4a
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x4d3e3a
mov eax, dword [esi + 8]
test eax, eax
je 0x4d3df4
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x4d3e36
cmp eax, 2
je 0x4d3e3a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d3de5
cmp eax, 3
je 0x4d3e1c
cmp eax, 1
jne 0x4d3de5
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x4d3de5
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x4d3de5
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004d3c30
pop esi
ret
cmp eax, 0xcc
je 0x4d3e6c
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.004d3c30
pop esi
ret
Function at 0x4e3130
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x4e3157
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x4e3163
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0xc], ecx
jle 0x4e326f
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x18], edx
jmp 0x4e31ac
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, dword [edx]
cdq
idiv ebp
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x4e31cd
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov edi, dword [edx + ecx*4]
add ebp, 0xffffffff
mov ecx, ebp
xor eax, eax
xor ebx, ebx
call fcn.004e2fa0
mov ecx, eax
xor esi, esi
cmp esi, ecx
jle 0x4e3202
lea esp, [esp]
add ebx, 1
mov ecx, ebp
mov eax, ebx
call fcn.004e2fa0
mov ecx, eax
cmp esi, ecx
jg 0x4e31f0
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + edi], al
add esi, 1
cmp esi, 0xff
jle 0x4e31e5
cmp dword [esp + 0x10], 0
je 0x4e3250
mov eax, 1
lea ecx, [edi - 1]
jmp 0x4e3230
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
add eax, 1
sub ecx, 1
cmp eax, 0xff
jle 0x4e3230
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], 4
add eax, 1
cmp eax, dword [ecx + 0x64]
mov dword [esp + 0x14], eax
jl 0x4e31a0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret